Merged from RELEASE_16.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.6.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.6'
429 PACKAGE_STRING='llvm 1.6'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 # Factoring default headers for most tests.
442 ac_includes_default="\
443 #include <stdio.h>
444 #if HAVE_SYS_TYPES_H
445 # include <sys/types.h>
446 #endif
447 #if HAVE_SYS_STAT_H
448 # include <sys/stat.h>
449 #endif
450 #if STDC_HEADERS
451 # include <stdlib.h>
452 # include <stddef.h>
453 #else
454 # if HAVE_STDLIB_H
455 #  include <stdlib.h>
456 # endif
457 #endif
458 #if HAVE_STRING_H
459 # if !STDC_HEADERS && HAVE_MEMORY_H
460 #  include <memory.h>
461 # endif
462 # include <string.h>
463 #endif
464 #if HAVE_STRINGS_H
465 # include <strings.h>
466 #endif
467 #if HAVE_INTTYPES_H
468 # include <inttypes.h>
469 #else
470 # if HAVE_STDINT_H
471 #  include <stdint.h>
472 # endif
473 #endif
474 #if HAVE_UNISTD_H
475 # include <unistd.h>
476 #endif"
477
478 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479 ac_subst_files=''
480
481 # Initialize some variables set by options.
482 ac_init_help=
483 ac_init_version=false
484 # The variables have the same names as the options, with
485 # dashes changed to underlines.
486 cache_file=/dev/null
487 exec_prefix=NONE
488 no_create=
489 no_recursion=
490 prefix=NONE
491 program_prefix=NONE
492 program_suffix=NONE
493 program_transform_name=s,x,x,
494 silent=
495 site=
496 srcdir=
497 verbose=
498 x_includes=NONE
499 x_libraries=NONE
500
501 # Installation directory options.
502 # These are left unexpanded so users can "make install exec_prefix=/foo"
503 # and all the variables that are supposed to be based on exec_prefix
504 # by default will actually change.
505 # Use braces instead of parens because sh, perl, etc. also accept them.
506 bindir='${exec_prefix}/bin'
507 sbindir='${exec_prefix}/sbin'
508 libexecdir='${exec_prefix}/libexec'
509 datadir='${prefix}/share'
510 sysconfdir='${prefix}/etc'
511 sharedstatedir='${prefix}/com'
512 localstatedir='${prefix}/var'
513 libdir='${exec_prefix}/lib'
514 includedir='${prefix}/include'
515 oldincludedir='/usr/include'
516 infodir='${prefix}/info'
517 mandir='${prefix}/man'
518
519 ac_prev=
520 for ac_option
521 do
522   # If the previous option needs an argument, assign it.
523   if test -n "$ac_prev"; then
524     eval "$ac_prev=\$ac_option"
525     ac_prev=
526     continue
527   fi
528
529   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530
531   # Accept the important Cygnus configure options, so we can diagnose typos.
532
533   case $ac_option in
534
535   -bindir | --bindir | --bindi | --bind | --bin | --bi)
536     ac_prev=bindir ;;
537   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538     bindir=$ac_optarg ;;
539
540   -build | --build | --buil | --bui | --bu)
541     ac_prev=build_alias ;;
542   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543     build_alias=$ac_optarg ;;
544
545   -cache-file | --cache-file | --cache-fil | --cache-fi \
546   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547     ac_prev=cache_file ;;
548   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550     cache_file=$ac_optarg ;;
551
552   --config-cache | -C)
553     cache_file=config.cache ;;
554
555   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556     ac_prev=datadir ;;
557   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558   | --da=*)
559     datadir=$ac_optarg ;;
560
561   -disable-* | --disable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     eval "enable_$ac_feature=no" ;;
569
570   -enable-* | --enable-*)
571     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572     # Reject names that are not valid shell variable names.
573     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575    { (exit 1); exit 1; }; }
576     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577     case $ac_option in
578       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579       *) ac_optarg=yes ;;
580     esac
581     eval "enable_$ac_feature='$ac_optarg'" ;;
582
583   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585   | --exec | --exe | --ex)
586     ac_prev=exec_prefix ;;
587   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589   | --exec=* | --exe=* | --ex=*)
590     exec_prefix=$ac_optarg ;;
591
592   -gas | --gas | --ga | --g)
593     # Obsolete; use --with-gas.
594     with_gas=yes ;;
595
596   -help | --help | --hel | --he | -h)
597     ac_init_help=long ;;
598   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599     ac_init_help=recursive ;;
600   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601     ac_init_help=short ;;
602
603   -host | --host | --hos | --ho)
604     ac_prev=host_alias ;;
605   -host=* | --host=* | --hos=* | --ho=*)
606     host_alias=$ac_optarg ;;
607
608   -includedir | --includedir | --includedi | --included | --include \
609   | --includ | --inclu | --incl | --inc)
610     ac_prev=includedir ;;
611   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612   | --includ=* | --inclu=* | --incl=* | --inc=*)
613     includedir=$ac_optarg ;;
614
615   -infodir | --infodir | --infodi | --infod | --info | --inf)
616     ac_prev=infodir ;;
617   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618     infodir=$ac_optarg ;;
619
620   -libdir | --libdir | --libdi | --libd)
621     ac_prev=libdir ;;
622   -libdir=* | --libdir=* | --libdi=* | --libd=*)
623     libdir=$ac_optarg ;;
624
625   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626   | --libexe | --libex | --libe)
627     ac_prev=libexecdir ;;
628   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629   | --libexe=* | --libex=* | --libe=*)
630     libexecdir=$ac_optarg ;;
631
632   -localstatedir | --localstatedir | --localstatedi | --localstated \
633   | --localstate | --localstat | --localsta | --localst \
634   | --locals | --local | --loca | --loc | --lo)
635     ac_prev=localstatedir ;;
636   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639     localstatedir=$ac_optarg ;;
640
641   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642     ac_prev=mandir ;;
643   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
644     mandir=$ac_optarg ;;
645
646   -nfp | --nfp | --nf)
647     # Obsolete; use --without-fp.
648     with_fp=no ;;
649
650   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651   | --no-cr | --no-c | -n)
652     no_create=yes ;;
653
654   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656     no_recursion=yes ;;
657
658   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660   | --oldin | --oldi | --old | --ol | --o)
661     ac_prev=oldincludedir ;;
662   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665     oldincludedir=$ac_optarg ;;
666
667   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668     ac_prev=prefix ;;
669   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670     prefix=$ac_optarg ;;
671
672   -program-prefix | --program-prefix | --program-prefi | --program-pref \
673   | --program-pre | --program-pr | --program-p)
674     ac_prev=program_prefix ;;
675   -program-prefix=* | --program-prefix=* | --program-prefi=* \
676   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677     program_prefix=$ac_optarg ;;
678
679   -program-suffix | --program-suffix | --program-suffi | --program-suff \
680   | --program-suf | --program-su | --program-s)
681     ac_prev=program_suffix ;;
682   -program-suffix=* | --program-suffix=* | --program-suffi=* \
683   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684     program_suffix=$ac_optarg ;;
685
686   -program-transform-name | --program-transform-name \
687   | --program-transform-nam | --program-transform-na \
688   | --program-transform-n | --program-transform- \
689   | --program-transform | --program-transfor \
690   | --program-transfo | --program-transf \
691   | --program-trans | --program-tran \
692   | --progr-tra | --program-tr | --program-t)
693     ac_prev=program_transform_name ;;
694   -program-transform-name=* | --program-transform-name=* \
695   | --program-transform-nam=* | --program-transform-na=* \
696   | --program-transform-n=* | --program-transform-=* \
697   | --program-transform=* | --program-transfor=* \
698   | --program-transfo=* | --program-transf=* \
699   | --program-trans=* | --program-tran=* \
700   | --progr-tra=* | --program-tr=* | --program-t=*)
701     program_transform_name=$ac_optarg ;;
702
703   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704   | -silent | --silent | --silen | --sile | --sil)
705     silent=yes ;;
706
707   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708     ac_prev=sbindir ;;
709   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710   | --sbi=* | --sb=*)
711     sbindir=$ac_optarg ;;
712
713   -sharedstatedir | --sharedstatedir | --sharedstatedi \
714   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715   | --sharedst | --shareds | --shared | --share | --shar \
716   | --sha | --sh)
717     ac_prev=sharedstatedir ;;
718   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721   | --sha=* | --sh=*)
722     sharedstatedir=$ac_optarg ;;
723
724   -site | --site | --sit)
725     ac_prev=site ;;
726   -site=* | --site=* | --sit=*)
727     site=$ac_optarg ;;
728
729   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730     ac_prev=srcdir ;;
731   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732     srcdir=$ac_optarg ;;
733
734   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735   | --syscon | --sysco | --sysc | --sys | --sy)
736     ac_prev=sysconfdir ;;
737   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739     sysconfdir=$ac_optarg ;;
740
741   -target | --target | --targe | --targ | --tar | --ta | --t)
742     ac_prev=target_alias ;;
743   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744     target_alias=$ac_optarg ;;
745
746   -v | -verbose | --verbose | --verbos | --verbo | --verb)
747     verbose=yes ;;
748
749   -version | --version | --versio | --versi | --vers | -V)
750     ac_init_version=: ;;
751
752   -with-* | --with-*)
753     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package| sed 's/-/_/g'`
759     case $ac_option in
760       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761       *) ac_optarg=yes ;;
762     esac
763     eval "with_$ac_package='$ac_optarg'" ;;
764
765   -without-* | --without-*)
766     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767     # Reject names that are not valid shell variable names.
768     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769       { echo "$as_me: error: invalid package name: $ac_package" >&2
770    { (exit 1); exit 1; }; }
771     ac_package=`echo $ac_package | sed 's/-/_/g'`
772     eval "with_$ac_package=no" ;;
773
774   --x)
775     # Obsolete; use --with-x.
776     with_x=yes ;;
777
778   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779   | --x-incl | --x-inc | --x-in | --x-i)
780     ac_prev=x_includes ;;
781   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783     x_includes=$ac_optarg ;;
784
785   -x-libraries | --x-libraries | --x-librarie | --x-librari \
786   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787     ac_prev=x_libraries ;;
788   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790     x_libraries=$ac_optarg ;;
791
792   -*) { echo "$as_me: error: unrecognized option: $ac_option
793 Try \`$0 --help' for more information." >&2
794    { (exit 1); exit 1; }; }
795     ;;
796
797   *=*)
798     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799     # Reject names that are not valid shell variable names.
800     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802    { (exit 1); exit 1; }; }
803     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804     eval "$ac_envvar='$ac_optarg'"
805     export $ac_envvar ;;
806
807   *)
808     # FIXME: should be removed in autoconf 3.0.
809     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813     ;;
814
815   esac
816 done
817
818 if test -n "$ac_prev"; then
819   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820   { echo "$as_me: error: missing argument to $ac_option" >&2
821    { (exit 1); exit 1; }; }
822 fi
823
824 # Be sure to have absolute paths.
825 for ac_var in exec_prefix prefix
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # Be sure to have absolute paths.
836 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
837               localstatedir libdir includedir oldincludedir infodir mandir
838 do
839   eval ac_val=$`echo $ac_var`
840   case $ac_val in
841     [\\/$]* | ?:[\\/]* ) ;;
842     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843    { (exit 1); exit 1; }; };;
844   esac
845 done
846
847 # There might be people who depend on the old broken behavior: `$host'
848 # used to hold the argument of --host etc.
849 # FIXME: To remove some day.
850 build=$build_alias
851 host=$host_alias
852 target=$target_alias
853
854 # FIXME: To remove some day.
855 if test "x$host_alias" != x; then
856   if test "x$build_alias" = x; then
857     cross_compiling=maybe
858     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859     If a cross compiler is detected then cross compile mode will be used." >&2
860   elif test "x$build_alias" != "x$host_alias"; then
861     cross_compiling=yes
862   fi
863 fi
864
865 ac_tool_prefix=
866 test -n "$host_alias" && ac_tool_prefix=$host_alias-
867
868 test "$silent" = yes && exec 6>/dev/null
869
870
871 # Find the source files, if location was not specified.
872 if test -z "$srcdir"; then
873   ac_srcdir_defaulted=yes
874   # Try the directory containing this script, then its parent.
875   ac_confdir=`(dirname "$0") 2>/dev/null ||
876 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
877          X"$0" : 'X\(//\)[^/]' \| \
878          X"$0" : 'X\(//\)$' \| \
879          X"$0" : 'X\(/\)' \| \
880          .     : '\(.\)' 2>/dev/null ||
881 echo X"$0" |
882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884           /^X\(\/\/\)$/{ s//\1/; q; }
885           /^X\(\/\).*/{ s//\1/; q; }
886           s/.*/./; q'`
887   srcdir=$ac_confdir
888   if test ! -r $srcdir/$ac_unique_file; then
889     srcdir=..
890   fi
891 else
892   ac_srcdir_defaulted=no
893 fi
894 if test ! -r $srcdir/$ac_unique_file; then
895   if test "$ac_srcdir_defaulted" = yes; then
896     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897    { (exit 1); exit 1; }; }
898   else
899     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900    { (exit 1); exit 1; }; }
901   fi
902 fi
903 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905    { (exit 1); exit 1; }; }
906 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907 ac_env_build_alias_set=${build_alias+set}
908 ac_env_build_alias_value=$build_alias
909 ac_cv_env_build_alias_set=${build_alias+set}
910 ac_cv_env_build_alias_value=$build_alias
911 ac_env_host_alias_set=${host_alias+set}
912 ac_env_host_alias_value=$host_alias
913 ac_cv_env_host_alias_set=${host_alias+set}
914 ac_cv_env_host_alias_value=$host_alias
915 ac_env_target_alias_set=${target_alias+set}
916 ac_env_target_alias_value=$target_alias
917 ac_cv_env_target_alias_set=${target_alias+set}
918 ac_cv_env_target_alias_value=$target_alias
919 ac_env_CC_set=${CC+set}
920 ac_env_CC_value=$CC
921 ac_cv_env_CC_set=${CC+set}
922 ac_cv_env_CC_value=$CC
923 ac_env_CFLAGS_set=${CFLAGS+set}
924 ac_env_CFLAGS_value=$CFLAGS
925 ac_cv_env_CFLAGS_set=${CFLAGS+set}
926 ac_cv_env_CFLAGS_value=$CFLAGS
927 ac_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_env_LDFLAGS_value=$LDFLAGS
929 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_cv_env_LDFLAGS_value=$LDFLAGS
931 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_env_CPPFLAGS_value=$CPPFLAGS
933 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXX_set=${CXX+set}
940 ac_env_CXX_value=$CXX
941 ac_cv_env_CXX_set=${CXX+set}
942 ac_cv_env_CXX_value=$CXX
943 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944 ac_env_CXXFLAGS_value=$CXXFLAGS
945 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
947 ac_env_CXXCPP_set=${CXXCPP+set}
948 ac_env_CXXCPP_value=$CXXCPP
949 ac_cv_env_CXXCPP_set=${CXXCPP+set}
950 ac_cv_env_CXXCPP_value=$CXXCPP
951 ac_env_F77_set=${F77+set}
952 ac_env_F77_value=$F77
953 ac_cv_env_F77_set=${F77+set}
954 ac_cv_env_F77_value=$F77
955 ac_env_FFLAGS_set=${FFLAGS+set}
956 ac_env_FFLAGS_value=$FFLAGS
957 ac_cv_env_FFLAGS_set=${FFLAGS+set}
958 ac_cv_env_FFLAGS_value=$FFLAGS
959
960 #
961 # Report the --help message.
962 #
963 if test "$ac_init_help" = "long"; then
964   # Omit some internal or obsolete options to make the list less imposing.
965   # This message is too long to be a string in the A/UX 3.1 sh.
966   cat <<_ACEOF
967 \`configure' configures llvm 1.6 to adapt to many kinds of systems.
968
969 Usage: $0 [OPTION]... [VAR=VALUE]...
970
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE.  See below for descriptions of some of the useful variables.
973
974 Defaults for the options are specified in brackets.
975
976 Configuration:
977   -h, --help              display this help and exit
978       --help=short        display options specific to this package
979       --help=recursive    display the short help of all the included packages
980   -V, --version           display version information and exit
981   -q, --quiet, --silent   do not print \`checking...' messages
982       --cache-file=FILE   cache test results in FILE [disabled]
983   -C, --config-cache      alias for \`--cache-file=config.cache'
984   -n, --no-create         do not create output files
985       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
986
987 _ACEOF
988
989   cat <<_ACEOF
990 Installation directories:
991   --prefix=PREFIX         install architecture-independent files in PREFIX
992                           [$ac_default_prefix]
993   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
994                           [PREFIX]
995
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1000
1001 For better control, use the options below.
1002
1003 Fine tuning of the installation directories:
1004   --bindir=DIR           user executables [EPREFIX/bin]
1005   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1006   --libexecdir=DIR       program executables [EPREFIX/libexec]
1007   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1008   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1009   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1010   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1011   --libdir=DIR           object code libraries [EPREFIX/lib]
1012   --includedir=DIR       C header files [PREFIX/include]
1013   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1014   --infodir=DIR          info documentation [PREFIX/info]
1015   --mandir=DIR           man documentation [PREFIX/man]
1016 _ACEOF
1017
1018   cat <<\_ACEOF
1019
1020 System types:
1021   --build=BUILD     configure for building on BUILD [guessed]
1022   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1023   --target=TARGET   configure for building compilers for TARGET [HOST]
1024 _ACEOF
1025 fi
1026
1027 if test -n "$ac_init_help"; then
1028   case $ac_init_help in
1029      short | recursive ) echo "Configuration of llvm 1.6:";;
1030    esac
1031   cat <<\_ACEOF
1032
1033 Optional Features:
1034   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1035   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1036   --enable-optimized
1037   --enable-jit            Enable Just In Time Compiling (default is YES)
1038   --enable-doxygen        Build doxygen documentation (default is NO)
1039   --enable-threads        Use threads if available (default is YES)
1040   --enable-target         Build specific host targets:
1041                           all,host-only,{target-name} (default=all)
1042   --enable-ltdl-install   install libltdl
1043   --enable-shared[=PKGS]
1044                           build shared libraries [default=yes]
1045   --enable-static[=PKGS]
1046                           build static libraries [default=yes]
1047   --enable-fast-install[=PKGS]
1048                           optimize for fast installation [default=yes]
1049   --disable-libtool-lock  avoid locking (might break parallel builds)
1050
1051 Optional Packages:
1052   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1055                           searches PATH)
1056   --with-tclinclude       directory where tcl headers are
1057   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058   --with-pic              try to use only PIC/non-PIC objects [default=use
1059                           both]
1060   --with-tags[=TAGS]
1061                           include additional configurations [automatic]
1062
1063 Some influential environment variables:
1064   CC          C compiler command
1065   CFLAGS      C compiler flags
1066   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1067               nonstandard directory <lib dir>
1068   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069               headers in a nonstandard directory <include dir>
1070   CPP         C preprocessor
1071   CXX         C++ compiler command
1072   CXXFLAGS    C++ compiler flags
1073   CXXCPP      C++ preprocessor
1074   F77         Fortran 77 compiler command
1075   FFLAGS      Fortran 77 compiler flags
1076
1077 Use these variables to override the choices made by `configure' or to help
1078 it to find libraries and programs with nonstandard names/locations.
1079
1080 Report bugs to <llvmbugs@cs.uiuc.edu>.
1081 _ACEOF
1082 fi
1083
1084 if test "$ac_init_help" = "recursive"; then
1085   # If there are subdirs, report their specific --help.
1086   ac_popdir=`pwd`
1087   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088     test -d $ac_dir || continue
1089     ac_builddir=.
1090
1091 if test "$ac_dir" != .; then
1092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093   # A "../" for each directory in $ac_dir_suffix.
1094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 else
1096   ac_dir_suffix= ac_top_builddir=
1097 fi
1098
1099 case $srcdir in
1100   .)  # No --srcdir option.  We are building in place.
1101     ac_srcdir=.
1102     if test -z "$ac_top_builddir"; then
1103        ac_top_srcdir=.
1104     else
1105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106     fi ;;
1107   [\\/]* | ?:[\\/]* )  # Absolute path.
1108     ac_srcdir=$srcdir$ac_dir_suffix;
1109     ac_top_srcdir=$srcdir ;;
1110   *) # Relative path.
1111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 esac
1114
1115 # Do not use `cd foo && pwd` to compute absolute paths, because
1116 # the directories may not exist.
1117 case `pwd` in
1118 .) ac_abs_builddir="$ac_dir";;
1119 *)
1120   case "$ac_dir" in
1121   .) ac_abs_builddir=`pwd`;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *)
1129   case ${ac_top_builddir}. in
1130   .) ac_abs_top_builddir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_srcdir=$ac_srcdir;;
1137 *)
1138   case $ac_srcdir in
1139   .) ac_abs_srcdir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142   esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *)
1147   case $ac_top_srcdir in
1148   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151   esac;;
1152 esac
1153
1154     cd $ac_dir
1155     # Check for guested configure; otherwise get Cygnus style configure.
1156     if test -f $ac_srcdir/configure.gnu; then
1157       echo
1158       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1159     elif test -f $ac_srcdir/configure; then
1160       echo
1161       $SHELL $ac_srcdir/configure  --help=recursive
1162     elif test -f $ac_srcdir/configure.ac ||
1163            test -f $ac_srcdir/configure.in; then
1164       echo
1165       $ac_configure --help
1166     else
1167       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168     fi
1169     cd $ac_popdir
1170   done
1171 fi
1172
1173 test -n "$ac_init_help" && exit 0
1174 if $ac_init_version; then
1175   cat <<\_ACEOF
1176 llvm configure 1.6
1177 generated by GNU Autoconf 2.59
1178
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1182
1183 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1184 _ACEOF
1185   exit 0
1186 fi
1187 exec 5>config.log
1188 cat >&5 <<_ACEOF
1189 This file contains any messages produced by compilers while
1190 running configure, to aid debugging if configure makes a mistake.
1191
1192 It was created by llvm $as_me 1.6, which was
1193 generated by GNU Autoconf 2.59.  Invocation command line was
1194
1195   $ $0 $@
1196
1197 _ACEOF
1198 {
1199 cat <<_ASUNAME
1200 ## --------- ##
1201 ## Platform. ##
1202 ## --------- ##
1203
1204 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209
1210 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1212
1213 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1214 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1215 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1217 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1218 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1219 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1220
1221 _ASUNAME
1222
1223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 for as_dir in $PATH
1225 do
1226   IFS=$as_save_IFS
1227   test -z "$as_dir" && as_dir=.
1228   echo "PATH: $as_dir"
1229 done
1230
1231 } >&5
1232
1233 cat >&5 <<_ACEOF
1234
1235
1236 ## ----------- ##
1237 ## Core tests. ##
1238 ## ----------- ##
1239
1240 _ACEOF
1241
1242
1243 # Keep a trace of the command line.
1244 # Strip out --no-create and --no-recursion so they do not pile up.
1245 # Strip out --silent because we don't want to record it for future runs.
1246 # Also quote any args containing shell meta-characters.
1247 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_configure_args=
1249 ac_configure_args0=
1250 ac_configure_args1=
1251 ac_sep=
1252 ac_must_keep_next=false
1253 for ac_pass in 1 2
1254 do
1255   for ac_arg
1256   do
1257     case $ac_arg in
1258     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260     | -silent | --silent | --silen | --sile | --sil)
1261       continue ;;
1262     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264     esac
1265     case $ac_pass in
1266     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267     2)
1268       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269       if test $ac_must_keep_next = true; then
1270         ac_must_keep_next=false # Got value, back to normal.
1271       else
1272         case $ac_arg in
1273           *=* | --config-cache | -C | -disable-* | --disable-* \
1274           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276           | -with-* | --with-* | -without-* | --without-* | --x)
1277             case "$ac_configure_args0 " in
1278               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279             esac
1280             ;;
1281           -* ) ac_must_keep_next=true ;;
1282         esac
1283       fi
1284       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285       # Get rid of the leading space.
1286       ac_sep=" "
1287       ;;
1288     esac
1289   done
1290 done
1291 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293
1294 # When interrupted or exit'd, cleanup temporary files, and complete
1295 # config.log.  We remove comments because anyway the quotes in there
1296 # would cause problems or look ugly.
1297 # WARNING: Be sure not to use single quotes in there, as some shells,
1298 # such as our DU 5.0 friend, will then `close' the trap.
1299 trap 'exit_status=$?
1300   # Save into config.log some information that might help in debugging.
1301   {
1302     echo
1303
1304     cat <<\_ASBOX
1305 ## ---------------- ##
1306 ## Cache variables. ##
1307 ## ---------------- ##
1308 _ASBOX
1309     echo
1310     # The following way of writing the cache mishandles newlines in values,
1311 {
1312   (set) 2>&1 |
1313     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314     *ac_space=\ *)
1315       sed -n \
1316         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318       ;;
1319     *)
1320       sed -n \
1321         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322       ;;
1323     esac;
1324 }
1325     echo
1326
1327     cat <<\_ASBOX
1328 ## ----------------- ##
1329 ## Output variables. ##
1330 ## ----------------- ##
1331 _ASBOX
1332     echo
1333     for ac_var in $ac_subst_vars
1334     do
1335       eval ac_val=$`echo $ac_var`
1336       echo "$ac_var='"'"'$ac_val'"'"'"
1337     done | sort
1338     echo
1339
1340     if test -n "$ac_subst_files"; then
1341       cat <<\_ASBOX
1342 ## ------------- ##
1343 ## Output files. ##
1344 ## ------------- ##
1345 _ASBOX
1346       echo
1347       for ac_var in $ac_subst_files
1348       do
1349         eval ac_val=$`echo $ac_var`
1350         echo "$ac_var='"'"'$ac_val'"'"'"
1351       done | sort
1352       echo
1353     fi
1354
1355     if test -s confdefs.h; then
1356       cat <<\_ASBOX
1357 ## ----------- ##
1358 ## confdefs.h. ##
1359 ## ----------- ##
1360 _ASBOX
1361       echo
1362       sed "/^$/d" confdefs.h | sort
1363       echo
1364     fi
1365     test "$ac_signal" != 0 &&
1366       echo "$as_me: caught signal $ac_signal"
1367     echo "$as_me: exit $exit_status"
1368   } >&5
1369   rm -f core *.core &&
1370   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371     exit $exit_status
1372      ' 0
1373 for ac_signal in 1 2 13 15; do
1374   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 done
1376 ac_signal=0
1377
1378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1379 rm -rf conftest* confdefs.h
1380 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 echo >confdefs.h
1382
1383 # Predefined preprocessor variables.
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 _ACEOF
1408
1409
1410 # Let the site file select an alternate cache file if it wants to.
1411 # Prefer explicitly selected file to automatically selected ones.
1412 if test -z "$CONFIG_SITE"; then
1413   if test "x$prefix" != xNONE; then
1414     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415   else
1416     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417   fi
1418 fi
1419 for ac_site_file in $CONFIG_SITE; do
1420   if test -r "$ac_site_file"; then
1421     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422 echo "$as_me: loading site script $ac_site_file" >&6;}
1423     sed 's/^/| /' "$ac_site_file" >&5
1424     . "$ac_site_file"
1425   fi
1426 done
1427
1428 if test -r "$cache_file"; then
1429   # Some versions of bash will fail to source /dev/null (special
1430   # files actually), so we avoid doing that.
1431   if test -f "$cache_file"; then
1432     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433 echo "$as_me: loading cache $cache_file" >&6;}
1434     case $cache_file in
1435       [\\/]* | ?:[\\/]* ) . $cache_file;;
1436       *)                      . ./$cache_file;;
1437     esac
1438   fi
1439 else
1440   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441 echo "$as_me: creating cache $cache_file" >&6;}
1442   >$cache_file
1443 fi
1444
1445 # Check that the precious variables saved in the cache have kept the same
1446 # value.
1447 ac_cache_corrupted=false
1448 for ac_var in `(set) 2>&1 |
1449                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451   eval ac_new_set=\$ac_env_${ac_var}_set
1452   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453   eval ac_new_val="\$ac_env_${ac_var}_value"
1454   case $ac_old_set,$ac_new_set in
1455     set,)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,set)
1460       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462       ac_cache_corrupted=: ;;
1463     ,);;
1464     *)
1465       if test "x$ac_old_val" != "x$ac_new_val"; then
1466         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1469 echo "$as_me:   former value:  $ac_old_val" >&2;}
1470         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1471 echo "$as_me:   current value: $ac_new_val" >&2;}
1472         ac_cache_corrupted=:
1473       fi;;
1474   esac
1475   # Pass precious variables to config.status.
1476   if test "$ac_new_set" = set; then
1477     case $ac_new_val in
1478     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480     *) ac_arg=$ac_var=$ac_new_val ;;
1481     esac
1482     case " $ac_configure_args " in
1483       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1484       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485     esac
1486   fi
1487 done
1488 if $ac_cache_corrupted; then
1489   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493    { (exit 1); exit 1; }; }
1494 fi
1495
1496 ac_ext=c
1497 ac_cpp='$CPP $CPPFLAGS'
1498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1530
1531
1532
1533
1534
1535
1536
1537 ac_aux_dir=
1538 for ac_dir in autoconf $srcdir/autoconf; do
1539   if test -f $ac_dir/install-sh; then
1540     ac_aux_dir=$ac_dir
1541     ac_install_sh="$ac_aux_dir/install-sh -c"
1542     break
1543   elif test -f $ac_dir/install.sh; then
1544     ac_aux_dir=$ac_dir
1545     ac_install_sh="$ac_aux_dir/install.sh -c"
1546     break
1547   elif test -f $ac_dir/shtool; then
1548     ac_aux_dir=$ac_dir
1549     ac_install_sh="$ac_aux_dir/shtool install -c"
1550     break
1551   fi
1552 done
1553 if test -z "$ac_aux_dir"; then
1554   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1555 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1556    { (exit 1); exit 1; }; }
1557 fi
1558 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561
1562
1563 if test ${srcdir} != "." ; then
1564   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1565     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1566 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1567    { (exit 1); exit 1; }; }
1568   fi
1569 fi
1570
1571 for i in `ls ${srcdir}/projects`
1572 do
1573   if test -d ${srcdir}/projects/${i} ; then
1574     case ${i} in
1575       "CVS") ;;
1576       "sample")
1577
1578 subdirs="$subdirs projects/sample"
1579     ;;
1580       "Stacker")
1581
1582 subdirs="$subdirs projects/Stacker"
1583    ;;
1584       "llvm-test")
1585
1586 subdirs="$subdirs projects/llvm-test"
1587  ;;
1588       "llvm-reopt")
1589
1590 subdirs="$subdirs projects/llvm-reopt"
1591 ;;
1592       "llvm-gcc")
1593
1594 subdirs="$subdirs projects/llvm-gcc"
1595   ;;
1596       "llvm-java")
1597
1598 subdirs="$subdirs projects/llvm-java"
1599  ;;
1600       "llvm-tv")
1601
1602 subdirs="$subdirs projects/llvm-tv"
1603    ;;
1604       "llvm-poolalloc")
1605
1606 subdirs="$subdirs projects/llvm-poolalloc"
1607  ;;
1608       *)
1609         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1611         ;;
1612     esac
1613   fi
1614 done
1615
1616
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630   ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634    { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638    { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656   ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660    { (exit 1); exit 1; }; }
1661
1662 fi
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671 echo "$as_me:$LINENO: checking target system type" >&5
1672 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673 if test "${ac_cv_target+set}" = set; then
1674   echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676   ac_cv_target_alias=$target_alias
1677 test "x$ac_cv_target_alias" = "x" &&
1678   ac_cv_target_alias=$ac_cv_host_alias
1679 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682    { (exit 1); exit 1; }; }
1683
1684 fi
1685 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686 echo "${ECHO_T}$ac_cv_target" >&6
1687 target=$ac_cv_target
1688 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691
1692
1693 # The aliases save the names the user supplied, while $host etc.
1694 # will get canonicalized.
1695 test -n "$target_alias" &&
1696   test "$program_prefix$program_suffix$program_transform_name" = \
1697     NONENONEs,x,x, &&
1698   program_prefix=${target_alias}-
1699
1700 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1701 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1702 if test "${llvm_cv_os_type+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   case $build in
1706   *-*-aix*)
1707     llvm_cv_os_type="AIX"
1708     llvm_cv_platform_type="Unix" ;;
1709   *-*-cygwin*)
1710     llvm_cv_os_type="Cygwin"
1711     llvm_cv_platform_type="Unix" ;;
1712   *-*-darwin*)
1713     llvm_cv_os_type="Darwin"
1714     llvm_cv_platform_type="Unix" ;;
1715   *-*-freebsd*)
1716     llvm_cv_os_type="FreeBSD"
1717     llvm_cv_platform_type="Unix" ;;
1718   *-*-hpux*)
1719     llvm_cv_os_type="HP-UX"
1720     llvm_cv_platform_type="Unix" ;;
1721   *-*-interix*)
1722     llvm_cv_os_type="Interix"
1723     llvm_cv_platform_type="Unix" ;;
1724   *-*-linux*)
1725     llvm_cv_os_type="Linux"
1726     llvm_cv_platform_type="Unix" ;;
1727   *-*-solaris*)
1728     llvm_cv_os_type="SunOS"
1729     llvm_cv_platform_type="Unix" ;;
1730   *-*-win32*)
1731     llvm_cv_os_type="Win32"
1732     llvm_cv_platform_type="Win32" ;;
1733   *-*-mingw*)
1734     llvm_cv_os_type="MingW"
1735     llvm_cv_platform_type="Win32" ;;
1736   *)
1737     llvm_cv_os_type="Unknown"
1738     llvm_cv_platform_type="Unknown" ;;
1739 esac
1740 fi
1741 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1742 echo "${ECHO_T}$llvm_cv_os_type" >&6
1743
1744 if test "$llvm_cv_os_type" = "Unknown" ; then
1745   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1746 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1747    { (exit 1); exit 1; }; }
1748 fi
1749
1750 OS=$llvm_cv_os_type
1751
1752
1753 case $llvm_cv_platform_type in
1754   Unix)
1755
1756 cat >>confdefs.h <<\_ACEOF
1757 #define LLVM_ON_UNIX 1
1758 _ACEOF
1759
1760     LLVM_ON_UNIX=1
1761
1762     LLVM_ON_WIN32=0
1763
1764     ;;
1765   Win32)
1766
1767 cat >>confdefs.h <<\_ACEOF
1768 #define LLVM_ON_WIN32 1
1769 _ACEOF
1770
1771     LLVM_ON_UNIX=0
1772
1773     LLVM_ON_WIN32=1
1774
1775     ;;
1776 esac
1777
1778 echo "$as_me:$LINENO: checking target architecture" >&5
1779 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1780 if test "${llvm_cv_target_arch+set}" = set; then
1781   echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783   case $target in
1784   i?86-*)                 llvm_cv_target_arch="x86" ;;
1785   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1786   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1787   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1788   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1789   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1790   *)                      llvm_cv_target_arch="Unknown" ;;
1791 esac
1792 fi
1793 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1794 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1795
1796 if test "$llvm_cv_target_arch" = "Unknown" ; then
1797   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1798 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1799 fi
1800
1801 ARCH=$llvm_cv_target_arch
1802
1803
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 if test -n "$ac_tool_prefix"; then
1810   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$CC"; then
1818   ac_cv_prog_CC="$CC" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   for ac_exec_ext in '' $ac_executable_extensions; do
1826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838   echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845 fi
1846 if test -z "$ac_cv_prog_CC"; then
1847   ac_ct_CC=$CC
1848   # Extract the first word of "gcc", so it can be a program name with args.
1849 set dummy gcc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   if test -n "$ac_ct_CC"; then
1856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861   IFS=$as_save_IFS
1862   test -z "$as_dir" && as_dir=.
1863   for ac_exec_ext in '' $ac_executable_extensions; do
1864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865     ac_cv_prog_ac_ct_CC="gcc"
1866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867     break 2
1868   fi
1869 done
1870 done
1871
1872 fi
1873 fi
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1878 else
1879   echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883   CC=$ac_ct_CC
1884 else
1885   CC="$ac_cv_prog_CC"
1886 fi
1887
1888 if test -z "$CC"; then
1889   if test -n "$ac_tool_prefix"; then
1890   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1891 set dummy ${ac_tool_prefix}cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897   if test -n "$CC"; then
1898   ac_cv_prog_CC="$CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903   IFS=$as_save_IFS
1904   test -z "$as_dir" && as_dir=.
1905   for ac_exec_ext in '' $ac_executable_extensions; do
1906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907     ac_cv_prog_CC="${ac_tool_prefix}cc"
1908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909     break 2
1910   fi
1911 done
1912 done
1913
1914 fi
1915 fi
1916 CC=$ac_cv_prog_CC
1917 if test -n "$CC"; then
1918   echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1920 else
1921   echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1923 fi
1924
1925 fi
1926 if test -z "$ac_cv_prog_CC"; then
1927   ac_ct_CC=$CC
1928   # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   if test -n "$ac_ct_CC"; then
1936   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941   IFS=$as_save_IFS
1942   test -z "$as_dir" && as_dir=.
1943   for ac_exec_ext in '' $ac_executable_extensions; do
1944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945     ac_cv_prog_ac_ct_CC="cc"
1946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947     break 2
1948   fi
1949 done
1950 done
1951
1952 fi
1953 fi
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1958 else
1959   echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1961 fi
1962
1963   CC=$ac_ct_CC
1964 else
1965   CC="$ac_cv_prog_CC"
1966 fi
1967
1968 fi
1969 if test -z "$CC"; then
1970   # Extract the first word of "cc", so it can be a program name with args.
1971 set dummy cc; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$CC"; then
1978   ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980   ac_prog_rejected=no
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1989        ac_prog_rejected=yes
1990        continue
1991      fi
1992     ac_cv_prog_CC="cc"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995   fi
1996 done
1997 done
1998
1999 if test $ac_prog_rejected = yes; then
2000   # We found a bogon in the path, so make sure we never use it.
2001   set dummy $ac_cv_prog_CC
2002   shift
2003   if test $# != 0; then
2004     # We chose a different compiler from the bogus one.
2005     # However, it has the same basename, so the bogon will be chosen
2006     # first if we set CC to just the basename; use the full file name.
2007     shift
2008     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2009   fi
2010 fi
2011 fi
2012 fi
2013 CC=$ac_cv_prog_CC
2014 if test -n "$CC"; then
2015   echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6
2017 else
2018   echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2020 fi
2021
2022 fi
2023 if test -z "$CC"; then
2024   if test -n "$ac_tool_prefix"; then
2025   for ac_prog in cl
2026   do
2027     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   if test -n "$CC"; then
2035   ac_cv_prog_CC="$CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050
2051 fi
2052 fi
2053 CC=$ac_cv_prog_CC
2054 if test -n "$CC"; then
2055   echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2057 else
2058   echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2060 fi
2061
2062     test -n "$CC" && break
2063   done
2064 fi
2065 if test -z "$CC"; then
2066   ac_ct_CC=$CC
2067   for ac_prog in cl
2068 do
2069   # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy $ac_prog; ac_word=$2
2071 echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074   echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076   if test -n "$ac_ct_CC"; then
2077   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082   IFS=$as_save_IFS
2083   test -z "$as_dir" && as_dir=.
2084   for ac_exec_ext in '' $ac_executable_extensions; do
2085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086     ac_cv_prog_ac_ct_CC="$ac_prog"
2087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088     break 2
2089   fi
2090 done
2091 done
2092
2093 fi
2094 fi
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098 echo "${ECHO_T}$ac_ct_CC" >&6
2099 else
2100   echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2102 fi
2103
2104   test -n "$ac_ct_CC" && break
2105 done
2106
2107   CC=$ac_ct_CC
2108 fi
2109
2110 fi
2111
2112
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117    { (exit 1); exit 1; }; }
2118
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO:" \
2121      "checking for C compiler version" >&5
2122 ac_compiler=`set X $ac_compile; echo $2`
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2124   (eval $ac_compiler --version </dev/null >&5) 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2129   (eval $ac_compiler -v </dev/null >&5) 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2134   (eval $ac_compiler -V </dev/null >&5) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138
2139 cat >conftest.$ac_ext <<_ACEOF
2140 /* confdefs.h.  */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h.  */
2145
2146 int
2147 main ()
2148 {
2149
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 ac_clean_files_save=$ac_clean_files
2155 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2156 # Try to create an executable without -o first, disregard a.out.
2157 # It will help us diagnose broken compilers, and finding out an intuition
2158 # of exeext.
2159 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2160 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2161 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2163   (eval $ac_link_default) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; then
2167   # Find the output, starting from the most likely.  This scheme is
2168 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2169 # resort.
2170
2171 # Be careful to initialize this variable, since it used to be cached.
2172 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2173 ac_cv_exeext=
2174 # b.out is created by i960 compilers.
2175 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2176 do
2177   test -f "$ac_file" || continue
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2180         ;;
2181     conftest.$ac_ext )
2182         # This is the source file.
2183         ;;
2184     [ab].out )
2185         # We found the default executable, but exeext='' is most
2186         # certainly right.
2187         break;;
2188     *.* )
2189         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190         # FIXME: I believe we export ac_cv_exeext for Libtool,
2191         # but it would be cool to find out if it's true.  Does anybody
2192         # maintain Libtool? --akim.
2193         export ac_cv_exeext
2194         break;;
2195     * )
2196         break;;
2197   esac
2198 done
2199 else
2200   echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&2;}
2207    { (exit 77); exit 77; }; }
2208 fi
2209
2210 ac_exeext=$ac_cv_exeext
2211 echo "$as_me:$LINENO: result: $ac_file" >&5
2212 echo "${ECHO_T}$ac_file" >&6
2213
2214 # Check the compiler produces executables we can run.  If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2217 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2218 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2219 # If not cross compiling, check that we can run a simple program.
2220 if test "$cross_compiling" != yes; then
2221   if { ac_try='./$ac_file'
2222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223   (eval $ac_try) 2>&5
2224   ac_status=$?
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); }; }; then
2227     cross_compiling=no
2228   else
2229     if test "$cross_compiling" = maybe; then
2230         cross_compiling=yes
2231     else
2232         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&2;}
2238    { (exit 1); exit 1; }; }
2239     fi
2240   fi
2241 fi
2242 echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6
2244
2245 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246 ac_clean_files=$ac_clean_files_save
2247 # Check the compiler produces executables we can run.  If not, either
2248 # the compiler is broken, or we cross compile.
2249 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2251 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252 echo "${ECHO_T}$cross_compiling" >&6
2253
2254 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2257   (eval $ac_link) 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; then
2261   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2262 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2263 # work properly (i.e., refer to `conftest.exe'), while it won't with
2264 # `rm'.
2265 for ac_file in conftest.exe conftest conftest.*; do
2266   test -f "$ac_file" || continue
2267   case $ac_file in
2268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2269     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270           export ac_cv_exeext
2271           break;;
2272     * ) break;;
2273   esac
2274 done
2275 else
2276   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&2;}
2280    { (exit 1); exit 1; }; }
2281 fi
2282
2283 rm -f conftest$ac_cv_exeext
2284 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2285 echo "${ECHO_T}$ac_cv_exeext" >&6
2286
2287 rm -f conftest.$ac_ext
2288 EXEEXT=$ac_cv_exeext
2289 ac_exeext=$EXEEXT
2290 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2291 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2292 if test "${ac_cv_objext+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.o conftest.obj
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); }; then
2316   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2319     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320        break;;
2321   esac
2322 done
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331    { (exit 1); exit 1; }; }
2332 fi
2333
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 fi
2336 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6
2338 OBJEXT=$ac_cv_objext
2339 ac_objext=$OBJEXT
2340 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355 #ifndef __GNUC__
2356        choke me
2357 #endif
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 rm -f conftest.$ac_objext
2364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365   (eval $ac_compile) 2>conftest.er1
2366   ac_status=$?
2367   grep -v '^ *+' conftest.er1 >conftest.err
2368   rm -f conftest.er1
2369   cat conftest.err >&5
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); } &&
2372          { ac_try='test -z "$ac_c_werror_flag"
2373                          || test ! -s conftest.err'
2374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; } &&
2379          { ac_try='test -s conftest.$ac_objext'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; }; then
2385   ac_compiler_gnu=yes
2386 else
2387   echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_compiler_gnu=no
2391 fi
2392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2394
2395 fi
2396 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2397 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2398 GCC=`test $ac_compiler_gnu = yes && echo yes`
2399 ac_test_CFLAGS=${CFLAGS+set}
2400 ac_save_CFLAGS=$CFLAGS
2401 CFLAGS="-g"
2402 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2403 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_g+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413
2414 int
2415 main ()
2416 {
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag"
2432                          || test ! -s conftest.err'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   ac_cv_prog_cc_g=yes
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 ac_cv_prog_cc_g=no
2450 fi
2451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2454 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2455 if test "$ac_test_CFLAGS" = set; then
2456   CFLAGS=$ac_save_CFLAGS
2457 elif test $ac_cv_prog_cc_g = yes; then
2458   if test "$GCC" = yes; then
2459     CFLAGS="-g -O2"
2460   else
2461     CFLAGS="-g"
2462   fi
2463 else
2464   if test "$GCC" = yes; then
2465     CFLAGS="-O2"
2466   else
2467     CFLAGS=
2468   fi
2469 fi
2470 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2471 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2472 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   ac_cv_prog_cc_stdc=no
2476 ac_save_CC=$CC
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h.  */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h.  */
2483 #include <stdarg.h>
2484 #include <stdio.h>
2485 #include <sys/types.h>
2486 #include <sys/stat.h>
2487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2488 struct buf { int x; };
2489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2490 static char *e (p, i)
2491      char **p;
2492      int i;
2493 {
2494   return p[i];
2495 }
2496 static char *f (char * (*g) (char **, int), char **p, ...)
2497 {
2498   char *s;
2499   va_list v;
2500   va_start (v,p);
2501   s = g (p, va_arg (v,int));
2502   va_end (v);
2503   return s;
2504 }
2505
2506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2507    function prototypes and stuff, but not '\xHH' hex character constants.
2508    These don't provoke an error unfortunately, instead are silently treated
2509    as 'x'.  The following induces an error, until -std1 is added to get
2510    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2511    array size at least.  It's necessary to write '\x00'==0 to get something
2512    that's true only with -std1.  */
2513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2514
2515 int test (int i, double x);
2516 struct s1 {int (*f) (int a);};
2517 struct s2 {int (*f) (double a);};
2518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2519 int argc;
2520 char **argv;
2521 int
2522 main ()
2523 {
2524 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 # Don't try gcc -ansi; that turns off useful extensions and
2530 # breaks some systems' header files.
2531 # AIX                   -qlanglvl=ansi
2532 # Ultrix and OSF/1      -std1
2533 # HP-UX 10.20 and later -Ae
2534 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2535 # SVR4                  -Xc -D__EXTENSIONS__
2536 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2537 do
2538   CC="$ac_save_CC $ac_arg"
2539   rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541   (eval $ac_compile) 2>conftest.er1
2542   ac_status=$?
2543   grep -v '^ *+' conftest.er1 >conftest.err
2544   rm -f conftest.er1
2545   cat conftest.err >&5
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); } &&
2548          { ac_try='test -z "$ac_c_werror_flag"
2549                          || test ! -s conftest.err'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; } &&
2555          { ac_try='test -s conftest.$ac_objext'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; }; then
2561   ac_cv_prog_cc_stdc=$ac_arg
2562 break
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 fi
2568 rm -f conftest.err conftest.$ac_objext
2569 done
2570 rm -f conftest.$ac_ext conftest.$ac_objext
2571 CC=$ac_save_CC
2572
2573 fi
2574
2575 case "x$ac_cv_prog_cc_stdc" in
2576   x|xno)
2577     echo "$as_me:$LINENO: result: none needed" >&5
2578 echo "${ECHO_T}none needed" >&6 ;;
2579   *)
2580     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2581 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2582     CC="$CC $ac_cv_prog_cc_stdc" ;;
2583 esac
2584
2585 # Some people use a C++ compiler to compile C.  Since we use `exit',
2586 # in C++ we need to declare it.  In case someone uses the same compiler
2587 # for both compiling C and C++ we need to have the C++ compiler decide
2588 # the declaration of exit, since it's the most demanding environment.
2589 cat >conftest.$ac_ext <<_ACEOF
2590 #ifndef __cplusplus
2591   choke me
2592 #endif
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596   (eval $ac_compile) 2>conftest.er1
2597   ac_status=$?
2598   grep -v '^ *+' conftest.er1 >conftest.err
2599   rm -f conftest.er1
2600   cat conftest.err >&5
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -z "$ac_c_werror_flag"
2604                          || test ! -s conftest.err'
2605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606   (eval $ac_try) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; } &&
2610          { ac_try='test -s conftest.$ac_objext'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616   for ac_declaration in \
2617    '' \
2618    'extern "C" void std::exit (int) throw (); using std::exit;' \
2619    'extern "C" void std::exit (int); using std::exit;' \
2620    'extern "C" void exit (int) throw ();' \
2621    'extern "C" void exit (int);' \
2622    'void exit (int);'
2623 do
2624   cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h.  */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h.  */
2630 $ac_declaration
2631 #include <stdlib.h>
2632 int
2633 main ()
2634 {
2635 exit (42);
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642   (eval $ac_compile) 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } &&
2649          { ac_try='test -z "$ac_c_werror_flag"
2650                          || test ! -s conftest.err'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   :
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 continue
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670   cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676 $ac_declaration
2677 int
2678 main ()
2679 {
2680 exit (42);
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687   (eval $ac_compile) 2>conftest.er1
2688   ac_status=$?
2689   grep -v '^ *+' conftest.er1 >conftest.err
2690   rm -f conftest.er1
2691   cat conftest.err >&5
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); } &&
2694          { ac_try='test -z "$ac_c_werror_flag"
2695                          || test ! -s conftest.err'
2696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697   (eval $ac_try) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; } &&
2701          { ac_try='test -s conftest.$ac_objext'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; }; then
2707   break
2708 else
2709   echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2711
2712 fi
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 done
2715 rm -f conftest*
2716 if test -n "$ac_declaration"; then
2717   echo '#ifdef __cplusplus' >>confdefs.h
2718   echo $ac_declaration      >>confdefs.h
2719   echo '#endif'             >>confdefs.h
2720 fi
2721
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_ext=c
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734
2735 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2736 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2737 if test "${ac_cv_c_bigendian+set}" = set; then
2738   echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740   # See if sys/param.h defines the BYTE_ORDER macro.
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747 #include <sys/types.h>
2748 #include <sys/param.h>
2749
2750 int
2751 main ()
2752 {
2753 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2754  bogus endian macros
2755 #endif
2756
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763   (eval $ac_compile) 2>conftest.er1
2764   ac_status=$?
2765   grep -v '^ *+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } &&
2770          { ac_try='test -z "$ac_c_werror_flag"
2771                          || test ! -s conftest.err'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; } &&
2777          { ac_try='test -s conftest.$ac_objext'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   # It does; now see whether it defined to BIG_ENDIAN or not.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790 #include <sys/types.h>
2791 #include <sys/param.h>
2792
2793 int
2794 main ()
2795 {
2796 #if BYTE_ORDER != BIG_ENDIAN
2797  not big endian
2798 #endif
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806   (eval $ac_compile) 2>conftest.er1
2807   ac_status=$?
2808   grep -v '^ *+' conftest.er1 >conftest.err
2809   rm -f conftest.er1
2810   cat conftest.err >&5
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); } &&
2813          { ac_try='test -z "$ac_c_werror_flag"
2814                          || test ! -s conftest.err'
2815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816   (eval $ac_try) 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; } &&
2820          { ac_try='test -s conftest.$ac_objext'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; }; then
2826   ac_cv_c_bigendian=yes
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 ac_cv_c_bigendian=no
2832 fi
2833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838 # It does not; compile a test program.
2839 if test "$cross_compiling" = yes; then
2840   # try to guess the endianness by grepping values into an object file
2841   ac_cv_c_bigendian=unknown
2842   cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h.  */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h.  */
2848 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2849 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2850 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2851 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2852 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2853 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2854 int
2855 main ()
2856 {
2857  _ascii (); _ebcdic ();
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864   (eval $ac_compile) 2>conftest.er1
2865   ac_status=$?
2866   grep -v '^ *+' conftest.er1 >conftest.err
2867   rm -f conftest.er1
2868   cat conftest.err >&5
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } &&
2871          { ac_try='test -z "$ac_c_werror_flag"
2872                          || test ! -s conftest.err'
2873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874   (eval $ac_try) 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }; } &&
2878          { ac_try='test -s conftest.$ac_objext'
2879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880   (eval $ac_try) 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }; }; then
2884   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2885   ac_cv_c_bigendian=yes
2886 fi
2887 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2888   if test "$ac_cv_c_bigendian" = unknown; then
2889     ac_cv_c_bigendian=no
2890   else
2891     # finding both strings is unlikely to happen, but who knows?
2892     ac_cv_c_bigendian=unknown
2893   fi
2894 fi
2895 else
2896   echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 fi
2900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901 else
2902   cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 int
2909 main ()
2910 {
2911   /* Are we little or big endian?  From Harbison&Steele.  */
2912   union
2913   {
2914     long l;
2915     char c[sizeof (long)];
2916   } u;
2917   u.l = 1;
2918   exit (u.c[sizeof (long) - 1] == 1);
2919 }
2920 _ACEOF
2921 rm -f conftest$ac_exeext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923   (eval $ac_link) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; }; then
2932   ac_cv_c_bigendian=no
2933 else
2934   echo "$as_me: program exited with status $ac_status" >&5
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2937
2938 ( exit $ac_status )
2939 ac_cv_c_bigendian=yes
2940 fi
2941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2942 fi
2943 fi
2944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2945 fi
2946 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2947 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2948 case $ac_cv_c_bigendian in
2949   yes)
2950     ENDIAN=big
2951  ;;
2952   no)
2953     ENDIAN=little
2954  ;;
2955   *)
2956     { { echo "$as_me:$LINENO: error: unknown endianness
2957 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2958 echo "$as_me: error: unknown endianness
2959 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2960    { (exit 1); exit 1; }; } ;;
2961 esac
2962
2963
2964
2965 # Check whether --enable-optimized or --disable-optimized was given.
2966 if test "${enable_optimized+set}" = set; then
2967   enableval="$enable_optimized"
2968
2969 else
2970   enableval=no
2971 fi;
2972 if test ${enableval} = "no" ; then
2973   ENABLE_OPTIMIZED=
2974
2975 else
2976   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2977
2978 fi
2979
2980 # Check whether --enable-jit or --disable-jit was given.
2981 if test "${enable_jit+set}" = set; then
2982   enableval="$enable_jit"
2983
2984 else
2985   enableval=default
2986 fi;
2987 if test ${enableval} = "no"
2988 then
2989   JIT=
2990
2991 else
2992   case "$llvm_cv_target_arch" in
2993     x86)     JIT=TARGET_HAS_JIT=1
2994  ;;
2995     Sparc)   JIT=TARGET_HAS_JIT=1
2996  ;;
2997     PowerPC) JIT=TARGET_HAS_JIT=1
2998  ;;
2999     x86_64)  JIT=
3000  ;;
3001     Alpha)   JIT=TARGET_HAS_JIT=1
3002  ;;
3003     IA64)    JIT=
3004  ;;
3005     *)       JIT=
3006  ;;
3007   esac
3008 fi
3009
3010 # Check whether --enable-doxygen or --disable-doxygen was given.
3011 if test "${enable_doxygen+set}" = set; then
3012   enableval="$enable_doxygen"
3013
3014 else
3015   enableval=default
3016 fi;
3017 case "$enableval" in
3018   yes) ENABLE_DOXYGEN=1
3019  ;;
3020   no)  ENABLE_DOXYGEN=0
3021  ;;
3022   default) ENABLE_DOXYGEN=0
3023  ;;
3024   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3025 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3026    { (exit 1); exit 1; }; } ;;
3027 esac
3028
3029 # Check whether --enable-threads or --disable-threads was given.
3030 if test "${enable_threads+set}" = set; then
3031   enableval="$enable_threads"
3032
3033 else
3034   enableval=yes
3035 fi;
3036 case "$enableval" in
3037   yes) ENABLE_THREADS=1
3038  ;;
3039   no)  ENABLE_THREADS=0
3040  ;;
3041   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3042 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3043    { (exit 1); exit 1; }; } ;;
3044 esac
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define ENABLE_THREADS $ENABLE_THREADS
3048 _ACEOF
3049
3050
3051 TARGETS_TO_BUILD=""
3052 # Check whether --enable-targets or --disable-targets was given.
3053 if test "${enable_targets+set}" = set; then
3054   enableval="$enable_targets"
3055
3056 else
3057   enableval=all
3058 fi;
3059 case "$enableval" in
3060   all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3061   host-only)
3062     case "$llvm_cv_target_arch" in
3063       x86)     TARGETS_TO_BUILD="X86" ;;
3064       x86_64)  TARGETS_TO_BUILD="X86" ;;
3065       Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3066       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3067       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3068       IA64)    TARGETS_TO_BUILD="IA64" ;;
3069       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3070 echo "$as_me: error: Can not set target to build" >&2;}
3071    { (exit 1); exit 1; }; } ;;
3072     esac
3073     ;;
3074   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3075       case "$a_target" in
3076         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3077         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3078         sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3079         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3080         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3081         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3082         skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3083         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3084 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3085    { (exit 1); exit 1; }; } ;;
3086       esac
3087   done
3088   ;;
3089 esac
3090 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3091 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3092
3093
3094
3095 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3096 if test "${with_llvmgccdir+set}" = set; then
3097   withval="$with_llvmgccdir"
3098
3099 else
3100   withval=default
3101 fi;
3102 case "$withval" in
3103   default) WITH_LLVMGCCDIR=default ;;
3104   /*)      WITH_LLVMGCCDIR=$withval ;;
3105   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3106 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3107    { (exit 1); exit 1; }; } ;;
3108 esac
3109
3110
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3118 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3119 # On Suns, sometimes $CPP names a directory.
3120 if test -n "$CPP" && test -d "$CPP"; then
3121   CPP=
3122 fi
3123 if test -z "$CPP"; then
3124   if test "${ac_cv_prog_CPP+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127       # Double quotes because CPP needs to be expanded
3128     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3129     do
3130       ac_preproc_ok=false
3131 for ac_c_preproc_warn_flag in '' yes
3132 do
3133   # Use a header file that comes with gcc, so configuring glibc
3134   # with a fresh cross-compiler works.
3135   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3136   # <limits.h> exists even on freestanding compilers.
3137   # On the NeXT, cc -E runs the code through the compiler's parser,
3138   # not just through cpp. "Syntax error" is here to catch this case.
3139   cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145 #ifdef __STDC__
3146 # include <limits.h>
3147 #else
3148 # include <assert.h>
3149 #endif
3150                      Syntax error
3151 _ACEOF
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } >/dev/null; then
3160   if test -s conftest.err; then
3161     ac_cpp_err=$ac_c_preproc_warn_flag
3162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3163   else
3164     ac_cpp_err=
3165   fi
3166 else
3167   ac_cpp_err=yes
3168 fi
3169 if test -z "$ac_cpp_err"; then
3170   :
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175   # Broken: fails on valid input.
3176 continue
3177 fi
3178 rm -f conftest.err conftest.$ac_ext
3179
3180   # OK, works on sane cases.  Now check whether non-existent headers
3181   # can be detected and how.
3182   cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188 #include <ac_nonexistent.h>
3189 _ACEOF
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } >/dev/null; then
3198   if test -s conftest.err; then
3199     ac_cpp_err=$ac_c_preproc_warn_flag
3200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3201   else
3202     ac_cpp_err=
3203   fi
3204 else
3205   ac_cpp_err=yes
3206 fi
3207 if test -z "$ac_cpp_err"; then
3208   # Broken: success on invalid input.
3209 continue
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214   # Passes both tests.
3215 ac_preproc_ok=:
3216 break
3217 fi
3218 rm -f conftest.err conftest.$ac_ext
3219
3220 done
3221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3222 rm -f conftest.err conftest.$ac_ext
3223 if $ac_preproc_ok; then
3224   break
3225 fi
3226
3227     done
3228     ac_cv_prog_CPP=$CPP
3229
3230 fi
3231   CPP=$ac_cv_prog_CPP
3232 else
3233   ac_cv_prog_CPP=$CPP
3234 fi
3235 echo "$as_me:$LINENO: result: $CPP" >&5
3236 echo "${ECHO_T}$CPP" >&6
3237 ac_preproc_ok=false
3238 for ac_c_preproc_warn_flag in '' yes
3239 do
3240   # Use a header file that comes with gcc, so configuring glibc
3241   # with a fresh cross-compiler works.
3242   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243   # <limits.h> exists even on freestanding compilers.
3244   # On the NeXT, cc -E runs the code through the compiler's parser,
3245   # not just through cpp. "Syntax error" is here to catch this case.
3246   cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h.  */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h.  */
3252 #ifdef __STDC__
3253 # include <limits.h>
3254 #else
3255 # include <assert.h>
3256 #endif
3257                      Syntax error
3258 _ACEOF
3259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } >/dev/null; then
3267   if test -s conftest.err; then
3268     ac_cpp_err=$ac_c_preproc_warn_flag
3269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3270   else
3271     ac_cpp_err=
3272   fi
3273 else
3274   ac_cpp_err=yes
3275 fi
3276 if test -z "$ac_cpp_err"; then
3277   :
3278 else
3279   echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282   # Broken: fails on valid input.
3283 continue
3284 fi
3285 rm -f conftest.err conftest.$ac_ext
3286
3287   # OK, works on sane cases.  Now check whether non-existent headers
3288   # can be detected and how.
3289   cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295 #include <ac_nonexistent.h>
3296 _ACEOF
3297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } >/dev/null; then
3305   if test -s conftest.err; then
3306     ac_cpp_err=$ac_c_preproc_warn_flag
3307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3308   else
3309     ac_cpp_err=
3310   fi
3311 else
3312   ac_cpp_err=yes
3313 fi
3314 if test -z "$ac_cpp_err"; then
3315   # Broken: success on invalid input.
3316 continue
3317 else
3318   echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321   # Passes both tests.
3322 ac_preproc_ok=:
3323 break
3324 fi
3325 rm -f conftest.err conftest.$ac_ext
3326
3327 done
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then
3331   :
3332 else
3333   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3336 See \`config.log' for more details." >&2;}
3337    { (exit 1); exit 1; }; }
3338 fi
3339
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 if test -n "$ac_tool_prefix"; then
3352   for ac_prog in gcc
3353   do
3354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_prog_CC+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   if test -n "$CC"; then
3362   ac_cv_prog_CC="$CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367   IFS=$as_save_IFS
3368   test -z "$as_dir" && as_dir=.
3369   for ac_exec_ext in '' $ac_executable_extensions; do
3370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373     break 2
3374   fi
3375 done
3376 done
3377
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382   echo "$as_me:$LINENO: result: $CC" >&5
3383 echo "${ECHO_T}$CC" >&6
3384 else
3385   echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3387 fi
3388
3389     test -n "$CC" && break
3390   done
3391 fi
3392 if test -z "$CC"; then
3393   ac_ct_CC=$CC
3394   for ac_prog in gcc
3395 do
3396   # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   if test -n "$ac_ct_CC"; then
3404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411   for ac_exec_ext in '' $ac_executable_extensions; do
3412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413     ac_cv_prog_ac_ct_CC="$ac_prog"
3414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418 done
3419
3420 fi
3421 fi
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3425 echo "${ECHO_T}$ac_ct_CC" >&6
3426 else
3427   echo "$as_me:$LINENO: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3429 fi
3430
3431   test -n "$ac_ct_CC" && break
3432 done
3433
3434   CC=$ac_ct_CC
3435 fi
3436
3437
3438 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." >&5
3440 echo "$as_me: error: no acceptable C compiler found in \$PATH
3441 See \`config.log' for more details." >&2;}
3442    { (exit 1); exit 1; }; }
3443
3444 # Provide some information about the compiler.
3445 echo "$as_me:$LINENO:" \
3446      "checking for C compiler version" >&5
3447 ac_compiler=`set X $ac_compile; echo $2`
3448 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3449   (eval $ac_compiler --version </dev/null >&5) 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }
3453 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3454   (eval $ac_compiler -v </dev/null >&5) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }
3458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3459   (eval $ac_compiler -V </dev/null >&5) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }
3463
3464 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3465 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3466 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479 #ifndef __GNUC__
3480        choke me
3481 #endif
3482
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489   (eval $ac_compile) 2>conftest.er1
3490   ac_status=$?
3491   grep -v '^ *+' conftest.er1 >conftest.err
3492   rm -f conftest.er1
3493   cat conftest.err >&5
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } &&
3496          { ac_try='test -z "$ac_c_werror_flag"
3497                          || test ! -s conftest.err'
3498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499   (eval $ac_try) 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; } &&
3503          { ac_try='test -s conftest.$ac_objext'
3504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505   (eval $ac_try) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }; }; then
3509   ac_compiler_gnu=yes
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 ac_compiler_gnu=no
3515 fi
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518
3519 fi
3520 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3521 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3522 GCC=`test $ac_compiler_gnu = yes && echo yes`
3523 ac_test_CFLAGS=${CFLAGS+set}
3524 ac_save_CFLAGS=$CFLAGS
3525 CFLAGS="-g"
3526 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3527 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3528 if test "${ac_cv_prog_cc_g+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548   (eval $ac_compile) 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } &&
3555          { ac_try='test -z "$ac_c_werror_flag"
3556                          || test ! -s conftest.err'
3557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558   (eval $ac_try) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; } &&
3562          { ac_try='test -s conftest.$ac_objext'
3563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564   (eval $ac_try) 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); }; }; then
3568   ac_cv_prog_cc_g=yes
3569 else
3570   echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573 ac_cv_prog_cc_g=no
3574 fi
3575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3578 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3579 if test "$ac_test_CFLAGS" = set; then
3580   CFLAGS=$ac_save_CFLAGS
3581 elif test $ac_cv_prog_cc_g = yes; then
3582   if test "$GCC" = yes; then
3583     CFLAGS="-g -O2"
3584   else
3585     CFLAGS="-g"
3586   fi
3587 else
3588   if test "$GCC" = yes; then
3589     CFLAGS="-O2"
3590   else
3591     CFLAGS=
3592   fi
3593 fi
3594 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3595 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3596 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3597   echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599   ac_cv_prog_cc_stdc=no
3600 ac_save_CC=$CC
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607 #include <stdarg.h>
3608 #include <stdio.h>
3609 #include <sys/types.h>
3610 #include <sys/stat.h>
3611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3612 struct buf { int x; };
3613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3614 static char *e (p, i)
3615      char **p;
3616      int i;
3617 {
3618   return p[i];
3619 }
3620 static char *f (char * (*g) (char **, int), char **p, ...)
3621 {
3622   char *s;
3623   va_list v;
3624   va_start (v,p);
3625   s = g (p, va_arg (v,int));
3626   va_end (v);
3627   return s;
3628 }
3629
3630 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3631    function prototypes and stuff, but not '\xHH' hex character constants.
3632    These don't provoke an error unfortunately, instead are silently treated
3633    as 'x'.  The following induces an error, until -std1 is added to get
3634    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3635    array size at least.  It's necessary to write '\x00'==0 to get something
3636    that's true only with -std1.  */
3637 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638
3639 int test (int i, double x);
3640 struct s1 {int (*f) (int a);};
3641 struct s2 {int (*f) (double a);};
3642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3643 int argc;
3644 char **argv;
3645 int
3646 main ()
3647 {
3648 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 # Don't try gcc -ansi; that turns off useful extensions and
3654 # breaks some systems' header files.
3655 # AIX                   -qlanglvl=ansi
3656 # Ultrix and OSF/1      -std1
3657 # HP-UX 10.20 and later -Ae
3658 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3659 # SVR4                  -Xc -D__EXTENSIONS__
3660 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3661 do
3662   CC="$ac_save_CC $ac_arg"
3663   rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665   (eval $ac_compile) 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } &&
3672          { ac_try='test -z "$ac_c_werror_flag"
3673                          || test ! -s conftest.err'
3674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675   (eval $ac_try) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; } &&
3679          { ac_try='test -s conftest.$ac_objext'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   ac_cv_prog_cc_stdc=$ac_arg
3686 break
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 fi
3692 rm -f conftest.err conftest.$ac_objext
3693 done
3694 rm -f conftest.$ac_ext conftest.$ac_objext
3695 CC=$ac_save_CC
3696
3697 fi
3698
3699 case "x$ac_cv_prog_cc_stdc" in
3700   x|xno)
3701     echo "$as_me:$LINENO: result: none needed" >&5
3702 echo "${ECHO_T}none needed" >&6 ;;
3703   *)
3704     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3705 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3706     CC="$CC $ac_cv_prog_cc_stdc" ;;
3707 esac
3708
3709 # Some people use a C++ compiler to compile C.  Since we use `exit',
3710 # in C++ we need to declare it.  In case someone uses the same compiler
3711 # for both compiling C and C++ we need to have the C++ compiler decide
3712 # the declaration of exit, since it's the most demanding environment.
3713 cat >conftest.$ac_ext <<_ACEOF
3714 #ifndef __cplusplus
3715   choke me
3716 #endif
3717 _ACEOF
3718 rm -f conftest.$ac_objext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720   (eval $ac_compile) 2>conftest.er1
3721   ac_status=$?
3722   grep -v '^ *+' conftest.er1 >conftest.err
3723   rm -f conftest.er1
3724   cat conftest.err >&5
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); } &&
3727          { ac_try='test -z "$ac_c_werror_flag"
3728                          || test ! -s conftest.err'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; } &&
3734          { ac_try='test -s conftest.$ac_objext'
3735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736   (eval $ac_try) 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; }; then
3740   for ac_declaration in \
3741    '' \
3742    'extern "C" void std::exit (int) throw (); using std::exit;' \
3743    'extern "C" void std::exit (int); using std::exit;' \
3744    'extern "C" void exit (int) throw ();' \
3745    'extern "C" void exit (int);' \
3746    'void exit (int);'
3747 do
3748   cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h.  */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h.  */
3754 $ac_declaration
3755 #include <stdlib.h>
3756 int
3757 main ()
3758 {
3759 exit (42);
3760   ;
3761   return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766   (eval $ac_compile) 2>conftest.er1
3767   ac_status=$?
3768   grep -v '^ *+' conftest.er1 >conftest.err
3769   rm -f conftest.er1
3770   cat conftest.err >&5
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); } &&
3773          { ac_try='test -z "$ac_c_werror_flag"
3774                          || test ! -s conftest.err'
3775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776   (eval $ac_try) 2>&5
3777   ac_status=$?
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); }; } &&
3780          { ac_try='test -s conftest.$ac_objext'
3781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782   (eval $ac_try) 2>&5
3783   ac_status=$?
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); }; }; then
3786   :
3787 else
3788   echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 continue
3792 fi
3793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3794   cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h.  */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h.  */
3800 $ac_declaration
3801 int
3802 main ()
3803 {
3804 exit (42);
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 rm -f conftest.$ac_objext
3810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811   (eval $ac_compile) 2>conftest.er1
3812   ac_status=$?
3813   grep -v '^ *+' conftest.er1 >conftest.err
3814   rm -f conftest.er1
3815   cat conftest.err >&5
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } &&
3818          { ac_try='test -z "$ac_c_werror_flag"
3819                          || test ! -s conftest.err'
3820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821   (eval $ac_try) 2>&5
3822   ac_status=$?
3823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); }; } &&
3825          { ac_try='test -s conftest.$ac_objext'
3826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827   (eval $ac_try) 2>&5
3828   ac_status=$?
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); }; }; then
3831   break
3832 else
3833   echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3835
3836 fi
3837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838 done
3839 rm -f conftest*
3840 if test -n "$ac_declaration"; then
3841   echo '#ifdef __cplusplus' >>confdefs.h
3842   echo $ac_declaration      >>confdefs.h
3843   echo '#endif'             >>confdefs.h
3844 fi
3845
3846 else
3847   echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850 fi
3851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858 ac_ext=cc
3859 ac_cpp='$CXXCPP $CPPFLAGS'
3860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3863 if test -n "$ac_tool_prefix"; then
3864   for ac_prog in $CCC g++
3865   do
3866     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_CXX+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   if test -n "$CXX"; then
3874   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881   for ac_exec_ext in '' $ac_executable_extensions; do
3882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885     break 2
3886   fi
3887 done
3888 done
3889
3890 fi
3891 fi
3892 CXX=$ac_cv_prog_CXX
3893 if test -n "$CXX"; then
3894   echo "$as_me:$LINENO: result: $CXX" >&5
3895 echo "${ECHO_T}$CXX" >&6
3896 else
3897   echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3899 fi
3900
3901     test -n "$CXX" && break
3902   done
3903 fi
3904 if test -z "$CXX"; then
3905   ac_ct_CXX=$CXX
3906   for ac_prog in $CCC g++
3907 do
3908   # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   if test -n "$ac_ct_CXX"; then
3916   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921   IFS=$as_save_IFS
3922   test -z "$as_dir" && as_dir=.
3923   for ac_exec_ext in '' $ac_executable_extensions; do
3924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925     ac_cv_prog_ac_ct_CXX="$ac_prog"
3926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930 done
3931
3932 fi
3933 fi
3934 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3935 if test -n "$ac_ct_CXX"; then
3936   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3937 echo "${ECHO_T}$ac_ct_CXX" >&6
3938 else
3939   echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3941 fi
3942
3943   test -n "$ac_ct_CXX" && break
3944 done
3945 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3946
3947   CXX=$ac_ct_CXX
3948 fi
3949
3950
3951 # Provide some information about the compiler.
3952 echo "$as_me:$LINENO:" \
3953      "checking for C++ compiler version" >&5
3954 ac_compiler=`set X $ac_compile; echo $2`
3955 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3956   (eval $ac_compiler --version </dev/null >&5) 2>&5
3957   ac_status=$?
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); }
3960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3961   (eval $ac_compiler -v </dev/null >&5) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }
3965 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3966   (eval $ac_compiler -V </dev/null >&5) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); }
3970
3971 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3972 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3973 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h.  */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h.  */
3982
3983 int
3984 main ()
3985 {
3986 #ifndef __GNUC__
3987        choke me
3988 #endif
3989
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996   (eval $ac_compile) 2>conftest.er1
3997   ac_status=$?
3998   grep -v '^ *+' conftest.er1 >conftest.err
3999   rm -f conftest.er1
4000   cat conftest.err >&5
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); } &&
4003          { ac_try='test -z "$ac_cxx_werror_flag"
4004                          || test ! -s conftest.err'
4005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006   (eval $ac_try) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }; } &&
4010          { ac_try='test -s conftest.$ac_objext'
4011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012   (eval $ac_try) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); }; }; then
4016   ac_compiler_gnu=yes
4017 else
4018   echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021 ac_compiler_gnu=no
4022 fi
4023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4025
4026 fi
4027 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4028 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4029 GXX=`test $ac_compiler_gnu = yes && echo yes`
4030 ac_test_CXXFLAGS=${CXXFLAGS+set}
4031 ac_save_CXXFLAGS=$CXXFLAGS
4032 CXXFLAGS="-g"
4033 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4034 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4035 if test "${ac_cv_prog_cxx_g+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 rm -f conftest.$ac_objext
4054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055   (eval $ac_compile) 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } &&
4062          { ac_try='test -z "$ac_cxx_werror_flag"
4063                          || test ! -s conftest.err'
4064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065   (eval $ac_try) 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; } &&
4069          { ac_try='test -s conftest.$ac_objext'
4070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071   (eval $ac_try) 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); }; }; then
4075   ac_cv_prog_cxx_g=yes
4076 else
4077   echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 ac_cv_prog_cxx_g=no
4081 fi
4082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083 fi
4084 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4085 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4086 if test "$ac_test_CXXFLAGS" = set; then
4087   CXXFLAGS=$ac_save_CXXFLAGS
4088 elif test $ac_cv_prog_cxx_g = yes; then
4089   if test "$GXX" = yes; then
4090     CXXFLAGS="-g -O2"
4091   else
4092     CXXFLAGS="-g"
4093   fi
4094 else
4095   if test "$GXX" = yes; then
4096     CXXFLAGS="-O2"
4097   else
4098     CXXFLAGS=
4099   fi
4100 fi
4101 for ac_declaration in \
4102    '' \
4103    'extern "C" void std::exit (int) throw (); using std::exit;' \
4104    'extern "C" void std::exit (int); using std::exit;' \
4105    'extern "C" void exit (int) throw ();' \
4106    'extern "C" void exit (int);' \
4107    'void exit (int);'
4108 do
4109   cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h.  */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h.  */
4115 $ac_declaration
4116 #include <stdlib.h>
4117 int
4118 main ()
4119 {
4120 exit (42);
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127   (eval $ac_compile) 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } &&
4134          { ac_try='test -z "$ac_cxx_werror_flag"
4135                          || test ! -s conftest.err'
4136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137   (eval $ac_try) 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; } &&
4141          { ac_try='test -s conftest.$ac_objext'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; }; then
4147   :
4148 else
4149   echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 continue
4153 fi
4154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 $ac_declaration
4162 int
4163 main ()
4164 {
4165 exit (42);
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172   (eval $ac_compile) 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } &&
4179          { ac_try='test -z "$ac_cxx_werror_flag"
4180                          || test ! -s conftest.err'
4181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182   (eval $ac_try) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; } &&
4186          { ac_try='test -s conftest.$ac_objext'
4187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188   (eval $ac_try) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; }; then
4192   break
4193 else
4194   echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 fi
4198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199 done
4200 rm -f conftest*
4201 if test -n "$ac_declaration"; then
4202   echo '#ifdef __cplusplus' >>confdefs.h
4203   echo $ac_declaration      >>confdefs.h
4204   echo '#endif'             >>confdefs.h
4205 fi
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 echo "$as_me:$LINENO: checking " >&5
4214 echo $ECHO_N "checking ... $ECHO_C" >&6
4215 if test "${ac_cv_has_flex+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   for ac_prog in flex lex
4219 do
4220   # Extract the first word of "$ac_prog", so it can be a program name with args.
4221 set dummy $ac_prog; ac_word=$2
4222 echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_LEX+set}" = set; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   if test -n "$LEX"; then
4228   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235   for ac_exec_ext in '' $ac_executable_extensions; do
4236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237     ac_cv_prog_LEX="$ac_prog"
4238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239     break 2
4240   fi
4241 done
4242 done
4243
4244 fi
4245 fi
4246 LEX=$ac_cv_prog_LEX
4247 if test -n "$LEX"; then
4248   echo "$as_me:$LINENO: result: $LEX" >&5
4249 echo "${ECHO_T}$LEX" >&6
4250 else
4251   echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4253 fi
4254
4255   test -n "$LEX" && break
4256 done
4257 test -n "$LEX" || LEX=":"
4258
4259 if test -z "$LEXLIB"
4260 then
4261   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4262 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4263 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   ac_check_lib_save_LIBS=$LIBS
4267 LIBS="-lfl  $LIBS"
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274
4275 /* Override any gcc2 internal prototype to avoid an error.  */
4276 #ifdef __cplusplus
4277 extern "C"
4278 #endif
4279 /* We use char because int might match the return type of a gcc2
4280    builtin and then its argument prototype would still apply.  */
4281 char yywrap ();
4282 int
4283 main ()
4284 {
4285 yywrap ();
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292   (eval $ac_link) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag"
4300                          || test ! -s conftest.err'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; } &&
4306          { ac_try='test -s conftest$ac_exeext'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   ac_cv_lib_fl_yywrap=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 ac_cv_lib_fl_yywrap=no
4318 fi
4319 rm -f conftest.err conftest.$ac_objext \
4320       conftest$ac_exeext conftest.$ac_ext
4321 LIBS=$ac_check_lib_save_LIBS
4322 fi
4323 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4324 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4325 if test $ac_cv_lib_fl_yywrap = yes; then
4326   LEXLIB="-lfl"
4327 else
4328   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4329 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4330 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   ac_check_lib_save_LIBS=$LIBS
4334 LIBS="-ll  $LIBS"
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341
4342 /* Override any gcc2 internal prototype to avoid an error.  */
4343 #ifdef __cplusplus
4344 extern "C"
4345 #endif
4346 /* We use char because int might match the return type of a gcc2
4347    builtin and then its argument prototype would still apply.  */
4348 char yywrap ();
4349 int
4350 main ()
4351 {
4352 yywrap ();
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359   (eval $ac_link) 2>conftest.er1
4360   ac_status=$?
4361   grep -v '^ *+' conftest.er1 >conftest.err
4362   rm -f conftest.er1
4363   cat conftest.err >&5
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } &&
4366          { ac_try='test -z "$ac_c_werror_flag"
4367                          || test ! -s conftest.err'
4368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; } &&
4373          { ac_try='test -s conftest$ac_exeext'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   ac_cv_lib_l_yywrap=yes
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 ac_cv_lib_l_yywrap=no
4385 fi
4386 rm -f conftest.err conftest.$ac_objext \
4387       conftest$ac_exeext conftest.$ac_ext
4388 LIBS=$ac_check_lib_save_LIBS
4389 fi
4390 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4391 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4392 if test $ac_cv_lib_l_yywrap = yes; then
4393   LEXLIB="-ll"
4394 fi
4395
4396 fi
4397
4398 fi
4399
4400 if test "x$LEX" != "x:"; then
4401   echo "$as_me:$LINENO: checking lex output file root" >&5
4402 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4403 if test "${ac_cv_prog_lex_root+set}" = set; then
4404   echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406   # The minimal lex program is just a single line: %%.  But some broken lexes
4407 # (Solaris, I think it was) want two %% lines, so accommodate them.
4408 cat >conftest.l <<_ACEOF
4409 %%
4410 %%
4411 _ACEOF
4412 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4413   (eval $LEX conftest.l) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }
4417 if test -f lex.yy.c; then
4418   ac_cv_prog_lex_root=lex.yy
4419 elif test -f lexyy.c; then
4420   ac_cv_prog_lex_root=lexyy
4421 else
4422   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4423 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4424    { (exit 1); exit 1; }; }
4425 fi
4426 fi
4427 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4428 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4429 rm -f conftest.l
4430 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4431
4432 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4433 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4434 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   # POSIX says lex can declare yytext either as a pointer or an array; the
4438 # default is implementation-dependent. Figure out which it is, since
4439 # not all implementations provide the %pointer and %array declarations.
4440 ac_cv_prog_lex_yytext_pointer=no
4441 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4442 ac_save_LIBS=$LIBS
4443 LIBS="$LIBS $LEXLIB"
4444 cat >conftest.$ac_ext <<_ACEOF
4445 `cat $LEX_OUTPUT_ROOT.c`
4446 _ACEOF
4447 rm -f conftest.$ac_objext conftest$ac_exeext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4449   (eval $ac_link) 2>conftest.er1
4450   ac_status=$?
4451   grep -v '^ *+' conftest.er1 >conftest.err
4452   rm -f conftest.er1
4453   cat conftest.err >&5
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } &&
4456          { ac_try='test -z "$ac_c_werror_flag"
4457                          || test ! -s conftest.err'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; } &&
4463          { ac_try='test -s conftest$ac_exeext'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }; then
4469   ac_cv_prog_lex_yytext_pointer=yes
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 fi
4475 rm -f conftest.err conftest.$ac_objext \
4476       conftest$ac_exeext conftest.$ac_ext
4477 LIBS=$ac_save_LIBS
4478 rm -f "${LEX_OUTPUT_ROOT}.c"
4479
4480 fi
4481 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4482 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4483 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4484
4485 cat >>confdefs.h <<\_ACEOF
4486 #define YYTEXT_POINTER 1
4487 _ACEOF
4488
4489 fi
4490
4491 fi
4492
4493 fi
4494 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4495 echo "${ECHO_T}$ac_cv_has_flex" >&6
4496 if test "$LEX" != "flex"; then
4497   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4498 echo "$as_me: error: flex not found but required" >&2;}
4499    { (exit 1); exit 1; }; }
4500 else
4501   FLEX=flex
4502
4503 fi
4504
4505 echo "$as_me:$LINENO: checking " >&5
4506 echo $ECHO_N "checking ... $ECHO_C" >&6
4507 if test "${llvm_cv_has_bison+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   for ac_prog in 'bison -y' byacc
4511 do
4512   # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_YACC+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if test -n "$YACC"; then
4520   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529     ac_cv_prog_YACC="$ac_prog"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535
4536 fi
4537 fi
4538 YACC=$ac_cv_prog_YACC
4539 if test -n "$YACC"; then
4540   echo "$as_me:$LINENO: result: $YACC" >&5
4541 echo "${ECHO_T}$YACC" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547   test -n "$YACC" && break
4548 done
4549 test -n "$YACC" || YACC="yacc"
4550
4551 fi
4552 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4553 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4554 if test "$YACC" != "bison -y"; then
4555   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4556 echo "$as_me: error: bison not found but required" >&2;}
4557    { (exit 1); exit 1; }; }
4558 else
4559   BISON=bison
4560
4561 fi
4562
4563 echo "$as_me:$LINENO: checking for GNU make" >&5
4564 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4565 if test "${llvm_cv_gnu_make_command+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   llvm_cv_gnu_make_command=''
4569  for a in "$MAKE" make gmake gnumake ; do
4570   if test -z "$a" ; then continue ; fi ;
4571   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4572   then
4573    llvm_cv_gnu_make_command=$a ;
4574    break;
4575   fi
4576  done
4577 fi
4578 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4579 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4580  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4581    ifGNUmake='' ;
4582  else
4583    ifGNUmake='#' ;
4584    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4585 echo "${ECHO_T}\"Not found\"" >&6;
4586  fi
4587
4588
4589 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4590 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4591 LN_S=$as_ln_s
4592 if test "$LN_S" = "ln -s"; then
4593   echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4595 else
4596   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4597 echo "${ECHO_T}no, using $LN_S" >&6
4598 fi
4599
4600 # Extract the first word of "cmp", so it can be a program name with args.
4601 set dummy cmp; ac_word=$2
4602 echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4604 if test "${ac_cv_path_CMP+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   case $CMP in
4608   [\\/]* | ?:[\\/]*)
4609   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4610   ;;
4611   *)
4612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625
4626   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4627   ;;
4628 esac
4629 fi
4630 CMP=$ac_cv_path_CMP
4631
4632 if test -n "$CMP"; then
4633   echo "$as_me:$LINENO: result: $CMP" >&5
4634 echo "${ECHO_T}$CMP" >&6
4635 else
4636   echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638 fi
4639
4640 # Extract the first word of "cp", so it can be a program name with args.
4641 set dummy cp; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_path_CP+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   case $CP in
4648   [\\/]* | ?:[\\/]*)
4649   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4650   ;;
4651   *)
4652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665
4666   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4667   ;;
4668 esac
4669 fi
4670 CP=$ac_cv_path_CP
4671
4672 if test -n "$CP"; then
4673   echo "$as_me:$LINENO: result: $CP" >&5
4674 echo "${ECHO_T}$CP" >&6
4675 else
4676   echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4678 fi
4679
4680 # Extract the first word of "date", so it can be a program name with args.
4681 set dummy date; ac_word=$2
4682 echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684 if test "${ac_cv_path_DATE+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   case $DATE in
4688   [\\/]* | ?:[\\/]*)
4689   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4690   ;;
4691   *)
4692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705
4706   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4707   ;;
4708 esac
4709 fi
4710 DATE=$ac_cv_path_DATE
4711
4712 if test -n "$DATE"; then
4713   echo "$as_me:$LINENO: result: $DATE" >&5
4714 echo "${ECHO_T}$DATE" >&6
4715 else
4716   echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6
4718 fi
4719
4720 # Extract the first word of "find", so it can be a program name with args.
4721 set dummy find; ac_word=$2
4722 echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724 if test "${ac_cv_path_FIND+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   case $FIND in
4728   [\\/]* | ?:[\\/]*)
4729   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4730   ;;
4731   *)
4732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737   for ac_exec_ext in '' $ac_executable_extensions; do
4738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741     break 2
4742   fi
4743 done
4744 done
4745
4746   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4747   ;;
4748 esac
4749 fi
4750 FIND=$ac_cv_path_FIND
4751
4752 if test -n "$FIND"; then
4753   echo "$as_me:$LINENO: result: $FIND" >&5
4754 echo "${ECHO_T}$FIND" >&6
4755 else
4756   echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6
4758 fi
4759
4760 # Extract the first word of "grep", so it can be a program name with args.
4761 set dummy grep; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_path_GREP+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   case $GREP in
4768   [\\/]* | ?:[\\/]*)
4769   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4770   ;;
4771   *)
4772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784 done
4785
4786   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4787   ;;
4788 esac
4789 fi
4790 GREP=$ac_cv_path_GREP
4791
4792 if test -n "$GREP"; then
4793   echo "$as_me:$LINENO: result: $GREP" >&5
4794 echo "${ECHO_T}$GREP" >&6
4795 else
4796   echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4798 fi
4799
4800 # Extract the first word of "mkdir", so it can be a program name with args.
4801 set dummy mkdir; ac_word=$2
4802 echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_path_MKDIR+set}" = set; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   case $MKDIR in
4808   [\\/]* | ?:[\\/]*)
4809   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4810   ;;
4811   *)
4812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815   IFS=$as_save_IFS
4816   test -z "$as_dir" && as_dir=.
4817   for ac_exec_ext in '' $ac_executable_extensions; do
4818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821     break 2
4822   fi
4823 done
4824 done
4825
4826   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4827   ;;
4828 esac
4829 fi
4830 MKDIR=$ac_cv_path_MKDIR
4831
4832 if test -n "$MKDIR"; then
4833   echo "$as_me:$LINENO: result: $MKDIR" >&5
4834 echo "${ECHO_T}$MKDIR" >&6
4835 else
4836   echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6
4838 fi
4839
4840 # Extract the first word of "mv", so it can be a program name with args.
4841 set dummy mv; ac_word=$2
4842 echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4844 if test "${ac_cv_path_MV+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847   case $MV in
4848   [\\/]* | ?:[\\/]*)
4849   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4850   ;;
4851   *)
4852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857   for ac_exec_ext in '' $ac_executable_extensions; do
4858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864 done
4865
4866   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4867   ;;
4868 esac
4869 fi
4870 MV=$ac_cv_path_MV
4871
4872 if test -n "$MV"; then
4873   echo "$as_me:$LINENO: result: $MV" >&5
4874 echo "${ECHO_T}$MV" >&6
4875 else
4876   echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6
4878 fi
4879
4880 if test -n "$ac_tool_prefix"; then
4881   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4883 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885 if test "${ac_cv_prog_RANLIB+set}" = set; then
4886   echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888   if test -n "$RANLIB"; then
4889   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903 done
4904
4905 fi
4906 fi
4907 RANLIB=$ac_cv_prog_RANLIB
4908 if test -n "$RANLIB"; then
4909   echo "$as_me:$LINENO: result: $RANLIB" >&5
4910 echo "${ECHO_T}$RANLIB" >&6
4911 else
4912   echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4914 fi
4915
4916 fi
4917 if test -z "$ac_cv_prog_RANLIB"; then
4918   ac_ct_RANLIB=$RANLIB
4919   # Extract the first word of "ranlib", so it can be a program name with args.
4920 set dummy ranlib; ac_word=$2
4921 echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   if test -n "$ac_ct_RANLIB"; then
4927   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_prog_ac_ct_RANLIB="ranlib"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942
4943   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4944 fi
4945 fi
4946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4947 if test -n "$ac_ct_RANLIB"; then
4948   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4949 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4950 else
4951   echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953 fi
4954
4955   RANLIB=$ac_ct_RANLIB
4956 else
4957   RANLIB="$ac_cv_prog_RANLIB"
4958 fi
4959
4960 # Extract the first word of "rm", so it can be a program name with args.
4961 set dummy rm; ac_word=$2
4962 echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964 if test "${ac_cv_path_RM+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   case $RM in
4968   [\\/]* | ?:[\\/]*)
4969   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4970   ;;
4971   *)
4972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977   for ac_exec_ext in '' $ac_executable_extensions; do
4978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984 done
4985
4986   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4987   ;;
4988 esac
4989 fi
4990 RM=$ac_cv_path_RM
4991
4992 if test -n "$RM"; then
4993   echo "$as_me:$LINENO: result: $RM" >&5
4994 echo "${ECHO_T}$RM" >&6
4995 else
4996   echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
4998 fi
4999
5000 # Extract the first word of "sed", so it can be a program name with args.
5001 set dummy sed; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_SED+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   case $SED in
5008   [\\/]* | ?:[\\/]*)
5009   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5010   ;;
5011   *)
5012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017   for ac_exec_ext in '' $ac_executable_extensions; do
5018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024 done
5025
5026   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5027   ;;
5028 esac
5029 fi
5030 SED=$ac_cv_path_SED
5031
5032 if test -n "$SED"; then
5033   echo "$as_me:$LINENO: result: $SED" >&5
5034 echo "${ECHO_T}$SED" >&6
5035 else
5036   echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5038 fi
5039
5040 # Extract the first word of "tar", so it can be a program name with args.
5041 set dummy tar; ac_word=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_path_TAR+set}" = set; then
5045   echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047   case $TAR in
5048   [\\/]* | ?:[\\/]*)
5049   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5050   ;;
5051   *)
5052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057   for ac_exec_ext in '' $ac_executable_extensions; do
5058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064 done
5065
5066   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5067   ;;
5068 esac
5069 fi
5070 TAR=$ac_cv_path_TAR
5071
5072 if test -n "$TAR"; then
5073   echo "$as_me:$LINENO: result: $TAR" >&5
5074 echo "${ECHO_T}$TAR" >&6
5075 else
5076   echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5078 fi
5079
5080 # Extract the first word of "Graphviz", so it can be a program name with args.
5081 set dummy Graphviz; ac_word=$2
5082 echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087   case $GRAPHVIZ in
5088   [\\/]* | ?:[\\/]*)
5089   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5090   ;;
5091   *)
5092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097   for ac_exec_ext in '' $ac_executable_extensions; do
5098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104 done
5105
5106   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5107   ;;
5108 esac
5109 fi
5110 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5111
5112 if test -n "$GRAPHVIZ"; then
5113   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5114 echo "${ECHO_T}$GRAPHVIZ" >&6
5115 else
5116   echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6
5118 fi
5119
5120 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5121
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_GRAPHVIZ 1
5124 _ACEOF
5125
5126
5127 cat >>confdefs.h <<_ACEOF
5128 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5129 _ACEOF
5130
5131 fi
5132 # Extract the first word of "gv", so it can be a program name with args.
5133 set dummy gv; ac_word=$2
5134 echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5136 if test "${ac_cv_path_GV+set}" = set; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139   case $GV in
5140   [\\/]* | ?:[\\/]*)
5141   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5142   ;;
5143   *)
5144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147   IFS=$as_save_IFS
5148   test -z "$as_dir" && as_dir=.
5149   for ac_exec_ext in '' $ac_executable_extensions; do
5150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153     break 2
5154   fi
5155 done
5156 done
5157
5158   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5159   ;;
5160 esac
5161 fi
5162 GV=$ac_cv_path_GV
5163
5164 if test -n "$GV"; then
5165   echo "$as_me:$LINENO: result: $GV" >&5
5166 echo "${ECHO_T}$GV" >&6
5167 else
5168   echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5170 fi
5171
5172 if test "$GV" != "echo gv" ; then
5173
5174 cat >>confdefs.h <<\_ACEOF
5175 #define HAVE_GV 1
5176 _ACEOF
5177
5178
5179 cat >>confdefs.h <<_ACEOF
5180 #define LLVM_PATH_GV "$GV"
5181 _ACEOF
5182
5183 fi
5184
5185 # Find a good install program.  We prefer a C program (faster),
5186 # so one script is as good as another.  But avoid the broken or
5187 # incompatible versions:
5188 # SysV /etc/install, /usr/sbin/install
5189 # SunOS /usr/etc/install
5190 # IRIX /sbin/install
5191 # AIX /bin/install
5192 # AmigaOS /C/install, which installs bootblocks on floppy discs
5193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5196 # OS/2's system install, which has a completely different semantic
5197 # ./install, which can be erroneously created by make from ./install.sh.
5198 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5199 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5200 if test -z "$INSTALL"; then
5201 if test "${ac_cv_path_install+set}" = set; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209   # Account for people who put trailing slashes in PATH elements.
5210 case $as_dir/ in
5211   ./ | .// | /cC/* | \
5212   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5214   /usr/ucb/* ) ;;
5215   *)
5216     # OSF1 and SCO ODT 3.0 have their own names for install.
5217     # Don't use installbsd from OSF since it installs stuff as root
5218     # by default.
5219     for ac_prog in ginstall scoinst install; do
5220       for ac_exec_ext in '' $ac_executable_extensions; do
5221         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5222           if test $ac_prog = install &&
5223             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5224             # AIX install.  It has an incompatible calling convention.
5225             :
5226           elif test $ac_prog = install &&
5227             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5228             # program-specific install script used by HP pwplus--don't use.
5229             :
5230           else
5231             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5232             break 3
5233           fi
5234         fi
5235       done
5236     done
5237     ;;
5238 esac
5239 done
5240
5241
5242 fi
5243   if test "${ac_cv_path_install+set}" = set; then
5244     INSTALL=$ac_cv_path_install
5245   else
5246     # As a last resort, use the slow shell script.  We don't cache a
5247     # path for INSTALL within a source directory, because that will
5248     # break other packages using the cache if that directory is
5249     # removed, or if the path is relative.
5250     INSTALL=$ac_install_sh
5251   fi
5252 fi
5253 echo "$as_me:$LINENO: result: $INSTALL" >&5
5254 echo "${ECHO_T}$INSTALL" >&6
5255
5256 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5257 # It thinks the first close brace ends the variable substitution.
5258 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5259
5260 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5261
5262 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5263
5264
5265 # Extract the first word of "bzip2", so it can be a program name with args.
5266 set dummy bzip2; ac_word=$2
5267 echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 if test "${ac_cv_path_BZIP2+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   case $BZIP2 in
5273   [\\/]* | ?:[\\/]*)
5274   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5275   ;;
5276   *)
5277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282   for ac_exec_ext in '' $ac_executable_extensions; do
5283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289 done
5290
5291   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5292   ;;
5293 esac
5294 fi
5295 BZIP2=$ac_cv_path_BZIP2
5296
5297 if test -n "$BZIP2"; then
5298   echo "$as_me:$LINENO: result: $BZIP2" >&5
5299 echo "${ECHO_T}$BZIP2" >&6
5300 else
5301   echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5303 fi
5304
5305 # Extract the first word of "dot", so it can be a program name with args.
5306 set dummy dot; ac_word=$2
5307 echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309 if test "${ac_cv_path_DOT+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   case $DOT in
5313   [\\/]* | ?:[\\/]*)
5314   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5315   ;;
5316   *)
5317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322   for ac_exec_ext in '' $ac_executable_extensions; do
5323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329 done
5330
5331   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5332   ;;
5333 esac
5334 fi
5335 DOT=$ac_cv_path_DOT
5336
5337 if test -n "$DOT"; then
5338   echo "$as_me:$LINENO: result: $DOT" >&5
5339 echo "${ECHO_T}$DOT" >&6
5340 else
5341   echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5343 fi
5344
5345 # Extract the first word of "doxygen", so it can be a program name with args.
5346 set dummy doxygen; ac_word=$2
5347 echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   case $DOXYGEN in
5353   [\\/]* | ?:[\\/]*)
5354   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5355   ;;
5356   *)
5357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362   for ac_exec_ext in '' $ac_executable_extensions; do
5363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369 done
5370
5371   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5372   ;;
5373 esac
5374 fi
5375 DOXYGEN=$ac_cv_path_DOXYGEN
5376
5377 if test -n "$DOXYGEN"; then
5378   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5379 echo "${ECHO_T}$DOXYGEN" >&6
5380 else
5381   echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6
5383 fi
5384
5385 # Extract the first word of "etags", so it can be a program name with args.
5386 set dummy etags; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_path_ETAGS+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   case $ETAGS in
5393   [\\/]* | ?:[\\/]*)
5394   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5395   ;;
5396   *)
5397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400   IFS=$as_save_IFS
5401   test -z "$as_dir" && as_dir=.
5402   for ac_exec_ext in '' $ac_executable_extensions; do
5403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406     break 2
5407   fi
5408 done
5409 done
5410
5411   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5412   ;;
5413 esac
5414 fi
5415 ETAGS=$ac_cv_path_ETAGS
5416
5417 if test -n "$ETAGS"; then
5418   echo "$as_me:$LINENO: result: $ETAGS" >&5
5419 echo "${ECHO_T}$ETAGS" >&6
5420 else
5421   echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5423 fi
5424
5425 # Extract the first word of "groff", so it can be a program name with args.
5426 set dummy groff; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_GROFF+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   case $GROFF in
5433   [\\/]* | ?:[\\/]*)
5434   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5435   ;;
5436   *)
5437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440   IFS=$as_save_IFS
5441   test -z "$as_dir" && as_dir=.
5442   for ac_exec_ext in '' $ac_executable_extensions; do
5443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446     break 2
5447   fi
5448 done
5449 done
5450
5451   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5452   ;;
5453 esac
5454 fi
5455 GROFF=$ac_cv_path_GROFF
5456
5457 if test -n "$GROFF"; then
5458   echo "$as_me:$LINENO: result: $GROFF" >&5
5459 echo "${ECHO_T}$GROFF" >&6
5460 else
5461   echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6
5463 fi
5464
5465 # Extract the first word of "gzip", so it can be a program name with args.
5466 set dummy gzip; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_path_GZIP+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   case $GZIP in
5473   [\\/]* | ?:[\\/]*)
5474   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5475   ;;
5476   *)
5477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482   for ac_exec_ext in '' $ac_executable_extensions; do
5483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486     break 2
5487   fi
5488 done
5489 done
5490
5491   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5492   ;;
5493 esac
5494 fi
5495 GZIP=$ac_cv_path_GZIP
5496
5497 if test -n "$GZIP"; then
5498   echo "$as_me:$LINENO: result: $GZIP" >&5
5499 echo "${ECHO_T}$GZIP" >&6
5500 else
5501   echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5503 fi
5504
5505 # Extract the first word of "pod2html", so it can be a program name with args.
5506 set dummy pod2html; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_path_POD2HTML+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   case $POD2HTML in
5513   [\\/]* | ?:[\\/]*)
5514   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5515   ;;
5516   *)
5517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522   for ac_exec_ext in '' $ac_executable_extensions; do
5523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529 done
5530
5531   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5532   ;;
5533 esac
5534 fi
5535 POD2HTML=$ac_cv_path_POD2HTML
5536
5537 if test -n "$POD2HTML"; then
5538   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5539 echo "${ECHO_T}$POD2HTML" >&6
5540 else
5541   echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5543 fi
5544
5545 # Extract the first word of "pod2man", so it can be a program name with args.
5546 set dummy pod2man; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_path_POD2MAN+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   case $POD2MAN in
5553   [\\/]* | ?:[\\/]*)
5554   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5555   ;;
5556   *)
5557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569 done
5570
5571   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5572   ;;
5573 esac
5574 fi
5575 POD2MAN=$ac_cv_path_POD2MAN
5576
5577 if test -n "$POD2MAN"; then
5578   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5579 echo "${ECHO_T}$POD2MAN" >&6
5580 else
5581   echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5583 fi
5584
5585 # Extract the first word of "runtest", so it can be a program name with args.
5586 set dummy runtest; ac_word=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_path_RUNTEST+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   case $RUNTEST in
5593   [\\/]* | ?:[\\/]*)
5594   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5595   ;;
5596   *)
5597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602   for ac_exec_ext in '' $ac_executable_extensions; do
5603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609 done
5610
5611   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5612   ;;
5613 esac
5614 fi
5615 RUNTEST=$ac_cv_path_RUNTEST
5616
5617 if test -n "$RUNTEST"; then
5618   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5619 echo "${ECHO_T}$RUNTEST" >&6
5620 else
5621   echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5623 fi
5624
5625
5626 no_itcl=true
5627 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5628 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5629
5630 # Check whether --with-tclinclude or --without-tclinclude was given.
5631 if test "${with_tclinclude+set}" = set; then
5632   withval="$with_tclinclude"
5633   with_tclinclude=${withval}
5634 else
5635   with_tclinclude=''
5636 fi;
5637 if test "${ac_cv_path_tclsh+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640
5641 if test x"${with_tclinclude}" != x ; then
5642   if test -f ${with_tclinclude}/tclsh ; then
5643     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5644   elif test -f ${with_tclinclude}/src/tclsh ; then
5645     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5646   else
5647     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5648 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5649    { (exit 1); exit 1; }; }
5650   fi
5651 fi
5652
5653 if test x"${ac_cv_path_tclsh}" = x ; then
5654   echo "$as_me:$LINENO: result: none" >&5
5655 echo "${ECHO_T}none" >&6
5656   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5657 do
5658   # Extract the first word of "$ac_prog", so it can be a program name with args.
5659 set dummy $ac_prog; ac_word=$2
5660 echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662 if test "${ac_cv_path_TCLSH+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   case $TCLSH in
5666   [\\/]* | ?:[\\/]*)
5667   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5668   ;;
5669   *)
5670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675   for ac_exec_ext in '' $ac_executable_extensions; do
5676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682 done
5683
5684   ;;
5685 esac
5686 fi
5687 TCLSH=$ac_cv_path_TCLSH
5688
5689 if test -n "$TCLSH"; then
5690   echo "$as_me:$LINENO: result: $TCLSH" >&5
5691 echo "${ECHO_T}$TCLSH" >&6
5692 else
5693   echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5695 fi
5696
5697   test -n "$TCLSH" && break
5698 done
5699
5700   if test x"${TCLSH}" = x ; then
5701     ac_cv_path_tclsh='';
5702   else
5703     ac_cv_path_tclsh="${TCLSH}";
5704   fi
5705 else
5706   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5707 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5708   TCLSH="${ac_cv_path_tclsh}"
5709
5710 fi
5711
5712 fi
5713
5714 # Extract the first word of "zip", so it can be a program name with args.
5715 set dummy zip; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_path_ZIP+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   case $ZIP in
5722   [\\/]* | ?:[\\/]*)
5723   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5724   ;;
5725   *)
5726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731   for ac_exec_ext in '' $ac_executable_extensions; do
5732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738 done
5739
5740   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5741   ;;
5742 esac
5743 fi
5744 ZIP=$ac_cv_path_ZIP
5745
5746 if test -n "$ZIP"; then
5747   echo "$as_me:$LINENO: result: $ZIP" >&5
5748 echo "${ECHO_T}$ZIP" >&6
5749 else
5750   echo "$as_me:$LINENO: result: no" >&5
5751 echo "${ECHO_T}no" >&6
5752 fi
5753
5754
5755 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5756 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5757 if test "${llvm_cv_link_use_r+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760    ac_ext=c
5761 ac_cpp='$CPP $CPPFLAGS'
5762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765
5766   oldcflags="$CFLAGS"
5767   CFLAGS="$CFLAGS -Wl,-R."
5768   cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h.  */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h.  */
5774
5775 int
5776 main ()
5777 {
5778 int main() { return 0; }
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785   (eval $ac_link) 2>conftest.er1
5786   ac_status=$?
5787   grep -v '^ *+' conftest.er1 >conftest.err
5788   rm -f conftest.er1
5789   cat conftest.err >&5
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); } &&
5792          { ac_try='test -z "$ac_c_werror_flag"
5793                          || test ! -s conftest.err'
5794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795   (eval $ac_try) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; } &&
5799          { ac_try='test -s conftest$ac_exeext'
5800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801   (eval $ac_try) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); }; }; then
5805   llvm_cv_link_use_r=yes
5806 else
5807   echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810 llvm_cv_link_use_r=no
5811 fi
5812 rm -f conftest.err conftest.$ac_objext \
5813       conftest$ac_exeext conftest.$ac_ext
5814   CFLAGS="$oldcflags"
5815   ac_ext=c
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820
5821
5822 fi
5823 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5824 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5825 if test "$llvm_cv_link_use_r" = yes ; then
5826
5827 cat >>confdefs.h <<\_ACEOF
5828 #define HAVE_LINK_R 1
5829 _ACEOF
5830
5831   fi
5832
5833
5834
5835
5836 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5837 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5838 if test "${ac_cv_c_const+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847
5848 int
5849 main ()
5850 {
5851 /* FIXME: Include the comments suggested by Paul. */
5852 #ifndef __cplusplus
5853   /* Ultrix mips cc rejects this.  */
5854   typedef int charset[2];
5855   const charset x;
5856   /* SunOS 4.1.1 cc rejects this.  */
5857   char const *const *ccp;
5858   char **p;
5859   /* NEC SVR4.0.2 mips cc rejects this.  */
5860   struct point {int x, y;};
5861   static struct point const zero = {0,0};
5862   /* AIX XL C 1.02.0.0 rejects this.
5863      It does not let you subtract one const X* pointer from another in
5864      an arm of an if-expression whose if-part is not a constant
5865      expression */
5866   const char *g = "string";
5867   ccp = &g + (g ? g-g : 0);
5868   /* HPUX 7.0 cc rejects these. */
5869   ++ccp;
5870   p = (char**) ccp;
5871   ccp = (char const *const *) p;
5872   { /* SCO 3.2v4 cc rejects this.  */
5873     char *t;
5874     char const *s = 0 ? (char *) 0 : (char const *) 0;
5875
5876     *t++ = 0;
5877   }
5878   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5879     int x[] = {25, 17};
5880     const int *foo = &x[0];
5881     ++foo;
5882   }
5883   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5884     typedef const int *iptr;
5885     iptr p = 0;
5886     ++p;
5887   }
5888   { /* AIX XL C 1.02.0.0 rejects this saying
5889        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5890     struct s { int j; const int *ap[3]; };
5891     struct s *b; b->j = 5;
5892   }
5893   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5894     const int foo = 10;
5895   }
5896 #endif
5897
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904   (eval $ac_compile) 2>conftest.er1
5905   ac_status=$?
5906   grep -v '^ *+' conftest.er1 >conftest.err
5907   rm -f conftest.er1
5908   cat conftest.err >&5
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); } &&
5911          { ac_try='test -z "$ac_c_werror_flag"
5912                          || test ! -s conftest.err'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; } &&
5918          { ac_try='test -s conftest.$ac_objext'
5919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920   (eval $ac_try) 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; }; then
5924   ac_cv_c_const=yes
5925 else
5926   echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5928
5929 ac_cv_c_const=no
5930 fi
5931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 fi
5933 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5934 echo "${ECHO_T}$ac_cv_c_const" >&6
5935 if test $ac_cv_c_const = no; then
5936
5937 cat >>confdefs.h <<\_ACEOF
5938 #define const
5939 _ACEOF
5940
5941 fi
5942
5943
5944 echo "$as_me:$LINENO: checking for egrep" >&5
5945 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5946 if test "${ac_cv_prog_egrep+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5950     then ac_cv_prog_egrep='grep -E'
5951     else ac_cv_prog_egrep='egrep'
5952     fi
5953 fi
5954 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5955 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5956  EGREP=$ac_cv_prog_egrep
5957
5958
5959 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5960 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5961 if test "${ac_cv_header_stdc+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970 #include <stdlib.h>
5971 #include <stdarg.h>
5972 #include <string.h>
5973 #include <float.h>
5974
5975 int
5976 main ()
5977 {
5978
5979   ;
5980   return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985   (eval $ac_compile) 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } &&
5992          { ac_try='test -z "$ac_c_werror_flag"
5993                          || test ! -s conftest.err'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest.$ac_objext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_cv_header_stdc=yes
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_cv_header_stdc=no
6011 fi
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013
6014 if test $ac_cv_header_stdc = yes; then
6015   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6016   cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022 #include <string.h>
6023
6024 _ACEOF
6025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6026   $EGREP "memchr" >/dev/null 2>&1; then
6027   :
6028 else
6029   ac_cv_header_stdc=no
6030 fi
6031 rm -f conftest*
6032
6033 fi
6034
6035 if test $ac_cv_header_stdc = yes; then
6036   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6037   cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043 #include <stdlib.h>
6044
6045 _ACEOF
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047   $EGREP "free" >/dev/null 2>&1; then
6048   :
6049 else
6050   ac_cv_header_stdc=no
6051 fi
6052 rm -f conftest*
6053
6054 fi
6055
6056 if test $ac_cv_header_stdc = yes; then
6057   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6058   if test "$cross_compiling" = yes; then
6059   :
6060 else
6061   cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067 #include <ctype.h>
6068 #if ((' ' & 0x0FF) == 0x020)
6069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6071 #else
6072 # define ISLOWER(c) \
6073                    (('a' <= (c) && (c) <= 'i') \
6074                      || ('j' <= (c) && (c) <= 'r') \
6075                      || ('s' <= (c) && (c) <= 'z'))
6076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6077 #endif
6078
6079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6080 int
6081 main ()
6082 {
6083   int i;
6084   for (i = 0; i < 256; i++)
6085     if (XOR (islower (i), ISLOWER (i))
6086         || toupper (i) != TOUPPER (i))
6087       exit(2);
6088   exit (0);
6089 }
6090 _ACEOF
6091 rm -f conftest$ac_exeext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093   (eval $ac_link) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098   (eval $ac_try) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; }; then
6102   :
6103 else
6104   echo "$as_me: program exited with status $ac_status" >&5
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108 ( exit $ac_status )
6109 ac_cv_header_stdc=no
6110 fi
6111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6112 fi
6113 fi
6114 fi
6115 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6116 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6117 if test $ac_cv_header_stdc = yes; then
6118
6119 cat >>confdefs.h <<\_ACEOF
6120 #define STDC_HEADERS 1
6121 _ACEOF
6122
6123 fi
6124
6125
6126
6127
6128
6129
6130 ac_header_dirent=no
6131 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6132   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6133 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6134 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144 #include <sys/types.h>
6145 #include <$ac_hdr>
6146
6147 int
6148 main ()
6149 {
6150 if ((DIR *) 0)
6151 return 0;
6152   ;
6153   return 0;
6154 }
6155 _ACEOF
6156 rm -f conftest.$ac_objext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6158   (eval $ac_compile) 2>conftest.er1
6159   ac_status=$?
6160   grep -v '^ *+' conftest.er1 >conftest.err
6161   rm -f conftest.er1
6162   cat conftest.err >&5
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } &&
6165          { ac_try='test -z "$ac_c_werror_flag"
6166                          || test ! -s conftest.err'
6167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168   (eval $ac_try) 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; } &&
6172          { ac_try='test -s conftest.$ac_objext'
6173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174   (eval $ac_try) 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); }; }; then
6178   eval "$as_ac_Header=yes"
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 eval "$as_ac_Header=no"
6184 fi
6185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6186 fi
6187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6190   cat >>confdefs.h <<_ACEOF
6191 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6192 _ACEOF
6193
6194 ac_header_dirent=$ac_hdr; break
6195 fi
6196
6197 done
6198 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6199 if test $ac_header_dirent = dirent.h; then
6200   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6201 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6202 if test "${ac_cv_search_opendir+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205   ac_func_search_save_LIBS=$LIBS
6206 ac_cv_search_opendir=no
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213
6214 /* Override any gcc2 internal prototype to avoid an error.  */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 /* We use char because int might match the return type of a gcc2
6219    builtin and then its argument prototype would still apply.  */
6220 char opendir ();
6221 int
6222 main ()
6223 {
6224 opendir ();
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231   (eval $ac_link) 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } &&
6238          { ac_try='test -z "$ac_c_werror_flag"
6239                          || test ! -s conftest.err'
6240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241   (eval $ac_try) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; } &&
6245          { ac_try='test -s conftest$ac_exeext'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; }; then
6251   ac_cv_search_opendir="none required"
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 fi
6257 rm -f conftest.err conftest.$ac_objext \
6258       conftest$ac_exeext conftest.$ac_ext
6259 if test "$ac_cv_search_opendir" = no; then
6260   for ac_lib in dir; do
6261     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6262     cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268
6269 /* Override any gcc2 internal prototype to avoid an error.  */
6270 #ifdef __cplusplus
6271 extern "C"
6272 #endif
6273 /* We use char because int might match the return type of a gcc2
6274    builtin and then its argument prototype would still apply.  */
6275 char opendir ();
6276 int
6277 main ()
6278 {
6279 opendir ();
6280   ;
6281   return 0;
6282 }
6283 _ACEOF
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286   (eval $ac_link) 2>conftest.er1
6287   ac_status=$?
6288   grep -v '^ *+' conftest.er1 >conftest.err
6289   rm -f conftest.er1
6290   cat conftest.err >&5
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } &&
6293          { ac_try='test -z "$ac_c_werror_flag"
6294                          || test ! -s conftest.err'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; } &&
6300          { ac_try='test -s conftest$ac_exeext'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   ac_cv_search_opendir="-l$ac_lib"
6307 break
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 fi
6313 rm -f conftest.err conftest.$ac_objext \
6314       conftest$ac_exeext conftest.$ac_ext
6315   done
6316 fi
6317 LIBS=$ac_func_search_save_LIBS
6318 fi
6319 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6320 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6321 if test "$ac_cv_search_opendir" != no; then
6322   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6323
6324 fi
6325
6326 else
6327   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6328 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6329 if test "${ac_cv_search_opendir+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   ac_func_search_save_LIBS=$LIBS
6333 ac_cv_search_opendir=no
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340
6341 /* Override any gcc2 internal prototype to avoid an error.  */
6342 #ifdef __cplusplus
6343 extern "C"
6344 #endif
6345 /* We use char because int might match the return type of a gcc2
6346    builtin and then its argument prototype would still apply.  */
6347 char opendir ();
6348 int
6349 main ()
6350 {
6351 opendir ();
6352   ;
6353   return 0;
6354 }
6355 _ACEOF
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358   (eval $ac_link) 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } &&
6365          { ac_try='test -z "$ac_c_werror_flag"
6366                          || test ! -s conftest.err'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; } &&
6372          { ac_try='test -s conftest$ac_exeext'
6373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374   (eval $ac_try) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; }; then
6378   ac_cv_search_opendir="none required"
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 fi
6384 rm -f conftest.err conftest.$ac_objext \
6385       conftest$ac_exeext conftest.$ac_ext
6386 if test "$ac_cv_search_opendir" = no; then
6387   for ac_lib in x; do
6388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6389     cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h.  */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h.  */
6395
6396 /* Override any gcc2 internal prototype to avoid an error.  */
6397 #ifdef __cplusplus
6398 extern "C"
6399 #endif
6400 /* We use char because int might match the return type of a gcc2
6401    builtin and then its argument prototype would still apply.  */
6402 char opendir ();
6403 int
6404 main ()
6405 {
6406 opendir ();
6407   ;
6408   return 0;
6409 }
6410 _ACEOF
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413   (eval $ac_link) 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -z "$ac_c_werror_flag"
6421                          || test ! -s conftest.err'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; } &&
6427          { ac_try='test -s conftest$ac_exeext'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; }; then
6433   ac_cv_search_opendir="-l$ac_lib"
6434 break
6435 else
6436   echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 fi
6440 rm -f conftest.err conftest.$ac_objext \
6441       conftest$ac_exeext conftest.$ac_ext
6442   done
6443 fi
6444 LIBS=$ac_func_search_save_LIBS
6445 fi
6446 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6447 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6448 if test "$ac_cv_search_opendir" != no; then
6449   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6450
6451 fi
6452
6453 fi
6454
6455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6466                   inttypes.h stdint.h unistd.h
6467 do
6468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6469 echo "$as_me:$LINENO: checking for $ac_header" >&5
6470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6472   echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474   cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h.  */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h.  */
6480 $ac_includes_default
6481
6482 #include <$ac_header>
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486   (eval $ac_compile) 2>conftest.er1
6487   ac_status=$?
6488   grep -v '^ *+' conftest.er1 >conftest.err
6489   rm -f conftest.er1
6490   cat conftest.err >&5
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } &&
6493          { ac_try='test -z "$ac_c_werror_flag"
6494                          || test ! -s conftest.err'
6495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496   (eval $ac_try) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); }; } &&
6500          { ac_try='test -s conftest.$ac_objext'
6501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502   (eval $ac_try) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; }; then
6506   eval "$as_ac_Header=yes"
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 eval "$as_ac_Header=no"
6512 fi
6513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6514 fi
6515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6518   cat >>confdefs.h <<_ACEOF
6519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6520 _ACEOF
6521
6522 fi
6523
6524 done
6525
6526
6527
6528 for ac_header in dlfcn.h
6529 do
6530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532   echo "$as_me:$LINENO: checking for $ac_header" >&5
6533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 fi
6537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539 else
6540   # Is the header compilable?
6541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h.  */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h.  */
6549 $ac_includes_default
6550 #include <$ac_header>
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554   (eval $ac_compile) 2>conftest.er1
6555   ac_status=$?
6556   grep -v '^ *+' conftest.er1 >conftest.err
6557   rm -f conftest.er1
6558   cat conftest.err >&5
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); } &&
6561          { ac_try='test -z "$ac_c_werror_flag"
6562                          || test ! -s conftest.err'
6563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564   (eval $ac_try) 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; } &&
6568          { ac_try='test -s conftest.$ac_objext'
6569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570   (eval $ac_try) 2>&5
6571   ac_status=$?
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); }; }; then
6574   ac_header_compiler=yes
6575 else
6576   echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579 ac_header_compiler=no
6580 fi
6581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583 echo "${ECHO_T}$ac_header_compiler" >&6
6584
6585 # Is the header present?
6586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h.  */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h.  */
6594 #include <$ac_header>
6595 _ACEOF
6596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6598   ac_status=$?
6599   grep -v '^ *+' conftest.er1 >conftest.err
6600   rm -f conftest.er1
6601   cat conftest.err >&5
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } >/dev/null; then
6604   if test -s conftest.err; then
6605     ac_cpp_err=$ac_c_preproc_warn_flag
6606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6607   else
6608     ac_cpp_err=
6609   fi
6610 else
6611   ac_cpp_err=yes
6612 fi
6613 if test -z "$ac_cpp_err"; then
6614   ac_header_preproc=yes
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619   ac_header_preproc=no
6620 fi
6621 rm -f conftest.err conftest.$ac_ext
6622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6623 echo "${ECHO_T}$ac_header_preproc" >&6
6624
6625 # So?  What about this header?
6626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6627   yes:no: )
6628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6632     ac_header_preproc=yes
6633     ;;
6634   no:yes:* )
6635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6647     (
6648       cat <<\_ASBOX
6649 ## ----------------------------------- ##
6650 ## Report this to llvmbugs@cs.uiuc.edu ##
6651 ## ----------------------------------- ##
6652 _ASBOX
6653     ) |
6654       sed "s/^/$as_me: WARNING:     /" >&2
6655     ;;
6656 esac
6657 echo "$as_me:$LINENO: checking for $ac_header" >&5
6658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   eval "$as_ac_Header=\$ac_header_preproc"
6663 fi
6664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6666
6667 fi
6668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6669   cat >>confdefs.h <<_ACEOF
6670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6671 _ACEOF
6672
6673 fi
6674
6675 done
6676
6677 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6678 if test "${enable_ltdl_install+set}" = set; then
6679   enableval="$enable_ltdl_install"
6680
6681 fi;
6682
6683
6684
6685 if test x"${enable_ltdl_install-no}" != xno; then
6686   INSTALL_LTDL_TRUE=
6687   INSTALL_LTDL_FALSE='#'
6688 else
6689   INSTALL_LTDL_TRUE='#'
6690   INSTALL_LTDL_FALSE=
6691 fi
6692
6693
6694
6695 if test x"${enable_ltdl_convenience-no}" != xno; then
6696   CONVENIENCE_LTDL_TRUE=
6697   CONVENIENCE_LTDL_FALSE='#'
6698 else
6699   CONVENIENCE_LTDL_TRUE='#'
6700   CONVENIENCE_LTDL_FALSE=
6701 fi
6702
6703
6704 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6706 library_names_spec=
6707 libname_spec='lib$name'
6708 soname_spec=
6709 shrext_cmds=".so"
6710 postinstall_cmds=
6711 postuninstall_cmds=
6712 finish_cmds=
6713 finish_eval=
6714 shlibpath_var=
6715 shlibpath_overrides_runpath=unknown
6716 version_type=none
6717 dynamic_linker="$host_os ld.so"
6718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6719 if test "$GCC" = yes; then
6720   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6721   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6722     # if the path contains ";" then we assume it to be the separator
6723     # otherwise default to the standard path separator (i.e. ":") - it is
6724     # assumed that no part of a normal pathname contains ";" but that should
6725     # okay in the real world where ";" in dirpaths is itself problematic.
6726     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6727   else
6728     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6729   fi
6730 else
6731   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6732 fi
6733 need_lib_prefix=unknown
6734 hardcode_into_libs=no
6735
6736 # when you set need_version to no, make sure it does not cause -set_version
6737 # flags to be left without arguments
6738 need_version=unknown
6739
6740 case $host_os in
6741 aix3*)
6742   version_type=linux
6743   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6744   shlibpath_var=LIBPATH
6745
6746   # AIX 3 has no versioning support, so we append a major version to the name.
6747   soname_spec='${libname}${release}${shared_ext}$major'
6748   ;;
6749
6750 aix4* | aix5*)
6751   version_type=linux
6752   need_lib_prefix=no
6753   need_version=no
6754   hardcode_into_libs=yes
6755   if test "$host_cpu" = ia64; then
6756     # AIX 5 supports IA64
6757     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6758     shlibpath_var=LD_LIBRARY_PATH
6759   else
6760     # With GCC up to 2.95.x, collect2 would create an import file
6761     # for dependence libraries.  The import file would start with
6762     # the line `#! .'.  This would cause the generated library to
6763     # depend on `.', always an invalid library.  This was fixed in
6764     # development snapshots of GCC prior to 3.0.
6765     case $host_os in
6766       aix4 | aix4.[01] | aix4.[01].*)
6767       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6768            echo ' yes '
6769            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6770         :
6771       else
6772         can_build_shared=no
6773       fi
6774       ;;
6775     esac
6776     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6777     # soname into executable. Probably we can add versioning support to
6778     # collect2, so additional links can be useful in future.
6779     if test "$aix_use_runtimelinking" = yes; then
6780       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6781       # instead of lib<name>.a to let people know that these are not
6782       # typical AIX shared libraries.
6783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6784     else
6785       # We preserve .a as extension for shared libraries through AIX4.2
6786       # and later when we are not doing run time linking.
6787       library_names_spec='${libname}${release}.a $libname.a'
6788       soname_spec='${libname}${release}${shared_ext}$major'
6789     fi
6790     shlibpath_var=LIBPATH
6791   fi
6792   ;;
6793
6794 amigaos*)
6795   library_names_spec='$libname.ixlibrary $libname.a'
6796   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6797   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
6798   ;;
6799
6800 beos*)
6801   library_names_spec='${libname}${shared_ext}'
6802   dynamic_linker="$host_os ld.so"
6803   shlibpath_var=LIBRARY_PATH
6804   ;;
6805
6806 bsdi[45]*)
6807   version_type=linux
6808   need_version=no
6809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6810   soname_spec='${libname}${release}${shared_ext}$major'
6811   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6812   shlibpath_var=LD_LIBRARY_PATH
6813   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6814   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6815   # the default ld.so.conf also contains /usr/contrib/lib and
6816   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6817   # libtool to hard-code these into programs
6818   ;;
6819
6820 cygwin* | mingw* | pw32*)
6821   version_type=windows
6822   shrext_cmds=".dll"
6823   need_version=no
6824   need_lib_prefix=no
6825
6826   case $GCC,$host_os in
6827   yes,cygwin* | yes,mingw* | yes,pw32*)
6828     library_names_spec='$libname.dll.a'
6829     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6830     postinstall_cmds='base_file=`basename \${file}`~
6831       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6832       dldir=$destdir/`dirname \$dlpath`~
6833       test -d \$dldir || mkdir -p \$dldir~
6834       $install_prog $dir/$dlname \$dldir/$dlname'
6835     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6836       dlpath=$dir/\$dldll~
6837        $rm \$dlpath'
6838     shlibpath_overrides_runpath=yes
6839
6840     case $host_os in
6841     cygwin*)
6842       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6843       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6844       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6845       ;;
6846     mingw*)
6847       # MinGW DLLs use traditional 'lib' prefix
6848       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6849       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6850       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6851         # It is most probably a Windows format PATH printed by
6852         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6853         # path with ; separators, and with drive letters. We can handle the
6854         # drive letters (cygwin fileutils understands them), so leave them,
6855         # especially as we might pass files found there to a mingw objdump,
6856         # which wouldn't understand a cygwinified path. Ahh.
6857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6858       else
6859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6860       fi
6861       ;;
6862     pw32*)
6863       # pw32 DLLs use 'pw' prefix rather than 'lib'
6864       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6865       ;;
6866     esac
6867     ;;
6868
6869   *)
6870     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6871     ;;
6872   esac
6873   dynamic_linker='Win32 ld.exe'
6874   # FIXME: first we should search . and the directory the executable is in
6875   shlibpath_var=PATH
6876   ;;
6877
6878 darwin* | rhapsody*)
6879   dynamic_linker="$host_os dyld"
6880   version_type=darwin
6881   need_lib_prefix=no
6882   need_version=no
6883   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6884   soname_spec='${libname}${release}${major}$shared_ext'
6885   shlibpath_overrides_runpath=yes
6886   shlibpath_var=DYLD_LIBRARY_PATH
6887   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6888   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6889   if test "$GCC" = yes; then
6890     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6891   else
6892     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6893   fi
6894   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6895   ;;
6896
6897 dgux*)
6898   version_type=linux
6899   need_lib_prefix=no
6900   need_version=no
6901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6902   soname_spec='${libname}${release}${shared_ext}$major'
6903   shlibpath_var=LD_LIBRARY_PATH
6904   ;;
6905
6906 freebsd1*)
6907   dynamic_linker=no
6908   ;;
6909
6910 kfreebsd*-gnu)
6911   version_type=linux
6912   need_lib_prefix=no
6913   need_version=no
6914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6915   soname_spec='${libname}${release}${shared_ext}$major'
6916   shlibpath_var=LD_LIBRARY_PATH
6917   shlibpath_overrides_runpath=no
6918   hardcode_into_libs=yes
6919   dynamic_linker='GNU ld.so'
6920   ;;
6921
6922 freebsd*)
6923   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6924   version_type=freebsd-$objformat
6925   case $version_type in
6926     freebsd-elf*)
6927       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6928       need_version=no
6929       need_lib_prefix=no
6930       ;;
6931     freebsd-*)
6932       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6933       need_version=yes
6934       ;;
6935   esac
6936   shlibpath_var=LD_LIBRARY_PATH
6937   case $host_os in
6938   freebsd2*)
6939     shlibpath_overrides_runpath=yes
6940     ;;
6941   freebsd3.01* | freebsdelf3.01*)
6942     shlibpath_overrides_runpath=yes
6943     hardcode_into_libs=yes
6944     ;;
6945   *) # from 3.2 on
6946     shlibpath_overrides_runpath=no
6947     hardcode_into_libs=yes
6948     ;;
6949   esac
6950   ;;
6951
6952 gnu*)
6953   version_type=linux
6954   need_lib_prefix=no
6955   need_version=no
6956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6957   soname_spec='${libname}${release}${shared_ext}$major'
6958   shlibpath_var=LD_LIBRARY_PATH
6959   hardcode_into_libs=yes
6960   ;;
6961
6962 hpux9* | hpux10* | hpux11*)
6963   # Give a soname corresponding to the major version so that dld.sl refuses to
6964   # link against other versions.
6965   version_type=sunos
6966   need_lib_prefix=no
6967   need_version=no
6968   case "$host_cpu" in
6969   ia64*)
6970     shrext_cmds='.so'
6971     hardcode_into_libs=yes
6972     dynamic_linker="$host_os dld.so"
6973     shlibpath_var=LD_LIBRARY_PATH
6974     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6976     soname_spec='${libname}${release}${shared_ext}$major'
6977     if test "X$HPUX_IA64_MODE" = X32; then
6978       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6979     else
6980       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6981     fi
6982     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6983     ;;
6984    hppa*64*)
6985      shrext_cmds='.sl'
6986      hardcode_into_libs=yes
6987      dynamic_linker="$host_os dld.sl"
6988      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6989      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6990      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6991      soname_spec='${libname}${release}${shared_ext}$major'
6992      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6993      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6994      ;;
6995    *)
6996     shrext_cmds='.sl'
6997     dynamic_linker="$host_os dld.sl"
6998     shlibpath_var=SHLIB_PATH
6999     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7001     soname_spec='${libname}${release}${shared_ext}$major'
7002     ;;
7003   esac
7004   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7005   postinstall_cmds='chmod 555 $lib'
7006   ;;
7007
7008 irix5* | irix6* | nonstopux*)
7009   case $host_os in
7010     nonstopux*) version_type=nonstopux ;;
7011     *)
7012         if test "$lt_cv_prog_gnu_ld" = yes; then
7013                 version_type=linux
7014         else
7015                 version_type=irix
7016         fi ;;
7017   esac
7018   need_lib_prefix=no
7019   need_version=no
7020   soname_spec='${libname}${release}${shared_ext}$major'
7021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7022   case $host_os in
7023   irix5* | nonstopux*)
7024     libsuff= shlibsuff=
7025     ;;
7026   *)
7027     case $LD in # libtool.m4 will add one of these switches to LD
7028     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7029       libsuff= shlibsuff= libmagic=32-bit;;
7030     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7031       libsuff=32 shlibsuff=N32 libmagic=N32;;
7032     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7033       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7034     *) libsuff= shlibsuff= libmagic=never-match;;
7035     esac
7036     ;;
7037   esac
7038   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7039   shlibpath_overrides_runpath=no
7040   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7041   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7042   hardcode_into_libs=yes
7043   ;;
7044
7045 # No shared lib support for Linux oldld, aout, or coff.
7046 linux*oldld* | linux*aout* | linux*coff*)
7047   dynamic_linker=no
7048   ;;
7049
7050 # This must be Linux ELF.
7051 linux*)
7052   version_type=linux
7053   need_lib_prefix=no
7054   need_version=no
7055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7056   soname_spec='${libname}${release}${shared_ext}$major'
7057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7058   shlibpath_var=LD_LIBRARY_PATH
7059   shlibpath_overrides_runpath=no
7060   # This implies no fast_install, which is unacceptable.
7061   # Some rework will be needed to allow for fast_install
7062   # before this can be enabled.
7063   hardcode_into_libs=yes
7064
7065   # Append ld.so.conf contents to the search path
7066   if test -f /etc/ld.so.conf; then
7067     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7068     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7069   fi
7070
7071   # We used to test for /lib/ld.so.1 and disable shared libraries on
7072   # powerpc, because MkLinux only supported shared libraries with the
7073   # GNU dynamic linker.  Since this was broken with cross compilers,
7074   # most powerpc-linux boxes support dynamic linking these days and
7075   # people can always --disable-shared, the test was removed, and we
7076   # assume the GNU/Linux dynamic linker is in use.
7077   dynamic_linker='GNU/Linux ld.so'
7078   ;;
7079
7080 knetbsd*-gnu)
7081   version_type=linux
7082   need_lib_prefix=no
7083   need_version=no
7084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7085   soname_spec='${libname}${release}${shared_ext}$major'
7086   shlibpath_var=LD_LIBRARY_PATH
7087   shlibpath_overrides_runpath=no
7088   hardcode_into_libs=yes
7089   dynamic_linker='GNU ld.so'
7090   ;;
7091
7092 netbsd*)
7093   version_type=sunos
7094   need_lib_prefix=no
7095   need_version=no
7096   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7098     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7099     dynamic_linker='NetBSD (a.out) ld.so'
7100   else
7101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7102     soname_spec='${libname}${release}${shared_ext}$major'
7103     dynamic_linker='NetBSD ld.elf_so'
7104   fi
7105   shlibpath_var=LD_LIBRARY_PATH
7106   shlibpath_overrides_runpath=yes
7107   hardcode_into_libs=yes
7108   ;;
7109
7110 newsos6)
7111   version_type=linux
7112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7113   shlibpath_var=LD_LIBRARY_PATH
7114   shlibpath_overrides_runpath=yes
7115   ;;
7116
7117 nto-qnx*)
7118   version_type=linux
7119   need_lib_prefix=no
7120   need_version=no
7121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7122   soname_spec='${libname}${release}${shared_ext}$major'
7123   shlibpath_var=LD_LIBRARY_PATH
7124   shlibpath_overrides_runpath=yes
7125   ;;
7126
7127 openbsd*)
7128   version_type=sunos
7129   need_lib_prefix=no
7130   need_version=no
7131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7132   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7133   shlibpath_var=LD_LIBRARY_PATH
7134   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7135     case $host_os in
7136       openbsd2.[89] | openbsd2.[89].*)
7137         shlibpath_overrides_runpath=no
7138         ;;
7139       *)
7140         shlibpath_overrides_runpath=yes
7141         ;;
7142       esac
7143   else
7144     shlibpath_overrides_runpath=yes
7145   fi
7146   ;;
7147
7148 os2*)
7149   libname_spec='$name'
7150   shrext_cmds=".dll"
7151   need_lib_prefix=no
7152   library_names_spec='$libname${shared_ext} $libname.a'
7153   dynamic_linker='OS/2 ld.exe'
7154   shlibpath_var=LIBPATH
7155   ;;
7156
7157 osf3* | osf4* | osf5*)
7158   version_type=osf
7159   need_lib_prefix=no
7160   need_version=no
7161   soname_spec='${libname}${release}${shared_ext}$major'
7162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7163   shlibpath_var=LD_LIBRARY_PATH
7164   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7165   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7166   ;;
7167
7168 sco3.2v5*)
7169   version_type=osf
7170   soname_spec='${libname}${release}${shared_ext}$major'
7171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7172   shlibpath_var=LD_LIBRARY_PATH
7173   ;;
7174
7175 solaris*)
7176   version_type=linux
7177   need_lib_prefix=no
7178   need_version=no
7179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7180   soname_spec='${libname}${release}${shared_ext}$major'
7181   shlibpath_var=LD_LIBRARY_PATH
7182   shlibpath_overrides_runpath=yes
7183   hardcode_into_libs=yes
7184   # ldd complains unless libraries are executable
7185   postinstall_cmds='chmod +x $lib'
7186   ;;
7187
7188 sunos4*)
7189   version_type=sunos
7190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7191   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7192   shlibpath_var=LD_LIBRARY_PATH
7193   shlibpath_overrides_runpath=yes
7194   if test "$with_gnu_ld" = yes; then
7195     need_lib_prefix=no
7196   fi
7197   need_version=yes
7198   ;;
7199
7200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7201   version_type=linux
7202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7203   soname_spec='${libname}${release}${shared_ext}$major'
7204   shlibpath_var=LD_LIBRARY_PATH
7205   case $host_vendor in
7206     sni)
7207       shlibpath_overrides_runpath=no
7208       need_lib_prefix=no
7209       export_dynamic_flag_spec='${wl}-Blargedynsym'
7210       runpath_var=LD_RUN_PATH
7211       ;;
7212     siemens)
7213       need_lib_prefix=no
7214       ;;
7215     motorola)
7216       need_lib_prefix=no
7217       need_version=no
7218       shlibpath_overrides_runpath=no
7219       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7220       ;;
7221   esac
7222   ;;
7223
7224 sysv4*MP*)
7225   if test -d /usr/nec ;then
7226     version_type=linux
7227     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7228     soname_spec='$libname${shared_ext}.$major'
7229     shlibpath_var=LD_LIBRARY_PATH
7230   fi
7231   ;;
7232
7233 uts4*)
7234   version_type=linux
7235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7236   soname_spec='${libname}${release}${shared_ext}$major'
7237   shlibpath_var=LD_LIBRARY_PATH
7238   ;;
7239
7240 *)
7241   dynamic_linker=no
7242   ;;
7243 esac
7244 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7245 echo "${ECHO_T}$dynamic_linker" >&6
7246 test "$dynamic_linker" = no && can_build_shared=no
7247
7248
7249 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7250 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7251 if test "${libltdl_cv_shlibext+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254
7255 module=yes
7256 eval libltdl_cv_shlibext=$shrext_cmds
7257
7258 fi
7259 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7260 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7261 if test -n "$libltdl_cv_shlibext"; then
7262
7263 cat >>confdefs.h <<_ACEOF
7264 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7265 _ACEOF
7266
7267 fi
7268
7269
7270 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7271 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7272 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   libltdl_cv_shlibpath_var="$shlibpath_var"
7276 fi
7277 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7278 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7279 if test -n "$libltdl_cv_shlibpath_var"; then
7280
7281 cat >>confdefs.h <<_ACEOF
7282 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7283 _ACEOF
7284
7285 fi
7286
7287
7288 echo "$as_me:$LINENO: checking for the default library search path" >&5
7289 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7290 if test "${libltdl_cv_sys_search_path+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7294 fi
7295 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7296 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7297 if test -n "$libltdl_cv_sys_search_path"; then
7298   sys_search_path=
7299   for dir in $libltdl_cv_sys_search_path; do
7300     if test -z "$sys_search_path"; then
7301       sys_search_path="$dir"
7302     else
7303       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7304     fi
7305   done
7306
7307 cat >>confdefs.h <<_ACEOF
7308 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7309 _ACEOF
7310
7311 fi
7312
7313 echo "$as_me:$LINENO: checking for objdir" >&5
7314 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7315 if test "${libltdl_cv_objdir+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   libltdl_cv_objdir="$objdir"
7319   if test -n "$objdir"; then
7320     :
7321   else
7322     rm -f .libs 2>/dev/null
7323     mkdir .libs 2>/dev/null
7324     if test -d .libs; then
7325       libltdl_cv_objdir=.libs
7326     else
7327       # MS-DOS does not allow filenames that begin with a dot.
7328       libltdl_cv_objdir=_libs
7329     fi
7330   rmdir .libs 2>/dev/null
7331   fi
7332
7333 fi
7334 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7335 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7336
7337 cat >>confdefs.h <<_ACEOF
7338 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7339 _ACEOF
7340
7341
7342 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7343 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7344 if test "${lt_cv_path_NM+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   if test -n "$NM"; then
7348   # Let the user override the test.
7349   lt_cv_path_NM="$NM"
7350 else
7351   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7352   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7353     IFS="$lt_save_ifs"
7354     test -z "$ac_dir" && ac_dir=.
7355     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7356     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7357       # Check to see if the nm accepts a BSD-compat flag.
7358       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7359       #   nm: unknown option "B" ignored
7360       # Tru64's nm complains that /dev/null is an invalid object file
7361       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7362       */dev/null* | *'Invalid file or object type'*)
7363         lt_cv_path_NM="$tmp_nm -B"
7364         break
7365         ;;
7366       *)
7367         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7368         */dev/null*)
7369           lt_cv_path_NM="$tmp_nm -p"
7370           break
7371           ;;
7372         *)
7373           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7374           continue # so that we can try to find one that supports BSD flags
7375           ;;
7376         esac
7377       esac
7378     fi
7379   done
7380   IFS="$lt_save_ifs"
7381   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7382 fi
7383 fi
7384 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7385 echo "${ECHO_T}$lt_cv_path_NM" >&6
7386 NM="$lt_cv_path_NM"
7387
7388
7389
7390
7391
7392 # Check for command to grab the raw symbol name followed by C symbol from nm.
7393 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7394 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7395 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398
7399 # These are sane defaults that work on at least a few old systems.
7400 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7401
7402 # Character class describing NM global symbol codes.
7403 symcode='[BCDEGRST]'
7404
7405 # Regexp to match symbols that can be accessed directly from C.
7406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7407
7408 # Transform the above into a raw symbol and a C symbol.
7409 symxfrm='\1 \2\3 \3'
7410
7411 # Transform an extracted symbol line into a proper C declaration
7412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7413
7414 # Transform an extracted symbol line into symbol name and symbol address
7415 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7416
7417 # Define system-specific variables.
7418 case $host_os in
7419 aix*)
7420   symcode='[BCDT]'
7421   ;;
7422 cygwin* | mingw* | pw32*)
7423   symcode='[ABCDGISTW]'
7424   ;;
7425 hpux*) # Its linker distinguishes data from code symbols
7426   if test "$host_cpu" = ia64; then
7427     symcode='[ABCDEGRST]'
7428   fi
7429   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7430   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7431   ;;
7432 linux*)
7433   if test "$host_cpu" = ia64; then
7434     symcode='[ABCDGIRSTW]'
7435     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7436     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7437   fi
7438   ;;
7439 irix* | nonstopux*)
7440   symcode='[BCDEGRST]'
7441   ;;
7442 osf*)
7443   symcode='[BCDEGQRST]'
7444   ;;
7445 solaris* | sysv5*)
7446   symcode='[BDRT]'
7447   ;;
7448 sysv4)
7449   symcode='[DFNSTU]'
7450   ;;
7451 esac
7452
7453 # Handle CRLF in mingw tool chain
7454 opt_cr=
7455 case $build_os in
7456 mingw*)
7457   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7458   ;;
7459 esac
7460
7461 # If we're using GNU nm, then use its standard symbol codes.
7462 case `$NM -V 2>&1` in
7463 *GNU* | *'with BFD'*)
7464   symcode='[ABCDGIRSTW]' ;;
7465 esac
7466
7467 # Try without a prefix undercore, then with it.
7468 for ac_symprfx in "" "_"; do
7469
7470   # Write the raw and C identifiers.
7471   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7472
7473   # Check to see that the pipe works correctly.
7474   pipe_works=no
7475
7476   rm -f conftest*
7477   cat > conftest.$ac_ext <<EOF
7478 #ifdef __cplusplus
7479 extern "C" {
7480 #endif
7481 char nm_test_var;
7482 void nm_test_func(){}
7483 #ifdef __cplusplus
7484 }
7485 #endif
7486 int main(){nm_test_var='a';nm_test_func();return(0);}
7487 EOF
7488
7489   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7490   (eval $ac_compile) 2>&5
7491   ac_status=$?
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); }; then
7494     # Now try to grab the symbols.
7495     nlist=conftest.nm
7496     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7497   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } && test -s "$nlist"; then
7501       # Try sorting and uniquifying the output.
7502       if sort "$nlist" | uniq > "$nlist"T; then
7503         mv -f "$nlist"T "$nlist"
7504       else
7505         rm -f "$nlist"T
7506       fi
7507
7508       # Make sure that we snagged all the symbols we need.
7509       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7510         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7511           cat <<EOF > conftest.$ac_ext
7512 #ifdef __cplusplus
7513 extern "C" {
7514 #endif
7515
7516 EOF
7517           # Now generate the symbol file.
7518           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7519
7520           cat <<EOF >> conftest.$ac_ext
7521 #if defined (__STDC__) && __STDC__
7522 # define lt_ptr_t void *
7523 #else
7524 # define lt_ptr_t char *
7525 # define const
7526 #endif
7527
7528 /* The mapping between symbol names and symbols. */
7529 const struct {
7530   const char *name;
7531   lt_ptr_t address;
7532 }
7533 lt_preloaded_symbols[] =
7534 {
7535 EOF
7536           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7537           cat <<\EOF >> conftest.$ac_ext
7538   {0, (lt_ptr_t) 0}
7539 };
7540
7541 #ifdef __cplusplus
7542 }
7543 #endif
7544 EOF
7545           # Now try linking the two files.
7546           mv conftest.$ac_objext conftstm.$ac_objext
7547           lt_save_LIBS="$LIBS"
7548           lt_save_CFLAGS="$CFLAGS"
7549           LIBS="conftstm.$ac_objext"
7550           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7551           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552   (eval $ac_link) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7556             pipe_works=yes
7557           fi
7558           LIBS="$lt_save_LIBS"
7559           CFLAGS="$lt_save_CFLAGS"
7560         else
7561           echo "cannot find nm_test_func in $nlist" >&5
7562         fi
7563       else
7564         echo "cannot find nm_test_var in $nlist" >&5
7565       fi
7566     else
7567       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7568     fi
7569   else
7570     echo "$progname: failed program was:" >&5
7571     cat conftest.$ac_ext >&5
7572   fi
7573   rm -f conftest* conftst*
7574
7575   # Do not use the global_symbol_pipe unless it works.
7576   if test "$pipe_works" = yes; then
7577     break
7578   else
7579     lt_cv_sys_global_symbol_pipe=
7580   fi
7581 done
7582
7583 fi
7584
7585 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7586   lt_cv_sys_global_symbol_to_cdecl=
7587 fi
7588 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7589   echo "$as_me:$LINENO: result: failed" >&5
7590 echo "${ECHO_T}failed" >&6
7591 else
7592   echo "$as_me:$LINENO: result: ok" >&5
7593 echo "${ECHO_T}ok" >&6
7594 fi
7595
7596
7597 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7598 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7599 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7603     libltdl_cv_preloaded_symbols=yes
7604   else
7605     libltdl_cv_preloaded_symbols=no
7606   fi
7607
7608 fi
7609 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7610 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7611 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7612
7613 cat >>confdefs.h <<\_ACEOF
7614 #define HAVE_PRELOADED_SYMBOLS 1
7615 _ACEOF
7616
7617 fi
7618
7619 LIBADD_DL=
7620
7621 ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627
7628 echo "$as_me:$LINENO: checking for shl_load" >&5
7629 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7630 if test "${ac_cv_func_shl_load+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633   cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h.  */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h.  */
7639 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7641 #define shl_load innocuous_shl_load
7642
7643 /* System header to define __stub macros and hopefully few prototypes,
7644     which can conflict with char shl_load (); below.
7645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7646     <limits.h> exists even on freestanding compilers.  */
7647
7648 #ifdef __STDC__
7649 # include <limits.h>
7650 #else
7651 # include <assert.h>
7652 #endif
7653
7654 #undef shl_load
7655
7656 /* Override any gcc2 internal prototype to avoid an error.  */
7657 #ifdef __cplusplus
7658 extern "C"
7659 {
7660 #endif
7661 /* We use char because int might match the return type of a gcc2
7662    builtin and then its argument prototype would still apply.  */
7663 char shl_load ();
7664 /* The GNU C library defines this for functions which it implements
7665     to always fail with ENOSYS.  Some functions are actually named
7666     something starting with __ and the normal name is an alias.  */
7667 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7668 choke me
7669 #else
7670 char (*f) () = shl_load;
7671 #endif
7672 #ifdef __cplusplus
7673 }
7674 #endif
7675
7676 int
7677 main ()
7678 {
7679 return f != shl_load;
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext conftest$ac_exeext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686   (eval $ac_link) 2>conftest.er1
7687   ac_status=$?
7688   grep -v '^ *+' conftest.er1 >conftest.err
7689   rm -f conftest.er1
7690   cat conftest.err >&5
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } &&
7693          { ac_try='test -z "$ac_c_werror_flag"
7694                          || test ! -s conftest.err'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; } &&
7700          { ac_try='test -s conftest$ac_exeext'
7701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702   (eval $ac_try) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; }; then
7706   ac_cv_func_shl_load=yes
7707 else
7708   echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 ac_cv_func_shl_load=no
7712 fi
7713 rm -f conftest.err conftest.$ac_objext \
7714       conftest$ac_exeext conftest.$ac_ext
7715 fi
7716 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7717 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7718 if test $ac_cv_func_shl_load = yes; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_SHL_LOAD 1
7722 _ACEOF
7723
7724 else
7725   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7726 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7727 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   ac_check_lib_save_LIBS=$LIBS
7731 LIBS="-ldld  $LIBS"
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738
7739 /* Override any gcc2 internal prototype to avoid an error.  */
7740 #ifdef __cplusplus
7741 extern "C"
7742 #endif
7743 /* We use char because int might match the return type of a gcc2
7744    builtin and then its argument prototype would still apply.  */
7745 char shl_load ();
7746 int
7747 main ()
7748 {
7749 shl_load ();
7750   ;
7751   return 0;
7752 }
7753 _ACEOF
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7756   (eval $ac_link) 2>conftest.er1
7757   ac_status=$?
7758   grep -v '^ *+' conftest.er1 >conftest.err
7759   rm -f conftest.er1
7760   cat conftest.err >&5
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); } &&
7763          { ac_try='test -z "$ac_c_werror_flag"
7764                          || test ! -s conftest.err'
7765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766   (eval $ac_try) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); }; } &&
7770          { ac_try='test -s conftest$ac_exeext'
7771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772   (eval $ac_try) 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); }; }; then
7776   ac_cv_lib_dld_shl_load=yes
7777 else
7778   echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7780
7781 ac_cv_lib_dld_shl_load=no
7782 fi
7783 rm -f conftest.err conftest.$ac_objext \
7784       conftest$ac_exeext conftest.$ac_ext
7785 LIBS=$ac_check_lib_save_LIBS
7786 fi
7787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7788 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7789 if test $ac_cv_lib_dld_shl_load = yes; then
7790
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_SHL_LOAD 1
7793 _ACEOF
7794
7795         LIBADD_DL="$LIBADD_DL -ldld"
7796 else
7797   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7798 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   ac_check_lib_save_LIBS=$LIBS
7803 LIBS="-ldl  $LIBS"
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810
7811 /* Override any gcc2 internal prototype to avoid an error.  */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816    builtin and then its argument prototype would still apply.  */
7817 char dlopen ();
7818 int
7819 main ()
7820 {
7821 dlopen ();
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828   (eval $ac_link) 2>conftest.er1
7829   ac_status=$?
7830   grep -v '^ *+' conftest.er1 >conftest.err
7831   rm -f conftest.er1
7832   cat conftest.err >&5
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } &&
7835          { ac_try='test -z "$ac_c_werror_flag"
7836                          || test ! -s conftest.err'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; } &&
7842          { ac_try='test -s conftest$ac_exeext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_lib_dl_dlopen=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_lib_dl_dlopen=no
7854 fi
7855 rm -f conftest.err conftest.$ac_objext \
7856       conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7858 fi
7859 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7861 if test $ac_cv_lib_dl_dlopen = yes; then
7862
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_LIBDL 1
7865 _ACEOF
7866
7867                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7868 else
7869   cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h.  */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h.  */
7875 #if HAVE_DLFCN_H
7876 #  include <dlfcn.h>
7877 #endif
7878
7879 int
7880 main ()
7881 {
7882 dlopen(0, 0);
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext conftest$ac_exeext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7889   (eval $ac_link) 2>conftest.er1
7890   ac_status=$?
7891   grep -v '^ *+' conftest.er1 >conftest.err
7892   rm -f conftest.er1
7893   cat conftest.err >&5
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } &&
7896          { ac_try='test -z "$ac_c_werror_flag"
7897                          || test ! -s conftest.err'
7898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; } &&
7903          { ac_try='test -s conftest$ac_exeext'
7904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905   (eval $ac_try) 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); }; }; then
7909
7910 cat >>confdefs.h <<\_ACEOF
7911 #define HAVE_LIBDL 1
7912 _ACEOF
7913  libltdl_cv_func_dlopen="yes"
7914 else
7915   echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7919 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7920 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   ac_check_lib_save_LIBS=$LIBS
7924 LIBS="-lsvld  $LIBS"
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931
7932 /* Override any gcc2 internal prototype to avoid an error.  */
7933 #ifdef __cplusplus
7934 extern "C"
7935 #endif
7936 /* We use char because int might match the return type of a gcc2
7937    builtin and then its argument prototype would still apply.  */
7938 char dlopen ();
7939 int
7940 main ()
7941 {
7942 dlopen ();
7943   ;
7944   return 0;
7945 }
7946 _ACEOF
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949   (eval $ac_link) 2>conftest.er1
7950   ac_status=$?
7951   grep -v '^ *+' conftest.er1 >conftest.err
7952   rm -f conftest.er1
7953   cat conftest.err >&5
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); } &&
7956          { ac_try='test -z "$ac_c_werror_flag"
7957                          || test ! -s conftest.err'
7958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959   (eval $ac_try) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; } &&
7963          { ac_try='test -s conftest$ac_exeext'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; }; then
7969   ac_cv_lib_svld_dlopen=yes
7970 else
7971   echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7973
7974 ac_cv_lib_svld_dlopen=no
7975 fi
7976 rm -f conftest.err conftest.$ac_objext \
7977       conftest$ac_exeext conftest.$ac_ext
7978 LIBS=$ac_check_lib_save_LIBS
7979 fi
7980 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7981 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7982 if test $ac_cv_lib_svld_dlopen = yes; then
7983
7984 cat >>confdefs.h <<\_ACEOF
7985 #define HAVE_LIBDL 1
7986 _ACEOF
7987
7988                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7989 else
7990   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7991 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-ldld  $LIBS"
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h.  */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h.  */
8003
8004 /* Override any gcc2 internal prototype to avoid an error.  */
8005 #ifdef __cplusplus
8006 extern "C"
8007 #endif
8008 /* We use char because int might match the return type of a gcc2
8009    builtin and then its argument prototype would still apply.  */
8010 char dld_link ();
8011 int
8012 main ()
8013 {
8014 dld_link ();
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021   (eval $ac_link) 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } &&
8028          { ac_try='test -z "$ac_c_werror_flag"
8029                          || test ! -s conftest.err'
8030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031   (eval $ac_try) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; } &&
8035          { ac_try='test -s conftest$ac_exeext'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; }; then
8041   ac_cv_lib_dld_dld_link=yes
8042 else
8043   echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046 ac_cv_lib_dld_dld_link=no
8047 fi
8048 rm -f conftest.err conftest.$ac_objext \
8049       conftest$ac_exeext conftest.$ac_ext
8050 LIBS=$ac_check_lib_save_LIBS
8051 fi
8052 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8053 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8054 if test $ac_cv_lib_dld_dld_link = yes; then
8055
8056 cat >>confdefs.h <<\_ACEOF
8057 #define HAVE_DLD 1
8058 _ACEOF
8059
8060                 LIBADD_DL="$LIBADD_DL -ldld"
8061 else
8062   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8063 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8064 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8075 #define _dyld_func_lookup innocuous__dyld_func_lookup
8076
8077 /* System header to define __stub macros and hopefully few prototypes,
8078     which can conflict with char _dyld_func_lookup (); below.
8079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8080     <limits.h> exists even on freestanding compilers.  */
8081
8082 #ifdef __STDC__
8083 # include <limits.h>
8084 #else
8085 # include <assert.h>
8086 #endif
8087
8088 #undef _dyld_func_lookup
8089
8090 /* Override any gcc2 internal prototype to avoid an error.  */
8091 #ifdef __cplusplus
8092 extern "C"
8093 {
8094 #endif
8095 /* We use char because int might match the return type of a gcc2
8096    builtin and then its argument prototype would still apply.  */
8097 char _dyld_func_lookup ();
8098 /* The GNU C library defines this for functions which it implements
8099     to always fail with ENOSYS.  Some functions are actually named
8100     something starting with __ and the normal name is an alias.  */
8101 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8102 choke me
8103 #else
8104 char (*f) () = _dyld_func_lookup;
8105 #endif
8106 #ifdef __cplusplus
8107 }
8108 #endif
8109
8110 int
8111 main ()
8112 {
8113 return f != _dyld_func_lookup;
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120   (eval $ac_link) 2>conftest.er1
8121   ac_status=$?
8122   grep -v '^ *+' conftest.er1 >conftest.err
8123   rm -f conftest.er1
8124   cat conftest.err >&5
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); } &&
8127          { ac_try='test -z "$ac_c_werror_flag"
8128                          || test ! -s conftest.err'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; } &&
8134          { ac_try='test -s conftest$ac_exeext'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_cv_func__dyld_func_lookup=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ac_cv_func__dyld_func_lookup=no
8146 fi
8147 rm -f conftest.err conftest.$ac_objext \
8148       conftest$ac_exeext conftest.$ac_ext
8149 fi
8150 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8151 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8152 if test $ac_cv_func__dyld_func_lookup = yes; then
8153
8154 cat >>confdefs.h <<\_ACEOF
8155 #define HAVE_DYLD 1
8156 _ACEOF
8157
8158 fi
8159
8160
8161 fi
8162
8163
8164 fi
8165
8166
8167 fi
8168 rm -f conftest.err conftest.$ac_objext \
8169       conftest$ac_exeext conftest.$ac_ext
8170
8171 fi
8172
8173
8174 fi
8175
8176
8177 fi
8178
8179
8180 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8181 then
8182   lt_save_LIBS="$LIBS"
8183   LIBS="$LIBS $LIBADD_DL"
8184
8185 for ac_func in dlerror
8186 do
8187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8188 echo "$as_me:$LINENO: checking for $ac_func" >&5
8189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8190 if eval "test \"\${$as_ac_var+set}\" = set"; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8201 #define $ac_func innocuous_$ac_func
8202
8203 /* System header to define __stub macros and hopefully few prototypes,
8204     which can conflict with char $ac_func (); below.
8205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206     <limits.h> exists even on freestanding compilers.  */
8207
8208 #ifdef __STDC__
8209 # include <limits.h>
8210 #else
8211 # include <assert.h>
8212 #endif
8213
8214 #undef $ac_func
8215
8216 /* Override any gcc2 internal prototype to avoid an error.  */
8217 #ifdef __cplusplus
8218 extern "C"
8219 {
8220 #endif
8221 /* We use char because int might match the return type of a gcc2
8222    builtin and then its argument prototype would still apply.  */
8223 char $ac_func ();
8224 /* The GNU C library defines this for functions which it implements
8225     to always fail with ENOSYS.  Some functions are actually named
8226     something starting with __ and the normal name is an alias.  */
8227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8228 choke me
8229 #else
8230 char (*f) () = $ac_func;
8231 #endif
8232 #ifdef __cplusplus
8233 }
8234 #endif
8235
8236 int
8237 main ()
8238 {
8239 return f != $ac_func;
8240   ;
8241   return 0;
8242 }
8243 _ACEOF
8244 rm -f conftest.$ac_objext conftest$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246   (eval $ac_link) 2>conftest.er1
8247   ac_status=$?
8248   grep -v '^ *+' conftest.er1 >conftest.err
8249   rm -f conftest.er1
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } &&
8253          { ac_try='test -z "$ac_c_werror_flag"
8254                          || test ! -s conftest.err'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; } &&
8260          { ac_try='test -s conftest$ac_exeext'
8261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262   (eval $ac_try) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; }; then
8266   eval "$as_ac_var=yes"
8267 else
8268   echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 eval "$as_ac_var=no"
8272 fi
8273 rm -f conftest.err conftest.$ac_objext \
8274       conftest$ac_exeext conftest.$ac_ext
8275 fi
8276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8278 if test `eval echo '${'$as_ac_var'}'` = yes; then
8279   cat >>confdefs.h <<_ACEOF
8280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8281 _ACEOF
8282
8283 fi
8284 done
8285
8286   LIBS="$lt_save_LIBS"
8287 fi
8288 ac_ext=c
8289 ac_cpp='$CPP $CPPFLAGS'
8290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293
8294
8295
8296 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8297 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8298 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   ac_cv_sys_symbol_underscore=no
8302   cat > conftest.$ac_ext <<EOF
8303 void nm_test_func(){}
8304 int main(){nm_test_func;return 0;}
8305 EOF
8306   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8307   (eval $ac_compile) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; then
8311     # Now try to grab the symbols.
8312     ac_nlist=conftest.nm
8313     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8314   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && test -s "$ac_nlist"; then
8318       # See whether the symbols have a leading underscore.
8319       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8320         ac_cv_sys_symbol_underscore=yes
8321       else
8322         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8323           :
8324         else
8325           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8326         fi
8327       fi
8328     else
8329       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8330     fi
8331   else
8332     echo "configure: failed program was:" >&5
8333     cat conftest.c >&5
8334   fi
8335   rm -rf conftest*
8336
8337 fi
8338 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8339 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8340
8341
8342 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8343   if test x"$libltdl_cv_func_dlopen" = xyes ||
8344      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8345         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8346 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8347 if test "${libltdl_cv_need_uscore+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   libltdl_cv_need_uscore=unknown
8351           save_LIBS="$LIBS"
8352           LIBS="$LIBS $LIBADD_DL"
8353           if test "$cross_compiling" = yes; then :
8354   libltdl_cv_need_uscore=cross
8355 else
8356   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8357   lt_status=$lt_dlunknown
8358   cat > conftest.$ac_ext <<EOF
8359 #line 8359 "configure"
8360 #include "confdefs.h"
8361
8362 #if HAVE_DLFCN_H
8363 #include <dlfcn.h>
8364 #endif
8365
8366 #include <stdio.h>
8367
8368 #ifdef RTLD_GLOBAL
8369 #  define LT_DLGLOBAL           RTLD_GLOBAL
8370 #else
8371 #  ifdef DL_GLOBAL
8372 #    define LT_DLGLOBAL         DL_GLOBAL
8373 #  else
8374 #    define LT_DLGLOBAL         0
8375 #  endif
8376 #endif
8377
8378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8379    find out it does not work in some platform. */
8380 #ifndef LT_DLLAZY_OR_NOW
8381 #  ifdef RTLD_LAZY
8382 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8383 #  else
8384 #    ifdef DL_LAZY
8385 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8386 #    else
8387 #      ifdef RTLD_NOW
8388 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8389 #      else
8390 #        ifdef DL_NOW
8391 #          define LT_DLLAZY_OR_NOW      DL_NOW
8392 #        else
8393 #          define LT_DLLAZY_OR_NOW      0
8394 #        endif
8395 #      endif
8396 #    endif
8397 #  endif
8398 #endif
8399
8400 #ifdef __cplusplus
8401 extern "C" void exit (int);
8402 #endif
8403
8404 void fnord() { int i=42;}
8405 int main ()
8406 {
8407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8408   int status = $lt_dlunknown;
8409
8410   if (self)
8411     {
8412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8413       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8414       /* dlclose (self); */
8415     }
8416
8417     exit (status);
8418 }
8419 EOF
8420   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421   (eval $ac_link) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8425     (./conftest; exit; ) 2>/dev/null
8426     lt_status=$?
8427     case x$lt_status in
8428       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8429       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8430       x$lt_unknown|x*)  ;;
8431     esac
8432   else :
8433     # compilation failed
8434
8435   fi
8436 fi
8437 rm -fr conftest*
8438
8439           LIBS="$save_LIBS"
8440
8441 fi
8442 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8443 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8444   fi
8445 fi
8446
8447 if test x"$libltdl_cv_need_uscore" = xyes; then
8448
8449 cat >>confdefs.h <<\_ACEOF
8450 #define NEED_USCORE 1
8451 _ACEOF
8452
8453 fi
8454
8455
8456 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8457 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8458 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   # PORTME does your system automatically load deplibs for dlopen?
8462   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8463   # For now, we just catch OSes we know something about -- in the
8464   # future, we'll try test this programmatically.
8465   libltdl_cv_sys_dlopen_deplibs=unknown
8466   case "$host_os" in
8467   aix3*|aix4.1.*|aix4.2.*)
8468     # Unknown whether this is true for these versions of AIX, but
8469     # we want this `case' here to explicitly catch those versions.
8470     libltdl_cv_sys_dlopen_deplibs=unknown
8471     ;;
8472   aix[45]*)
8473     libltdl_cv_sys_dlopen_deplibs=yes
8474     ;;
8475   darwin*)
8476     # Assuming the user has installed a libdl from somewhere, this is true
8477     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8478     libltdl_cv_sys_dlopen_deplibs=yes
8479     ;;
8480   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8481     # GNU and its variants, using gnu ld.so (Glibc)
8482     libltdl_cv_sys_dlopen_deplibs=yes
8483     ;;
8484   hpux10*|hpux11*)
8485     libltdl_cv_sys_dlopen_deplibs=yes
8486     ;;
8487   irix[12345]*|irix6.[01]*)
8488     # Catch all versions of IRIX before 6.2, and indicate that we don't
8489     # know how it worked for any of those versions.
8490     libltdl_cv_sys_dlopen_deplibs=unknown
8491     ;;
8492   irix*)
8493     # The case above catches anything before 6.2, and it's known that
8494     # at 6.2 and later dlopen does load deplibs.
8495     libltdl_cv_sys_dlopen_deplibs=yes
8496     ;;
8497   netbsd*)
8498     libltdl_cv_sys_dlopen_deplibs=yes
8499     ;;
8500   openbsd*)
8501     libltdl_cv_sys_dlopen_deplibs=yes
8502     ;;
8503   osf[1234]*)
8504     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8505     # it did *not* use an RPATH in a shared library to find objects the
8506     # library depends on, so we explictly say `no'.
8507     libltdl_cv_sys_dlopen_deplibs=no
8508     ;;
8509   osf5.0|osf5.0a|osf5.1)
8510     # dlopen *does* load deplibs and with the right loader patch applied
8511     # it even uses RPATH in a shared library to search for shared objects
8512     # that the library depends on, but there's no easy way to know if that
8513     # patch is installed.  Since this is the case, all we can really
8514     # say is unknown -- it depends on the patch being installed.  If
8515     # it is, this changes to `yes'.  Without it, it would be `no'.
8516     libltdl_cv_sys_dlopen_deplibs=unknown
8517     ;;
8518   osf*)
8519     # the two cases above should catch all versions of osf <= 5.1.  Read
8520     # the comments above for what we know about them.
8521     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8522     # is used to find them so we can finally say `yes'.
8523     libltdl_cv_sys_dlopen_deplibs=yes
8524     ;;
8525   solaris*)
8526     libltdl_cv_sys_dlopen_deplibs=yes
8527     ;;
8528   esac
8529
8530 fi
8531 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8532 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8533 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8534
8535 cat >>confdefs.h <<\_ACEOF
8536 #define LTDL_DLOPEN_DEPLIBS 1
8537 _ACEOF
8538
8539 fi
8540
8541
8542 for ac_header in argz.h
8543 do
8544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8546   echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 fi
8551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8553 else
8554   # Is the header compilable?
8555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 $ac_includes_default
8564 #include <$ac_header>
8565 _ACEOF
8566 rm -f conftest.$ac_objext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568   (eval $ac_compile) 2>conftest.er1
8569   ac_status=$?
8570   grep -v '^ *+' conftest.er1 >conftest.err
8571   rm -f conftest.er1
8572   cat conftest.err >&5
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -z "$ac_c_werror_flag"
8576                          || test ! -s conftest.err'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; } &&
8582          { ac_try='test -s conftest.$ac_objext'
8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584   (eval $ac_try) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; }; then
8588   ac_header_compiler=yes
8589 else
8590   echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 ac_header_compiler=no
8594 fi
8595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8597 echo "${ECHO_T}$ac_header_compiler" >&6
8598
8599 # Is the header present?
8600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h.  */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h.  */
8608 #include <$ac_header>
8609 _ACEOF
8610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8612   ac_status=$?
8613   grep -v '^ *+' conftest.er1 >conftest.err
8614   rm -f conftest.er1
8615   cat conftest.err >&5
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } >/dev/null; then
8618   if test -s conftest.err; then
8619     ac_cpp_err=$ac_c_preproc_warn_flag
8620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8621   else
8622     ac_cpp_err=
8623   fi
8624 else
8625   ac_cpp_err=yes
8626 fi
8627 if test -z "$ac_cpp_err"; then
8628   ac_header_preproc=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633   ac_header_preproc=no
8634 fi
8635 rm -f conftest.err conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8637 echo "${ECHO_T}$ac_header_preproc" >&6
8638
8639 # So?  What about this header?
8640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8641   yes:no: )
8642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8646     ac_header_preproc=yes
8647     ;;
8648   no:yes:* )
8649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8661     (
8662       cat <<\_ASBOX
8663 ## ----------------------------------- ##
8664 ## Report this to llvmbugs@cs.uiuc.edu ##
8665 ## ----------------------------------- ##
8666 _ASBOX
8667     ) |
8668       sed "s/^/$as_me: WARNING:     /" >&2
8669     ;;
8670 esac
8671 echo "$as_me:$LINENO: checking for $ac_header" >&5
8672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   eval "$as_ac_Header=\$ac_header_preproc"
8677 fi
8678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8680
8681 fi
8682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8683   cat >>confdefs.h <<_ACEOF
8684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8685 _ACEOF
8686
8687 fi
8688
8689 done
8690
8691
8692 echo "$as_me:$LINENO: checking for error_t" >&5
8693 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8694 if test "${ac_cv_type_error_t+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h.  */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h.  */
8703 #if HAVE_ARGZ_H
8704 #  include <argz.h>
8705 #endif
8706
8707 int
8708 main ()
8709 {
8710 if ((error_t *) 0)
8711   return 0;
8712 if (sizeof (error_t))
8713   return 0;
8714   ;
8715   return 0;
8716 }
8717 _ACEOF
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720   (eval $ac_compile) 2>conftest.er1
8721   ac_status=$?
8722   grep -v '^ *+' conftest.er1 >conftest.err
8723   rm -f conftest.er1
8724   cat conftest.err >&5
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } &&
8727          { ac_try='test -z "$ac_c_werror_flag"
8728                          || test ! -s conftest.err'
8729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730   (eval $ac_try) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; } &&
8734          { ac_try='test -s conftest.$ac_objext'
8735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736   (eval $ac_try) 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; }; then
8740   ac_cv_type_error_t=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_cv_type_error_t=no
8746 fi
8747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8748 fi
8749 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8750 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8751 if test $ac_cv_type_error_t = yes; then
8752
8753 cat >>confdefs.h <<_ACEOF
8754 #define HAVE_ERROR_T 1
8755 _ACEOF
8756
8757
8758 else
8759
8760 cat >>confdefs.h <<\_ACEOF
8761 #define error_t int
8762 _ACEOF
8763
8764 fi
8765
8766
8767
8768
8769
8770
8771
8772 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8773 do
8774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8775 echo "$as_me:$LINENO: checking for $ac_func" >&5
8776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8777 if eval "test \"\${$as_ac_var+set}\" = set"; then
8778   echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780   cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8788 #define $ac_func innocuous_$ac_func
8789
8790 /* System header to define __stub macros and hopefully few prototypes,
8791     which can conflict with char $ac_func (); below.
8792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8793     <limits.h> exists even on freestanding compilers.  */
8794
8795 #ifdef __STDC__
8796 # include <limits.h>
8797 #else
8798 # include <assert.h>
8799 #endif
8800
8801 #undef $ac_func
8802
8803 /* Override any gcc2 internal prototype to avoid an error.  */
8804 #ifdef __cplusplus
8805 extern "C"
8806 {
8807 #endif
8808 /* We use char because int might match the return type of a gcc2
8809    builtin and then its argument prototype would still apply.  */
8810 char $ac_func ();
8811 /* The GNU C library defines this for functions which it implements
8812     to always fail with ENOSYS.  Some functions are actually named
8813     something starting with __ and the normal name is an alias.  */
8814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8815 choke me
8816 #else
8817 char (*f) () = $ac_func;
8818 #endif
8819 #ifdef __cplusplus
8820 }
8821 #endif
8822
8823 int
8824 main ()
8825 {
8826 return f != $ac_func;
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833   (eval $ac_link) 2>conftest.er1
8834   ac_status=$?
8835   grep -v '^ *+' conftest.er1 >conftest.err
8836   rm -f conftest.er1
8837   cat conftest.err >&5
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); } &&
8840          { ac_try='test -z "$ac_c_werror_flag"
8841                          || test ! -s conftest.err'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; } &&
8847          { ac_try='test -s conftest$ac_exeext'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; }; then
8853   eval "$as_ac_var=yes"
8854 else
8855   echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 eval "$as_ac_var=no"
8859 fi
8860 rm -f conftest.err conftest.$ac_objext \
8861       conftest$ac_exeext conftest.$ac_ext
8862 fi
8863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8865 if test `eval echo '${'$as_ac_var'}'` = yes; then
8866   cat >>confdefs.h <<_ACEOF
8867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8868 _ACEOF
8869
8870 fi
8871 done
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8901                   stdio.h unistd.h
8902 do
8903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905   echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 fi
8910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912 else
8913   # Is the header compilable?
8914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h.  */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h.  */
8922 $ac_includes_default
8923 #include <$ac_header>
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927   (eval $ac_compile) 2>conftest.er1
8928   ac_status=$?
8929   grep -v '^ *+' conftest.er1 >conftest.err
8930   rm -f conftest.er1
8931   cat conftest.err >&5
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } &&
8934          { ac_try='test -z "$ac_c_werror_flag"
8935                          || test ! -s conftest.err'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; } &&
8941          { ac_try='test -s conftest.$ac_objext'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   ac_header_compiler=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 ac_header_compiler=no
8953 fi
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8956 echo "${ECHO_T}$ac_header_compiler" >&6
8957
8958 # Is the header present?
8959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967 #include <$ac_header>
8968 _ACEOF
8969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8971   ac_status=$?
8972   grep -v '^ *+' conftest.er1 >conftest.err
8973   rm -f conftest.er1
8974   cat conftest.err >&5
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } >/dev/null; then
8977   if test -s conftest.err; then
8978     ac_cpp_err=$ac_c_preproc_warn_flag
8979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8980   else
8981     ac_cpp_err=
8982   fi
8983 else
8984   ac_cpp_err=yes
8985 fi
8986 if test -z "$ac_cpp_err"; then
8987   ac_header_preproc=yes
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992   ac_header_preproc=no
8993 fi
8994 rm -f conftest.err conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8996 echo "${ECHO_T}$ac_header_preproc" >&6
8997
8998 # So?  What about this header?
8999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9000   yes:no: )
9001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9005     ac_header_preproc=yes
9006     ;;
9007   no:yes:* )
9008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9020     (
9021       cat <<\_ASBOX
9022 ## ----------------------------------- ##
9023 ## Report this to llvmbugs@cs.uiuc.edu ##
9024 ## ----------------------------------- ##
9025 _ASBOX
9026     ) |
9027       sed "s/^/$as_me: WARNING:     /" >&2
9028     ;;
9029 esac
9030 echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   eval "$as_ac_Header=\$ac_header_preproc"
9036 fi
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9039
9040 fi
9041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042   cat >>confdefs.h <<_ACEOF
9043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9044 _ACEOF
9045
9046 fi
9047
9048 done
9049
9050
9051
9052
9053
9054 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9055 do
9056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058   echo "$as_me:$LINENO: checking for $ac_header" >&5
9059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 fi
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9065 else
9066   # Is the header compilable?
9067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h.  */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h.  */
9075 $ac_includes_default
9076 #include <$ac_header>
9077 _ACEOF
9078 rm -f conftest.$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080   (eval $ac_compile) 2>conftest.er1
9081   ac_status=$?
9082   grep -v '^ *+' conftest.er1 >conftest.err
9083   rm -f conftest.er1
9084   cat conftest.err >&5
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } &&
9087          { ac_try='test -z "$ac_c_werror_flag"
9088                          || test ! -s conftest.err'
9089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090   (eval $ac_try) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; } &&
9094          { ac_try='test -s conftest.$ac_objext'
9095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096   (eval $ac_try) 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; }; then
9100   ac_header_compiler=yes
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105 ac_header_compiler=no
9106 fi
9107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9109 echo "${ECHO_T}$ac_header_compiler" >&6
9110
9111 # Is the header present?
9112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9114 cat >conftest.$ac_ext <<_ACEOF
9115 /* confdefs.h.  */
9116 _ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h.  */
9120 #include <$ac_header>
9121 _ACEOF
9122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } >/dev/null; then
9130   if test -s conftest.err; then
9131     ac_cpp_err=$ac_c_preproc_warn_flag
9132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9133   else
9134     ac_cpp_err=
9135   fi
9136 else
9137   ac_cpp_err=yes
9138 fi
9139 if test -z "$ac_cpp_err"; then
9140   ac_header_preproc=yes
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145   ac_header_preproc=no
9146 fi
9147 rm -f conftest.err conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9149 echo "${ECHO_T}$ac_header_preproc" >&6
9150
9151 # So?  What about this header?
9152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9153   yes:no: )
9154     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9158     ac_header_preproc=yes
9159     ;;
9160   no:yes:* )
9161     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9163     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9164 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9165     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9167     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9168 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9171     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9173     (
9174       cat <<\_ASBOX
9175 ## ----------------------------------- ##
9176 ## Report this to llvmbugs@cs.uiuc.edu ##
9177 ## ----------------------------------- ##
9178 _ASBOX
9179     ) |
9180       sed "s/^/$as_me: WARNING:     /" >&2
9181     ;;
9182 esac
9183 echo "$as_me:$LINENO: checking for $ac_header" >&5
9184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186   echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188   eval "$as_ac_Header=\$ac_header_preproc"
9189 fi
9190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9192
9193 fi
9194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9195   cat >>confdefs.h <<_ACEOF
9196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9197 _ACEOF
9198
9199 fi
9200
9201 done
9202
9203
9204
9205 for ac_header in string.h strings.h
9206 do
9207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9209   echo "$as_me:$LINENO: checking for $ac_header" >&5
9210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 fi
9214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9216 else
9217   # Is the header compilable?
9218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h.  */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h.  */
9226 $ac_includes_default
9227 #include <$ac_header>
9228 _ACEOF
9229 rm -f conftest.$ac_objext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231   (eval $ac_compile) 2>conftest.er1
9232   ac_status=$?
9233   grep -v '^ *+' conftest.er1 >conftest.err
9234   rm -f conftest.er1
9235   cat conftest.err >&5
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } &&
9238          { ac_try='test -z "$ac_c_werror_flag"
9239                          || test ! -s conftest.err'
9240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241   (eval $ac_try) 2>&5
9242   ac_status=$?
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); }; } &&
9245          { ac_try='test -s conftest.$ac_objext'
9246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247   (eval $ac_try) 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); }; }; then
9251   ac_header_compiler=yes
9252 else
9253   echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 ac_header_compiler=no
9257 fi
9258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9260 echo "${ECHO_T}$ac_header_compiler" >&6
9261
9262 # Is the header present?
9263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271 #include <$ac_header>
9272 _ACEOF
9273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } >/dev/null; then
9281   if test -s conftest.err; then
9282     ac_cpp_err=$ac_c_preproc_warn_flag
9283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9284   else
9285     ac_cpp_err=
9286   fi
9287 else
9288   ac_cpp_err=yes
9289 fi
9290 if test -z "$ac_cpp_err"; then
9291   ac_header_preproc=yes
9292 else
9293   echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296   ac_header_preproc=no
9297 fi
9298 rm -f conftest.err conftest.$ac_ext
9299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9300 echo "${ECHO_T}$ac_header_preproc" >&6
9301
9302 # So?  What about this header?
9303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9304   yes:no: )
9305     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9309     ac_header_preproc=yes
9310     ;;
9311   no:yes:* )
9312     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9314     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9315 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9316     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9318     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9319 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9322     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9324     (
9325       cat <<\_ASBOX
9326 ## ----------------------------------- ##
9327 ## Report this to llvmbugs@cs.uiuc.edu ##
9328 ## ----------------------------------- ##
9329 _ASBOX
9330     ) |
9331       sed "s/^/$as_me: WARNING:     /" >&2
9332     ;;
9333 esac
9334 echo "$as_me:$LINENO: checking for $ac_header" >&5
9335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339   eval "$as_ac_Header=\$ac_header_preproc"
9340 fi
9341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9343
9344 fi
9345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346   cat >>confdefs.h <<_ACEOF
9347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348 _ACEOF
9349  break
9350 fi
9351
9352 done
9353
9354
9355
9356
9357 for ac_func in strchr index
9358 do
9359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9360 echo "$as_me:$LINENO: checking for $ac_func" >&5
9361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9362 if eval "test \"\${$as_ac_var+set}\" = set"; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h.  */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h.  */
9371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9373 #define $ac_func innocuous_$ac_func
9374
9375 /* System header to define __stub macros and hopefully few prototypes,
9376     which can conflict with char $ac_func (); below.
9377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9378     <limits.h> exists even on freestanding compilers.  */
9379
9380 #ifdef __STDC__
9381 # include <limits.h>
9382 #else
9383 # include <assert.h>
9384 #endif
9385
9386 #undef $ac_func
9387
9388 /* Override any gcc2 internal prototype to avoid an error.  */
9389 #ifdef __cplusplus
9390 extern "C"
9391 {
9392 #endif
9393 /* We use char because int might match the return type of a gcc2
9394    builtin and then its argument prototype would still apply.  */
9395 char $ac_func ();
9396 /* The GNU C library defines this for functions which it implements
9397     to always fail with ENOSYS.  Some functions are actually named
9398     something starting with __ and the normal name is an alias.  */
9399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9400 choke me
9401 #else
9402 char (*f) () = $ac_func;
9403 #endif
9404 #ifdef __cplusplus
9405 }
9406 #endif
9407
9408 int
9409 main ()
9410 {
9411 return f != $ac_func;
9412   ;
9413   return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418   (eval $ac_link) 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -z "$ac_c_werror_flag"
9426                          || test ! -s conftest.err'
9427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428   (eval $ac_try) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   eval "$as_ac_var=yes"
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 eval "$as_ac_var=no"
9444 fi
9445 rm -f conftest.err conftest.$ac_objext \
9446       conftest$ac_exeext conftest.$ac_ext
9447 fi
9448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9450 if test `eval echo '${'$as_ac_var'}'` = yes; then
9451   cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9453 _ACEOF
9454  break
9455 fi
9456 done
9457
9458
9459
9460 for ac_func in strrchr rindex
9461 do
9462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463 echo "$as_me:$LINENO: checking for $ac_func" >&5
9464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9465 if eval "test \"\${$as_ac_var+set}\" = set"; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9476 #define $ac_func innocuous_$ac_func
9477
9478 /* System header to define __stub macros and hopefully few prototypes,
9479     which can conflict with char $ac_func (); below.
9480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481     <limits.h> exists even on freestanding compilers.  */
9482
9483 #ifdef __STDC__
9484 # include <limits.h>
9485 #else
9486 # include <assert.h>
9487 #endif
9488
9489 #undef $ac_func
9490
9491 /* Override any gcc2 internal prototype to avoid an error.  */
9492 #ifdef __cplusplus
9493 extern "C"
9494 {
9495 #endif
9496 /* We use char because int might match the return type of a gcc2
9497    builtin and then its argument prototype would still apply.  */
9498 char $ac_func ();
9499 /* The GNU C library defines this for functions which it implements
9500     to always fail with ENOSYS.  Some functions are actually named
9501     something starting with __ and the normal name is an alias.  */
9502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9503 choke me
9504 #else
9505 char (*f) () = $ac_func;
9506 #endif
9507 #ifdef __cplusplus
9508 }
9509 #endif
9510
9511 int
9512 main ()
9513 {
9514 return f != $ac_func;
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521   (eval $ac_link) 2>conftest.er1
9522   ac_status=$?
9523   grep -v '^ *+' conftest.er1 >conftest.err
9524   rm -f conftest.er1
9525   cat conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } &&
9528          { ac_try='test -z "$ac_c_werror_flag"
9529                          || test ! -s conftest.err'
9530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531   (eval $ac_try) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); }; } &&
9535          { ac_try='test -s conftest$ac_exeext'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   eval "$as_ac_var=yes"
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 eval "$as_ac_var=no"
9547 fi
9548 rm -f conftest.err conftest.$ac_objext \
9549       conftest$ac_exeext conftest.$ac_ext
9550 fi
9551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9553 if test `eval echo '${'$as_ac_var'}'` = yes; then
9554   cat >>confdefs.h <<_ACEOF
9555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9556 _ACEOF
9557  break
9558 fi
9559 done
9560
9561
9562
9563 for ac_func in memcpy bcopy
9564 do
9565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9566 echo "$as_me:$LINENO: checking for $ac_func" >&5
9567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9568 if eval "test \"\${$as_ac_var+set}\" = set"; then
9569   echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571   cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h.  */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h.  */
9577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9579 #define $ac_func innocuous_$ac_func
9580
9581 /* System header to define __stub macros and hopefully few prototypes,
9582     which can conflict with char $ac_func (); below.
9583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584     <limits.h> exists even on freestanding compilers.  */
9585
9586 #ifdef __STDC__
9587 # include <limits.h>
9588 #else
9589 # include <assert.h>
9590 #endif
9591
9592 #undef $ac_func
9593
9594 /* Override any gcc2 internal prototype to avoid an error.  */
9595 #ifdef __cplusplus
9596 extern "C"
9597 {
9598 #endif
9599 /* We use char because int might match the return type of a gcc2
9600    builtin and then its argument prototype would still apply.  */
9601 char $ac_func ();
9602 /* The GNU C library defines this for functions which it implements
9603     to always fail with ENOSYS.  Some functions are actually named
9604     something starting with __ and the normal name is an alias.  */
9605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9606 choke me
9607 #else
9608 char (*f) () = $ac_func;
9609 #endif
9610 #ifdef __cplusplus
9611 }
9612 #endif
9613
9614 int
9615 main ()
9616 {
9617 return f != $ac_func;
9618   ;
9619   return 0;
9620 }
9621 _ACEOF
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9624   (eval $ac_link) 2>conftest.er1
9625   ac_status=$?
9626   grep -v '^ *+' conftest.er1 >conftest.err
9627   rm -f conftest.er1
9628   cat conftest.err >&5
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } &&
9631          { ac_try='test -z "$ac_c_werror_flag"
9632                          || test ! -s conftest.err'
9633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634   (eval $ac_try) 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; } &&
9638          { ac_try='test -s conftest$ac_exeext'
9639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640   (eval $ac_try) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); }; }; then
9644   eval "$as_ac_var=yes"
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 eval "$as_ac_var=no"
9650 fi
9651 rm -f conftest.err conftest.$ac_objext \
9652       conftest$ac_exeext conftest.$ac_ext
9653 fi
9654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9656 if test `eval echo '${'$as_ac_var'}'` = yes; then
9657   cat >>confdefs.h <<_ACEOF
9658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9659 _ACEOF
9660  break
9661 fi
9662 done
9663
9664
9665
9666 for ac_func in memmove strcmp
9667 do
9668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9669 echo "$as_me:$LINENO: checking for $ac_func" >&5
9670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9671 if eval "test \"\${$as_ac_var+set}\" = set"; then
9672   echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674   cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9682 #define $ac_func innocuous_$ac_func
9683
9684 /* System header to define __stub macros and hopefully few prototypes,
9685     which can conflict with char $ac_func (); below.
9686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687     <limits.h> exists even on freestanding compilers.  */
9688
9689 #ifdef __STDC__
9690 # include <limits.h>
9691 #else
9692 # include <assert.h>
9693 #endif
9694
9695 #undef $ac_func
9696
9697 /* Override any gcc2 internal prototype to avoid an error.  */
9698 #ifdef __cplusplus
9699 extern "C"
9700 {
9701 #endif
9702 /* We use char because int might match the return type of a gcc2
9703    builtin and then its argument prototype would still apply.  */
9704 char $ac_func ();
9705 /* The GNU C library defines this for functions which it implements
9706     to always fail with ENOSYS.  Some functions are actually named
9707     something starting with __ and the normal name is an alias.  */
9708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9709 choke me
9710 #else
9711 char (*f) () = $ac_func;
9712 #endif
9713 #ifdef __cplusplus
9714 }
9715 #endif
9716
9717 int
9718 main ()
9719 {
9720 return f != $ac_func;
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727   (eval $ac_link) 2>conftest.er1
9728   ac_status=$?
9729   grep -v '^ *+' conftest.er1 >conftest.err
9730   rm -f conftest.er1
9731   cat conftest.err >&5
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } &&
9734          { ac_try='test -z "$ac_c_werror_flag"
9735                          || test ! -s conftest.err'
9736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737   (eval $ac_try) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); }; } &&
9741          { ac_try='test -s conftest$ac_exeext'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747   eval "$as_ac_var=yes"
9748 else
9749   echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 eval "$as_ac_var=no"
9753 fi
9754 rm -f conftest.err conftest.$ac_objext \
9755       conftest$ac_exeext conftest.$ac_ext
9756 fi
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9759 if test `eval echo '${'$as_ac_var'}'` = yes; then
9760   cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9762 _ACEOF
9763
9764 fi
9765 done
9766
9767
9768
9769
9770 for ac_func in closedir opendir readdir
9771 do
9772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 echo "$as_me:$LINENO: checking for $ac_func" >&5
9774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775 if eval "test \"\${$as_ac_var+set}\" = set"; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9786 #define $ac_func innocuous_$ac_func
9787
9788 /* System header to define __stub macros and hopefully few prototypes,
9789     which can conflict with char $ac_func (); below.
9790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791     <limits.h> exists even on freestanding compilers.  */
9792
9793 #ifdef __STDC__
9794 # include <limits.h>
9795 #else
9796 # include <assert.h>
9797 #endif
9798
9799 #undef $ac_func
9800
9801 /* Override any gcc2 internal prototype to avoid an error.  */
9802 #ifdef __cplusplus
9803 extern "C"
9804 {
9805 #endif
9806 /* We use char because int might match the return type of a gcc2
9807    builtin and then its argument prototype would still apply.  */
9808 char $ac_func ();
9809 /* The GNU C library defines this for functions which it implements
9810     to always fail with ENOSYS.  Some functions are actually named
9811     something starting with __ and the normal name is an alias.  */
9812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9813 choke me
9814 #else
9815 char (*f) () = $ac_func;
9816 #endif
9817 #ifdef __cplusplus
9818 }
9819 #endif
9820
9821 int
9822 main ()
9823 {
9824 return f != $ac_func;
9825   ;
9826   return 0;
9827 }
9828 _ACEOF
9829 rm -f conftest.$ac_objext conftest$ac_exeext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9831   (eval $ac_link) 2>conftest.er1
9832   ac_status=$?
9833   grep -v '^ *+' conftest.er1 >conftest.err
9834   rm -f conftest.er1
9835   cat conftest.err >&5
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } &&
9838          { ac_try='test -z "$ac_c_werror_flag"
9839                          || test ! -s conftest.err'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; } &&
9845          { ac_try='test -s conftest$ac_exeext'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   eval "$as_ac_var=yes"
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 eval "$as_ac_var=no"
9857 fi
9858 rm -f conftest.err conftest.$ac_objext \
9859       conftest$ac_exeext conftest.$ac_ext
9860 fi
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9863 if test `eval echo '${'$as_ac_var'}'` = yes; then
9864   cat >>confdefs.h <<_ACEOF
9865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9866 _ACEOF
9867
9868 fi
9869 done
9870
9871
9872 # Check whether --enable-shared or --disable-shared was given.
9873 if test "${enable_shared+set}" = set; then
9874   enableval="$enable_shared"
9875   p=${PACKAGE-default}
9876     case $enableval in
9877     yes) enable_shared=yes ;;
9878     no) enable_shared=no ;;
9879     *)
9880       enable_shared=no
9881       # Look at the argument we got.  We use all the common list separators.
9882       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9883       for pkg in $enableval; do
9884         IFS="$lt_save_ifs"
9885         if test "X$pkg" = "X$p"; then
9886           enable_shared=yes
9887         fi
9888       done
9889       IFS="$lt_save_ifs"
9890       ;;
9891     esac
9892 else
9893   enable_shared=yes
9894 fi;
9895
9896 # Check whether --enable-static or --disable-static was given.
9897 if test "${enable_static+set}" = set; then
9898   enableval="$enable_static"
9899   p=${PACKAGE-default}
9900     case $enableval in
9901     yes) enable_static=yes ;;
9902     no) enable_static=no ;;
9903     *)
9904      enable_static=no
9905       # Look at the argument we got.  We use all the common list separators.
9906       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9907       for pkg in $enableval; do
9908         IFS="$lt_save_ifs"
9909         if test "X$pkg" = "X$p"; then
9910           enable_static=yes
9911         fi
9912       done
9913       IFS="$lt_save_ifs"
9914       ;;
9915     esac
9916 else
9917   enable_static=yes
9918 fi;
9919
9920 # Check whether --enable-fast-install or --disable-fast-install was given.
9921 if test "${enable_fast_install+set}" = set; then
9922   enableval="$enable_fast_install"
9923   p=${PACKAGE-default}
9924     case $enableval in
9925     yes) enable_fast_install=yes ;;
9926     no) enable_fast_install=no ;;
9927     *)
9928       enable_fast_install=no
9929       # Look at the argument we got.  We use all the common list separators.
9930       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9931       for pkg in $enableval; do
9932         IFS="$lt_save_ifs"
9933         if test "X$pkg" = "X$p"; then
9934           enable_fast_install=yes
9935         fi
9936       done
9937       IFS="$lt_save_ifs"
9938       ;;
9939     esac
9940 else
9941   enable_fast_install=yes
9942 fi;
9943
9944 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9945 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9946 if test "${lt_cv_path_SED+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   # Loop through the user's path and test for sed and gsed.
9950 # Then use that list of sed's as ones to test for truncation.
9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9953 do
9954   IFS=$as_save_IFS
9955   test -z "$as_dir" && as_dir=.
9956   for lt_ac_prog in sed gsed; do
9957     for ac_exec_ext in '' $ac_executable_extensions; do
9958       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9959         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9960       fi
9961     done
9962   done
9963 done
9964 lt_ac_max=0
9965 lt_ac_count=0
9966 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9967 # along with /bin/sed that truncates output.
9968 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9969   test ! -f $lt_ac_sed && break
9970   cat /dev/null > conftest.in
9971   lt_ac_count=0
9972   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9973   # Check for GNU sed and select it if it is found.
9974   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9975     lt_cv_path_SED=$lt_ac_sed
9976     break
9977   fi
9978   while true; do
9979     cat conftest.in conftest.in >conftest.tmp
9980     mv conftest.tmp conftest.in
9981     cp conftest.in conftest.nl
9982     echo >>conftest.nl
9983     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9984     cmp -s conftest.out conftest.nl || break
9985     # 10000 chars as input seems more than enough
9986     test $lt_ac_count -gt 10 && break
9987     lt_ac_count=`expr $lt_ac_count + 1`
9988     if test $lt_ac_count -gt $lt_ac_max; then
9989       lt_ac_max=$lt_ac_count
9990       lt_cv_path_SED=$lt_ac_sed
9991     fi
9992   done
9993 done
9994
9995 fi
9996
9997 SED=$lt_cv_path_SED
9998 echo "$as_me:$LINENO: result: $SED" >&5
9999 echo "${ECHO_T}$SED" >&6
10000
10001
10002 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10003 if test "${with_gnu_ld+set}" = set; then
10004   withval="$with_gnu_ld"
10005   test "$withval" = no || with_gnu_ld=yes
10006 else
10007   with_gnu_ld=no
10008 fi;
10009 ac_prog=ld
10010 if test "$GCC" = yes; then
10011   # Check if gcc -print-prog-name=ld gives a path.
10012   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10013 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10014   case $host in
10015   *-*-mingw*)
10016     # gcc leaves a trailing carriage return which upsets mingw
10017     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10018   *)
10019     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10020   esac
10021   case $ac_prog in
10022     # Accept absolute paths.
10023     [\\/]* | ?:[\\/]*)
10024       re_direlt='/[^/][^/]*/\.\./'
10025       # Canonicalize the pathname of ld
10026       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10027       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10028         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10029       done
10030       test -z "$LD" && LD="$ac_prog"
10031       ;;
10032   "")
10033     # If it fails, then pretend we aren't using GCC.
10034     ac_prog=ld
10035     ;;
10036   *)
10037     # If it is relative, then search for the first ld in PATH.
10038     with_gnu_ld=unknown
10039     ;;
10040   esac
10041 elif test "$with_gnu_ld" = yes; then
10042   echo "$as_me:$LINENO: checking for GNU ld" >&5
10043 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10044 else
10045   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10046 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10047 fi
10048 if test "${lt_cv_path_LD+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   if test -z "$LD"; then
10052   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10053   for ac_dir in $PATH; do
10054     IFS="$lt_save_ifs"
10055     test -z "$ac_dir" && ac_dir=.
10056     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10057       lt_cv_path_LD="$ac_dir/$ac_prog"
10058       # Check to see if the program is GNU ld.  I'd rather use --version,
10059       # but apparently some GNU ld's only accept -v.
10060       # Break only if it was the GNU/non-GNU ld that we prefer.
10061       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10062       *GNU* | *'with BFD'*)
10063         test "$with_gnu_ld" != no && break
10064         ;;
10065       *)
10066         test "$with_gnu_ld" != yes && break
10067         ;;
10068       esac
10069     fi
10070   done
10071   IFS="$lt_save_ifs"
10072 else
10073   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10074 fi
10075 fi
10076
10077 LD="$lt_cv_path_LD"
10078 if test -n "$LD"; then
10079   echo "$as_me:$LINENO: result: $LD" >&5
10080 echo "${ECHO_T}$LD" >&6
10081 else
10082   echo "$as_me:$LINENO: result: no" >&5
10083 echo "${ECHO_T}no" >&6
10084 fi
10085 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10086 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10087    { (exit 1); exit 1; }; }
10088 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10089 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10090 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10094 case `$LD -v 2>&1 </dev/null` in
10095 *GNU* | *'with BFD'*)
10096   lt_cv_prog_gnu_ld=yes
10097   ;;
10098 *)
10099   lt_cv_prog_gnu_ld=no
10100   ;;
10101 esac
10102 fi
10103 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10104 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10105 with_gnu_ld=$lt_cv_prog_gnu_ld
10106
10107
10108 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10109 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10110 if test "${lt_cv_ld_reload_flag+set}" = set; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   lt_cv_ld_reload_flag='-r'
10114 fi
10115 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10116 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10117 reload_flag=$lt_cv_ld_reload_flag
10118 case $reload_flag in
10119 "" | " "*) ;;
10120 *) reload_flag=" $reload_flag" ;;
10121 esac
10122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10123 case $host_os in
10124   darwin*)
10125     if test "$GCC" = yes; then
10126       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10127     else
10128       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10129     fi
10130     ;;
10131 esac
10132
10133 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10134 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10135 if test "${lt_cv_deplibs_check_method+set}" = set; then
10136   echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138   lt_cv_file_magic_cmd='$MAGIC_CMD'
10139 lt_cv_file_magic_test_file=
10140 lt_cv_deplibs_check_method='unknown'
10141 # Need to set the preceding variable on all platforms that support
10142 # interlibrary dependencies.
10143 # 'none' -- dependencies not supported.
10144 # `unknown' -- same as none, but documents that we really don't know.
10145 # 'pass_all' -- all dependencies passed with no checks.
10146 # 'test_compile' -- check by making test program.
10147 # 'file_magic [[regex]]' -- check by looking for files in library path
10148 # which responds to the $file_magic_cmd with a given extended regex.
10149 # If you have `file' or equivalent on your system and you're not sure
10150 # whether `pass_all' will *always* work, you probably want this one.
10151
10152 case $host_os in
10153 aix4* | aix5*)
10154   lt_cv_deplibs_check_method=pass_all
10155   ;;
10156
10157 beos*)
10158   lt_cv_deplibs_check_method=pass_all
10159   ;;
10160
10161 bsdi[45]*)
10162   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10163   lt_cv_file_magic_cmd='/usr/bin/file -L'
10164   lt_cv_file_magic_test_file=/shlib/libc.so
10165   ;;
10166
10167 cygwin*)
10168   # func_win32_libid is a shell function defined in ltmain.sh
10169   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10170   lt_cv_file_magic_cmd='func_win32_libid'
10171   ;;
10172
10173 mingw* | pw32*)
10174   # Base MSYS/MinGW do not provide the 'file' command needed by
10175   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10176   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10177   lt_cv_file_magic_cmd='$OBJDUMP -f'
10178   ;;
10179
10180 darwin* | rhapsody*)
10181   lt_cv_deplibs_check_method=pass_all
10182   ;;
10183
10184 freebsd* | kfreebsd*-gnu)
10185   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10186     case $host_cpu in
10187     i*86 )
10188       # Not sure whether the presence of OpenBSD here was a mistake.
10189       # Let's accept both of them until this is cleared up.
10190       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10191       lt_cv_file_magic_cmd=/usr/bin/file
10192       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10193       ;;
10194     esac
10195   else
10196     lt_cv_deplibs_check_method=pass_all
10197   fi
10198   ;;
10199
10200 gnu*)
10201   lt_cv_deplibs_check_method=pass_all
10202   ;;
10203
10204 hpux10.20* | hpux11*)
10205   lt_cv_file_magic_cmd=/usr/bin/file
10206   case "$host_cpu" in
10207   ia64*)
10208     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10209     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10210     ;;
10211   hppa*64*)
10212     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10213     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10214     ;;
10215   *)
10216     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10217     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10218     ;;
10219   esac
10220   ;;
10221
10222 irix5* | irix6* | nonstopux*)
10223   case $LD in
10224   *-32|*"-32 ") libmagic=32-bit;;
10225   *-n32|*"-n32 ") libmagic=N32;;
10226   *-64|*"-64 ") libmagic=64-bit;;
10227   *) libmagic=never-match;;
10228   esac
10229   lt_cv_deplibs_check_method=pass_all
10230   ;;
10231
10232 # This must be Linux ELF.
10233 linux*)
10234   lt_cv_deplibs_check_method=pass_all
10235   ;;
10236
10237 netbsd*)
10238   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10239     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10240   else
10241     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10242   fi
10243   ;;
10244
10245 newos6*)
10246   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10247   lt_cv_file_magic_cmd=/usr/bin/file
10248   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10249   ;;
10250
10251 nto-qnx*)
10252   lt_cv_deplibs_check_method=unknown
10253   ;;
10254
10255 openbsd*)
10256   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10257     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10258   else
10259     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10260   fi
10261   ;;
10262
10263 osf3* | osf4* | osf5*)
10264   lt_cv_deplibs_check_method=pass_all
10265   ;;
10266
10267 sco3.2v5*)
10268   lt_cv_deplibs_check_method=pass_all
10269   ;;
10270
10271 solaris*)
10272   lt_cv_deplibs_check_method=pass_all
10273   ;;
10274
10275 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10276   case $host_vendor in
10277   motorola)
10278     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10279     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10280     ;;
10281   ncr)
10282     lt_cv_deplibs_check_method=pass_all
10283     ;;
10284   sequent)
10285     lt_cv_file_magic_cmd='/bin/file'
10286     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10287     ;;
10288   sni)
10289     lt_cv_file_magic_cmd='/bin/file'
10290     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10291     lt_cv_file_magic_test_file=/lib/libc.so
10292     ;;
10293   siemens)
10294     lt_cv_deplibs_check_method=pass_all
10295     ;;
10296   esac
10297   ;;
10298
10299 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10300   lt_cv_deplibs_check_method=pass_all
10301   ;;
10302 esac
10303
10304 fi
10305 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10306 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10307 file_magic_cmd=$lt_cv_file_magic_cmd
10308 deplibs_check_method=$lt_cv_deplibs_check_method
10309 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10310
10311
10312
10313 # If no C compiler was specified, use CC.
10314 LTCC=${LTCC-"$CC"}
10315
10316 # Allow CC to be a program name with arguments.
10317 compiler=$CC
10318
10319 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10320 if test "${enable_libtool_lock+set}" = set; then
10321   enableval="$enable_libtool_lock"
10322
10323 fi;
10324 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10325
10326 # Some flags need to be propagated to the compiler or linker for good
10327 # libtool support.
10328 case $host in
10329 ia64-*-hpux*)
10330   # Find out which ABI we are using.
10331   echo 'int i;' > conftest.$ac_ext
10332   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333   (eval $ac_compile) 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); }; then
10337     case `/usr/bin/file conftest.$ac_objext` in
10338     *ELF-32*)
10339       HPUX_IA64_MODE="32"
10340       ;;
10341     *ELF-64*)
10342       HPUX_IA64_MODE="64"
10343       ;;
10344     esac
10345   fi
10346   rm -rf conftest*
10347   ;;
10348 *-*-irix6*)
10349   # Find out which ABI we are using.
10350   echo '#line 10350 "configure"' > conftest.$ac_ext
10351   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352   (eval $ac_compile) 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); }; then
10356    if test "$lt_cv_prog_gnu_ld" = yes; then
10357     case `/usr/bin/file conftest.$ac_objext` in
10358     *32-bit*)
10359       LD="${LD-ld} -melf32bsmip"
10360       ;;
10361     *N32*)
10362       LD="${LD-ld} -melf32bmipn32"
10363       ;;
10364     *64-bit*)
10365       LD="${LD-ld} -melf64bmip"
10366       ;;
10367     esac
10368    else
10369     case `/usr/bin/file conftest.$ac_objext` in
10370     *32-bit*)
10371       LD="${LD-ld} -32"
10372       ;;
10373     *N32*)
10374       LD="${LD-ld} -n32"
10375       ;;
10376     *64-bit*)
10377       LD="${LD-ld} -64"
10378       ;;
10379     esac
10380    fi
10381   fi
10382   rm -rf conftest*
10383   ;;
10384
10385 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10386   # Find out which ABI we are using.
10387   echo 'int i;' > conftest.$ac_ext
10388   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389   (eval $ac_compile) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; then
10393     case "`/usr/bin/file conftest.o`" in
10394     *32-bit*)
10395       case $host in
10396         x86_64-*linux*)
10397           LD="${LD-ld} -m elf_i386"
10398           ;;
10399         ppc64-*linux*|powerpc64-*linux*)
10400           LD="${LD-ld} -m elf32ppclinux"
10401           ;;
10402         s390x-*linux*)
10403           LD="${LD-ld} -m elf_s390"
10404           ;;
10405         sparc64-*linux*)
10406           LD="${LD-ld} -m elf32_sparc"
10407           ;;
10408       esac
10409       ;;
10410     *64-bit*)
10411       case $host in
10412         x86_64-*linux*)
10413           LD="${LD-ld} -m elf_x86_64"
10414           ;;
10415         ppc*-*linux*|powerpc*-*linux*)
10416           LD="${LD-ld} -m elf64ppc"
10417           ;;
10418         s390*-*linux*)
10419           LD="${LD-ld} -m elf64_s390"
10420           ;;
10421         sparc*-*linux*)
10422           LD="${LD-ld} -m elf64_sparc"
10423           ;;
10424       esac
10425       ;;
10426     esac
10427   fi
10428   rm -rf conftest*
10429   ;;
10430
10431 *-*-sco3.2v5*)
10432   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10433   SAVE_CFLAGS="$CFLAGS"
10434   CFLAGS="$CFLAGS -belf"
10435   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10436 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10437 if test "${lt_cv_cc_needs_belf+set}" = set; then
10438   echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440   ac_ext=c
10441 ac_cpp='$CPP $CPPFLAGS'
10442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10445
10446      cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h.  */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h.  */
10452
10453 _ACEOF
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456   (eval $ac_link) 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } &&
10463          { ac_try='test -z "$ac_c_werror_flag"
10464                          || test ! -s conftest.err'
10465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466   (eval $ac_try) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; } &&
10470          { ac_try='test -s conftest$ac_exeext'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; }; then
10476   lt_cv_cc_needs_belf=yes
10477 else
10478   echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481 lt_cv_cc_needs_belf=no
10482 fi
10483 rm -f conftest.err conftest.$ac_objext \
10484       conftest$ac_exeext conftest.$ac_ext
10485      ac_ext=c
10486 ac_cpp='$CPP $CPPFLAGS'
10487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10490
10491 fi
10492 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10493 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10494   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10495     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10496     CFLAGS="$SAVE_CFLAGS"
10497   fi
10498   ;;
10499
10500 esac
10501
10502 need_locks="$enable_libtool_lock"
10503
10504
10505
10506
10507 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10508     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10509     (test "X$CXX" != "Xg++"))) ; then
10510   ac_ext=cc
10511 ac_cpp='$CXXCPP $CPPFLAGS'
10512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10515 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10516 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10517 if test -z "$CXXCPP"; then
10518   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521       # Double quotes because CXXCPP needs to be expanded
10522     for CXXCPP in "$CXX -E" "/lib/cpp"
10523     do
10524       ac_preproc_ok=false
10525 for ac_cxx_preproc_warn_flag in '' yes
10526 do
10527   # Use a header file that comes with gcc, so configuring glibc
10528   # with a fresh cross-compiler works.
10529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10530   # <limits.h> exists even on freestanding compilers.
10531   # On the NeXT, cc -E runs the code through the compiler's parser,
10532   # not just through cpp. "Syntax error" is here to catch this case.
10533   cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h.  */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h.  */
10539 #ifdef __STDC__
10540 # include <limits.h>
10541 #else
10542 # include <assert.h>
10543 #endif
10544                      Syntax error
10545 _ACEOF
10546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10548   ac_status=$?
10549   grep -v '^ *+' conftest.er1 >conftest.err
10550   rm -f conftest.er1
10551   cat conftest.err >&5
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); } >/dev/null; then
10554   if test -s conftest.err; then
10555     ac_cpp_err=$ac_cxx_preproc_warn_flag
10556     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10557   else
10558     ac_cpp_err=
10559   fi
10560 else
10561   ac_cpp_err=yes
10562 fi
10563 if test -z "$ac_cpp_err"; then
10564   :
10565 else
10566   echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569   # Broken: fails on valid input.
10570 continue
10571 fi
10572 rm -f conftest.err conftest.$ac_ext
10573
10574   # OK, works on sane cases.  Now check whether non-existent headers
10575   # can be detected and how.
10576   cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 #include <ac_nonexistent.h>
10583 _ACEOF
10584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10586   ac_status=$?
10587   grep -v '^ *+' conftest.er1 >conftest.err
10588   rm -f conftest.er1
10589   cat conftest.err >&5
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } >/dev/null; then
10592   if test -s conftest.err; then
10593     ac_cpp_err=$ac_cxx_preproc_warn_flag
10594     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10595   else
10596     ac_cpp_err=
10597   fi
10598 else
10599   ac_cpp_err=yes
10600 fi
10601 if test -z "$ac_cpp_err"; then
10602   # Broken: success on invalid input.
10603 continue
10604 else
10605   echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608   # Passes both tests.
10609 ac_preproc_ok=:
10610 break
10611 fi
10612 rm -f conftest.err conftest.$ac_ext
10613
10614 done
10615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10616 rm -f conftest.err conftest.$ac_ext
10617 if $ac_preproc_ok; then
10618   break
10619 fi
10620
10621     done
10622     ac_cv_prog_CXXCPP=$CXXCPP
10623
10624 fi
10625   CXXCPP=$ac_cv_prog_CXXCPP
10626 else
10627   ac_cv_prog_CXXCPP=$CXXCPP
10628 fi
10629 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10630 echo "${ECHO_T}$CXXCPP" >&6
10631 ac_preproc_ok=false
10632 for ac_cxx_preproc_warn_flag in '' yes
10633 do
10634   # Use a header file that comes with gcc, so configuring glibc
10635   # with a fresh cross-compiler works.
10636   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10637   # <limits.h> exists even on freestanding compilers.
10638   # On the NeXT, cc -E runs the code through the compiler's parser,
10639   # not just through cpp. "Syntax error" is here to catch this case.
10640   cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646 #ifdef __STDC__
10647 # include <limits.h>
10648 #else
10649 # include <assert.h>
10650 #endif
10651                      Syntax error
10652 _ACEOF
10653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10655   ac_status=$?
10656   grep -v '^ *+' conftest.er1 >conftest.err
10657   rm -f conftest.er1
10658   cat conftest.err >&5
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); } >/dev/null; then
10661   if test -s conftest.err; then
10662     ac_cpp_err=$ac_cxx_preproc_warn_flag
10663     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10664   else
10665     ac_cpp_err=
10666   fi
10667 else
10668   ac_cpp_err=yes
10669 fi
10670 if test -z "$ac_cpp_err"; then
10671   :
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676   # Broken: fails on valid input.
10677 continue
10678 fi
10679 rm -f conftest.err conftest.$ac_ext
10680
10681   # OK, works on sane cases.  Now check whether non-existent headers
10682   # can be detected and how.
10683   cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h.  */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h.  */
10689 #include <ac_nonexistent.h>
10690 _ACEOF
10691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } >/dev/null; then
10699   if test -s conftest.err; then
10700     ac_cpp_err=$ac_cxx_preproc_warn_flag
10701     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10702   else
10703     ac_cpp_err=
10704   fi
10705 else
10706   ac_cpp_err=yes
10707 fi
10708 if test -z "$ac_cpp_err"; then
10709   # Broken: success on invalid input.
10710 continue
10711 else
10712   echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715   # Passes both tests.
10716 ac_preproc_ok=:
10717 break
10718 fi
10719 rm -f conftest.err conftest.$ac_ext
10720
10721 done
10722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10723 rm -f conftest.err conftest.$ac_ext
10724 if $ac_preproc_ok; then
10725   :
10726 else
10727   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10728 See \`config.log' for more details." >&5
10729 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10730 See \`config.log' for more details." >&2;}
10731    { (exit 1); exit 1; }; }
10732 fi
10733
10734 ac_ext=cc
10735 ac_cpp='$CXXCPP $CPPFLAGS'
10736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10739
10740 fi
10741
10742
10743 ac_ext=f
10744 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10745 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10746 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10747 if test -n "$ac_tool_prefix"; then
10748   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10749   do
10750     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10752 echo "$as_me:$LINENO: checking for $ac_word" >&5
10753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10754 if test "${ac_cv_prog_F77+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   if test -n "$F77"; then
10758   ac_cv_prog_F77="$F77" # Let the user override the test.
10759 else
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10762 do
10763   IFS=$as_save_IFS
10764   test -z "$as_dir" && as_dir=.
10765   for ac_exec_ext in '' $ac_executable_extensions; do
10766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10769     break 2
10770   fi
10771 done
10772 done
10773
10774 fi
10775 fi
10776 F77=$ac_cv_prog_F77
10777 if test -n "$F77"; then
10778   echo "$as_me:$LINENO: result: $F77" >&5
10779 echo "${ECHO_T}$F77" >&6
10780 else
10781   echo "$as_me:$LINENO: result: no" >&5
10782 echo "${ECHO_T}no" >&6
10783 fi
10784
10785     test -n "$F77" && break
10786   done
10787 fi
10788 if test -z "$F77"; then
10789   ac_ct_F77=$F77
10790   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10791 do
10792   # Extract the first word of "$ac_prog", so it can be a program name with args.
10793 set dummy $ac_prog; ac_word=$2
10794 echo "$as_me:$LINENO: checking for $ac_word" >&5
10795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799   if test -n "$ac_ct_F77"; then
10800   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10801 else
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10804 do
10805   IFS=$as_save_IFS
10806   test -z "$as_dir" && as_dir=.
10807   for ac_exec_ext in '' $ac_executable_extensions; do
10808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809     ac_cv_prog_ac_ct_F77="$ac_prog"
10810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10811     break 2
10812   fi
10813 done
10814 done
10815
10816 fi
10817 fi
10818 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10819 if test -n "$ac_ct_F77"; then
10820   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10821 echo "${ECHO_T}$ac_ct_F77" >&6
10822 else
10823   echo "$as_me:$LINENO: result: no" >&5
10824 echo "${ECHO_T}no" >&6
10825 fi
10826
10827   test -n "$ac_ct_F77" && break
10828 done
10829
10830   F77=$ac_ct_F77
10831 fi
10832
10833
10834 # Provide some information about the compiler.
10835 echo "$as_me:10835:" \
10836      "checking for Fortran 77 compiler version" >&5
10837 ac_compiler=`set X $ac_compile; echo $2`
10838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10839   (eval $ac_compiler --version </dev/null >&5) 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); }
10843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10844   (eval $ac_compiler -v </dev/null >&5) 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }
10848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10849   (eval $ac_compiler -V </dev/null >&5) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }
10853 rm -f a.out
10854
10855 # If we don't use `.F' as extension, the preprocessor is not run on the
10856 # input file.  (Note that this only needs to work for GNU compilers.)
10857 ac_save_ext=$ac_ext
10858 ac_ext=F
10859 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10860 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10861 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   cat >conftest.$ac_ext <<_ACEOF
10865       program main
10866 #ifndef __GNUC__
10867        choke me
10868 #endif
10869
10870       end
10871 _ACEOF
10872 rm -f conftest.$ac_objext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874   (eval $ac_compile) 2>conftest.er1
10875   ac_status=$?
10876   grep -v '^ *+' conftest.er1 >conftest.err
10877   rm -f conftest.er1
10878   cat conftest.err >&5
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); } &&
10881          { ac_try='test -z "$ac_f77_werror_flag"
10882                          || test ! -s conftest.err'
10883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884   (eval $ac_try) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; } &&
10888          { ac_try='test -s conftest.$ac_objext'
10889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; }; then
10894   ac_compiler_gnu=yes
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899 ac_compiler_gnu=no
10900 fi
10901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10902 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10903
10904 fi
10905 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10906 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10907 ac_ext=$ac_save_ext
10908 ac_test_FFLAGS=${FFLAGS+set}
10909 ac_save_FFLAGS=$FFLAGS
10910 FFLAGS=
10911 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10912 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10913 if test "${ac_cv_prog_f77_g+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   FFLAGS=-g
10917 cat >conftest.$ac_ext <<_ACEOF
10918       program main
10919
10920       end
10921 _ACEOF
10922 rm -f conftest.$ac_objext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924   (eval $ac_compile) 2>conftest.er1
10925   ac_status=$?
10926   grep -v '^ *+' conftest.er1 >conftest.err
10927   rm -f conftest.er1
10928   cat conftest.err >&5
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -z "$ac_f77_werror_flag"
10932                          || test ! -s conftest.err'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; } &&
10938          { ac_try='test -s conftest.$ac_objext'
10939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940   (eval $ac_try) 2>&5
10941   ac_status=$?
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); }; }; then
10944   ac_cv_prog_f77_g=yes
10945 else
10946   echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 ac_cv_prog_f77_g=no
10950 fi
10951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10952
10953 fi
10954 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10955 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10956 if test "$ac_test_FFLAGS" = set; then
10957   FFLAGS=$ac_save_FFLAGS
10958 elif test $ac_cv_prog_f77_g = yes; then
10959   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10960     FFLAGS="-g -O2"
10961   else
10962     FFLAGS="-g"
10963   fi
10964 else
10965   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10966     FFLAGS="-O2"
10967   else
10968     FFLAGS=
10969   fi
10970 fi
10971
10972 G77=`test $ac_compiler_gnu = yes && echo yes`
10973 ac_ext=c
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10978
10979
10980
10981 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10982
10983 # find the maximum length of command line arguments
10984 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10985 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10986 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989     i=0
10990   teststring="ABCD"
10991
10992   case $build_os in
10993   msdosdjgpp*)
10994     # On DJGPP, this test can blow up pretty badly due to problems in libc
10995     # (any single argument exceeding 2000 bytes causes a buffer overrun
10996     # during glob expansion).  Even if it were fixed, the result of this
10997     # check would be larger than it should be.
10998     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10999     ;;
11000
11001   gnu*)
11002     # Under GNU Hurd, this test is not required because there is
11003     # no limit to the length of command line arguments.
11004     # Libtool will interpret -1 as no limit whatsoever
11005     lt_cv_sys_max_cmd_len=-1;
11006     ;;
11007
11008   cygwin* | mingw*)
11009     # On Win9x/ME, this test blows up -- it succeeds, but takes
11010     # about 5 minutes as the teststring grows exponentially.
11011     # Worse, since 9x/ME are not pre-emptively multitasking,
11012     # you end up with a "frozen" computer, even though with patience
11013     # the test eventually succeeds (with a max line length of 256k).
11014     # Instead, let's just punt: use the minimum linelength reported by
11015     # all of the supported platforms: 8192 (on NT/2K/XP).
11016     lt_cv_sys_max_cmd_len=8192;
11017     ;;
11018
11019   amigaos*)
11020     # On AmigaOS with pdksh, this test takes hours, literally.
11021     # So we just punt and use a minimum line length of 8192.
11022     lt_cv_sys_max_cmd_len=8192;
11023     ;;
11024
11025   netbsd* | freebsd* | openbsd* | darwin* )
11026     # This has been around since 386BSD, at least.  Likely further.
11027     if test -x /sbin/sysctl; then
11028       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11029     elif test -x /usr/sbin/sysctl; then
11030       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11031     else
11032       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11033     fi
11034     # And add a safety zone
11035     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11036     ;;
11037
11038  *)
11039     # If test is not a shell built-in, we'll probably end up computing a
11040     # maximum length that is only half of the actual maximum length, but
11041     # we can't tell.
11042     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11043     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11044                = "XX$teststring") >/dev/null 2>&1 &&
11045             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11046             lt_cv_sys_max_cmd_len=$new_result &&
11047             test $i != 17 # 1/2 MB should be enough
11048     do
11049       i=`expr $i + 1`
11050       teststring=$teststring$teststring
11051     done
11052     teststring=
11053     # Add a significant safety factor because C++ compilers can tack on massive
11054     # amounts of additional arguments before passing them to the linker.
11055     # It appears as though 1/2 is a usable value.
11056     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11057     ;;
11058   esac
11059
11060 fi
11061
11062 if test -n $lt_cv_sys_max_cmd_len ; then
11063   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11064 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11065 else
11066   echo "$as_me:$LINENO: result: none" >&5
11067 echo "${ECHO_T}none" >&6
11068 fi
11069
11070
11071
11072
11073 # Check for command to grab the raw symbol name followed by C symbol from nm.
11074 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11075 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11076 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11077   echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079
11080 # These are sane defaults that work on at least a few old systems.
11081 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11082
11083 # Character class describing NM global symbol codes.
11084 symcode='[BCDEGRST]'
11085
11086 # Regexp to match symbols that can be accessed directly from C.
11087 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11088
11089 # Transform the above into a raw symbol and a C symbol.
11090 symxfrm='\1 \2\3 \3'
11091
11092 # Transform an extracted symbol line into a proper C declaration
11093 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11094
11095 # Transform an extracted symbol line into symbol name and symbol address
11096 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
11097
11098 # Define system-specific variables.
11099 case $host_os in
11100 aix*)
11101   symcode='[BCDT]'
11102   ;;
11103 cygwin* | mingw* | pw32*)
11104   symcode='[ABCDGISTW]'
11105   ;;
11106 hpux*) # Its linker distinguishes data from code symbols
11107   if test "$host_cpu" = ia64; then
11108     symcode='[ABCDEGRST]'
11109   fi
11110   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11111   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
11112   ;;
11113 linux*)
11114   if test "$host_cpu" = ia64; then
11115     symcode='[ABCDGIRSTW]'
11116     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11117     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
11118   fi
11119   ;;
11120 irix* | nonstopux*)
11121   symcode='[BCDEGRST]'
11122   ;;
11123 osf*)
11124   symcode='[BCDEGQRST]'
11125   ;;
11126 solaris* | sysv5*)
11127   symcode='[BDRT]'
11128   ;;
11129 sysv4)
11130   symcode='[DFNSTU]'
11131   ;;
11132 esac
11133
11134 # Handle CRLF in mingw tool chain
11135 opt_cr=
11136 case $build_os in
11137 mingw*)
11138   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11139   ;;
11140 esac
11141
11142 # If we're using GNU nm, then use its standard symbol codes.
11143 case `$NM -V 2>&1` in
11144 *GNU* | *'with BFD'*)
11145   symcode='[ABCDGIRSTW]' ;;
11146 esac
11147
11148 # Try without a prefix undercore, then with it.
11149 for ac_symprfx in "" "_"; do
11150
11151   # Write the raw and C identifiers.
11152   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11153
11154   # Check to see that the pipe works correctly.
11155   pipe_works=no
11156
11157   rm -f conftest*
11158   cat > conftest.$ac_ext <<EOF
11159 #ifdef __cplusplus
11160 extern "C" {
11161 #endif
11162 char nm_test_var;
11163 void nm_test_func(){}
11164 #ifdef __cplusplus
11165 }
11166 #endif
11167 int main(){nm_test_var='a';nm_test_func();return(0);}
11168 EOF
11169
11170   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171   (eval $ac_compile) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; then
11175     # Now try to grab the symbols.
11176     nlist=conftest.nm
11177     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11178   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); } && test -s "$nlist"; then
11182       # Try sorting and uniquifying the output.
11183       if sort "$nlist" | uniq > "$nlist"T; then
11184         mv -f "$nlist"T "$nlist"
11185       else
11186         rm -f "$nlist"T
11187       fi
11188
11189       # Make sure that we snagged all the symbols we need.
11190       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11191         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11192           cat <<EOF > conftest.$ac_ext
11193 #ifdef __cplusplus
11194 extern "C" {
11195 #endif
11196
11197 EOF
11198           # Now generate the symbol file.
11199           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11200
11201           cat <<EOF >> conftest.$ac_ext
11202 #if defined (__STDC__) && __STDC__
11203 # define lt_ptr_t void *
11204 #else
11205 # define lt_ptr_t char *
11206 # define const
11207 #endif
11208
11209 /* The mapping between symbol names and symbols. */
11210 const struct {
11211   const char *name;
11212   lt_ptr_t address;
11213 }
11214 lt_preloaded_symbols[] =
11215 {
11216 EOF
11217           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11218           cat <<\EOF >> conftest.$ac_ext
11219   {0, (lt_ptr_t) 0}
11220 };
11221
11222 #ifdef __cplusplus
11223 }
11224 #endif
11225 EOF
11226           # Now try linking the two files.
11227           mv conftest.$ac_objext conftstm.$ac_objext
11228           lt_save_LIBS="$LIBS"
11229           lt_save_CFLAGS="$CFLAGS"
11230           LIBS="conftstm.$ac_objext"
11231           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11232           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233   (eval $ac_link) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11237             pipe_works=yes
11238           fi
11239           LIBS="$lt_save_LIBS"
11240           CFLAGS="$lt_save_CFLAGS"
11241         else
11242           echo "cannot find nm_test_func in $nlist" >&5
11243         fi
11244       else
11245         echo "cannot find nm_test_var in $nlist" >&5
11246       fi
11247     else
11248       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11249     fi
11250   else
11251     echo "$progname: failed program was:" >&5
11252     cat conftest.$ac_ext >&5
11253   fi
11254   rm -f conftest* conftst*
11255
11256   # Do not use the global_symbol_pipe unless it works.
11257   if test "$pipe_works" = yes; then
11258     break
11259   else
11260     lt_cv_sys_global_symbol_pipe=
11261   fi
11262 done
11263
11264 fi
11265
11266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11267   lt_cv_sys_global_symbol_to_cdecl=
11268 fi
11269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11270   echo "$as_me:$LINENO: result: failed" >&5
11271 echo "${ECHO_T}failed" >&6
11272 else
11273   echo "$as_me:$LINENO: result: ok" >&5
11274 echo "${ECHO_T}ok" >&6
11275 fi
11276
11277 echo "$as_me:$LINENO: checking for objdir" >&5
11278 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11279 if test "${lt_cv_objdir+set}" = set; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   rm -f .libs 2>/dev/null
11283 mkdir .libs 2>/dev/null
11284 if test -d .libs; then
11285   lt_cv_objdir=.libs
11286 else
11287   # MS-DOS does not allow filenames that begin with a dot.
11288   lt_cv_objdir=_libs
11289 fi
11290 rmdir .libs 2>/dev/null
11291 fi
11292 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11293 echo "${ECHO_T}$lt_cv_objdir" >&6
11294 objdir=$lt_cv_objdir
11295
11296
11297
11298
11299
11300 case $host_os in
11301 aix3*)
11302   # AIX sometimes has problems with the GCC collect2 program.  For some
11303   # reason, if we set the COLLECT_NAMES environment variable, the problems
11304   # vanish in a puff of smoke.
11305   if test "X${COLLECT_NAMES+set}" != Xset; then
11306     COLLECT_NAMES=
11307     export COLLECT_NAMES
11308   fi
11309   ;;
11310 esac
11311
11312 # Sed substitution that helps us do robust quoting.  It backslashifies
11313 # metacharacters that are still active within double-quoted strings.
11314 Xsed='sed -e s/^X//'
11315 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11316
11317 # Same as above, but do not quote variable references.
11318 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11319
11320 # Sed substitution to delay expansion of an escaped shell variable in a
11321 # double_quote_subst'ed string.
11322 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11323
11324 # Sed substitution to avoid accidental globbing in evaled expressions
11325 no_glob_subst='s/\*/\\\*/g'
11326
11327 # Constants:
11328 rm="rm -f"
11329
11330 # Global variables:
11331 default_ofile=mklib
11332 can_build_shared=yes
11333
11334 # All known linkers require a `.a' archive for static linking (except M$VC,
11335 # which needs '.lib').
11336 libext=a
11337 ltmain="$ac_aux_dir/ltmain.sh"
11338 ofile="$default_ofile"
11339 with_gnu_ld="$lt_cv_prog_gnu_ld"
11340
11341 if test -n "$ac_tool_prefix"; then
11342   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11343 set dummy ${ac_tool_prefix}ar; ac_word=$2
11344 echo "$as_me:$LINENO: checking for $ac_word" >&5
11345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346 if test "${ac_cv_prog_AR+set}" = set; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   if test -n "$AR"; then
11350   ac_cv_prog_AR="$AR" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355   IFS=$as_save_IFS
11356   test -z "$as_dir" && as_dir=.
11357   for ac_exec_ext in '' $ac_executable_extensions; do
11358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359     ac_cv_prog_AR="${ac_tool_prefix}ar"
11360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361     break 2
11362   fi
11363 done
11364 done
11365
11366 fi
11367 fi
11368 AR=$ac_cv_prog_AR
11369 if test -n "$AR"; then
11370   echo "$as_me:$LINENO: result: $AR" >&5
11371 echo "${ECHO_T}$AR" >&6
11372 else
11373   echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6
11375 fi
11376
11377 fi
11378 if test -z "$ac_cv_prog_AR"; then
11379   ac_ct_AR=$AR
11380   # Extract the first word of "ar", so it can be a program name with args.
11381 set dummy ar; ac_word=$2
11382 echo "$as_me:$LINENO: checking for $ac_word" >&5
11383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   if test -n "$ac_ct_AR"; then
11388   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11389 else
11390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11392 do
11393   IFS=$as_save_IFS
11394   test -z "$as_dir" && as_dir=.
11395   for ac_exec_ext in '' $ac_executable_extensions; do
11396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397     ac_cv_prog_ac_ct_AR="ar"
11398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11399     break 2
11400   fi
11401 done
11402 done
11403
11404   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11405 fi
11406 fi
11407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11408 if test -n "$ac_ct_AR"; then
11409   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11410 echo "${ECHO_T}$ac_ct_AR" >&6
11411 else
11412   echo "$as_me:$LINENO: result: no" >&5
11413 echo "${ECHO_T}no" >&6
11414 fi
11415
11416   AR=$ac_ct_AR
11417 else
11418   AR="$ac_cv_prog_AR"
11419 fi
11420
11421 if test -n "$ac_tool_prefix"; then
11422   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11424 echo "$as_me:$LINENO: checking for $ac_word" >&5
11425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11426 if test "${ac_cv_prog_RANLIB+set}" = set; then
11427   echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429   if test -n "$RANLIB"; then
11430   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11431 else
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435   IFS=$as_save_IFS
11436   test -z "$as_dir" && as_dir=.
11437   for ac_exec_ext in '' $ac_executable_extensions; do
11438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11441     break 2
11442   fi
11443 done
11444 done
11445
11446 fi
11447 fi
11448 RANLIB=$ac_cv_prog_RANLIB
11449 if test -n "$RANLIB"; then
11450   echo "$as_me:$LINENO: result: $RANLIB" >&5
11451 echo "${ECHO_T}$RANLIB" >&6
11452 else
11453   echo "$as_me:$LINENO: result: no" >&5
11454 echo "${ECHO_T}no" >&6
11455 fi
11456
11457 fi
11458 if test -z "$ac_cv_prog_RANLIB"; then
11459   ac_ct_RANLIB=$RANLIB
11460   # Extract the first word of "ranlib", so it can be a program name with args.
11461 set dummy ranlib; ac_word=$2
11462 echo "$as_me:$LINENO: checking for $ac_word" >&5
11463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   if test -n "$ac_ct_RANLIB"; then
11468   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11469 else
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11472 do
11473   IFS=$as_save_IFS
11474   test -z "$as_dir" && as_dir=.
11475   for ac_exec_ext in '' $ac_executable_extensions; do
11476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477     ac_cv_prog_ac_ct_RANLIB="ranlib"
11478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11479     break 2
11480   fi
11481 done
11482 done
11483
11484   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11485 fi
11486 fi
11487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11488 if test -n "$ac_ct_RANLIB"; then
11489   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11491 else
11492   echo "$as_me:$LINENO: result: no" >&5
11493 echo "${ECHO_T}no" >&6
11494 fi
11495
11496   RANLIB=$ac_ct_RANLIB
11497 else
11498   RANLIB="$ac_cv_prog_RANLIB"
11499 fi
11500
11501 if test -n "$ac_tool_prefix"; then
11502   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11503 set dummy ${ac_tool_prefix}strip; ac_word=$2
11504 echo "$as_me:$LINENO: checking for $ac_word" >&5
11505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11506 if test "${ac_cv_prog_STRIP+set}" = set; then
11507   echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509   if test -n "$STRIP"; then
11510   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11511 else
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515   IFS=$as_save_IFS
11516   test -z "$as_dir" && as_dir=.
11517   for ac_exec_ext in '' $ac_executable_extensions; do
11518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11519     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11521     break 2
11522   fi
11523 done
11524 done
11525
11526 fi
11527 fi
11528 STRIP=$ac_cv_prog_STRIP
11529 if test -n "$STRIP"; then
11530   echo "$as_me:$LINENO: result: $STRIP" >&5
11531 echo "${ECHO_T}$STRIP" >&6
11532 else
11533   echo "$as_me:$LINENO: result: no" >&5
11534 echo "${ECHO_T}no" >&6
11535 fi
11536
11537 fi
11538 if test -z "$ac_cv_prog_STRIP"; then
11539   ac_ct_STRIP=$STRIP
11540   # Extract the first word of "strip", so it can be a program name with args.
11541 set dummy strip; ac_word=$2
11542 echo "$as_me:$LINENO: checking for $ac_word" >&5
11543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547   if test -n "$ac_ct_STRIP"; then
11548   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11549 else
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11552 do
11553   IFS=$as_save_IFS
11554   test -z "$as_dir" && as_dir=.
11555   for ac_exec_ext in '' $ac_executable_extensions; do
11556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557     ac_cv_prog_ac_ct_STRIP="strip"
11558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559     break 2
11560   fi
11561 done
11562 done
11563
11564   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11565 fi
11566 fi
11567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11568 if test -n "$ac_ct_STRIP"; then
11569   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11570 echo "${ECHO_T}$ac_ct_STRIP" >&6
11571 else
11572   echo "$as_me:$LINENO: result: no" >&5
11573 echo "${ECHO_T}no" >&6
11574 fi
11575
11576   STRIP=$ac_ct_STRIP
11577 else
11578   STRIP="$ac_cv_prog_STRIP"
11579 fi
11580
11581
11582 old_CC="$CC"
11583 old_CFLAGS="$CFLAGS"
11584
11585 # Set sane defaults for various variables
11586 test -z "$AR" && AR=ar
11587 test -z "$AR_FLAGS" && AR_FLAGS=cru
11588 test -z "$AS" && AS=as
11589 test -z "$CC" && CC=cc
11590 test -z "$LTCC" && LTCC=$CC
11591 test -z "$DLLTOOL" && DLLTOOL=dlltool
11592 test -z "$LD" && LD=ld
11593 test -z "$LN_S" && LN_S="ln -s"
11594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11595 test -z "$NM" && NM=nm
11596 test -z "$SED" && SED=sed
11597 test -z "$OBJDUMP" && OBJDUMP=objdump
11598 test -z "$RANLIB" && RANLIB=:
11599 test -z "$STRIP" && STRIP=:
11600 test -z "$ac_objext" && ac_objext=o
11601
11602 # Determine commands to create old-style static archives.
11603 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11604 old_postinstall_cmds='chmod 644 $oldlib'
11605 old_postuninstall_cmds=
11606
11607 if test -n "$RANLIB"; then
11608   case $host_os in
11609   openbsd*)
11610     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11611     ;;
11612   *)
11613     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11614     ;;
11615   esac
11616   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11617 fi
11618
11619 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11620
11621 # Only perform the check for file, if the check method requires it
11622 case $deplibs_check_method in
11623 file_magic*)
11624   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11625     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11626 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   case $MAGIC_CMD in
11631 [\\/*] |  ?:[\\/]*)
11632   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11633   ;;
11634 *)
11635   lt_save_MAGIC_CMD="$MAGIC_CMD"
11636   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11637   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11638   for ac_dir in $ac_dummy; do
11639     IFS="$lt_save_ifs"
11640     test -z "$ac_dir" && ac_dir=.
11641     if test -f $ac_dir/${ac_tool_prefix}file; then
11642       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11643       if test -n "$file_magic_test_file"; then
11644         case $deplibs_check_method in
11645         "file_magic "*)
11646           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11647           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11648           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11649             $EGREP "$file_magic_regex" > /dev/null; then
11650             :
11651           else
11652             cat <<EOF 1>&2
11653
11654 *** Warning: the command libtool uses to detect shared libraries,
11655 *** $file_magic_cmd, produces output that libtool cannot recognize.
11656 *** The result is that libtool may fail to recognize shared libraries
11657 *** as such.  This will affect the creation of libtool libraries that
11658 *** depend on shared libraries, but programs linked with such libtool
11659 *** libraries will work regardless of this problem.  Nevertheless, you
11660 *** may want to report the problem to your system manager and/or to
11661 *** bug-libtool@gnu.org
11662
11663 EOF
11664           fi ;;
11665         esac
11666       fi
11667       break
11668     fi
11669   done
11670   IFS="$lt_save_ifs"
11671   MAGIC_CMD="$lt_save_MAGIC_CMD"
11672   ;;
11673 esac
11674 fi
11675
11676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11677 if test -n "$MAGIC_CMD"; then
11678   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11679 echo "${ECHO_T}$MAGIC_CMD" >&6
11680 else
11681   echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11683 fi
11684
11685 if test -z "$lt_cv_path_MAGIC_CMD"; then
11686   if test -n "$ac_tool_prefix"; then
11687     echo "$as_me:$LINENO: checking for file" >&5
11688 echo $ECHO_N "checking for file... $ECHO_C" >&6
11689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   case $MAGIC_CMD in
11693 [\\/*] |  ?:[\\/]*)
11694   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11695   ;;
11696 *)
11697   lt_save_MAGIC_CMD="$MAGIC_CMD"
11698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11699   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11700   for ac_dir in $ac_dummy; do
11701     IFS="$lt_save_ifs"
11702     test -z "$ac_dir" && ac_dir=.
11703     if test -f $ac_dir/file; then
11704       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11705       if test -n "$file_magic_test_file"; then
11706         case $deplibs_check_method in
11707         "file_magic "*)
11708           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11709           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11710           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11711             $EGREP "$file_magic_regex" > /dev/null; then
11712             :
11713           else
11714             cat <<EOF 1>&2
11715
11716 *** Warning: the command libtool uses to detect shared libraries,
11717 *** $file_magic_cmd, produces output that libtool cannot recognize.
11718 *** The result is that libtool may fail to recognize shared libraries
11719 *** as such.  This will affect the creation of libtool libraries that
11720 *** depend on shared libraries, but programs linked with such libtool
11721 *** libraries will work regardless of this problem.  Nevertheless, you
11722 *** may want to report the problem to your system manager and/or to
11723 *** bug-libtool@gnu.org
11724
11725 EOF
11726           fi ;;
11727         esac
11728       fi
11729       break
11730     fi
11731   done
11732   IFS="$lt_save_ifs"
11733   MAGIC_CMD="$lt_save_MAGIC_CMD"
11734   ;;
11735 esac
11736 fi
11737
11738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11739 if test -n "$MAGIC_CMD"; then
11740   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11741 echo "${ECHO_T}$MAGIC_CMD" >&6
11742 else
11743   echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6
11745 fi
11746
11747   else
11748     MAGIC_CMD=:
11749   fi
11750 fi
11751
11752   fi
11753   ;;
11754 esac
11755
11756 enable_dlopen=yes
11757 enable_win32_dll=no
11758
11759 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11760 if test "${enable_libtool_lock+set}" = set; then
11761   enableval="$enable_libtool_lock"
11762
11763 fi;
11764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11765
11766
11767 # Check whether --with-pic or --without-pic was given.
11768 if test "${with_pic+set}" = set; then
11769   withval="$with_pic"
11770   pic_mode="$withval"
11771 else
11772   pic_mode=default
11773 fi;
11774 test -z "$pic_mode" && pic_mode=default
11775
11776 # Use C for the default configuration in the libtool script
11777 tagname=
11778 lt_save_CC="$CC"
11779 ac_ext=c
11780 ac_cpp='$CPP $CPPFLAGS'
11781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11784
11785
11786 # Source file extension for C test sources.
11787 ac_ext=c
11788
11789 # Object file extension for compiled C test sources.
11790 objext=o
11791 objext=$objext
11792
11793 # Code to be used in simple compile tests
11794 lt_simple_compile_test_code="int some_variable = 0;\n"
11795
11796 # Code to be used in simple link tests
11797 lt_simple_link_test_code='int main(){return(0);}\n'
11798
11799
11800 # If no C compiler was specified, use CC.
11801 LTCC=${LTCC-"$CC"}
11802
11803 # Allow CC to be a program name with arguments.
11804 compiler=$CC
11805
11806
11807 #
11808 # Check for any special shared library compilation flags.
11809 #
11810 lt_prog_cc_shlib=
11811 if test "$GCC" = no; then
11812   case $host_os in
11813   sco3.2v5*)
11814     lt_prog_cc_shlib='-belf'
11815     ;;
11816   esac
11817 fi
11818 if test -n "$lt_prog_cc_shlib"; then
11819   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11820 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11821   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11822   else
11823     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11824 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11825     lt_cv_prog_cc_can_build_shared=no
11826   fi
11827 fi
11828
11829
11830 #
11831 # Check to make sure the static flag actually works.
11832 #
11833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11834 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11835 if test "${lt_prog_compiler_static_works+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   lt_prog_compiler_static_works=no
11839    save_LDFLAGS="$LDFLAGS"
11840    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11841    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11842    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11843      # The compiler can only warn and ignore the option if not recognized
11844      # So say no if there are warnings
11845      if test -s conftest.err; then
11846        # Append any errors to the config.log.
11847        cat conftest.err 1>&5
11848      else
11849        lt_prog_compiler_static_works=yes
11850      fi
11851    fi
11852    $rm conftest*
11853    LDFLAGS="$save_LDFLAGS"
11854
11855 fi
11856 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11857 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11858
11859 if test x"$lt_prog_compiler_static_works" = xyes; then
11860     :
11861 else
11862     lt_prog_compiler_static=
11863 fi
11864
11865
11866
11867
11868 lt_prog_compiler_no_builtin_flag=
11869
11870 if test "$GCC" = yes; then
11871   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11872
11873
11874 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11875 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11876 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11877   echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879   lt_cv_prog_compiler_rtti_exceptions=no
11880   ac_outfile=conftest.$ac_objext
11881    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11882    lt_compiler_flag="-fno-rtti -fno-exceptions"
11883    # Insert the option either (1) after the last *FLAGS variable, or
11884    # (2) before a word containing "conftest.", or (3) at the end.
11885    # Note that $ac_compile itself does not contain backslashes and begins
11886    # with a dollar sign (not a hyphen), so the echo should work correctly.
11887    # The option is referenced via a variable to avoid confusing sed.
11888    lt_compile=`echo "$ac_compile" | $SED \
11889    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11891    -e 's:$: $lt_compiler_flag:'`
11892    (eval echo "\"\$as_me:11892: $lt_compile\"" >&5)
11893    (eval "$lt_compile" 2>conftest.err)
11894    ac_status=$?
11895    cat conftest.err >&5
11896    echo "$as_me:11896: \$? = $ac_status" >&5
11897    if (exit $ac_status) && test -s "$ac_outfile"; then
11898      # The compiler can only warn and ignore the option if not recognized
11899      # So say no if there are warnings
11900      if test ! -s conftest.err; then
11901        lt_cv_prog_compiler_rtti_exceptions=yes
11902      fi
11903    fi
11904    $rm conftest*
11905
11906 fi
11907 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11908 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11909
11910 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11911     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11912 else
11913     :
11914 fi
11915
11916 fi
11917
11918 lt_prog_compiler_wl=
11919 lt_prog_compiler_pic=
11920 lt_prog_compiler_static=
11921
11922 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11923 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11924
11925   if test "$GCC" = yes; then
11926     lt_prog_compiler_wl='-Wl,'
11927     lt_prog_compiler_static='-static'
11928
11929     case $host_os in
11930       aix*)
11931       # All AIX code is PIC.
11932       if test "$host_cpu" = ia64; then
11933         # AIX 5 now supports IA64 processor
11934         lt_prog_compiler_static='-Bstatic'
11935       fi
11936       ;;
11937
11938     amigaos*)
11939       # FIXME: we need at least 68020 code to build shared libraries, but
11940       # adding the `-m68020' flag to GCC prevents building anything better,
11941       # like `-m68040'.
11942       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11943       ;;
11944
11945     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11946       # PIC is the default for these OSes.
11947       ;;
11948
11949     mingw* | pw32* | os2*)
11950       # This hack is so that the source file can tell whether it is being
11951       # built for inclusion in a dll (and should export symbols for example).
11952       lt_prog_compiler_pic='-DDLL_EXPORT'
11953       ;;
11954
11955     darwin* | rhapsody*)
11956       # PIC is the default on this platform
11957       # Common symbols not allowed in MH_DYLIB files
11958       lt_prog_compiler_pic='-fno-common'
11959       ;;
11960
11961     msdosdjgpp*)
11962       # Just because we use GCC doesn't mean we suddenly get shared libraries
11963       # on systems that don't support them.
11964       lt_prog_compiler_can_build_shared=no
11965       enable_shared=no
11966       ;;
11967
11968     sysv4*MP*)
11969       if test -d /usr/nec; then
11970         lt_prog_compiler_pic=-Kconform_pic
11971       fi
11972       ;;
11973
11974     hpux*)
11975       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11976       # not for PA HP-UX.
11977       case "$host_cpu" in
11978       hppa*64*|ia64*)
11979         # +Z the default
11980         ;;
11981       *)
11982         lt_prog_compiler_pic='-fPIC'
11983         ;;
11984       esac
11985       ;;
11986
11987     *)
11988       lt_prog_compiler_pic='-fPIC'
11989       ;;
11990     esac
11991   else
11992     # PORTME Check for flag to pass linker flags through the system compiler.
11993     case $host_os in
11994     aix*)
11995       lt_prog_compiler_wl='-Wl,'
11996       if test "$host_cpu" = ia64; then
11997         # AIX 5 now supports IA64 processor
11998         lt_prog_compiler_static='-Bstatic'
11999       else
12000         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12001       fi
12002       ;;
12003       darwin*)
12004         # PIC is the default on this platform
12005         # Common symbols not allowed in MH_DYLIB files
12006        case "$cc_basename" in
12007          xlc*)
12008          lt_prog_compiler_pic='-qnocommon'
12009          lt_prog_compiler_wl='-Wl,'
12010          ;;
12011        esac
12012        ;;
12013
12014     mingw* | pw32* | os2*)
12015       # This hack is so that the source file can tell whether it is being
12016       # built for inclusion in a dll (and should export symbols for example).
12017       lt_prog_compiler_pic='-DDLL_EXPORT'
12018       ;;
12019
12020     hpux9* | hpux10* | hpux11*)
12021       lt_prog_compiler_wl='-Wl,'
12022       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12023       # not for PA HP-UX.
12024       case "$host_cpu" in
12025       hppa*64*|ia64*)
12026         # +Z the default
12027         ;;
12028       *)
12029         lt_prog_compiler_pic='+Z'
12030         ;;
12031       esac
12032       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12033       lt_prog_compiler_static='${wl}-a ${wl}archive'
12034       ;;
12035
12036     irix5* | irix6* | nonstopux*)
12037       lt_prog_compiler_wl='-Wl,'
12038       # PIC (with -KPIC) is the default.
12039       lt_prog_compiler_static='-non_shared'
12040       ;;
12041
12042     newsos6)
12043       lt_prog_compiler_pic='-KPIC'
12044       lt_prog_compiler_static='-Bstatic'
12045       ;;
12046
12047     linux*)
12048       case $CC in
12049       icc* | ecc*)
12050         lt_prog_compiler_wl='-Wl,'
12051         lt_prog_compiler_pic='-KPIC'
12052         lt_prog_compiler_static='-static'
12053         ;;
12054       ccc*)
12055         lt_prog_compiler_wl='-Wl,'
12056         # All Alpha code is PIC.
12057         lt_prog_compiler_static='-non_shared'
12058         ;;
12059       esac
12060       ;;
12061
12062     osf3* | osf4* | osf5*)
12063       lt_prog_compiler_wl='-Wl,'
12064       # All OSF/1 code is PIC.
12065       lt_prog_compiler_static='-non_shared'
12066       ;;
12067
12068     sco3.2v5*)
12069       lt_prog_compiler_pic='-Kpic'
12070       lt_prog_compiler_static='-dn'
12071       ;;
12072
12073     solaris*)
12074       lt_prog_compiler_wl='-Wl,'
12075       lt_prog_compiler_pic='-KPIC'
12076       lt_prog_compiler_static='-Bstatic'
12077       ;;
12078
12079     sunos4*)
12080       lt_prog_compiler_wl='-Qoption ld '
12081       lt_prog_compiler_pic='-PIC'
12082       lt_prog_compiler_static='-Bstatic'
12083       ;;
12084
12085     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12086       lt_prog_compiler_wl='-Wl,'
12087       lt_prog_compiler_pic='-KPIC'
12088       lt_prog_compiler_static='-Bstatic'
12089       ;;
12090
12091     sysv4*MP*)
12092       if test -d /usr/nec ;then
12093         lt_prog_compiler_pic='-Kconform_pic'
12094         lt_prog_compiler_static='-Bstatic'
12095       fi
12096       ;;
12097
12098     uts4*)
12099       lt_prog_compiler_pic='-pic'
12100       lt_prog_compiler_static='-Bstatic'
12101       ;;
12102
12103     *)
12104       lt_prog_compiler_can_build_shared=no
12105       ;;
12106     esac
12107   fi
12108
12109 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12110 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12111
12112 #
12113 # Check to make sure the PIC flag actually works.
12114 #
12115 if test -n "$lt_prog_compiler_pic"; then
12116
12117 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12118 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12119 if test "${lt_prog_compiler_pic_works+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   lt_prog_compiler_pic_works=no
12123   ac_outfile=conftest.$ac_objext
12124    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12125    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12126    # Insert the option either (1) after the last *FLAGS variable, or
12127    # (2) before a word containing "conftest.", or (3) at the end.
12128    # Note that $ac_compile itself does not contain backslashes and begins
12129    # with a dollar sign (not a hyphen), so the echo should work correctly.
12130    # The option is referenced via a variable to avoid confusing sed.
12131    lt_compile=`echo "$ac_compile" | $SED \
12132    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12134    -e 's:$: $lt_compiler_flag:'`
12135    (eval echo "\"\$as_me:12135: $lt_compile\"" >&5)
12136    (eval "$lt_compile" 2>conftest.err)
12137    ac_status=$?
12138    cat conftest.err >&5
12139    echo "$as_me:12139: \$? = $ac_status" >&5
12140    if (exit $ac_status) && test -s "$ac_outfile"; then
12141      # The compiler can only warn and ignore the option if not recognized
12142      # So say no if there are warnings
12143      if test ! -s conftest.err; then
12144        lt_prog_compiler_pic_works=yes
12145      fi
12146    fi
12147    $rm conftest*
12148
12149 fi
12150 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12151 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12152
12153 if test x"$lt_prog_compiler_pic_works" = xyes; then
12154     case $lt_prog_compiler_pic in
12155      "" | " "*) ;;
12156      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12157      esac
12158 else
12159     lt_prog_compiler_pic=
12160      lt_prog_compiler_can_build_shared=no
12161 fi
12162
12163 fi
12164 case "$host_os" in
12165   # For platforms which do not support PIC, -DPIC is meaningless:
12166   *djgpp*)
12167     lt_prog_compiler_pic=
12168     ;;
12169   *)
12170     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12171     ;;
12172 esac
12173
12174 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12175 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12176 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179   lt_cv_prog_compiler_c_o=no
12180    $rm -r conftest 2>/dev/null
12181    mkdir conftest
12182    cd conftest
12183    mkdir out
12184    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12185
12186    lt_compiler_flag="-o out/conftest2.$ac_objext"
12187    # Insert the option either (1) after the last *FLAGS variable, or
12188    # (2) before a word containing "conftest.", or (3) at the end.
12189    # Note that $ac_compile itself does not contain backslashes and begins
12190    # with a dollar sign (not a hyphen), so the echo should work correctly.
12191    lt_compile=`echo "$ac_compile" | $SED \
12192    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194    -e 's:$: $lt_compiler_flag:'`
12195    (eval echo "\"\$as_me:12195: $lt_compile\"" >&5)
12196    (eval "$lt_compile" 2>out/conftest.err)
12197    ac_status=$?
12198    cat out/conftest.err >&5
12199    echo "$as_me:12199: \$? = $ac_status" >&5
12200    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12201    then
12202      # The compiler can only warn and ignore the option if not recognized
12203      # So say no if there are warnings
12204      if test ! -s out/conftest.err; then
12205        lt_cv_prog_compiler_c_o=yes
12206      fi
12207    fi
12208    chmod u+w .
12209    $rm conftest*
12210    # SGI C++ compiler will create directory out/ii_files/ for
12211    # template instantiation
12212    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12213    $rm out/* && rmdir out
12214    cd ..
12215    rmdir conftest
12216    $rm conftest*
12217
12218 fi
12219 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12220 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12221
12222
12223 hard_links="nottested"
12224 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12225   # do not overwrite the value of need_locks provided by the user
12226   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12227 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12228   hard_links=yes
12229   $rm conftest*
12230   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12231   touch conftest.a
12232   ln conftest.a conftest.b 2>&5 || hard_links=no
12233   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12234   echo "$as_me:$LINENO: result: $hard_links" >&5
12235 echo "${ECHO_T}$hard_links" >&6
12236   if test "$hard_links" = no; then
12237     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12238 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12239     need_locks=warn
12240   fi
12241 else
12242   need_locks=no
12243 fi
12244
12245 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12246 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12247
12248   runpath_var=
12249   allow_undefined_flag=
12250   enable_shared_with_static_runtimes=no
12251   archive_cmds=
12252   archive_expsym_cmds=
12253   old_archive_From_new_cmds=
12254   old_archive_from_expsyms_cmds=
12255   export_dynamic_flag_spec=
12256   whole_archive_flag_spec=
12257   thread_safe_flag_spec=
12258   hardcode_libdir_flag_spec=
12259   hardcode_libdir_flag_spec_ld=
12260   hardcode_libdir_separator=
12261   hardcode_direct=no
12262   hardcode_minus_L=no
12263   hardcode_shlibpath_var=unsupported
12264   link_all_deplibs=unknown
12265   hardcode_automatic=no
12266   module_cmds=
12267   module_expsym_cmds=
12268   always_export_symbols=no
12269   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12270   # include_expsyms should be a list of space-separated symbols to be *always*
12271   # included in the symbol list
12272   include_expsyms=
12273   # exclude_expsyms can be an extended regexp of symbols to exclude
12274   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12275   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12276   # as well as any symbol that contains `d'.
12277   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12278   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12279   # platforms (ab)use it in PIC code, but their linkers get confused if
12280   # the symbol is explicitly referenced.  Since portable code cannot
12281   # rely on this symbol name, it's probably fine to never include it in
12282   # preloaded symbol tables.
12283   extract_expsyms_cmds=
12284
12285   case $host_os in
12286   cygwin* | mingw* | pw32*)
12287     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12288     # When not using gcc, we currently assume that we are using
12289     # Microsoft Visual C++.
12290     if test "$GCC" != yes; then
12291       with_gnu_ld=no
12292     fi
12293     ;;
12294   openbsd*)
12295     with_gnu_ld=no
12296     ;;
12297   esac
12298
12299   ld_shlibs=yes
12300   if test "$with_gnu_ld" = yes; then
12301     # If archive_cmds runs LD, not CC, wlarc should be empty
12302     wlarc='${wl}'
12303
12304     # See if GNU ld supports shared libraries.
12305     case $host_os in
12306     aix3* | aix4* | aix5*)
12307       # On AIX/PPC, the GNU linker is very broken
12308       if test "$host_cpu" != ia64; then
12309         ld_shlibs=no
12310         cat <<EOF 1>&2
12311
12312 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12313 *** to be unable to reliably create shared libraries on AIX.
12314 *** Therefore, libtool is disabling shared libraries support.  If you
12315 *** really care for shared libraries, you may want to modify your PATH
12316 *** so that a non-GNU linker is found, and then restart.
12317
12318 EOF
12319       fi
12320       ;;
12321
12322     amigaos*)
12323       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12324       hardcode_libdir_flag_spec='-L$libdir'
12325       hardcode_minus_L=yes
12326
12327       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12328       # that the semantics of dynamic libraries on AmigaOS, at least up
12329       # to version 4, is to share data among multiple programs linked
12330       # with the same dynamic library.  Since this doesn't match the
12331       # behavior of shared libraries on other platforms, we can't use
12332       # them.
12333       ld_shlibs=no
12334       ;;
12335
12336     beos*)
12337       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12338         allow_undefined_flag=unsupported
12339         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12340         # support --undefined.  This deserves some investigation.  FIXME
12341         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12342       else
12343         ld_shlibs=no
12344       fi
12345       ;;
12346
12347     cygwin* | mingw* | pw32*)
12348       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12349       # as there is no search path for DLLs.
12350       hardcode_libdir_flag_spec='-L$libdir'
12351       allow_undefined_flag=unsupported
12352       always_export_symbols=no
12353       enable_shared_with_static_runtimes=yes
12354       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12355
12356       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12357         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12358         # If the export-symbols file already is a .def file (1st line
12359         # is EXPORTS), use it as is; otherwise, prepend...
12360         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12361           cp $export_symbols $output_objdir/$soname.def;
12362         else
12363           echo EXPORTS > $output_objdir/$soname.def;
12364           cat $export_symbols >> $output_objdir/$soname.def;
12365         fi~
12366         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12367       else
12368         ld_shlibs=no
12369       fi
12370       ;;
12371
12372     netbsd*)
12373       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12374         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12375         wlarc=
12376       else
12377         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12379       fi
12380       ;;
12381
12382     solaris* | sysv5*)
12383       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12384         ld_shlibs=no
12385         cat <<EOF 1>&2
12386
12387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12388 *** create shared libraries on Solaris systems.  Therefore, libtool
12389 *** is disabling shared libraries support.  We urge you to upgrade GNU
12390 *** binutils to release 2.9.1 or newer.  Another option is to modify
12391 *** your PATH or compiler configuration so that the native linker is
12392 *** used, and then restart.
12393
12394 EOF
12395       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12396         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12397         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12398       else
12399         ld_shlibs=no
12400       fi
12401       ;;
12402
12403     sunos4*)
12404       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12405       wlarc=
12406       hardcode_direct=yes
12407       hardcode_shlibpath_var=no
12408       ;;
12409
12410   linux*)
12411     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12412         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12413         archive_cmds="$tmp_archive_cmds"
12414       supports_anon_versioning=no
12415       case `$LD -v 2>/dev/null` in
12416         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12417         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12418         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12419         *\ 2.11.*) ;; # other 2.11 versions
12420         *) supports_anon_versioning=yes ;;
12421       esac
12422       if test $supports_anon_versioning = yes; then
12423         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12425 $echo "local: *; };" >> $output_objdir/$libname.ver~
12426         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12427       else
12428         archive_expsym_cmds="$tmp_archive_cmds"
12429       fi
12430     else
12431       ld_shlibs=no
12432     fi
12433     ;;
12434
12435     *)
12436       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12437         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12438         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12439       else
12440         ld_shlibs=no
12441       fi
12442       ;;
12443     esac
12444
12445     if test "$ld_shlibs" = yes; then
12446       runpath_var=LD_RUN_PATH
12447       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12448       export_dynamic_flag_spec='${wl}--export-dynamic'
12449       # ancient GNU ld didn't support --whole-archive et. al.
12450       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12451         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12452       else
12453         whole_archive_flag_spec=
12454       fi
12455     fi
12456   else
12457     # PORTME fill in a description of your system's linker (not GNU ld)
12458     case $host_os in
12459     aix3*)
12460       allow_undefined_flag=unsupported
12461       always_export_symbols=yes
12462       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12463       # Note: this linker hardcodes the directories in LIBPATH if there
12464       # are no directories specified by -L.
12465       hardcode_minus_L=yes
12466       if test "$GCC" = yes && test -z "$link_static_flag"; then
12467         # Neither direct hardcoding nor static linking is supported with a
12468         # broken collect2.
12469         hardcode_direct=unsupported
12470       fi
12471       ;;
12472
12473     aix4* | aix5*)
12474       if test "$host_cpu" = ia64; then
12475         # On IA64, the linker does run time linking by default, so we don't
12476         # have to do anything special.
12477         aix_use_runtimelinking=no
12478         exp_sym_flag='-Bexport'
12479         no_entry_flag=""
12480       else
12481         # If we're using GNU nm, then we don't want the "-C" option.
12482         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12483         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12484           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12485         else
12486           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12487         fi
12488         aix_use_runtimelinking=no
12489
12490         # Test if we are trying to use run time linking or normal
12491         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12492         # need to do runtime linking.
12493         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12494           for ld_flag in $LDFLAGS; do
12495           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12496             aix_use_runtimelinking=yes
12497             break
12498           fi
12499           done
12500         esac
12501
12502         exp_sym_flag='-bexport'
12503         no_entry_flag='-bnoentry'
12504       fi
12505
12506       # When large executables or shared objects are built, AIX ld can
12507       # have problems creating the table of contents.  If linking a library
12508       # or program results in "error TOC overflow" add -mminimal-toc to
12509       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12510       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12511
12512       archive_cmds=''
12513       hardcode_direct=yes
12514       hardcode_libdir_separator=':'
12515       link_all_deplibs=yes
12516
12517       if test "$GCC" = yes; then
12518         case $host_os in aix4.012|aix4.012.*)
12519         # We only want to do this on AIX 4.2 and lower, the check
12520         # below for broken collect2 doesn't work under 4.3+
12521           collect2name=`${CC} -print-prog-name=collect2`
12522           if test -f "$collect2name" && \
12523            strings "$collect2name" | grep resolve_lib_name >/dev/null
12524           then
12525           # We have reworked collect2
12526           hardcode_direct=yes
12527           else
12528           # We have old collect2
12529           hardcode_direct=unsupported
12530           # It fails to find uninstalled libraries when the uninstalled
12531           # path is not listed in the libpath.  Setting hardcode_minus_L
12532           # to unsupported forces relinking
12533           hardcode_minus_L=yes
12534           hardcode_libdir_flag_spec='-L$libdir'
12535           hardcode_libdir_separator=
12536           fi
12537         esac
12538         shared_flag='-shared'
12539       else
12540         # not using gcc
12541         if test "$host_cpu" = ia64; then
12542         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12543         # chokes on -Wl,-G. The following line is correct:
12544           shared_flag='-G'
12545         else
12546         if test "$aix_use_runtimelinking" = yes; then
12547             shared_flag='${wl}-G'
12548           else
12549             shared_flag='${wl}-bM:SRE'
12550         fi
12551         fi
12552       fi
12553
12554       # It seems that -bexpall does not export symbols beginning with
12555       # underscore (_), so it is better to generate a list of symbols to export.
12556       always_export_symbols=yes
12557       if test "$aix_use_runtimelinking" = yes; then
12558         # Warning - without using the other runtime loading flags (-brtl),
12559         # -berok will link without error, but may produce a broken library.
12560         allow_undefined_flag='-berok'
12561        # Determine the default libpath from the value encoded in an empty executable.
12562        cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h.  */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h.  */
12568
12569 int
12570 main ()
12571 {
12572
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579   (eval $ac_link) 2>conftest.er1
12580   ac_status=$?
12581   grep -v '^ *+' conftest.er1 >conftest.err
12582   rm -f conftest.er1
12583   cat conftest.err >&5
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } &&
12586          { ac_try='test -z "$ac_c_werror_flag"
12587                          || test ! -s conftest.err'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; } &&
12593          { ac_try='test -s conftest$ac_exeext'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; }; then
12599
12600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12601 }'`
12602 # Check for a 64-bit object if we didn't find anything.
12603 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12604 }'`; fi
12605 else
12606   echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12608
12609 fi
12610 rm -f conftest.err conftest.$ac_objext \
12611       conftest$ac_exeext conftest.$ac_ext
12612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12613
12614        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12615         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12616        else
12617         if test "$host_cpu" = ia64; then
12618           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12619           allow_undefined_flag="-z nodefs"
12620           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12621         else
12622          # Determine the default libpath from the value encoded in an empty executable.
12623          cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h.  */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h.  */
12629
12630 int
12631 main ()
12632 {
12633
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640   (eval $ac_link) 2>conftest.er1
12641   ac_status=$?
12642   grep -v '^ *+' conftest.er1 >conftest.err
12643   rm -f conftest.er1
12644   cat conftest.err >&5
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } &&
12647          { ac_try='test -z "$ac_c_werror_flag"
12648                          || test ! -s conftest.err'
12649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650   (eval $ac_try) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; } &&
12654          { ac_try='test -s conftest$ac_exeext'
12655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656   (eval $ac_try) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; }; then
12660
12661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12662 }'`
12663 # Check for a 64-bit object if we didn't find anything.
12664 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12665 }'`; fi
12666 else
12667   echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670 fi
12671 rm -f conftest.err conftest.$ac_objext \
12672       conftest$ac_exeext conftest.$ac_ext
12673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12674
12675          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12676           # Warning - without using the other run time loading flags,
12677           # -berok will link without error, but may produce a broken library.
12678           no_undefined_flag=' ${wl}-bernotok'
12679           allow_undefined_flag=' ${wl}-berok'
12680           # -bexpall does not export symbols beginning with underscore (_)
12681           always_export_symbols=yes
12682           # Exported symbols can be pulled into shared objects from archives
12683           whole_archive_flag_spec=' '
12684           archive_cmds_need_lc=yes
12685           # This is similar to how AIX traditionally builds it's shared libraries.
12686           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12687         fi
12688       fi
12689       ;;
12690
12691     amigaos*)
12692       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12693       hardcode_libdir_flag_spec='-L$libdir'
12694       hardcode_minus_L=yes
12695       # see comment about different semantics on the GNU ld section
12696       ld_shlibs=no
12697       ;;
12698
12699     bsdi[45]*)
12700       export_dynamic_flag_spec=-rdynamic
12701       ;;
12702
12703     cygwin* | mingw* | pw32*)
12704       # When not using gcc, we currently assume that we are using
12705       # Microsoft Visual C++.
12706       # hardcode_libdir_flag_spec is actually meaningless, as there is
12707       # no search path for DLLs.
12708       hardcode_libdir_flag_spec=' '
12709       allow_undefined_flag=unsupported
12710       # Tell ltmain to make .lib files, not .a files.
12711       libext=lib
12712       # Tell ltmain to make .dll files, not .so files.
12713       shrext_cmds=".dll"
12714       # FIXME: Setting linknames here is a bad hack.
12715       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12716       # The linker will automatically build a .lib file if we build a DLL.
12717       old_archive_From_new_cmds='true'
12718       # FIXME: Should let the user specify the lib program.
12719       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12720       fix_srcfile_path='`cygpath -w "$srcfile"`'
12721       enable_shared_with_static_runtimes=yes
12722       ;;
12723
12724     darwin* | rhapsody*)
12725       case "$host_os" in
12726         rhapsody* | darwin1.[012])
12727          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12728          ;;
12729        *) # Darwin 1.3 on
12730          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12731            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12732          else
12733            case ${MACOSX_DEPLOYMENT_TARGET} in
12734              10.[012])
12735                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12736                ;;
12737              10.*)
12738                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12739                ;;
12740            esac
12741          fi
12742          ;;
12743       esac
12744       archive_cmds_need_lc=no
12745       hardcode_direct=no
12746       hardcode_automatic=yes
12747       hardcode_shlibpath_var=unsupported
12748       whole_archive_flag_spec=''
12749       link_all_deplibs=yes
12750     if test "$GCC" = yes ; then
12751         output_verbose_link_cmd='echo'
12752         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12753       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12754       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12755       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12756       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12757     else
12758       case "$cc_basename" in
12759         xlc*)
12760          output_verbose_link_cmd='echo'
12761          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12762          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12763           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12764          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12765           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12766           ;;
12767        *)
12768          ld_shlibs=no
12769           ;;
12770       esac
12771     fi
12772       ;;
12773
12774     dgux*)
12775       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12776       hardcode_libdir_flag_spec='-L$libdir'
12777       hardcode_shlibpath_var=no
12778       ;;
12779
12780     freebsd1*)
12781       ld_shlibs=no
12782       ;;
12783
12784     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12785     # support.  Future versions do this automatically, but an explicit c++rt0.o
12786     # does not break anything, and helps significantly (at the cost of a little
12787     # extra space).
12788     freebsd2.2*)
12789       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12790       hardcode_libdir_flag_spec='-R$libdir'
12791       hardcode_direct=yes
12792       hardcode_shlibpath_var=no
12793       ;;
12794
12795     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12796     freebsd2*)
12797       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12798       hardcode_direct=yes
12799       hardcode_minus_L=yes
12800       hardcode_shlibpath_var=no
12801       ;;
12802
12803     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12804     freebsd* | kfreebsd*-gnu)
12805       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12806       hardcode_libdir_flag_spec='-R$libdir'
12807       hardcode_direct=yes
12808       hardcode_shlibpath_var=no
12809       ;;
12810
12811     hpux9*)
12812       if test "$GCC" = yes; then
12813         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12814       else
12815         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12816       fi
12817       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12818       hardcode_libdir_separator=:
12819       hardcode_direct=yes
12820
12821       # hardcode_minus_L: Not really in the search PATH,
12822       # but as the default location of the library.
12823       hardcode_minus_L=yes
12824       export_dynamic_flag_spec='${wl}-E'
12825       ;;
12826
12827     hpux10* | hpux11*)
12828       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12829         case "$host_cpu" in
12830         hppa*64*|ia64*)
12831           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12832           ;;
12833         *)
12834           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12835           ;;
12836         esac
12837       else
12838         case "$host_cpu" in
12839         hppa*64*|ia64*)
12840           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12841           ;;
12842         *)
12843           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12844           ;;
12845         esac
12846       fi
12847       if test "$with_gnu_ld" = no; then
12848         case "$host_cpu" in
12849         hppa*64*)
12850           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12851           hardcode_libdir_flag_spec_ld='+b $libdir'
12852           hardcode_libdir_separator=:
12853           hardcode_direct=no
12854           hardcode_shlibpath_var=no
12855           ;;
12856         ia64*)
12857           hardcode_libdir_flag_spec='-L$libdir'
12858           hardcode_direct=no
12859           hardcode_shlibpath_var=no
12860
12861           # hardcode_minus_L: Not really in the search PATH,
12862           # but as the default location of the library.
12863           hardcode_minus_L=yes
12864           ;;
12865         *)
12866           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12867           hardcode_libdir_separator=:
12868           hardcode_direct=yes
12869           export_dynamic_flag_spec='${wl}-E'
12870
12871           # hardcode_minus_L: Not really in the search PATH,
12872           # but as the default location of the library.
12873           hardcode_minus_L=yes
12874           ;;
12875         esac
12876       fi
12877       ;;
12878
12879     irix5* | irix6* | nonstopux*)
12880       if test "$GCC" = yes; then
12881         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12882       else
12883         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12884         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12885       fi
12886       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12887       hardcode_libdir_separator=:
12888       link_all_deplibs=yes
12889       ;;
12890
12891     netbsd*)
12892       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12893         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12894       else
12895         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12896       fi
12897       hardcode_libdir_flag_spec='-R$libdir'
12898       hardcode_direct=yes
12899       hardcode_shlibpath_var=no
12900       ;;
12901
12902     newsos6)
12903       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12904       hardcode_direct=yes
12905       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12906       hardcode_libdir_separator=:
12907       hardcode_shlibpath_var=no
12908       ;;
12909
12910     openbsd*)
12911       hardcode_direct=yes
12912       hardcode_shlibpath_var=no
12913       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12915         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12916         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12917         export_dynamic_flag_spec='${wl}-E'
12918       else
12919        case $host_os in
12920          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12921            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12922            hardcode_libdir_flag_spec='-R$libdir'
12923            ;;
12924          *)
12925            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12926            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12927            ;;
12928        esac
12929       fi
12930       ;;
12931
12932     os2*)
12933       hardcode_libdir_flag_spec='-L$libdir'
12934       hardcode_minus_L=yes
12935       allow_undefined_flag=unsupported
12936       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12937       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12938       ;;
12939
12940     osf3*)
12941       if test "$GCC" = yes; then
12942         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12943         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12944       else
12945         allow_undefined_flag=' -expect_unresolved \*'
12946         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12947       fi
12948       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12949       hardcode_libdir_separator=:
12950       ;;
12951
12952     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12953       if test "$GCC" = yes; then
12954         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12955         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12956         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12957       else
12958         allow_undefined_flag=' -expect_unresolved \*'
12959         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12960         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12961         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12962
12963         # Both c and cxx compiler support -rpath directly
12964         hardcode_libdir_flag_spec='-rpath $libdir'
12965       fi
12966       hardcode_libdir_separator=:
12967       ;;
12968
12969     sco3.2v5*)
12970       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12971       hardcode_shlibpath_var=no
12972       export_dynamic_flag_spec='${wl}-Bexport'
12973       runpath_var=LD_RUN_PATH
12974       hardcode_runpath_var=yes
12975       ;;
12976
12977     solaris*)
12978       no_undefined_flag=' -z text'
12979       if test "$GCC" = yes; then
12980         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12981         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12982           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12983       else
12984         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12985         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12986         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12987       fi
12988       hardcode_libdir_flag_spec='-R$libdir'
12989       hardcode_shlibpath_var=no
12990       case $host_os in
12991       solaris2.[0-5] | solaris2.[0-5].*) ;;
12992       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12993         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12994       esac
12995       link_all_deplibs=yes
12996       ;;
12997
12998     sunos4*)
12999       if test "x$host_vendor" = xsequent; then
13000         # Use $CC to link under sequent, because it throws in some extra .o
13001         # files that make .init and .fini sections work.
13002         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13003       else
13004         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13005       fi
13006       hardcode_libdir_flag_spec='-L$libdir'
13007       hardcode_direct=yes
13008       hardcode_minus_L=yes
13009       hardcode_shlibpath_var=no
13010       ;;
13011
13012     sysv4)
13013       case $host_vendor in
13014         sni)
13015           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13016           hardcode_direct=yes # is this really true???
13017         ;;
13018         siemens)
13019           ## LD is ld it makes a PLAMLIB
13020           ## CC just makes a GrossModule.
13021           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13022           reload_cmds='$CC -r -o $output$reload_objs'
13023           hardcode_direct=no
13024         ;;
13025         motorola)
13026           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13027           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13028         ;;
13029       esac
13030       runpath_var='LD_RUN_PATH'
13031       hardcode_shlibpath_var=no
13032       ;;
13033
13034     sysv4.3*)
13035       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13036       hardcode_shlibpath_var=no
13037       export_dynamic_flag_spec='-Bexport'
13038       ;;
13039
13040     sysv4*MP*)
13041       if test -d /usr/nec; then
13042         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043         hardcode_shlibpath_var=no
13044         runpath_var=LD_RUN_PATH
13045         hardcode_runpath_var=yes
13046         ld_shlibs=yes
13047       fi
13048       ;;
13049
13050     sysv4.2uw2*)
13051       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13052       hardcode_direct=yes
13053       hardcode_minus_L=no
13054       hardcode_shlibpath_var=no
13055       hardcode_runpath_var=yes
13056       runpath_var=LD_RUN_PATH
13057       ;;
13058
13059    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13060       no_undefined_flag='${wl}-z ${wl}text'
13061       if test "$GCC" = yes; then
13062         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13063       else
13064         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13065       fi
13066       runpath_var='LD_RUN_PATH'
13067       hardcode_shlibpath_var=no
13068       ;;
13069
13070     sysv5*)
13071       no_undefined_flag=' -z text'
13072       # $CC -shared without GNU ld will not create a library from C++
13073       # object files and a static libstdc++, better avoid it by now
13074       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13075       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13076                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13077       hardcode_libdir_flag_spec=
13078       hardcode_shlibpath_var=no
13079       runpath_var='LD_RUN_PATH'
13080       ;;
13081
13082     uts4*)
13083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13084       hardcode_libdir_flag_spec='-L$libdir'
13085       hardcode_shlibpath_var=no
13086       ;;
13087
13088     *)
13089       ld_shlibs=no
13090       ;;
13091     esac
13092   fi
13093
13094 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13095 echo "${ECHO_T}$ld_shlibs" >&6
13096 test "$ld_shlibs" = no && can_build_shared=no
13097
13098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13099 if test "$GCC" = yes; then
13100   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13101 fi
13102
13103 #
13104 # Do we need to explicitly link libc?
13105 #
13106 case "x$archive_cmds_need_lc" in
13107 x|xyes)
13108   # Assume -lc should be added
13109   archive_cmds_need_lc=yes
13110
13111   if test "$enable_shared" = yes && test "$GCC" = yes; then
13112     case $archive_cmds in
13113     *'~'*)
13114       # FIXME: we may have to deal with multi-command sequences.
13115       ;;
13116     '$CC '*)
13117       # Test whether the compiler implicitly links with -lc since on some
13118       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13119       # to ld, don't add -lc before -lgcc.
13120       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13121 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13122       $rm conftest*
13123       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13124
13125       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126   (eval $ac_compile) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } 2>conftest.err; then
13130         soname=conftest
13131         lib=conftest
13132         libobjs=conftest.$ac_objext
13133         deplibs=
13134         wl=$lt_prog_compiler_wl
13135         compiler_flags=-v
13136         linker_flags=-v
13137         verstring=
13138         output_objdir=.
13139         libname=conftest
13140         lt_save_allow_undefined_flag=$allow_undefined_flag
13141         allow_undefined_flag=
13142         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13143   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }
13147         then
13148           archive_cmds_need_lc=no
13149         else
13150           archive_cmds_need_lc=yes
13151         fi
13152         allow_undefined_flag=$lt_save_allow_undefined_flag
13153       else
13154         cat conftest.err 1>&5
13155       fi
13156       $rm conftest*
13157       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13158 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13159       ;;
13160     esac
13161   fi
13162   ;;
13163 esac
13164
13165 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13166 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13167 library_names_spec=
13168 libname_spec='lib$name'
13169 soname_spec=
13170 shrext_cmds=".so"
13171 postinstall_cmds=
13172 postuninstall_cmds=
13173 finish_cmds=
13174 finish_eval=
13175 shlibpath_var=
13176 shlibpath_overrides_runpath=unknown
13177 version_type=none
13178 dynamic_linker="$host_os ld.so"
13179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13180 if test "$GCC" = yes; then
13181   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13182   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13183     # if the path contains ";" then we assume it to be the separator
13184     # otherwise default to the standard path separator (i.e. ":") - it is
13185     # assumed that no part of a normal pathname contains ";" but that should
13186     # okay in the real world where ";" in dirpaths is itself problematic.
13187     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13188   else
13189     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13190   fi
13191 else
13192   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13193 fi
13194 need_lib_prefix=unknown
13195 hardcode_into_libs=no
13196
13197 # when you set need_version to no, make sure it does not cause -set_version
13198 # flags to be left without arguments
13199 need_version=unknown
13200
13201 case $host_os in
13202 aix3*)
13203   version_type=linux
13204   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13205   shlibpath_var=LIBPATH
13206
13207   # AIX 3 has no versioning support, so we append a major version to the name.
13208   soname_spec='${libname}${release}${shared_ext}$major'
13209   ;;
13210
13211 aix4* | aix5*)
13212   version_type=linux
13213   need_lib_prefix=no
13214   need_version=no
13215   hardcode_into_libs=yes
13216   if test "$host_cpu" = ia64; then
13217     # AIX 5 supports IA64
13218     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13219     shlibpath_var=LD_LIBRARY_PATH
13220   else
13221     # With GCC up to 2.95.x, collect2 would create an import file
13222     # for dependence libraries.  The import file would start with
13223     # the line `#! .'.  This would cause the generated library to
13224     # depend on `.', always an invalid library.  This was fixed in
13225     # development snapshots of GCC prior to 3.0.
13226     case $host_os in
13227       aix4 | aix4.[01] | aix4.[01].*)
13228       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13229            echo ' yes '
13230            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13231         :
13232       else
13233         can_build_shared=no
13234       fi
13235       ;;
13236     esac
13237     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13238     # soname into executable. Probably we can add versioning support to
13239     # collect2, so additional links can be useful in future.
13240     if test "$aix_use_runtimelinking" = yes; then
13241       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13242       # instead of lib<name>.a to let people know that these are not
13243       # typical AIX shared libraries.
13244       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245     else
13246       # We preserve .a as extension for shared libraries through AIX4.2
13247       # and later when we are not doing run time linking.
13248       library_names_spec='${libname}${release}.a $libname.a'
13249       soname_spec='${libname}${release}${shared_ext}$major'
13250     fi
13251     shlibpath_var=LIBPATH
13252   fi
13253   ;;
13254
13255 amigaos*)
13256   library_names_spec='$libname.ixlibrary $libname.a'
13257   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13258   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13259   ;;
13260
13261 beos*)
13262   library_names_spec='${libname}${shared_ext}'
13263   dynamic_linker="$host_os ld.so"
13264   shlibpath_var=LIBRARY_PATH
13265   ;;
13266
13267 bsdi[45]*)
13268   version_type=linux
13269   need_version=no
13270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271   soname_spec='${libname}${release}${shared_ext}$major'
13272   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13273   shlibpath_var=LD_LIBRARY_PATH
13274   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13275   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13276   # the default ld.so.conf also contains /usr/contrib/lib and
13277   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13278   # libtool to hard-code these into programs
13279   ;;
13280
13281 cygwin* | mingw* | pw32*)
13282   version_type=windows
13283   shrext_cmds=".dll"
13284   need_version=no
13285   need_lib_prefix=no
13286
13287   case $GCC,$host_os in
13288   yes,cygwin* | yes,mingw* | yes,pw32*)
13289     library_names_spec='$libname.dll.a'
13290     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13291     postinstall_cmds='base_file=`basename \${file}`~
13292       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13293       dldir=$destdir/`dirname \$dlpath`~
13294       test -d \$dldir || mkdir -p \$dldir~
13295       $install_prog $dir/$dlname \$dldir/$dlname'
13296     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13297       dlpath=$dir/\$dldll~
13298        $rm \$dlpath'
13299     shlibpath_overrides_runpath=yes
13300
13301     case $host_os in
13302     cygwin*)
13303       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13304       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13305       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13306       ;;
13307     mingw*)
13308       # MinGW DLLs use traditional 'lib' prefix
13309       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13310       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13311       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13312         # It is most probably a Windows format PATH printed by
13313         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13314         # path with ; separators, and with drive letters. We can handle the
13315         # drive letters (cygwin fileutils understands them), so leave them,
13316         # especially as we might pass files found there to a mingw objdump,
13317         # which wouldn't understand a cygwinified path. Ahh.
13318         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13319       else
13320         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13321       fi
13322       ;;
13323     pw32*)
13324       # pw32 DLLs use 'pw' prefix rather than 'lib'
13325       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13326       ;;
13327     esac
13328     ;;
13329
13330   *)
13331     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13332     ;;
13333   esac
13334   dynamic_linker='Win32 ld.exe'
13335   # FIXME: first we should search . and the directory the executable is in
13336   shlibpath_var=PATH
13337   ;;
13338
13339 darwin* | rhapsody*)
13340   dynamic_linker="$host_os dyld"
13341   version_type=darwin
13342   need_lib_prefix=no
13343   need_version=no
13344   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13345   soname_spec='${libname}${release}${major}$shared_ext'
13346   shlibpath_overrides_runpath=yes
13347   shlibpath_var=DYLD_LIBRARY_PATH
13348   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13349   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13350   if test "$GCC" = yes; then
13351     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13352   else
13353     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13354   fi
13355   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13356   ;;
13357
13358 dgux*)
13359   version_type=linux
13360   need_lib_prefix=no
13361   need_version=no
13362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13363   soname_spec='${libname}${release}${shared_ext}$major'
13364   shlibpath_var=LD_LIBRARY_PATH
13365   ;;
13366
13367 freebsd1*)
13368   dynamic_linker=no
13369   ;;
13370
13371 kfreebsd*-gnu)
13372   version_type=linux
13373   need_lib_prefix=no
13374   need_version=no
13375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376   soname_spec='${libname}${release}${shared_ext}$major'
13377   shlibpath_var=LD_LIBRARY_PATH
13378   shlibpath_overrides_runpath=no
13379   hardcode_into_libs=yes
13380   dynamic_linker='GNU ld.so'
13381   ;;
13382
13383 freebsd*)
13384   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13385   version_type=freebsd-$objformat
13386   case $version_type in
13387     freebsd-elf*)
13388       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13389       need_version=no
13390       need_lib_prefix=no
13391       ;;
13392     freebsd-*)
13393       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13394       need_version=yes
13395       ;;
13396   esac
13397   shlibpath_var=LD_LIBRARY_PATH
13398   case $host_os in
13399   freebsd2*)
13400     shlibpath_overrides_runpath=yes
13401     ;;
13402   freebsd3.01* | freebsdelf3.01*)
13403     shlibpath_overrides_runpath=yes
13404     hardcode_into_libs=yes
13405     ;;
13406   *) # from 3.2 on
13407     shlibpath_overrides_runpath=no
13408     hardcode_into_libs=yes
13409     ;;
13410   esac
13411   ;;
13412
13413 gnu*)
13414   version_type=linux
13415   need_lib_prefix=no
13416   need_version=no
13417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13418   soname_spec='${libname}${release}${shared_ext}$major'
13419   shlibpath_var=LD_LIBRARY_PATH
13420   hardcode_into_libs=yes
13421   ;;
13422
13423 hpux9* | hpux10* | hpux11*)
13424   # Give a soname corresponding to the major version so that dld.sl refuses to
13425   # link against other versions.
13426   version_type=sunos
13427   need_lib_prefix=no
13428   need_version=no
13429   case "$host_cpu" in
13430   ia64*)
13431     shrext_cmds='.so'
13432     hardcode_into_libs=yes
13433     dynamic_linker="$host_os dld.so"
13434     shlibpath_var=LD_LIBRARY_PATH
13435     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437     soname_spec='${libname}${release}${shared_ext}$major'
13438     if test "X$HPUX_IA64_MODE" = X32; then
13439       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13440     else
13441       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13442     fi
13443     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13444     ;;
13445    hppa*64*)
13446      shrext_cmds='.sl'
13447      hardcode_into_libs=yes
13448      dynamic_linker="$host_os dld.sl"
13449      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13450      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13451      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452      soname_spec='${libname}${release}${shared_ext}$major'
13453      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13454      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13455      ;;
13456    *)
13457     shrext_cmds='.sl'
13458     dynamic_linker="$host_os dld.sl"
13459     shlibpath_var=SHLIB_PATH
13460     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462     soname_spec='${libname}${release}${shared_ext}$major'
13463     ;;
13464   esac
13465   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13466   postinstall_cmds='chmod 555 $lib'
13467   ;;
13468
13469 irix5* | irix6* | nonstopux*)
13470   case $host_os in
13471     nonstopux*) version_type=nonstopux ;;
13472     *)
13473         if test "$lt_cv_prog_gnu_ld" = yes; then
13474                 version_type=linux
13475         else
13476                 version_type=irix
13477         fi ;;
13478   esac
13479   need_lib_prefix=no
13480   need_version=no
13481   soname_spec='${libname}${release}${shared_ext}$major'
13482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13483   case $host_os in
13484   irix5* | nonstopux*)
13485     libsuff= shlibsuff=
13486     ;;
13487   *)
13488     case $LD in # libtool.m4 will add one of these switches to LD
13489     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13490       libsuff= shlibsuff= libmagic=32-bit;;
13491     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13492       libsuff=32 shlibsuff=N32 libmagic=N32;;
13493     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13494       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13495     *) libsuff= shlibsuff= libmagic=never-match;;
13496     esac
13497     ;;
13498   esac
13499   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13500   shlibpath_overrides_runpath=no
13501   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13502   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13503   hardcode_into_libs=yes
13504   ;;
13505
13506 # No shared lib support for Linux oldld, aout, or coff.
13507 linux*oldld* | linux*aout* | linux*coff*)
13508   dynamic_linker=no
13509   ;;
13510
13511 # This must be Linux ELF.
13512 linux*)
13513   version_type=linux
13514   need_lib_prefix=no
13515   need_version=no
13516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517   soname_spec='${libname}${release}${shared_ext}$major'
13518   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13519   shlibpath_var=LD_LIBRARY_PATH
13520   shlibpath_overrides_runpath=no
13521   # This implies no fast_install, which is unacceptable.
13522   # Some rework will be needed to allow for fast_install
13523   # before this can be enabled.
13524   hardcode_into_libs=yes
13525
13526   # Append ld.so.conf contents to the search path
13527   if test -f /etc/ld.so.conf; then
13528     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13529     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13530   fi
13531
13532   # We used to test for /lib/ld.so.1 and disable shared libraries on
13533   # powerpc, because MkLinux only supported shared libraries with the
13534   # GNU dynamic linker.  Since this was broken with cross compilers,
13535   # most powerpc-linux boxes support dynamic linking these days and
13536   # people can always --disable-shared, the test was removed, and we
13537   # assume the GNU/Linux dynamic linker is in use.
13538   dynamic_linker='GNU/Linux ld.so'
13539   ;;
13540
13541 knetbsd*-gnu)
13542   version_type=linux
13543   need_lib_prefix=no
13544   need_version=no
13545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13546   soname_spec='${libname}${release}${shared_ext}$major'
13547   shlibpath_var=LD_LIBRARY_PATH
13548   shlibpath_overrides_runpath=no
13549   hardcode_into_libs=yes
13550   dynamic_linker='GNU ld.so'
13551   ;;
13552
13553 netbsd*)
13554   version_type=sunos
13555   need_lib_prefix=no
13556   need_version=no
13557   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13559     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13560     dynamic_linker='NetBSD (a.out) ld.so'
13561   else
13562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13563     soname_spec='${libname}${release}${shared_ext}$major'
13564     dynamic_linker='NetBSD ld.elf_so'
13565   fi
13566   shlibpath_var=LD_LIBRARY_PATH
13567   shlibpath_overrides_runpath=yes
13568   hardcode_into_libs=yes
13569   ;;
13570
13571 newsos6)
13572   version_type=linux
13573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574   shlibpath_var=LD_LIBRARY_PATH
13575   shlibpath_overrides_runpath=yes
13576   ;;
13577
13578 nto-qnx*)
13579   version_type=linux
13580   need_lib_prefix=no
13581   need_version=no
13582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583   soname_spec='${libname}${release}${shared_ext}$major'
13584   shlibpath_var=LD_LIBRARY_PATH
13585   shlibpath_overrides_runpath=yes
13586   ;;
13587
13588 openbsd*)
13589   version_type=sunos
13590   need_lib_prefix=no
13591   need_version=no
13592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13593   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13594   shlibpath_var=LD_LIBRARY_PATH
13595   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13596     case $host_os in
13597       openbsd2.[89] | openbsd2.[89].*)
13598         shlibpath_overrides_runpath=no
13599         ;;
13600       *)
13601         shlibpath_overrides_runpath=yes
13602         ;;
13603       esac
13604   else
13605     shlibpath_overrides_runpath=yes
13606   fi
13607   ;;
13608
13609 os2*)
13610   libname_spec='$name'
13611   shrext_cmds=".dll"
13612   need_lib_prefix=no
13613   library_names_spec='$libname${shared_ext} $libname.a'
13614   dynamic_linker='OS/2 ld.exe'
13615   shlibpath_var=LIBPATH
13616   ;;
13617
13618 osf3* | osf4* | osf5*)
13619   version_type=osf
13620   need_lib_prefix=no
13621   need_version=no
13622   soname_spec='${libname}${release}${shared_ext}$major'
13623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624   shlibpath_var=LD_LIBRARY_PATH
13625   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13626   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13627   ;;
13628
13629 sco3.2v5*)
13630   version_type=osf
13631   soname_spec='${libname}${release}${shared_ext}$major'
13632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633   shlibpath_var=LD_LIBRARY_PATH
13634   ;;
13635
13636 solaris*)
13637   version_type=linux
13638   need_lib_prefix=no
13639   need_version=no
13640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641   soname_spec='${libname}${release}${shared_ext}$major'
13642   shlibpath_var=LD_LIBRARY_PATH
13643   shlibpath_overrides_runpath=yes
13644   hardcode_into_libs=yes
13645   # ldd complains unless libraries are executable
13646   postinstall_cmds='chmod +x $lib'
13647   ;;
13648
13649 sunos4*)
13650   version_type=sunos
13651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13652   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13653   shlibpath_var=LD_LIBRARY_PATH
13654   shlibpath_overrides_runpath=yes
13655   if test "$with_gnu_ld" = yes; then
13656     need_lib_prefix=no
13657   fi
13658   need_version=yes
13659   ;;
13660
13661 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13662   version_type=linux
13663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664   soname_spec='${libname}${release}${shared_ext}$major'
13665   shlibpath_var=LD_LIBRARY_PATH
13666   case $host_vendor in
13667     sni)
13668       shlibpath_overrides_runpath=no
13669       need_lib_prefix=no
13670       export_dynamic_flag_spec='${wl}-Blargedynsym'
13671       runpath_var=LD_RUN_PATH
13672       ;;
13673     siemens)
13674       need_lib_prefix=no
13675       ;;
13676     motorola)
13677       need_lib_prefix=no
13678       need_version=no
13679       shlibpath_overrides_runpath=no
13680       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13681       ;;
13682   esac
13683   ;;
13684
13685 sysv4*MP*)
13686   if test -d /usr/nec ;then
13687     version_type=linux
13688     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13689     soname_spec='$libname${shared_ext}.$major'
13690     shlibpath_var=LD_LIBRARY_PATH
13691   fi
13692   ;;
13693
13694 uts4*)
13695   version_type=linux
13696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697   soname_spec='${libname}${release}${shared_ext}$major'
13698   shlibpath_var=LD_LIBRARY_PATH
13699   ;;
13700
13701 *)
13702   dynamic_linker=no
13703   ;;
13704 esac
13705 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13706 echo "${ECHO_T}$dynamic_linker" >&6
13707 test "$dynamic_linker" = no && can_build_shared=no
13708
13709 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13710 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13711 hardcode_action=
13712 if test -n "$hardcode_libdir_flag_spec" || \
13713    test -n "$runpath_var" || \
13714    test "X$hardcode_automatic" = "Xyes" ; then
13715
13716   # We can hardcode non-existant directories.
13717   if test "$hardcode_direct" != no &&
13718      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13719      # have to relink, otherwise we might link with an installed library
13720      # when we should be linking with a yet-to-be-installed one
13721      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13722      test "$hardcode_minus_L" != no; then
13723     # Linking always hardcodes the temporary library directory.
13724     hardcode_action=relink
13725   else
13726     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13727     hardcode_action=immediate
13728   fi
13729 else
13730   # We cannot hardcode anything, or else we can only hardcode existing
13731   # directories.
13732   hardcode_action=unsupported
13733 fi
13734 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13735 echo "${ECHO_T}$hardcode_action" >&6
13736
13737 if test "$hardcode_action" = relink; then
13738   # Fast installation is not supported
13739   enable_fast_install=no
13740 elif test "$shlibpath_overrides_runpath" = yes ||
13741      test "$enable_shared" = no; then
13742   # Fast installation is not necessary
13743   enable_fast_install=needless
13744 fi
13745
13746 striplib=
13747 old_striplib=
13748 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13749 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13750 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13751   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13752   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13753   echo "$as_me:$LINENO: result: yes" >&5
13754 echo "${ECHO_T}yes" >&6
13755 else
13756 # FIXME - insert some real tests, host_os isn't really good enough
13757   case $host_os in
13758    darwin*)
13759        if test -n "$STRIP" ; then
13760          striplib="$STRIP -x"
13761          echo "$as_me:$LINENO: result: yes" >&5
13762 echo "${ECHO_T}yes" >&6
13763        else
13764   echo "$as_me:$LINENO: result: no" >&5
13765 echo "${ECHO_T}no" >&6
13766 fi
13767        ;;
13768    *)
13769   echo "$as_me:$LINENO: result: no" >&5
13770 echo "${ECHO_T}no" >&6
13771     ;;
13772   esac
13773 fi
13774
13775 if test "x$enable_dlopen" != xyes; then
13776   enable_dlopen=unknown
13777   enable_dlopen_self=unknown
13778   enable_dlopen_self_static=unknown
13779 else
13780   lt_cv_dlopen=no
13781   lt_cv_dlopen_libs=
13782
13783   case $host_os in
13784   beos*)
13785     lt_cv_dlopen="load_add_on"
13786     lt_cv_dlopen_libs=
13787     lt_cv_dlopen_self=yes
13788     ;;
13789
13790   mingw* | pw32*)
13791     lt_cv_dlopen="LoadLibrary"
13792     lt_cv_dlopen_libs=
13793    ;;
13794
13795   cygwin*)
13796     lt_cv_dlopen="dlopen"
13797     lt_cv_dlopen_libs=
13798    ;;
13799
13800   darwin*)
13801   # if libdl is installed we need to link against it
13802     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13803 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13804 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-ldl  $LIBS"
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815
13816 /* Override any gcc2 internal prototype to avoid an error.  */
13817 #ifdef __cplusplus
13818 extern "C"
13819 #endif
13820 /* We use char because int might match the return type of a gcc2
13821    builtin and then its argument prototype would still apply.  */
13822 char dlopen ();
13823 int
13824 main ()
13825 {
13826 dlopen ();
13827   ;
13828   return 0;
13829 }
13830 _ACEOF
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833   (eval $ac_link) 2>conftest.er1
13834   ac_status=$?
13835   grep -v '^ *+' conftest.er1 >conftest.err
13836   rm -f conftest.er1
13837   cat conftest.err >&5
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } &&
13840          { ac_try='test -z "$ac_c_werror_flag"
13841                          || test ! -s conftest.err'
13842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843   (eval $ac_try) 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); }; } &&
13847          { ac_try='test -s conftest$ac_exeext'
13848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849   (eval $ac_try) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; }; then
13853   ac_cv_lib_dl_dlopen=yes
13854 else
13855   echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_cv_lib_dl_dlopen=no
13859 fi
13860 rm -f conftest.err conftest.$ac_objext \
13861       conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13863 fi
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13865 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13866 if test $ac_cv_lib_dl_dlopen = yes; then
13867   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13868 else
13869
13870     lt_cv_dlopen="dyld"
13871     lt_cv_dlopen_libs=
13872     lt_cv_dlopen_self=yes
13873
13874 fi
13875
13876    ;;
13877
13878   *)
13879     echo "$as_me:$LINENO: checking for shl_load" >&5
13880 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13881 if test "${ac_cv_func_shl_load+set}" = set; then
13882   echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884   cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13892 #define shl_load innocuous_shl_load
13893
13894 /* System header to define __stub macros and hopefully few prototypes,
13895     which can conflict with char shl_load (); below.
13896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13897     <limits.h> exists even on freestanding compilers.  */
13898
13899 #ifdef __STDC__
13900 # include <limits.h>
13901 #else
13902 # include <assert.h>
13903 #endif
13904
13905 #undef shl_load
13906
13907 /* Override any gcc2 internal prototype to avoid an error.  */
13908 #ifdef __cplusplus
13909 extern "C"
13910 {
13911 #endif
13912 /* We use char because int might match the return type of a gcc2
13913    builtin and then its argument prototype would still apply.  */
13914 char shl_load ();
13915 /* The GNU C library defines this for functions which it implements
13916     to always fail with ENOSYS.  Some functions are actually named
13917     something starting with __ and the normal name is an alias.  */
13918 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13919 choke me
13920 #else
13921 char (*f) () = shl_load;
13922 #endif
13923 #ifdef __cplusplus
13924 }
13925 #endif
13926
13927 int
13928 main ()
13929 {
13930 return f != shl_load;
13931   ;
13932   return 0;
13933 }
13934 _ACEOF
13935 rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13937   (eval $ac_link) 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } &&
13944          { ac_try='test -z "$ac_c_werror_flag"
13945                          || test ! -s conftest.err'
13946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947   (eval $ac_try) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); }; } &&
13951          { ac_try='test -s conftest$ac_exeext'
13952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953   (eval $ac_try) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   ac_cv_func_shl_load=yes
13958 else
13959   echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13961
13962 ac_cv_func_shl_load=no
13963 fi
13964 rm -f conftest.err conftest.$ac_objext \
13965       conftest$ac_exeext conftest.$ac_ext
13966 fi
13967 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13968 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13969 if test $ac_cv_func_shl_load = yes; then
13970   lt_cv_dlopen="shl_load"
13971 else
13972   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13973 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13974 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977   ac_check_lib_save_LIBS=$LIBS
13978 LIBS="-ldld  $LIBS"
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h.  */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h.  */
13985
13986 /* Override any gcc2 internal prototype to avoid an error.  */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 /* We use char because int might match the return type of a gcc2
13991    builtin and then its argument prototype would still apply.  */
13992 char shl_load ();
13993 int
13994 main ()
13995 {
13996 shl_load ();
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003   (eval $ac_link) 2>conftest.er1
14004   ac_status=$?
14005   grep -v '^ *+' conftest.er1 >conftest.err
14006   rm -f conftest.er1
14007   cat conftest.err >&5
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); } &&
14010          { ac_try='test -z "$ac_c_werror_flag"
14011                          || test ! -s conftest.err'
14012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; } &&
14017          { ac_try='test -s conftest$ac_exeext'
14018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019   (eval $ac_try) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); }; }; then
14023   ac_cv_lib_dld_shl_load=yes
14024 else
14025   echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14027
14028 ac_cv_lib_dld_shl_load=no
14029 fi
14030 rm -f conftest.err conftest.$ac_objext \
14031       conftest$ac_exeext conftest.$ac_ext
14032 LIBS=$ac_check_lib_save_LIBS
14033 fi
14034 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14035 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14036 if test $ac_cv_lib_dld_shl_load = yes; then
14037   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14038 else
14039   echo "$as_me:$LINENO: checking for dlopen" >&5
14040 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14041 if test "${ac_cv_func_dlopen+set}" = set; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044   cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14052 #define dlopen innocuous_dlopen
14053
14054 /* System header to define __stub macros and hopefully few prototypes,
14055     which can conflict with char dlopen (); below.
14056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14057     <limits.h> exists even on freestanding compilers.  */
14058
14059 #ifdef __STDC__
14060 # include <limits.h>
14061 #else
14062 # include <assert.h>
14063 #endif
14064
14065 #undef dlopen
14066
14067 /* Override any gcc2 internal prototype to avoid an error.  */
14068 #ifdef __cplusplus
14069 extern "C"
14070 {
14071 #endif
14072 /* We use char because int might match the return type of a gcc2
14073    builtin and then its argument prototype would still apply.  */
14074 char dlopen ();
14075 /* The GNU C library defines this for functions which it implements
14076     to always fail with ENOSYS.  Some functions are actually named
14077     something starting with __ and the normal name is an alias.  */
14078 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14079 choke me
14080 #else
14081 char (*f) () = dlopen;
14082 #endif
14083 #ifdef __cplusplus
14084 }
14085 #endif
14086
14087 int
14088 main ()
14089 {
14090 return f != dlopen;
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 rm -f conftest.$ac_objext conftest$ac_exeext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097   (eval $ac_link) 2>conftest.er1
14098   ac_status=$?
14099   grep -v '^ *+' conftest.er1 >conftest.err
14100   rm -f conftest.er1
14101   cat conftest.err >&5
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); } &&
14104          { ac_try='test -z "$ac_c_werror_flag"
14105                          || test ! -s conftest.err'
14106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107   (eval $ac_try) 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); }; } &&
14111          { ac_try='test -s conftest$ac_exeext'
14112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113   (eval $ac_try) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; }; then
14117   ac_cv_func_dlopen=yes
14118 else
14119   echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14121
14122 ac_cv_func_dlopen=no
14123 fi
14124 rm -f conftest.err conftest.$ac_objext \
14125       conftest$ac_exeext conftest.$ac_ext
14126 fi
14127 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14128 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14129 if test $ac_cv_func_dlopen = yes; then
14130   lt_cv_dlopen="dlopen"
14131 else
14132   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14133 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   ac_check_lib_save_LIBS=$LIBS
14138 LIBS="-ldl  $LIBS"
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145
14146 /* Override any gcc2 internal prototype to avoid an error.  */
14147 #ifdef __cplusplus
14148 extern "C"
14149 #endif
14150 /* We use char because int might match the return type of a gcc2
14151    builtin and then its argument prototype would still apply.  */
14152 char dlopen ();
14153 int
14154 main ()
14155 {
14156 dlopen ();
14157   ;
14158   return 0;
14159 }
14160 _ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163   (eval $ac_link) 2>conftest.er1
14164   ac_status=$?
14165   grep -v '^ *+' conftest.er1 >conftest.err
14166   rm -f conftest.er1
14167   cat conftest.err >&5
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } &&
14170          { ac_try='test -z "$ac_c_werror_flag"
14171                          || test ! -s conftest.err'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest$ac_exeext'
14178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179   (eval $ac_try) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183   ac_cv_lib_dl_dlopen=yes
14184 else
14185   echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ac_cv_lib_dl_dlopen=no
14189 fi
14190 rm -f conftest.err conftest.$ac_objext \
14191       conftest$ac_exeext conftest.$ac_ext
14192 LIBS=$ac_check_lib_save_LIBS
14193 fi
14194 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14195 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14196 if test $ac_cv_lib_dl_dlopen = yes; then
14197   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14198 else
14199   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14200 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14201 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14202   echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204   ac_check_lib_save_LIBS=$LIBS
14205 LIBS="-lsvld  $LIBS"
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h.  */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h.  */
14212
14213 /* Override any gcc2 internal prototype to avoid an error.  */
14214 #ifdef __cplusplus
14215 extern "C"
14216 #endif
14217 /* We use char because int might match the return type of a gcc2
14218    builtin and then its argument prototype would still apply.  */
14219 char dlopen ();
14220 int
14221 main ()
14222 {
14223 dlopen ();
14224   ;
14225   return 0;
14226 }
14227 _ACEOF
14228 rm -f conftest.$ac_objext conftest$ac_exeext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14230   (eval $ac_link) 2>conftest.er1
14231   ac_status=$?
14232   grep -v '^ *+' conftest.er1 >conftest.err
14233   rm -f conftest.er1
14234   cat conftest.err >&5
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); } &&
14237          { ac_try='test -z "$ac_c_werror_flag"
14238                          || test ! -s conftest.err'
14239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240   (eval $ac_try) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; } &&
14244          { ac_try='test -s conftest$ac_exeext'
14245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246   (eval $ac_try) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); }; }; then
14250   ac_cv_lib_svld_dlopen=yes
14251 else
14252   echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14254
14255 ac_cv_lib_svld_dlopen=no
14256 fi
14257 rm -f conftest.err conftest.$ac_objext \
14258       conftest$ac_exeext conftest.$ac_ext
14259 LIBS=$ac_check_lib_save_LIBS
14260 fi
14261 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14262 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14263 if test $ac_cv_lib_svld_dlopen = yes; then
14264   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14265 else
14266   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14267 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14268 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14269   echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271   ac_check_lib_save_LIBS=$LIBS
14272 LIBS="-ldld  $LIBS"
14273 cat >conftest.$ac_ext <<_ACEOF
14274 /* confdefs.h.  */
14275 _ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h.  */
14279
14280 /* Override any gcc2 internal prototype to avoid an error.  */
14281 #ifdef __cplusplus
14282 extern "C"
14283 #endif
14284 /* We use char because int might match the return type of a gcc2
14285    builtin and then its argument prototype would still apply.  */
14286 char dld_link ();
14287 int
14288 main ()
14289 {
14290 dld_link ();
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14297   (eval $ac_link) 2>conftest.er1
14298   ac_status=$?
14299   grep -v '^ *+' conftest.er1 >conftest.err
14300   rm -f conftest.er1
14301   cat conftest.err >&5
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } &&
14304          { ac_try='test -z "$ac_c_werror_flag"
14305                          || test ! -s conftest.err'
14306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307   (eval $ac_try) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; } &&
14311          { ac_try='test -s conftest$ac_exeext'
14312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313   (eval $ac_try) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; }; then
14317   ac_cv_lib_dld_dld_link=yes
14318 else
14319   echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 ac_cv_lib_dld_dld_link=no
14323 fi
14324 rm -f conftest.err conftest.$ac_objext \
14325       conftest$ac_exeext conftest.$ac_ext
14326 LIBS=$ac_check_lib_save_LIBS
14327 fi
14328 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14329 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14330 if test $ac_cv_lib_dld_dld_link = yes; then
14331   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14332 fi
14333
14334
14335 fi
14336
14337
14338 fi
14339
14340
14341 fi
14342
14343
14344 fi
14345
14346
14347 fi
14348
14349     ;;
14350   esac
14351
14352   if test "x$lt_cv_dlopen" != xno; then
14353     enable_dlopen=yes
14354   else
14355     enable_dlopen=no
14356   fi
14357
14358   case $lt_cv_dlopen in
14359   dlopen)
14360     save_CPPFLAGS="$CPPFLAGS"
14361     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14362
14363     save_LDFLAGS="$LDFLAGS"
14364     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14365
14366     save_LIBS="$LIBS"
14367     LIBS="$lt_cv_dlopen_libs $LIBS"
14368
14369     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14370 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14371 if test "${lt_cv_dlopen_self+set}" = set; then
14372   echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374           if test "$cross_compiling" = yes; then :
14375   lt_cv_dlopen_self=cross
14376 else
14377   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14378   lt_status=$lt_dlunknown
14379   cat > conftest.$ac_ext <<EOF
14380 #line 14380 "configure"
14381 #include "confdefs.h"
14382
14383 #if HAVE_DLFCN_H
14384 #include <dlfcn.h>
14385 #endif
14386
14387 #include <stdio.h>
14388
14389 #ifdef RTLD_GLOBAL
14390 #  define LT_DLGLOBAL           RTLD_GLOBAL
14391 #else
14392 #  ifdef DL_GLOBAL
14393 #    define LT_DLGLOBAL         DL_GLOBAL
14394 #  else
14395 #    define LT_DLGLOBAL         0
14396 #  endif
14397 #endif
14398
14399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14400    find out it does not work in some platform. */
14401 #ifndef LT_DLLAZY_OR_NOW
14402 #  ifdef RTLD_LAZY
14403 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14404 #  else
14405 #    ifdef DL_LAZY
14406 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14407 #    else
14408 #      ifdef RTLD_NOW
14409 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14410 #      else
14411 #        ifdef DL_NOW
14412 #          define LT_DLLAZY_OR_NOW      DL_NOW
14413 #        else
14414 #          define LT_DLLAZY_OR_NOW      0
14415 #        endif
14416 #      endif
14417 #    endif
14418 #  endif
14419 #endif
14420
14421 #ifdef __cplusplus
14422 extern "C" void exit (int);
14423 #endif
14424
14425 void fnord() { int i=42;}
14426 int main ()
14427 {
14428   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14429   int status = $lt_dlunknown;
14430
14431   if (self)
14432     {
14433       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14434       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14435       /* dlclose (self); */
14436     }
14437
14438     exit (status);
14439 }
14440 EOF
14441   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14442   (eval $ac_link) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14446     (./conftest; exit; ) 2>/dev/null
14447     lt_status=$?
14448     case x$lt_status in
14449       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14450       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14451       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14452     esac
14453   else :
14454     # compilation failed
14455     lt_cv_dlopen_self=no
14456   fi
14457 fi
14458 rm -fr conftest*
14459
14460
14461 fi
14462 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14463 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14464
14465     if test "x$lt_cv_dlopen_self" = xyes; then
14466       LDFLAGS="$LDFLAGS $link_static_flag"
14467       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14468 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14469 if test "${lt_cv_dlopen_self_static+set}" = set; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472           if test "$cross_compiling" = yes; then :
14473   lt_cv_dlopen_self_static=cross
14474 else
14475   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14476   lt_status=$lt_dlunknown
14477   cat > conftest.$ac_ext <<EOF
14478 #line 14478 "configure"
14479 #include "confdefs.h"
14480
14481 #if HAVE_DLFCN_H
14482 #include <dlfcn.h>
14483 #endif
14484
14485 #include <stdio.h>
14486
14487 #ifdef RTLD_GLOBAL
14488 #  define LT_DLGLOBAL           RTLD_GLOBAL
14489 #else
14490 #  ifdef DL_GLOBAL
14491 #    define LT_DLGLOBAL         DL_GLOBAL
14492 #  else
14493 #    define LT_DLGLOBAL         0
14494 #  endif
14495 #endif
14496
14497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14498    find out it does not work in some platform. */
14499 #ifndef LT_DLLAZY_OR_NOW
14500 #  ifdef RTLD_LAZY
14501 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14502 #  else
14503 #    ifdef DL_LAZY
14504 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14505 #    else
14506 #      ifdef RTLD_NOW
14507 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14508 #      else
14509 #        ifdef DL_NOW
14510 #          define LT_DLLAZY_OR_NOW      DL_NOW
14511 #        else
14512 #          define LT_DLLAZY_OR_NOW      0
14513 #        endif
14514 #      endif
14515 #    endif
14516 #  endif
14517 #endif
14518
14519 #ifdef __cplusplus
14520 extern "C" void exit (int);
14521 #endif
14522
14523 void fnord() { int i=42;}
14524 int main ()
14525 {
14526   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14527   int status = $lt_dlunknown;
14528
14529   if (self)
14530     {
14531       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14532       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14533       /* dlclose (self); */
14534     }
14535
14536     exit (status);
14537 }
14538 EOF
14539   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14540   (eval $ac_link) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14544     (./conftest; exit; ) 2>/dev/null
14545     lt_status=$?
14546     case x$lt_status in
14547       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14548       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14549       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14550     esac
14551   else :
14552     # compilation failed
14553     lt_cv_dlopen_self_static=no
14554   fi
14555 fi
14556 rm -fr conftest*
14557
14558
14559 fi
14560 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14561 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14562     fi
14563
14564     CPPFLAGS="$save_CPPFLAGS"
14565     LDFLAGS="$save_LDFLAGS"
14566     LIBS="$save_LIBS"
14567     ;;
14568   esac
14569
14570   case $lt_cv_dlopen_self in
14571   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14572   *) enable_dlopen_self=unknown ;;
14573   esac
14574
14575   case $lt_cv_dlopen_self_static in
14576   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14577   *) enable_dlopen_self_static=unknown ;;
14578   esac
14579 fi
14580
14581
14582 # Report which librarie types wil actually be built
14583 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14584 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14585 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14586 echo "${ECHO_T}$can_build_shared" >&6
14587
14588 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14589 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14590 test "$can_build_shared" = "no" && enable_shared=no
14591
14592 # On AIX, shared libraries and static libraries use the same namespace, and
14593 # are all built from PIC.
14594 case "$host_os" in
14595 aix3*)
14596   test "$enable_shared" = yes && enable_static=no
14597   if test -n "$RANLIB"; then
14598     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14599     postinstall_cmds='$RANLIB $lib'
14600   fi
14601   ;;
14602
14603 aix4* | aix5*)
14604   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14605     test "$enable_shared" = yes && enable_static=no
14606   fi
14607     ;;
14608 esac
14609 echo "$as_me:$LINENO: result: $enable_shared" >&5
14610 echo "${ECHO_T}$enable_shared" >&6
14611
14612 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14613 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14614 # Make sure either enable_shared or enable_static is yes.
14615 test "$enable_shared" = yes || enable_static=yes
14616 echo "$as_me:$LINENO: result: $enable_static" >&5
14617 echo "${ECHO_T}$enable_static" >&6
14618
14619 # The else clause should only fire when bootstrapping the
14620 # libtool distribution, otherwise you forgot to ship ltmain.sh
14621 # with your package, and you will get complaints that there are
14622 # no rules to generate ltmain.sh.
14623 if test -f "$ltmain"; then
14624   # See if we are running on zsh, and set the options which allow our commands through
14625   # without removal of \ escapes.
14626   if test -n "${ZSH_VERSION+set}" ; then
14627     setopt NO_GLOB_SUBST
14628   fi
14629   # Now quote all the things that may contain metacharacters while being
14630   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14631   # variables and quote the copies for generation of the libtool script.
14632   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14633     SED SHELL STRIP \
14634     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14635     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14636     deplibs_check_method reload_flag reload_cmds need_locks \
14637     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14638     lt_cv_sys_global_symbol_to_c_name_address \
14639     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14640     old_postinstall_cmds old_postuninstall_cmds \
14641     compiler \
14642     CC \
14643     LD \
14644     lt_prog_compiler_wl \
14645     lt_prog_compiler_pic \
14646     lt_prog_compiler_static \
14647     lt_prog_compiler_no_builtin_flag \
14648     export_dynamic_flag_spec \
14649     thread_safe_flag_spec \
14650     whole_archive_flag_spec \
14651     enable_shared_with_static_runtimes \
14652     old_archive_cmds \
14653     old_archive_from_new_cmds \
14654     predep_objects \
14655     postdep_objects \
14656     predeps \
14657     postdeps \
14658     compiler_lib_search_path \
14659     archive_cmds \
14660     archive_expsym_cmds \
14661     postinstall_cmds \
14662     postuninstall_cmds \
14663     old_archive_from_expsyms_cmds \
14664     allow_undefined_flag \
14665     no_undefined_flag \
14666     export_symbols_cmds \
14667     hardcode_libdir_flag_spec \
14668     hardcode_libdir_flag_spec_ld \
14669     hardcode_libdir_separator \
14670     hardcode_automatic \
14671     module_cmds \
14672     module_expsym_cmds \
14673     lt_cv_prog_compiler_c_o \
14674     exclude_expsyms \
14675     include_expsyms; do
14676
14677     case $var in
14678     old_archive_cmds | \
14679     old_archive_from_new_cmds | \
14680     archive_cmds | \
14681     archive_expsym_cmds | \
14682     module_cmds | \
14683     module_expsym_cmds | \
14684     old_archive_from_expsyms_cmds | \
14685     export_symbols_cmds | \
14686     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14687     postinstall_cmds | postuninstall_cmds | \
14688     old_postinstall_cmds | old_postuninstall_cmds | \
14689     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14690       # Double-quote double-evaled strings.
14691       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14692       ;;
14693     *)
14694       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14695       ;;
14696     esac
14697   done
14698
14699   case $lt_echo in
14700   *'\$0 --fallback-echo"')
14701     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14702     ;;
14703   esac
14704
14705 cfgfile="${ofile}T"
14706   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14707   $rm -f "$cfgfile"
14708   { echo "$as_me:$LINENO: creating $ofile" >&5
14709 echo "$as_me: creating $ofile" >&6;}
14710
14711   cat <<__EOF__ >> "$cfgfile"
14712 #! $SHELL
14713
14714 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14715 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14716 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14717 #
14718 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14719 # Free Software Foundation, Inc.
14720 #
14721 # This file is part of GNU Libtool:
14722 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14723 #
14724 # This program is free software; you can redistribute it and/or modify
14725 # it under the terms of the GNU General Public License as published by
14726 # the Free Software Foundation; either version 2 of the License, or
14727 # (at your option) any later version.
14728 #
14729 # This program is distributed in the hope that it will be useful, but
14730 # WITHOUT ANY WARRANTY; without even the implied warranty of
14731 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14732 # General Public License for more details.
14733 #
14734 # You should have received a copy of the GNU General Public License
14735 # along with this program; if not, write to the Free Software
14736 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14737 #
14738 # As a special exception to the GNU General Public License, if you
14739 # distribute this file as part of a program that contains a
14740 # configuration script generated by Autoconf, you may include it under
14741 # the same distribution terms that you use for the rest of that program.
14742
14743 # A sed program that does not truncate output.
14744 SED=$lt_SED
14745
14746 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14747 Xsed="$SED -e s/^X//"
14748
14749 # The HP-UX ksh and POSIX shell print the target directory to stdout
14750 # if CDPATH is set.
14751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14752
14753 # The names of the tagged configurations supported by this script.
14754 available_tags=
14755
14756 # ### BEGIN LIBTOOL CONFIG
14757
14758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14759
14760 # Shell to use when invoking shell scripts.
14761 SHELL=$lt_SHELL
14762
14763 # Whether or not to build shared libraries.
14764 build_libtool_libs=$enable_shared
14765
14766 # Whether or not to build static libraries.
14767 build_old_libs=$enable_static
14768
14769 # Whether or not to add -lc for building shared libraries.
14770 build_libtool_need_lc=$archive_cmds_need_lc
14771
14772 # Whether or not to disallow shared libs when runtime libs are static
14773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14774
14775 # Whether or not to optimize for fast installation.
14776 fast_install=$enable_fast_install
14777
14778 # The host system.
14779 host_alias=$host_alias
14780 host=$host
14781
14782 # An echo program that does not interpret backslashes.
14783 echo=$lt_echo
14784
14785 # The archiver.
14786 AR=$lt_AR
14787 AR_FLAGS=$lt_AR_FLAGS
14788
14789 # A C compiler.
14790 LTCC=$lt_LTCC
14791
14792 # A language-specific compiler.
14793 CC=$lt_compiler
14794
14795 # Is the compiler the GNU C compiler?
14796 with_gcc=$GCC
14797
14798 # An ERE matcher.
14799 EGREP=$lt_EGREP
14800
14801 # The linker used to build libraries.
14802 LD=$lt_LD
14803
14804 # Whether we need hard or soft links.
14805 LN_S=$lt_LN_S
14806
14807 # A BSD-compatible nm program.
14808 NM=$lt_NM
14809
14810 # A symbol stripping program
14811 STRIP=$lt_STRIP
14812
14813 # Used to examine libraries when file_magic_cmd begins "file"
14814 MAGIC_CMD=$MAGIC_CMD
14815
14816 # Used on cygwin: DLL creation program.
14817 DLLTOOL="$DLLTOOL"
14818
14819 # Used on cygwin: object dumper.
14820 OBJDUMP="$OBJDUMP"
14821
14822 # Used on cygwin: assembler.
14823 AS="$AS"
14824
14825 # The name of the directory that contains temporary libtool files.
14826 objdir=$objdir
14827
14828 # How to create reloadable object files.
14829 reload_flag=$lt_reload_flag
14830 reload_cmds=$lt_reload_cmds
14831
14832 # How to pass a linker flag through the compiler.
14833 wl=$lt_lt_prog_compiler_wl
14834
14835 # Object file suffix (normally "o").
14836 objext="$ac_objext"
14837
14838 # Old archive suffix (normally "a").
14839 libext="$libext"
14840
14841 # Shared library suffix (normally ".so").
14842 shrext_cmds='$shrext_cmds'
14843
14844 # Executable file suffix (normally "").
14845 exeext="$exeext"
14846
14847 # Additional compiler flags for building library objects.
14848 pic_flag=$lt_lt_prog_compiler_pic
14849 pic_mode=$pic_mode
14850
14851 # What is the maximum length of a command?
14852 max_cmd_len=$lt_cv_sys_max_cmd_len
14853
14854 # Does compiler simultaneously support -c and -o options?
14855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14856
14857 # Must we lock files when doing compilation ?
14858 need_locks=$lt_need_locks
14859
14860 # Do we need the lib prefix for modules?
14861 need_lib_prefix=$need_lib_prefix
14862
14863 # Do we need a version for libraries?
14864 need_version=$need_version
14865
14866 # Whether dlopen is supported.
14867 dlopen_support=$enable_dlopen
14868
14869 # Whether dlopen of programs is supported.
14870 dlopen_self=$enable_dlopen_self
14871
14872 # Whether dlopen of statically linked programs is supported.
14873 dlopen_self_static=$enable_dlopen_self_static
14874
14875 # Compiler flag to prevent dynamic linking.
14876 link_static_flag=$lt_lt_prog_compiler_static
14877
14878 # Compiler flag to turn off builtin functions.
14879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14880
14881 # Compiler flag to allow reflexive dlopens.
14882 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14883
14884 # Compiler flag to generate shared objects directly from archives.
14885 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14886
14887 # Compiler flag to generate thread-safe objects.
14888 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14889
14890 # Library versioning type.
14891 version_type=$version_type
14892
14893 # Format of library name prefix.
14894 libname_spec=$lt_libname_spec
14895
14896 # List of archive names.  First name is the real one, the rest are links.
14897 # The last name is the one that the linker finds with -lNAME.
14898 library_names_spec=$lt_library_names_spec
14899
14900 # The coded name of the library, if different from the real name.
14901 soname_spec=$lt_soname_spec
14902
14903 # Commands used to build and install an old-style archive.
14904 RANLIB=$lt_RANLIB
14905 old_archive_cmds=$lt_old_archive_cmds
14906 old_postinstall_cmds=$lt_old_postinstall_cmds
14907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14908
14909 # Create an old-style archive from a shared archive.
14910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14911
14912 # Create a temporary old-style archive to link instead of a shared archive.
14913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14914
14915 # Commands used to build and install a shared archive.
14916 archive_cmds=$lt_archive_cmds
14917 archive_expsym_cmds=$lt_archive_expsym_cmds
14918 postinstall_cmds=$lt_postinstall_cmds
14919 postuninstall_cmds=$lt_postuninstall_cmds
14920
14921 # Commands used to build a loadable module (assumed same as above if empty)
14922 module_cmds=$lt_module_cmds
14923 module_expsym_cmds=$lt_module_expsym_cmds
14924
14925 # Commands to strip libraries.
14926 old_striplib=$lt_old_striplib
14927 striplib=$lt_striplib
14928
14929 # Dependencies to place before the objects being linked to create a
14930 # shared library.
14931 predep_objects=$lt_predep_objects
14932
14933 # Dependencies to place after the objects being linked to create a
14934 # shared library.
14935 postdep_objects=$lt_postdep_objects
14936
14937 # Dependencies to place before the objects being linked to create a
14938 # shared library.
14939 predeps=$lt_predeps
14940
14941 # Dependencies to place after the objects being linked to create a
14942 # shared library.
14943 postdeps=$lt_postdeps
14944
14945 # The library search path used internally by the compiler when linking
14946 # a shared library.
14947 compiler_lib_search_path=$lt_compiler_lib_search_path
14948
14949 # Method to check whether dependent libraries are shared objects.
14950 deplibs_check_method=$lt_deplibs_check_method
14951
14952 # Command to use when deplibs_check_method == file_magic.
14953 file_magic_cmd=$lt_file_magic_cmd
14954
14955 # Flag that allows shared libraries with undefined symbols to be built.
14956 allow_undefined_flag=$lt_allow_undefined_flag
14957
14958 # Flag that forces no undefined symbols.
14959 no_undefined_flag=$lt_no_undefined_flag
14960
14961 # Commands used to finish a libtool library installation in a directory.
14962 finish_cmds=$lt_finish_cmds
14963
14964 # Same as above, but a single script fragment to be evaled but not shown.
14965 finish_eval=$lt_finish_eval
14966
14967 # Take the output of nm and produce a listing of raw symbols and C names.
14968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14969
14970 # Transform the output of nm in a proper C declaration
14971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14972
14973 # Transform the output of nm in a C name address pair
14974 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14975
14976 # This is the shared library runtime path variable.
14977 runpath_var=$runpath_var
14978
14979 # This is the shared library path variable.
14980 shlibpath_var=$shlibpath_var
14981
14982 # Is shlibpath searched before the hard-coded library search path?
14983 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14984
14985 # How to hardcode a shared library path into an executable.
14986 hardcode_action=$hardcode_action
14987
14988 # Whether we should hardcode library paths into libraries.
14989 hardcode_into_libs=$hardcode_into_libs
14990
14991 # Flag to hardcode \$libdir into a binary during linking.
14992 # This must work even if \$libdir does not exist.
14993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14994
14995 # If ld is used when linking, flag to hardcode \$libdir into
14996 # a binary during linking. This must work even if \$libdir does
14997 # not exist.
14998 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14999
15000 # Whether we need a single -rpath flag with a separated argument.
15001 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15002
15003 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15004 # resulting binary.
15005 hardcode_direct=$hardcode_direct
15006
15007 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15008 # resulting binary.
15009 hardcode_minus_L=$hardcode_minus_L
15010
15011 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15012 # the resulting binary.
15013 hardcode_shlibpath_var=$hardcode_shlibpath_var
15014
15015 # Set to yes if building a shared library automatically hardcodes DIR into the library
15016 # and all subsequent libraries and executables linked against it.
15017 hardcode_automatic=$hardcode_automatic
15018
15019 # Variables whose values should be saved in libtool wrapper scripts and
15020 # restored at relink time.
15021 variables_saved_for_relink="$variables_saved_for_relink"
15022
15023 # Whether libtool must link a program against all its dependency libraries.
15024 link_all_deplibs=$link_all_deplibs
15025
15026 # Compile-time system search path for libraries
15027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15028
15029 # Run-time system search path for libraries
15030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15031
15032 # Fix the shell variable \$srcfile for the compiler.
15033 fix_srcfile_path="$fix_srcfile_path"
15034
15035 # Set to yes if exported symbols are required.
15036 always_export_symbols=$always_export_symbols
15037
15038 # The commands to list exported symbols.
15039 export_symbols_cmds=$lt_export_symbols_cmds
15040
15041 # The commands to extract the exported symbol list from a shared archive.
15042 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15043
15044 # Symbols that should not be listed in the preloaded symbols.
15045 exclude_expsyms=$lt_exclude_expsyms
15046
15047 # Symbols that must always be exported.
15048 include_expsyms=$lt_include_expsyms
15049
15050 # ### END LIBTOOL CONFIG
15051
15052 __EOF__
15053
15054
15055   case $host_os in
15056   aix3*)
15057     cat <<\EOF >> "$cfgfile"
15058
15059 # AIX sometimes has problems with the GCC collect2 program.  For some
15060 # reason, if we set the COLLECT_NAMES environment variable, the problems
15061 # vanish in a puff of smoke.
15062 if test "X${COLLECT_NAMES+set}" != Xset; then
15063   COLLECT_NAMES=
15064   export COLLECT_NAMES
15065 fi
15066 EOF
15067     ;;
15068   esac
15069
15070   # We use sed instead of cat because bash on DJGPP gets confused if
15071   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15072   # text mode, it properly converts lines to CR/LF.  This bash problem
15073   # is reportedly fixed, but why not run on old versions too?
15074   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15075
15076   mv -f "$cfgfile" "$ofile" || \
15077     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15078   chmod +x "$ofile"
15079
15080 else
15081   # If there is no Makefile yet, we rely on a make rule to execute
15082   # `config.status --recheck' to rerun these tests and create the
15083   # libtool script then.
15084   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15085   if test -f "$ltmain_in"; then
15086     test -f Makefile && make "$ltmain"
15087   fi
15088 fi
15089
15090
15091 ac_ext=c
15092 ac_cpp='$CPP $CPPFLAGS'
15093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15096
15097 CC="$lt_save_CC"
15098
15099
15100 # Check whether --with-tags or --without-tags was given.
15101 if test "${with_tags+set}" = set; then
15102   withval="$with_tags"
15103   tagnames="$withval"
15104 fi;
15105
15106 if test -f "$ltmain" && test -n "$tagnames"; then
15107   if test ! -f "${ofile}"; then
15108     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15109 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15110   fi
15111
15112   if test -z "$LTCC"; then
15113     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15114     if test -z "$LTCC"; then
15115       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15116 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15117     else
15118       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15119 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15120     fi
15121   fi
15122
15123   # Extract list of available tagged configurations in $ofile.
15124   # Note that this assumes the entire list is on one line.
15125   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15126
15127   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15128   for tagname in $tagnames; do
15129     IFS="$lt_save_ifs"
15130     # Check whether tagname contains only valid characters
15131     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15132     "") ;;
15133     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15134 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15135    { (exit 1); exit 1; }; }
15136         ;;
15137     esac
15138
15139     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15140     then
15141       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15142 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15143    { (exit 1); exit 1; }; }
15144     fi
15145
15146     # Update the list of available tags.
15147     if test -n "$tagname"; then
15148       echo appending configuration tag "$tagname" to $ofile
15149
15150       case $tagname in
15151       CXX)
15152         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15153             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15154             (test "X$CXX" != "Xg++"))) ; then
15155           ac_ext=cc
15156 ac_cpp='$CXXCPP $CPPFLAGS'
15157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15160
15161
15162
15163
15164 archive_cmds_need_lc_CXX=no
15165 allow_undefined_flag_CXX=
15166 always_export_symbols_CXX=no
15167 archive_expsym_cmds_CXX=
15168 export_dynamic_flag_spec_CXX=
15169 hardcode_direct_CXX=no
15170 hardcode_libdir_flag_spec_CXX=
15171 hardcode_libdir_flag_spec_ld_CXX=
15172 hardcode_libdir_separator_CXX=
15173 hardcode_minus_L_CXX=no
15174 hardcode_automatic_CXX=no
15175 module_cmds_CXX=
15176 module_expsym_cmds_CXX=
15177 link_all_deplibs_CXX=unknown
15178 old_archive_cmds_CXX=$old_archive_cmds
15179 no_undefined_flag_CXX=
15180 whole_archive_flag_spec_CXX=
15181 enable_shared_with_static_runtimes_CXX=no
15182
15183 # Dependencies to place before and after the object being linked:
15184 predep_objects_CXX=
15185 postdep_objects_CXX=
15186 predeps_CXX=
15187 postdeps_CXX=
15188 compiler_lib_search_path_CXX=
15189
15190 # Source file extension for C++ test sources.
15191 ac_ext=cc
15192
15193 # Object file extension for compiled C++ test sources.
15194 objext=o
15195 objext_CXX=$objext
15196
15197 # Code to be used in simple compile tests
15198 lt_simple_compile_test_code="int some_variable = 0;\n"
15199
15200 # Code to be used in simple link tests
15201 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15202
15203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15204
15205 # If no C compiler was specified, use CC.
15206 LTCC=${LTCC-"$CC"}
15207
15208 # Allow CC to be a program name with arguments.
15209 compiler=$CC
15210
15211
15212 # Allow CC to be a program name with arguments.
15213 lt_save_CC=$CC
15214 lt_save_LD=$LD
15215 lt_save_GCC=$GCC
15216 GCC=$GXX
15217 lt_save_with_gnu_ld=$with_gnu_ld
15218 lt_save_path_LD=$lt_cv_path_LD
15219 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15220   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15221 else
15222   unset lt_cv_prog_gnu_ld
15223 fi
15224 if test -n "${lt_cv_path_LDCXX+set}"; then
15225   lt_cv_path_LD=$lt_cv_path_LDCXX
15226 else
15227   unset lt_cv_path_LD
15228 fi
15229 test -z "${LDCXX+set}" || LD=$LDCXX
15230 CC=${CXX-"c++"}
15231 compiler=$CC
15232 compiler_CXX=$CC
15233 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15234
15235 # We don't want -fno-exception wen compiling C++ code, so set the
15236 # no_builtin_flag separately
15237 if test "$GXX" = yes; then
15238   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15239 else
15240   lt_prog_compiler_no_builtin_flag_CXX=
15241 fi
15242
15243 if test "$GXX" = yes; then
15244   # Set up default GNU C++ configuration
15245
15246
15247 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15248 if test "${with_gnu_ld+set}" = set; then
15249   withval="$with_gnu_ld"
15250   test "$withval" = no || with_gnu_ld=yes
15251 else
15252   with_gnu_ld=no
15253 fi;
15254 ac_prog=ld
15255 if test "$GCC" = yes; then
15256   # Check if gcc -print-prog-name=ld gives a path.
15257   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15258 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15259   case $host in
15260   *-*-mingw*)
15261     # gcc leaves a trailing carriage return which upsets mingw
15262     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15263   *)
15264     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15265   esac
15266   case $ac_prog in
15267     # Accept absolute paths.
15268     [\\/]* | ?:[\\/]*)
15269       re_direlt='/[^/][^/]*/\.\./'
15270       # Canonicalize the pathname of ld
15271       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15272       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15273         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15274       done
15275       test -z "$LD" && LD="$ac_prog"
15276       ;;
15277   "")
15278     # If it fails, then pretend we aren't using GCC.
15279     ac_prog=ld
15280     ;;
15281   *)
15282     # If it is relative, then search for the first ld in PATH.
15283     with_gnu_ld=unknown
15284     ;;
15285   esac
15286 elif test "$with_gnu_ld" = yes; then
15287   echo "$as_me:$LINENO: checking for GNU ld" >&5
15288 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15289 else
15290   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15291 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15292 fi
15293 if test "${lt_cv_path_LD+set}" = set; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   if test -z "$LD"; then
15297   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15298   for ac_dir in $PATH; do
15299     IFS="$lt_save_ifs"
15300     test -z "$ac_dir" && ac_dir=.
15301     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15302       lt_cv_path_LD="$ac_dir/$ac_prog"
15303       # Check to see if the program is GNU ld.  I'd rather use --version,
15304       # but apparently some GNU ld's only accept -v.
15305       # Break only if it was the GNU/non-GNU ld that we prefer.
15306       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15307       *GNU* | *'with BFD'*)
15308         test "$with_gnu_ld" != no && break
15309         ;;
15310       *)
15311         test "$with_gnu_ld" != yes && break
15312         ;;
15313       esac
15314     fi
15315   done
15316   IFS="$lt_save_ifs"
15317 else
15318   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15319 fi
15320 fi
15321
15322 LD="$lt_cv_path_LD"
15323 if test -n "$LD"; then
15324   echo "$as_me:$LINENO: result: $LD" >&5
15325 echo "${ECHO_T}$LD" >&6
15326 else
15327   echo "$as_me:$LINENO: result: no" >&5
15328 echo "${ECHO_T}no" >&6
15329 fi
15330 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15331 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15332    { (exit 1); exit 1; }; }
15333 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15334 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15335 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15336   echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15339 case `$LD -v 2>&1 </dev/null` in
15340 *GNU* | *'with BFD'*)
15341   lt_cv_prog_gnu_ld=yes
15342   ;;
15343 *)
15344   lt_cv_prog_gnu_ld=no
15345   ;;
15346 esac
15347 fi
15348 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15349 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15350 with_gnu_ld=$lt_cv_prog_gnu_ld
15351
15352
15353
15354   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15355   # archiving commands below assume that GNU ld is being used.
15356   if test "$with_gnu_ld" = yes; then
15357     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15358     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15359
15360     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15361     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15362
15363     # If archive_cmds runs LD, not CC, wlarc should be empty
15364     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15365     #     investigate it a little bit more. (MM)
15366     wlarc='${wl}'
15367
15368     # ancient GNU ld didn't support --whole-archive et. al.
15369     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15370         grep 'no-whole-archive' > /dev/null; then
15371       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15372     else
15373       whole_archive_flag_spec_CXX=
15374     fi
15375   else
15376     with_gnu_ld=no
15377     wlarc=
15378
15379     # A generic and very simple default shared library creation
15380     # command for GNU C++ for the case where it uses the native
15381     # linker, instead of GNU ld.  If possible, this setting should
15382     # overridden to take advantage of the native linker features on
15383     # the platform it is being used on.
15384     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15385   fi
15386
15387   # Commands to make compiler produce verbose output that lists
15388   # what "hidden" libraries, object files and flags are used when
15389   # linking a shared library.
15390   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15391
15392 else
15393   GXX=no
15394   with_gnu_ld=no
15395   wlarc=
15396 fi
15397
15398 # PORTME: fill in a description of your system's C++ link characteristics
15399 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15400 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15401 ld_shlibs_CXX=yes
15402 case $host_os in
15403   aix3*)
15404     # FIXME: insert proper C++ library support
15405     ld_shlibs_CXX=no
15406     ;;
15407   aix4* | aix5*)
15408     if test "$host_cpu" = ia64; then
15409       # On IA64, the linker does run time linking by default, so we don't
15410       # have to do anything special.
15411       aix_use_runtimelinking=no
15412       exp_sym_flag='-Bexport'
15413       no_entry_flag=""
15414     else
15415       aix_use_runtimelinking=no
15416
15417       # Test if we are trying to use run time linking or normal
15418       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15419       # need to do runtime linking.
15420       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15421         for ld_flag in $LDFLAGS; do
15422           case $ld_flag in
15423           *-brtl*)
15424             aix_use_runtimelinking=yes
15425             break
15426             ;;
15427           esac
15428         done
15429       esac
15430
15431       exp_sym_flag='-bexport'
15432       no_entry_flag='-bnoentry'
15433     fi
15434
15435     # When large executables or shared objects are built, AIX ld can
15436     # have problems creating the table of contents.  If linking a library
15437     # or program results in "error TOC overflow" add -mminimal-toc to
15438     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15439     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15440
15441     archive_cmds_CXX=''
15442     hardcode_direct_CXX=yes
15443     hardcode_libdir_separator_CXX=':'
15444     link_all_deplibs_CXX=yes
15445
15446     if test "$GXX" = yes; then
15447       case $host_os in aix4.012|aix4.012.*)
15448       # We only want to do this on AIX 4.2 and lower, the check
15449       # below for broken collect2 doesn't work under 4.3+
15450         collect2name=`${CC} -print-prog-name=collect2`
15451         if test -f "$collect2name" && \
15452            strings "$collect2name" | grep resolve_lib_name >/dev/null
15453         then
15454           # We have reworked collect2
15455           hardcode_direct_CXX=yes
15456         else
15457           # We have old collect2
15458           hardcode_direct_CXX=unsupported
15459           # It fails to find uninstalled libraries when the uninstalled
15460           # path is not listed in the libpath.  Setting hardcode_minus_L
15461           # to unsupported forces relinking
15462           hardcode_minus_L_CXX=yes
15463           hardcode_libdir_flag_spec_CXX='-L$libdir'
15464           hardcode_libdir_separator_CXX=
15465         fi
15466       esac
15467       shared_flag='-shared'
15468     else
15469       # not using gcc
15470       if test "$host_cpu" = ia64; then
15471         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15472         # chokes on -Wl,-G. The following line is correct:
15473         shared_flag='-G'
15474       else
15475         if test "$aix_use_runtimelinking" = yes; then
15476           shared_flag='${wl}-G'
15477         else
15478           shared_flag='${wl}-bM:SRE'
15479         fi
15480       fi
15481     fi
15482
15483     # It seems that -bexpall does not export symbols beginning with
15484     # underscore (_), so it is better to generate a list of symbols to export.
15485     always_export_symbols_CXX=yes
15486     if test "$aix_use_runtimelinking" = yes; then
15487       # Warning - without using the other runtime loading flags (-brtl),
15488       # -berok will link without error, but may produce a broken library.
15489       allow_undefined_flag_CXX='-berok'
15490       # Determine the default libpath from the value encoded in an empty executable.
15491       cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h.  */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h.  */
15497
15498 int
15499 main ()
15500 {
15501
15502   ;
15503   return 0;
15504 }
15505 _ACEOF
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508   (eval $ac_link) 2>conftest.er1
15509   ac_status=$?
15510   grep -v '^ *+' conftest.er1 >conftest.err
15511   rm -f conftest.er1
15512   cat conftest.err >&5
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); } &&
15515          { ac_try='test -z "$ac_cxx_werror_flag"
15516                          || test ! -s conftest.err'
15517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518   (eval $ac_try) 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; } &&
15522          { ac_try='test -s conftest$ac_exeext'
15523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524   (eval $ac_try) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; }; then
15528
15529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15530 }'`
15531 # Check for a 64-bit object if we didn't find anything.
15532 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15533 }'`; fi
15534 else
15535   echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15537
15538 fi
15539 rm -f conftest.err conftest.$ac_objext \
15540       conftest$ac_exeext conftest.$ac_ext
15541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15542
15543       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15544
15545       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15546      else
15547       if test "$host_cpu" = ia64; then
15548         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15549         allow_undefined_flag_CXX="-z nodefs"
15550         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15551       else
15552         # Determine the default libpath from the value encoded in an empty executable.
15553         cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559
15560 int
15561 main ()
15562 {
15563
15564   ;
15565   return 0;
15566 }
15567 _ACEOF
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570   (eval $ac_link) 2>conftest.er1
15571   ac_status=$?
15572   grep -v '^ *+' conftest.er1 >conftest.err
15573   rm -f conftest.er1
15574   cat conftest.err >&5
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); } &&
15577          { ac_try='test -z "$ac_cxx_werror_flag"
15578                          || test ! -s conftest.err'
15579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580   (eval $ac_try) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest$ac_exeext'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; }; then
15590
15591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15592 }'`
15593 # Check for a 64-bit object if we didn't find anything.
15594 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15595 }'`; fi
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 fi
15601 rm -f conftest.err conftest.$ac_objext \
15602       conftest$ac_exeext conftest.$ac_ext
15603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15604
15605         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15606         # Warning - without using the other run time loading flags,
15607         # -berok will link without error, but may produce a broken library.
15608         no_undefined_flag_CXX=' ${wl}-bernotok'
15609         allow_undefined_flag_CXX=' ${wl}-berok'
15610         # -bexpall does not export symbols beginning with underscore (_)
15611         always_export_symbols_CXX=yes
15612         # Exported symbols can be pulled into shared objects from archives
15613         whole_archive_flag_spec_CXX=' '
15614         archive_cmds_need_lc_CXX=yes
15615         # This is similar to how AIX traditionally builds it's shared libraries.
15616         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15617       fi
15618     fi
15619     ;;
15620   chorus*)
15621     case $cc_basename in
15622       *)
15623         # FIXME: insert proper C++ library support
15624         ld_shlibs_CXX=no
15625         ;;
15626     esac
15627     ;;
15628
15629
15630   cygwin* | mingw* | pw32*)
15631     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15632     # as there is no search path for DLLs.
15633     hardcode_libdir_flag_spec_CXX='-L$libdir'
15634     allow_undefined_flag_CXX=unsupported
15635     always_export_symbols_CXX=no
15636     enable_shared_with_static_runtimes_CXX=yes
15637
15638     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15639       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15640       # If the export-symbols file already is a .def file (1st line
15641       # is EXPORTS), use it as is; otherwise, prepend...
15642       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15643         cp $export_symbols $output_objdir/$soname.def;
15644       else
15645         echo EXPORTS > $output_objdir/$soname.def;
15646         cat $export_symbols >> $output_objdir/$soname.def;
15647       fi~
15648       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15649     else
15650       ld_shlibs_CXX=no
15651     fi
15652   ;;
15653       darwin* | rhapsody*)
15654         case "$host_os" in
15655         rhapsody* | darwin1.[012])
15656          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15657          ;;
15658        *) # Darwin 1.3 on
15659          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15660            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15661          else
15662            case ${MACOSX_DEPLOYMENT_TARGET} in
15663              10.[012])
15664                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15665                ;;
15666              10.*)
15667                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15668                ;;
15669            esac
15670          fi
15671          ;;
15672         esac
15673       archive_cmds_need_lc_CXX=no
15674       hardcode_direct_CXX=no
15675       hardcode_automatic_CXX=yes
15676       hardcode_shlibpath_var_CXX=unsupported
15677       whole_archive_flag_spec_CXX=''
15678       link_all_deplibs_CXX=yes
15679
15680     if test "$GXX" = yes ; then
15681       lt_int_apple_cc_single_mod=no
15682       output_verbose_link_cmd='echo'
15683       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15684        lt_int_apple_cc_single_mod=yes
15685       fi
15686       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15687        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15688       else
15689           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15690         fi
15691         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15692         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15693           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15694             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15695           else
15696             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15697           fi
15698             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15699       else
15700       case "$cc_basename" in
15701         xlc*)
15702          output_verbose_link_cmd='echo'
15703           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15704           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15705           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15706           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15707           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15708           ;;
15709        *)
15710          ld_shlibs_CXX=no
15711           ;;
15712       esac
15713       fi
15714         ;;
15715
15716   dgux*)
15717     case $cc_basename in
15718       ec++)
15719         # FIXME: insert proper C++ library support
15720         ld_shlibs_CXX=no
15721         ;;
15722       ghcx)
15723         # Green Hills C++ Compiler
15724         # FIXME: insert proper C++ library support
15725         ld_shlibs_CXX=no
15726         ;;
15727       *)
15728         # FIXME: insert proper C++ library support
15729         ld_shlibs_CXX=no
15730         ;;
15731     esac
15732     ;;
15733   freebsd12*)
15734     # C++ shared libraries reported to be fairly broken before switch to ELF
15735     ld_shlibs_CXX=no
15736     ;;
15737   freebsd-elf*)
15738     archive_cmds_need_lc_CXX=no
15739     ;;
15740   freebsd* | kfreebsd*-gnu)
15741     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15742     # conventions
15743     ld_shlibs_CXX=yes
15744     ;;
15745   gnu*)
15746     ;;
15747   hpux9*)
15748     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15749     hardcode_libdir_separator_CXX=:
15750     export_dynamic_flag_spec_CXX='${wl}-E'
15751     hardcode_direct_CXX=yes
15752     hardcode_minus_L_CXX=yes # Not in the search PATH,
15753                                 # but as the default
15754                                 # location of the library.
15755
15756     case $cc_basename in
15757     CC)
15758       # FIXME: insert proper C++ library support
15759       ld_shlibs_CXX=no
15760       ;;
15761     aCC)
15762       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15763       # Commands to make compiler produce verbose output that lists
15764       # what "hidden" libraries, object files and flags are used when
15765       # linking a shared library.
15766       #
15767       # There doesn't appear to be a way to prevent this compiler from
15768       # explicitly linking system object files so we need to strip them
15769       # from the output so that they don't get included in the library
15770       # dependencies.
15771       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15772       ;;
15773     *)
15774       if test "$GXX" = yes; then
15775         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15776       else
15777         # FIXME: insert proper C++ library support
15778         ld_shlibs_CXX=no
15779       fi
15780       ;;
15781     esac
15782     ;;
15783   hpux10*|hpux11*)
15784     if test $with_gnu_ld = no; then
15785       case "$host_cpu" in
15786       hppa*64*)
15787         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15788         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15789         hardcode_libdir_separator_CXX=:
15790         ;;
15791       ia64*)
15792         hardcode_libdir_flag_spec_CXX='-L$libdir'
15793         ;;
15794       *)
15795         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15796         hardcode_libdir_separator_CXX=:
15797         export_dynamic_flag_spec_CXX='${wl}-E'
15798         ;;
15799       esac
15800     fi
15801     case "$host_cpu" in
15802     hppa*64*)
15803       hardcode_direct_CXX=no
15804       hardcode_shlibpath_var_CXX=no
15805       ;;
15806     ia64*)
15807       hardcode_direct_CXX=no
15808       hardcode_shlibpath_var_CXX=no
15809       hardcode_minus_L_CXX=yes # Not in the search PATH,
15810                                               # but as the default
15811                                               # location of the library.
15812       ;;
15813     *)
15814       hardcode_direct_CXX=yes
15815       hardcode_minus_L_CXX=yes # Not in the search PATH,
15816                                               # but as the default
15817                                               # location of the library.
15818       ;;
15819     esac
15820
15821     case $cc_basename in
15822       CC)
15823         # FIXME: insert proper C++ library support
15824         ld_shlibs_CXX=no
15825         ;;
15826       aCC)
15827         case "$host_cpu" in
15828         hppa*64*|ia64*)
15829           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15830           ;;
15831         *)
15832           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15833           ;;
15834         esac
15835         # Commands to make compiler produce verbose output that lists
15836         # what "hidden" libraries, object files and flags are used when
15837         # linking a shared library.
15838         #
15839         # There doesn't appear to be a way to prevent this compiler from
15840         # explicitly linking system object files so we need to strip them
15841         # from the output so that they don't get included in the library
15842         # dependencies.
15843         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15844         ;;
15845       *)
15846         if test "$GXX" = yes; then
15847           if test $with_gnu_ld = no; then
15848             case "$host_cpu" in
15849             ia64*|hppa*64*)
15850               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15851               ;;
15852             *)
15853               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15854               ;;
15855             esac
15856           fi
15857         else
15858           # FIXME: insert proper C++ library support
15859           ld_shlibs_CXX=no
15860         fi
15861         ;;
15862     esac
15863     ;;
15864   irix5* | irix6*)
15865     case $cc_basename in
15866       CC)
15867         # SGI C++
15868         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
15869
15870         # Archives containing C++ object files must be created using
15871         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15872         # necessary to make sure instantiated templates are included
15873         # in the archive.
15874         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15875         ;;
15876       *)
15877         if test "$GXX" = yes; then
15878           if test "$with_gnu_ld" = no; then
15879             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15880           else
15881             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
15882           fi
15883         fi
15884         link_all_deplibs_CXX=yes
15885         ;;
15886     esac
15887     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15888     hardcode_libdir_separator_CXX=:
15889     ;;
15890   linux*)
15891     case $cc_basename in
15892       KCC)
15893         # Kuck and Associates, Inc. (KAI) C++ Compiler
15894
15895         # KCC will only create a shared library if the output file
15896         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15897         # to its proper name (with version) after linking.
15898         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15899         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15900         # Commands to make compiler produce verbose output that lists
15901         # what "hidden" libraries, object files and flags are used when
15902         # linking a shared library.
15903         #
15904         # There doesn't appear to be a way to prevent this compiler from
15905         # explicitly linking system object files so we need to strip them
15906         # from the output so that they don't get included in the library
15907         # dependencies.
15908         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15909
15910         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15911         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15912
15913         # Archives containing C++ object files must be created using
15914         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15915         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15916         ;;
15917       icpc)
15918         # Intel C++
15919         with_gnu_ld=yes
15920         # version 8.0 and above of icpc choke on multiply defined symbols
15921         # if we add $predep_objects and $postdep_objects, however 7.1 and
15922         # earlier do not add the objects themselves.
15923         case `$CC -V 2>&1` in
15924         *"Version 7."*)
15925           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15926           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15927           ;;
15928         *)  # Version 8.0 or newer
15929           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15930         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15931           ;;
15932         esac
15933         archive_cmds_need_lc_CXX=no
15934         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15935         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15936         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15937         ;;
15938       cxx)
15939         # Compaq C++
15940         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15942
15943         runpath_var=LD_RUN_PATH
15944         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15945         hardcode_libdir_separator_CXX=:
15946
15947         # Commands to make compiler produce verbose output that lists
15948         # what "hidden" libraries, object files and flags are used when
15949         # linking a shared library.
15950         #
15951         # There doesn't appear to be a way to prevent this compiler from
15952         # explicitly linking system object files so we need to strip them
15953         # from the output so that they don't get included in the library
15954         # dependencies.
15955         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15956         ;;
15957     esac
15958     ;;
15959   lynxos*)
15960     # FIXME: insert proper C++ library support
15961     ld_shlibs_CXX=no
15962     ;;
15963   m88k*)
15964     # FIXME: insert proper C++ library support
15965     ld_shlibs_CXX=no
15966     ;;
15967   mvs*)
15968     case $cc_basename in
15969       cxx)
15970         # FIXME: insert proper C++ library support
15971         ld_shlibs_CXX=no
15972         ;;
15973       *)
15974         # FIXME: insert proper C++ library support
15975         ld_shlibs_CXX=no
15976         ;;
15977     esac
15978     ;;
15979   netbsd*)
15980     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15981       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15982       wlarc=
15983       hardcode_libdir_flag_spec_CXX='-R$libdir'
15984       hardcode_direct_CXX=yes
15985       hardcode_shlibpath_var_CXX=no
15986     fi
15987     # Workaround some broken pre-1.5 toolchains
15988     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15989     ;;
15990   openbsd2*)
15991     # C++ shared libraries are fairly broken
15992     ld_shlibs_CXX=no
15993     ;;
15994   openbsd*)
15995     hardcode_direct_CXX=yes
15996     hardcode_shlibpath_var_CXX=no
15997     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15998     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15999     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16000       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16001       export_dynamic_flag_spec_CXX='${wl}-E'
16002       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16003     fi
16004     output_verbose_link_cmd='echo'
16005     ;;
16006   osf3*)
16007     case $cc_basename in
16008       KCC)
16009         # Kuck and Associates, Inc. (KAI) C++ Compiler
16010
16011         # KCC will only create a shared library if the output file
16012         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16013         # to its proper name (with version) after linking.
16014         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16015
16016         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16017         hardcode_libdir_separator_CXX=:
16018
16019         # Archives containing C++ object files must be created using
16020         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16021         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16022
16023         ;;
16024       RCC)
16025         # Rational C++ 2.4.1
16026         # FIXME: insert proper C++ library support
16027         ld_shlibs_CXX=no
16028         ;;
16029       cxx)
16030         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16031         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
16032
16033         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16034         hardcode_libdir_separator_CXX=:
16035
16036         # Commands to make compiler produce verbose output that lists
16037         # what "hidden" libraries, object files and flags are used when
16038         # linking a shared library.
16039         #
16040         # There doesn't appear to be a way to prevent this compiler from
16041         # explicitly linking system object files so we need to strip them
16042         # from the output so that they don't get included in the library
16043         # dependencies.
16044         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16045         ;;
16046       *)
16047         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16048           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16049           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
16050
16051           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16052           hardcode_libdir_separator_CXX=:
16053
16054           # Commands to make compiler produce verbose output that lists
16055           # what "hidden" libraries, object files and flags are used when
16056           # linking a shared library.
16057           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16058
16059         else
16060           # FIXME: insert proper C++ library support
16061           ld_shlibs_CXX=no
16062         fi
16063         ;;
16064     esac
16065     ;;
16066   osf4* | osf5*)
16067     case $cc_basename in
16068       KCC)
16069         # Kuck and Associates, Inc. (KAI) C++ Compiler
16070
16071         # KCC will only create a shared library if the output file
16072         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16073         # to its proper name (with version) after linking.
16074         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16075
16076         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16077         hardcode_libdir_separator_CXX=:
16078
16079         # Archives containing C++ object files must be created using
16080         # the KAI C++ compiler.
16081         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16082         ;;
16083       RCC)
16084         # Rational C++ 2.4.1
16085         # FIXME: insert proper C++ library support
16086         ld_shlibs_CXX=no
16087         ;;
16088       cxx)
16089         allow_undefined_flag_CXX=' -expect_unresolved \*'
16090         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
16091         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16092           echo "-hidden">> $lib.exp~
16093           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
16094           $rm $lib.exp'
16095
16096         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16097         hardcode_libdir_separator_CXX=:
16098
16099         # Commands to make compiler produce verbose output that lists
16100         # what "hidden" libraries, object files and flags are used when
16101         # linking a shared library.
16102         #
16103         # There doesn't appear to be a way to prevent this compiler from
16104         # explicitly linking system object files so we need to strip them
16105         # from the output so that they don't get included in the library
16106         # dependencies.
16107         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16108         ;;
16109       *)
16110         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16111           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16112          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
16113
16114           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16115           hardcode_libdir_separator_CXX=:
16116
16117           # Commands to make compiler produce verbose output that lists
16118           # what "hidden" libraries, object files and flags are used when
16119           # linking a shared library.
16120           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16121
16122         else
16123           # FIXME: insert proper C++ library support
16124           ld_shlibs_CXX=no
16125         fi
16126         ;;
16127     esac
16128     ;;
16129   psos*)
16130     # FIXME: insert proper C++ library support
16131     ld_shlibs_CXX=no
16132     ;;
16133   sco*)
16134     archive_cmds_need_lc_CXX=no
16135     case $cc_basename in
16136       CC)
16137         # FIXME: insert proper C++ library support
16138         ld_shlibs_CXX=no
16139         ;;
16140       *)
16141         # FIXME: insert proper C++ library support
16142         ld_shlibs_CXX=no
16143         ;;
16144     esac
16145     ;;
16146   sunos4*)
16147     case $cc_basename in
16148       CC)
16149         # Sun C++ 4.x
16150         # FIXME: insert proper C++ library support
16151         ld_shlibs_CXX=no
16152         ;;
16153       lcc)
16154         # Lucid
16155         # FIXME: insert proper C++ library support
16156         ld_shlibs_CXX=no
16157         ;;
16158       *)
16159         # FIXME: insert proper C++ library support
16160         ld_shlibs_CXX=no
16161         ;;
16162     esac
16163     ;;
16164   solaris*)
16165     case $cc_basename in
16166       CC)
16167         # Sun C++ 4.2, 5.x and Centerline C++
16168         no_undefined_flag_CXX=' -zdefs'
16169         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16170         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16171         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16172
16173         hardcode_libdir_flag_spec_CXX='-R$libdir'
16174         hardcode_shlibpath_var_CXX=no
16175         case $host_os in
16176           solaris2.0-5 | solaris2.0-5.*) ;;
16177           *)
16178             # The C++ compiler is used as linker so we must use $wl
16179             # flag to pass the commands to the underlying system
16180             # linker.
16181             # Supported since Solaris 2.6 (maybe 2.5.1?)
16182             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16183             ;;
16184         esac
16185         link_all_deplibs_CXX=yes
16186
16187         # Commands to make compiler produce verbose output that lists
16188         # what "hidden" libraries, object files and flags are used when
16189         # linking a shared library.
16190         #
16191         # There doesn't appear to be a way to prevent this compiler from
16192         # explicitly linking system object files so we need to strip them
16193         # from the output so that they don't get included in the library
16194         # dependencies.
16195         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16196
16197         # Archives containing C++ object files must be created using
16198         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16199         # necessary to make sure instantiated templates are included
16200         # in the archive.
16201         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16202         ;;
16203       gcx)
16204         # Green Hills C++ Compiler
16205         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16206
16207         # The C++ compiler must be used to create the archive.
16208         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16209         ;;
16210       *)
16211         # GNU C++ compiler with Solaris linker
16212         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16213           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16214           if $CC --version | grep -v '^2\.7' > /dev/null; then
16215             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16216             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16217                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16218
16219             # Commands to make compiler produce verbose output that lists
16220             # what "hidden" libraries, object files and flags are used when
16221             # linking a shared library.
16222             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16223           else
16224             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16225             # platform.
16226             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16227             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16228                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16229
16230             # Commands to make compiler produce verbose output that lists
16231             # what "hidden" libraries, object files and flags are used when
16232             # linking a shared library.
16233             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16234           fi
16235
16236           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16237         fi
16238         ;;
16239     esac
16240     ;;
16241   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16242     archive_cmds_need_lc_CXX=no
16243     ;;
16244   tandem*)
16245     case $cc_basename in
16246       NCC)
16247         # NonStop-UX NCC 3.20
16248         # FIXME: insert proper C++ library support
16249         ld_shlibs_CXX=no
16250         ;;
16251       *)
16252         # FIXME: insert proper C++ library support
16253         ld_shlibs_CXX=no
16254         ;;
16255     esac
16256     ;;
16257   vxworks*)
16258     # FIXME: insert proper C++ library support
16259     ld_shlibs_CXX=no
16260     ;;
16261   *)
16262     # FIXME: insert proper C++ library support
16263     ld_shlibs_CXX=no
16264     ;;
16265 esac
16266 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16267 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16268 test "$ld_shlibs_CXX" = no && can_build_shared=no
16269
16270 GCC_CXX="$GXX"
16271 LD_CXX="$LD"
16272
16273
16274 cat > conftest.$ac_ext <<EOF
16275 class Foo
16276 {
16277 public:
16278   Foo (void) { a = 0; }
16279 private:
16280   int a;
16281 };
16282 EOF
16283
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285   (eval $ac_compile) 2>&5
16286   ac_status=$?
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; then
16289   # Parse the compiler output and extract the necessary
16290   # objects, libraries and library flags.
16291
16292   # Sentinel used to keep track of whether or not we are before
16293   # the conftest object file.
16294   pre_test_object_deps_done=no
16295
16296   # The `*' in the case matches for architectures that use `case' in
16297   # $output_verbose_cmd can trigger glob expansion during the loop
16298   # eval without this substitution.
16299   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16300
16301   for p in `eval $output_verbose_link_cmd`; do
16302     case $p in
16303
16304     -L* | -R* | -l*)
16305        # Some compilers place space between "-{L,R}" and the path.
16306        # Remove the space.
16307        if test $p = "-L" \
16308           || test $p = "-R"; then
16309          prev=$p
16310          continue
16311        else
16312          prev=
16313        fi
16314
16315        if test "$pre_test_object_deps_done" = no; then
16316          case $p in
16317          -L* | -R*)
16318            # Internal compiler library paths should come after those
16319            # provided the user.  The postdeps already come after the
16320            # user supplied libs so there is no need to process them.
16321            if test -z "$compiler_lib_search_path_CXX"; then
16322              compiler_lib_search_path_CXX="${prev}${p}"
16323            else
16324              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16325            fi
16326            ;;
16327          # The "-l" case would never come before the object being
16328          # linked, so don't bother handling this case.
16329          esac
16330        else
16331          if test -z "$postdeps_CXX"; then
16332            postdeps_CXX="${prev}${p}"
16333          else
16334            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16335          fi
16336        fi
16337        ;;
16338
16339     *.$objext)
16340        # This assumes that the test object file only shows up
16341        # once in the compiler output.
16342        if test "$p" = "conftest.$objext"; then
16343          pre_test_object_deps_done=yes
16344          continue
16345        fi
16346
16347        if test "$pre_test_object_deps_done" = no; then
16348          if test -z "$predep_objects_CXX"; then
16349            predep_objects_CXX="$p"
16350          else
16351            predep_objects_CXX="$predep_objects_CXX $p"
16352          fi
16353        else
16354          if test -z "$postdep_objects_CXX"; then
16355            postdep_objects_CXX="$p"
16356          else
16357            postdep_objects_CXX="$postdep_objects_CXX $p"
16358          fi
16359        fi
16360        ;;
16361
16362     *) ;; # Ignore the rest.
16363
16364     esac
16365   done
16366
16367   # Clean up.
16368   rm -f a.out a.exe
16369 else
16370   echo "libtool.m4: error: problem compiling CXX test program"
16371 fi
16372
16373 $rm -f confest.$objext
16374
16375 case " $postdeps_CXX " in
16376 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16377 esac
16378
16379 lt_prog_compiler_wl_CXX=
16380 lt_prog_compiler_pic_CXX=
16381 lt_prog_compiler_static_CXX=
16382
16383 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16385
16386   # C++ specific cases for pic, static, wl, etc.
16387   if test "$GXX" = yes; then
16388     lt_prog_compiler_wl_CXX='-Wl,'
16389     lt_prog_compiler_static_CXX='-static'
16390
16391     case $host_os in
16392     aix*)
16393       # All AIX code is PIC.
16394       if test "$host_cpu" = ia64; then
16395         # AIX 5 now supports IA64 processor
16396         lt_prog_compiler_static_CXX='-Bstatic'
16397       fi
16398       ;;
16399     amigaos*)
16400       # FIXME: we need at least 68020 code to build shared libraries, but
16401       # adding the `-m68020' flag to GCC prevents building anything better,
16402       # like `-m68040'.
16403       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16404       ;;
16405     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16406       # PIC is the default for these OSes.
16407       ;;
16408     mingw* | os2* | pw32*)
16409       # This hack is so that the source file can tell whether it is being
16410       # built for inclusion in a dll (and should export symbols for example).
16411       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16412       ;;
16413     darwin* | rhapsody*)
16414       # PIC is the default on this platform
16415       # Common symbols not allowed in MH_DYLIB files
16416       lt_prog_compiler_pic_CXX='-fno-common'
16417       ;;
16418     *djgpp*)
16419       # DJGPP does not support shared libraries at all
16420       lt_prog_compiler_pic_CXX=
16421       ;;
16422     sysv4*MP*)
16423       if test -d /usr/nec; then
16424         lt_prog_compiler_pic_CXX=-Kconform_pic
16425       fi
16426       ;;
16427     hpux*)
16428       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16429       # not for PA HP-UX.
16430       case "$host_cpu" in
16431       hppa*64*|ia64*)
16432         ;;
16433       *)
16434         lt_prog_compiler_pic_CXX='-fPIC'
16435         ;;
16436       esac
16437       ;;
16438     *)
16439       lt_prog_compiler_pic_CXX='-fPIC'
16440       ;;
16441     esac
16442   else
16443     case $host_os in
16444       aix4* | aix5*)
16445         # All AIX code is PIC.
16446         if test "$host_cpu" = ia64; then
16447           # AIX 5 now supports IA64 processor
16448           lt_prog_compiler_static_CXX='-Bstatic'
16449         else
16450           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16451         fi
16452         ;;
16453       chorus*)
16454         case $cc_basename in
16455         cxch68)
16456           # Green Hills C++ Compiler
16457           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16458           ;;
16459         esac
16460         ;;
16461        darwin*)
16462          # PIC is the default on this platform
16463          # Common symbols not allowed in MH_DYLIB files
16464          case "$cc_basename" in
16465            xlc*)
16466            lt_prog_compiler_pic_CXX='-qnocommon'
16467            lt_prog_compiler_wl_CXX='-Wl,'
16468            ;;
16469          esac
16470        ;;
16471       dgux*)
16472         case $cc_basename in
16473           ec++)
16474             lt_prog_compiler_pic_CXX='-KPIC'
16475             ;;
16476           ghcx)
16477             # Green Hills C++ Compiler
16478             lt_prog_compiler_pic_CXX='-pic'
16479             ;;
16480           *)
16481             ;;
16482         esac
16483         ;;
16484       freebsd* | kfreebsd*-gnu)
16485         # FreeBSD uses GNU C++
16486         ;;
16487       hpux9* | hpux10* | hpux11*)
16488         case $cc_basename in
16489           CC)
16490             lt_prog_compiler_wl_CXX='-Wl,'
16491             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16492             if test "$host_cpu" != ia64; then
16493               lt_prog_compiler_pic_CXX='+Z'
16494             fi
16495             ;;
16496           aCC)
16497             lt_prog_compiler_wl_CXX='-Wl,'
16498             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16499             case "$host_cpu" in
16500             hppa*64*|ia64*)
16501               # +Z the default
16502               ;;
16503             *)
16504               lt_prog_compiler_pic_CXX='+Z'
16505               ;;
16506             esac
16507             ;;
16508           *)
16509             ;;
16510         esac
16511         ;;
16512       irix5* | irix6* | nonstopux*)
16513         case $cc_basename in
16514           CC)
16515             lt_prog_compiler_wl_CXX='-Wl,'
16516             lt_prog_compiler_static_CXX='-non_shared'
16517             # CC pic flag -KPIC is the default.
16518             ;;
16519           *)
16520             ;;
16521         esac
16522         ;;
16523       linux*)
16524         case $cc_basename in
16525           KCC)
16526             # KAI C++ Compiler
16527             lt_prog_compiler_wl_CXX='--backend -Wl,'
16528             lt_prog_compiler_pic_CXX='-fPIC'
16529             ;;
16530           icpc)
16531             # Intel C++
16532             lt_prog_compiler_wl_CXX='-Wl,'
16533             lt_prog_compiler_pic_CXX='-KPIC'
16534             lt_prog_compiler_static_CXX='-static'
16535             ;;
16536           cxx)
16537             # Compaq C++
16538             # Make sure the PIC flag is empty.  It appears that all Alpha
16539             # Linux and Compaq Tru64 Unix objects are PIC.
16540             lt_prog_compiler_pic_CXX=
16541             lt_prog_compiler_static_CXX='-non_shared'
16542             ;;
16543           *)
16544             ;;
16545         esac
16546         ;;
16547       lynxos*)
16548         ;;
16549       m88k*)
16550         ;;
16551       mvs*)
16552         case $cc_basename in
16553           cxx)
16554             lt_prog_compiler_pic_CXX='-W c,exportall'
16555             ;;
16556           *)
16557             ;;
16558         esac
16559         ;;
16560       netbsd*)
16561         ;;
16562       osf3* | osf4* | osf5*)
16563         case $cc_basename in
16564           KCC)
16565             lt_prog_compiler_wl_CXX='--backend -Wl,'
16566             ;;
16567           RCC)
16568             # Rational C++ 2.4.1
16569             lt_prog_compiler_pic_CXX='-pic'
16570             ;;
16571           cxx)
16572             # Digital/Compaq C++
16573             lt_prog_compiler_wl_CXX='-Wl,'
16574             # Make sure the PIC flag is empty.  It appears that all Alpha
16575             # Linux and Compaq Tru64 Unix objects are PIC.
16576             lt_prog_compiler_pic_CXX=
16577             lt_prog_compiler_static_CXX='-non_shared'
16578             ;;
16579           *)
16580             ;;
16581         esac
16582         ;;
16583       psos*)
16584         ;;
16585       sco*)
16586         case $cc_basename in
16587           CC)
16588             lt_prog_compiler_pic_CXX='-fPIC'
16589             ;;
16590           *)
16591             ;;
16592         esac
16593         ;;
16594       solaris*)
16595         case $cc_basename in
16596           CC)
16597             # Sun C++ 4.2, 5.x and Centerline C++
16598             lt_prog_compiler_pic_CXX='-KPIC'
16599             lt_prog_compiler_static_CXX='-Bstatic'
16600             lt_prog_compiler_wl_CXX='-Qoption ld '
16601             ;;
16602           gcx)
16603             # Green Hills C++ Compiler
16604             lt_prog_compiler_pic_CXX='-PIC'
16605             ;;
16606           *)
16607             ;;
16608         esac
16609         ;;
16610       sunos4*)
16611         case $cc_basename in
16612           CC)
16613             # Sun C++ 4.x
16614             lt_prog_compiler_pic_CXX='-pic'
16615             lt_prog_compiler_static_CXX='-Bstatic'
16616             ;;
16617           lcc)
16618             # Lucid
16619             lt_prog_compiler_pic_CXX='-pic'
16620             ;;
16621           *)
16622             ;;
16623         esac
16624         ;;
16625       tandem*)
16626         case $cc_basename in
16627           NCC)
16628             # NonStop-UX NCC 3.20
16629             lt_prog_compiler_pic_CXX='-KPIC'
16630             ;;
16631           *)
16632             ;;
16633         esac
16634         ;;
16635       unixware*)
16636         ;;
16637       vxworks*)
16638         ;;
16639       *)
16640         lt_prog_compiler_can_build_shared_CXX=no
16641         ;;
16642     esac
16643   fi
16644
16645 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16646 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16647
16648 #
16649 # Check to make sure the PIC flag actually works.
16650 #
16651 if test -n "$lt_prog_compiler_pic_CXX"; then
16652
16653 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16654 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16655 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16656   echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658   lt_prog_compiler_pic_works_CXX=no
16659   ac_outfile=conftest.$ac_objext
16660    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16661    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16662    # Insert the option either (1) after the last *FLAGS variable, or
16663    # (2) before a word containing "conftest.", or (3) at the end.
16664    # Note that $ac_compile itself does not contain backslashes and begins
16665    # with a dollar sign (not a hyphen), so the echo should work correctly.
16666    # The option is referenced via a variable to avoid confusing sed.
16667    lt_compile=`echo "$ac_compile" | $SED \
16668    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16670    -e 's:$: $lt_compiler_flag:'`
16671    (eval echo "\"\$as_me:16671: $lt_compile\"" >&5)
16672    (eval "$lt_compile" 2>conftest.err)
16673    ac_status=$?
16674    cat conftest.err >&5
16675    echo "$as_me:16675: \$? = $ac_status" >&5
16676    if (exit $ac_status) && test -s "$ac_outfile"; then
16677      # The compiler can only warn and ignore the option if not recognized
16678      # So say no if there are warnings
16679      if test ! -s conftest.err; then
16680        lt_prog_compiler_pic_works_CXX=yes
16681      fi
16682    fi
16683    $rm conftest*
16684
16685 fi
16686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16687 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16688
16689 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16690     case $lt_prog_compiler_pic_CXX in
16691      "" | " "*) ;;
16692      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16693      esac
16694 else
16695     lt_prog_compiler_pic_CXX=
16696      lt_prog_compiler_can_build_shared_CXX=no
16697 fi
16698
16699 fi
16700 case "$host_os" in
16701   # For platforms which do not support PIC, -DPIC is meaningless:
16702   *djgpp*)
16703     lt_prog_compiler_pic_CXX=
16704     ;;
16705   *)
16706     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16707     ;;
16708 esac
16709
16710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16712 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715   lt_cv_prog_compiler_c_o_CXX=no
16716    $rm -r conftest 2>/dev/null
16717    mkdir conftest
16718    cd conftest
16719    mkdir out
16720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16721
16722    lt_compiler_flag="-o out/conftest2.$ac_objext"
16723    # Insert the option either (1) after the last *FLAGS variable, or
16724    # (2) before a word containing "conftest.", or (3) at the end.
16725    # Note that $ac_compile itself does not contain backslashes and begins
16726    # with a dollar sign (not a hyphen), so the echo should work correctly.
16727    lt_compile=`echo "$ac_compile" | $SED \
16728    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730    -e 's:$: $lt_compiler_flag:'`
16731    (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
16732    (eval "$lt_compile" 2>out/conftest.err)
16733    ac_status=$?
16734    cat out/conftest.err >&5
16735    echo "$as_me:16735: \$? = $ac_status" >&5
16736    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16737    then
16738      # The compiler can only warn and ignore the option if not recognized
16739      # So say no if there are warnings
16740      if test ! -s out/conftest.err; then
16741        lt_cv_prog_compiler_c_o_CXX=yes
16742      fi
16743    fi
16744    chmod u+w .
16745    $rm conftest*
16746    # SGI C++ compiler will create directory out/ii_files/ for
16747    # template instantiation
16748    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16749    $rm out/* && rmdir out
16750    cd ..
16751    rmdir conftest
16752    $rm conftest*
16753
16754 fi
16755 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16756 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16757
16758
16759 hard_links="nottested"
16760 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16761   # do not overwrite the value of need_locks provided by the user
16762   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16763 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16764   hard_links=yes
16765   $rm conftest*
16766   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16767   touch conftest.a
16768   ln conftest.a conftest.b 2>&5 || hard_links=no
16769   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770   echo "$as_me:$LINENO: result: $hard_links" >&5
16771 echo "${ECHO_T}$hard_links" >&6
16772   if test "$hard_links" = no; then
16773     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16774 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16775     need_locks=warn
16776   fi
16777 else
16778   need_locks=no
16779 fi
16780
16781 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16782 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16783
16784   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16785   case $host_os in
16786   aix4* | aix5*)
16787     # If we're using GNU nm, then we don't want the "-C" option.
16788     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16789     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16790       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16791     else
16792       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16793     fi
16794     ;;
16795   pw32*)
16796     export_symbols_cmds_CXX="$ltdll_cmds"
16797   ;;
16798   cygwin* | mingw*)
16799     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16800   ;;
16801   *)
16802     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16803   ;;
16804   esac
16805
16806 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16807 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16808 test "$ld_shlibs_CXX" = no && can_build_shared=no
16809
16810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16811 if test "$GCC" = yes; then
16812   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16813 fi
16814
16815 #
16816 # Do we need to explicitly link libc?
16817 #
16818 case "x$archive_cmds_need_lc_CXX" in
16819 x|xyes)
16820   # Assume -lc should be added
16821   archive_cmds_need_lc_CXX=yes
16822
16823   if test "$enable_shared" = yes && test "$GCC" = yes; then
16824     case $archive_cmds_CXX in
16825     *'~'*)
16826       # FIXME: we may have to deal with multi-command sequences.
16827       ;;
16828     '$CC '*)
16829       # Test whether the compiler implicitly links with -lc since on some
16830       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16831       # to ld, don't add -lc before -lgcc.
16832       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16834       $rm conftest*
16835       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16836
16837       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838   (eval $ac_compile) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); } 2>conftest.err; then
16842         soname=conftest
16843         lib=conftest
16844         libobjs=conftest.$ac_objext
16845         deplibs=
16846         wl=$lt_prog_compiler_wl_CXX
16847         compiler_flags=-v
16848         linker_flags=-v
16849         verstring=
16850         output_objdir=.
16851         libname=conftest
16852         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16853         allow_undefined_flag_CXX=
16854         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16855   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }
16859         then
16860           archive_cmds_need_lc_CXX=no
16861         else
16862           archive_cmds_need_lc_CXX=yes
16863         fi
16864         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16865       else
16866         cat conftest.err 1>&5
16867       fi
16868       $rm conftest*
16869       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16870 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16871       ;;
16872     esac
16873   fi
16874   ;;
16875 esac
16876
16877 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16878 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16879 library_names_spec=
16880 libname_spec='lib$name'
16881 soname_spec=
16882 shrext_cmds=".so"
16883 postinstall_cmds=
16884 postuninstall_cmds=
16885 finish_cmds=
16886 finish_eval=
16887 shlibpath_var=
16888 shlibpath_overrides_runpath=unknown
16889 version_type=none
16890 dynamic_linker="$host_os ld.so"
16891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16892 if test "$GCC" = yes; then
16893   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16894   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16895     # if the path contains ";" then we assume it to be the separator
16896     # otherwise default to the standard path separator (i.e. ":") - it is
16897     # assumed that no part of a normal pathname contains ";" but that should
16898     # okay in the real world where ";" in dirpaths is itself problematic.
16899     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16900   else
16901     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16902   fi
16903 else
16904   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16905 fi
16906 need_lib_prefix=unknown
16907 hardcode_into_libs=no
16908
16909 # when you set need_version to no, make sure it does not cause -set_version
16910 # flags to be left without arguments
16911 need_version=unknown
16912
16913 case $host_os in
16914 aix3*)
16915   version_type=linux
16916   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16917   shlibpath_var=LIBPATH
16918
16919   # AIX 3 has no versioning support, so we append a major version to the name.
16920   soname_spec='${libname}${release}${shared_ext}$major'
16921   ;;
16922
16923 aix4* | aix5*)
16924   version_type=linux
16925   need_lib_prefix=no
16926   need_version=no
16927   hardcode_into_libs=yes
16928   if test "$host_cpu" = ia64; then
16929     # AIX 5 supports IA64
16930     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16931     shlibpath_var=LD_LIBRARY_PATH
16932   else
16933     # With GCC up to 2.95.x, collect2 would create an import file
16934     # for dependence libraries.  The import file would start with
16935     # the line `#! .'.  This would cause the generated library to
16936     # depend on `.', always an invalid library.  This was fixed in
16937     # development snapshots of GCC prior to 3.0.
16938     case $host_os in
16939       aix4 | aix4.[01] | aix4.[01].*)
16940       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16941            echo ' yes '
16942            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16943         :
16944       else
16945         can_build_shared=no
16946       fi
16947       ;;
16948     esac
16949     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16950     # soname into executable. Probably we can add versioning support to
16951     # collect2, so additional links can be useful in future.
16952     if test "$aix_use_runtimelinking" = yes; then
16953       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16954       # instead of lib<name>.a to let people know that these are not
16955       # typical AIX shared libraries.
16956       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957     else
16958       # We preserve .a as extension for shared libraries through AIX4.2
16959       # and later when we are not doing run time linking.
16960       library_names_spec='${libname}${release}.a $libname.a'
16961       soname_spec='${libname}${release}${shared_ext}$major'
16962     fi
16963     shlibpath_var=LIBPATH
16964   fi
16965   ;;
16966
16967 amigaos*)
16968   library_names_spec='$libname.ixlibrary $libname.a'
16969   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16970   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16971   ;;
16972
16973 beos*)
16974   library_names_spec='${libname}${shared_ext}'
16975   dynamic_linker="$host_os ld.so"
16976   shlibpath_var=LIBRARY_PATH
16977   ;;
16978
16979 bsdi[45]*)
16980   version_type=linux
16981   need_version=no
16982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983   soname_spec='${libname}${release}${shared_ext}$major'
16984   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16985   shlibpath_var=LD_LIBRARY_PATH
16986   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16987   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16988   # the default ld.so.conf also contains /usr/contrib/lib and
16989   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16990   # libtool to hard-code these into programs
16991   ;;
16992
16993 cygwin* | mingw* | pw32*)
16994   version_type=windows
16995   shrext_cmds=".dll"
16996   need_version=no
16997   need_lib_prefix=no
16998
16999   case $GCC,$host_os in
17000   yes,cygwin* | yes,mingw* | yes,pw32*)
17001     library_names_spec='$libname.dll.a'
17002     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17003     postinstall_cmds='base_file=`basename \${file}`~
17004       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17005       dldir=$destdir/`dirname \$dlpath`~
17006       test -d \$dldir || mkdir -p \$dldir~
17007       $install_prog $dir/$dlname \$dldir/$dlname'
17008     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17009       dlpath=$dir/\$dldll~
17010        $rm \$dlpath'
17011     shlibpath_overrides_runpath=yes
17012
17013     case $host_os in
17014     cygwin*)
17015       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17016       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17017       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17018       ;;
17019     mingw*)
17020       # MinGW DLLs use traditional 'lib' prefix
17021       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17022       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17023       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17024         # It is most probably a Windows format PATH printed by
17025         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17026         # path with ; separators, and with drive letters. We can handle the
17027         # drive letters (cygwin fileutils understands them), so leave them,
17028         # especially as we might pass files found there to a mingw objdump,
17029         # which wouldn't understand a cygwinified path. Ahh.
17030         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17031       else
17032         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17033       fi
17034       ;;
17035     pw32*)
17036       # pw32 DLLs use 'pw' prefix rather than 'lib'
17037       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17038       ;;
17039     esac
17040     ;;
17041
17042   *)
17043     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17044     ;;
17045   esac
17046   dynamic_linker='Win32 ld.exe'
17047   # FIXME: first we should search . and the directory the executable is in
17048   shlibpath_var=PATH
17049   ;;
17050
17051 darwin* | rhapsody*)
17052   dynamic_linker="$host_os dyld"
17053   version_type=darwin
17054   need_lib_prefix=no
17055   need_version=no
17056   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17057   soname_spec='${libname}${release}${major}$shared_ext'
17058   shlibpath_overrides_runpath=yes
17059   shlibpath_var=DYLD_LIBRARY_PATH
17060   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17061   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17062   if test "$GCC" = yes; then
17063     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17064   else
17065     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17066   fi
17067   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17068   ;;
17069
17070 dgux*)
17071   version_type=linux
17072   need_lib_prefix=no
17073   need_version=no
17074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17075   soname_spec='${libname}${release}${shared_ext}$major'
17076   shlibpath_var=LD_LIBRARY_PATH
17077   ;;
17078
17079 freebsd1*)
17080   dynamic_linker=no
17081   ;;
17082
17083 kfreebsd*-gnu)
17084   version_type=linux
17085   need_lib_prefix=no
17086   need_version=no
17087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   shlibpath_overrides_runpath=no
17091   hardcode_into_libs=yes
17092   dynamic_linker='GNU ld.so'
17093   ;;
17094
17095 freebsd*)
17096   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17097   version_type=freebsd-$objformat
17098   case $version_type in
17099     freebsd-elf*)
17100       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17101       need_version=no
17102       need_lib_prefix=no
17103       ;;
17104     freebsd-*)
17105       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17106       need_version=yes
17107       ;;
17108   esac
17109   shlibpath_var=LD_LIBRARY_PATH
17110   case $host_os in
17111   freebsd2*)
17112     shlibpath_overrides_runpath=yes
17113     ;;
17114   freebsd3.01* | freebsdelf3.01*)
17115     shlibpath_overrides_runpath=yes
17116     hardcode_into_libs=yes
17117     ;;
17118   *) # from 3.2 on
17119     shlibpath_overrides_runpath=no
17120     hardcode_into_libs=yes
17121     ;;
17122   esac
17123   ;;
17124
17125 gnu*)
17126   version_type=linux
17127   need_lib_prefix=no
17128   need_version=no
17129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17130   soname_spec='${libname}${release}${shared_ext}$major'
17131   shlibpath_var=LD_LIBRARY_PATH
17132   hardcode_into_libs=yes
17133   ;;
17134
17135 hpux9* | hpux10* | hpux11*)
17136   # Give a soname corresponding to the major version so that dld.sl refuses to
17137   # link against other versions.
17138   version_type=sunos
17139   need_lib_prefix=no
17140   need_version=no
17141   case "$host_cpu" in
17142   ia64*)
17143     shrext_cmds='.so'
17144     hardcode_into_libs=yes
17145     dynamic_linker="$host_os dld.so"
17146     shlibpath_var=LD_LIBRARY_PATH
17147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149     soname_spec='${libname}${release}${shared_ext}$major'
17150     if test "X$HPUX_IA64_MODE" = X32; then
17151       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17152     else
17153       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17154     fi
17155     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17156     ;;
17157    hppa*64*)
17158      shrext_cmds='.sl'
17159      hardcode_into_libs=yes
17160      dynamic_linker="$host_os dld.sl"
17161      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17162      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17163      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164      soname_spec='${libname}${release}${shared_ext}$major'
17165      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17166      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17167      ;;
17168    *)
17169     shrext_cmds='.sl'
17170     dynamic_linker="$host_os dld.sl"
17171     shlibpath_var=SHLIB_PATH
17172     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174     soname_spec='${libname}${release}${shared_ext}$major'
17175     ;;
17176   esac
17177   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17178   postinstall_cmds='chmod 555 $lib'
17179   ;;
17180
17181 irix5* | irix6* | nonstopux*)
17182   case $host_os in
17183     nonstopux*) version_type=nonstopux ;;
17184     *)
17185         if test "$lt_cv_prog_gnu_ld" = yes; then
17186                 version_type=linux
17187         else
17188                 version_type=irix
17189         fi ;;
17190   esac
17191   need_lib_prefix=no
17192   need_version=no
17193   soname_spec='${libname}${release}${shared_ext}$major'
17194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17195   case $host_os in
17196   irix5* | nonstopux*)
17197     libsuff= shlibsuff=
17198     ;;
17199   *)
17200     case $LD in # libtool.m4 will add one of these switches to LD
17201     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17202       libsuff= shlibsuff= libmagic=32-bit;;
17203     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17204       libsuff=32 shlibsuff=N32 libmagic=N32;;
17205     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17206       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17207     *) libsuff= shlibsuff= libmagic=never-match;;
17208     esac
17209     ;;
17210   esac
17211   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17212   shlibpath_overrides_runpath=no
17213   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17214   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17215   hardcode_into_libs=yes
17216   ;;
17217
17218 # No shared lib support for Linux oldld, aout, or coff.
17219 linux*oldld* | linux*aout* | linux*coff*)
17220   dynamic_linker=no
17221   ;;
17222
17223 # This must be Linux ELF.
17224 linux*)
17225   version_type=linux
17226   need_lib_prefix=no
17227   need_version=no
17228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229   soname_spec='${libname}${release}${shared_ext}$major'
17230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17231   shlibpath_var=LD_LIBRARY_PATH
17232   shlibpath_overrides_runpath=no
17233   # This implies no fast_install, which is unacceptable.
17234   # Some rework will be needed to allow for fast_install
17235   # before this can be enabled.
17236   hardcode_into_libs=yes
17237
17238   # Append ld.so.conf contents to the search path
17239   if test -f /etc/ld.so.conf; then
17240     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17241     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17242   fi
17243
17244   # We used to test for /lib/ld.so.1 and disable shared libraries on
17245   # powerpc, because MkLinux only supported shared libraries with the
17246   # GNU dynamic linker.  Since this was broken with cross compilers,
17247   # most powerpc-linux boxes support dynamic linking these days and
17248   # people can always --disable-shared, the test was removed, and we
17249   # assume the GNU/Linux dynamic linker is in use.
17250   dynamic_linker='GNU/Linux ld.so'
17251   ;;
17252
17253 knetbsd*-gnu)
17254   version_type=linux
17255   need_lib_prefix=no
17256   need_version=no
17257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17258   soname_spec='${libname}${release}${shared_ext}$major'
17259   shlibpath_var=LD_LIBRARY_PATH
17260   shlibpath_overrides_runpath=no
17261   hardcode_into_libs=yes
17262   dynamic_linker='GNU ld.so'
17263   ;;
17264
17265 netbsd*)
17266   version_type=sunos
17267   need_lib_prefix=no
17268   need_version=no
17269   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17271     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17272     dynamic_linker='NetBSD (a.out) ld.so'
17273   else
17274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17275     soname_spec='${libname}${release}${shared_ext}$major'
17276     dynamic_linker='NetBSD ld.elf_so'
17277   fi
17278   shlibpath_var=LD_LIBRARY_PATH
17279   shlibpath_overrides_runpath=yes
17280   hardcode_into_libs=yes
17281   ;;
17282
17283 newsos6)
17284   version_type=linux
17285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286   shlibpath_var=LD_LIBRARY_PATH
17287   shlibpath_overrides_runpath=yes
17288   ;;
17289
17290 nto-qnx*)
17291   version_type=linux
17292   need_lib_prefix=no
17293   need_version=no
17294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295   soname_spec='${libname}${release}${shared_ext}$major'
17296   shlibpath_var=LD_LIBRARY_PATH
17297   shlibpath_overrides_runpath=yes
17298   ;;
17299
17300 openbsd*)
17301   version_type=sunos
17302   need_lib_prefix=no
17303   need_version=no
17304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17305   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17306   shlibpath_var=LD_LIBRARY_PATH
17307   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17308     case $host_os in
17309       openbsd2.[89] | openbsd2.[89].*)
17310         shlibpath_overrides_runpath=no
17311         ;;
17312       *)
17313         shlibpath_overrides_runpath=yes
17314         ;;
17315       esac
17316   else
17317     shlibpath_overrides_runpath=yes
17318   fi
17319   ;;
17320
17321 os2*)
17322   libname_spec='$name'
17323   shrext_cmds=".dll"
17324   need_lib_prefix=no
17325   library_names_spec='$libname${shared_ext} $libname.a'
17326   dynamic_linker='OS/2 ld.exe'
17327   shlibpath_var=LIBPATH
17328   ;;
17329
17330 osf3* | osf4* | osf5*)
17331   version_type=osf
17332   need_lib_prefix=no
17333   need_version=no
17334   soname_spec='${libname}${release}${shared_ext}$major'
17335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336   shlibpath_var=LD_LIBRARY_PATH
17337   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17338   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17339   ;;
17340
17341 sco3.2v5*)
17342   version_type=osf
17343   soname_spec='${libname}${release}${shared_ext}$major'
17344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345   shlibpath_var=LD_LIBRARY_PATH
17346   ;;
17347
17348 solaris*)
17349   version_type=linux
17350   need_lib_prefix=no
17351   need_version=no
17352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353   soname_spec='${libname}${release}${shared_ext}$major'
17354   shlibpath_var=LD_LIBRARY_PATH
17355   shlibpath_overrides_runpath=yes
17356   hardcode_into_libs=yes
17357   # ldd complains unless libraries are executable
17358   postinstall_cmds='chmod +x $lib'
17359   ;;
17360
17361 sunos4*)
17362   version_type=sunos
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   shlibpath_overrides_runpath=yes
17367   if test "$with_gnu_ld" = yes; then
17368     need_lib_prefix=no
17369   fi
17370   need_version=yes
17371   ;;
17372
17373 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17374   version_type=linux
17375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376   soname_spec='${libname}${release}${shared_ext}$major'
17377   shlibpath_var=LD_LIBRARY_PATH
17378   case $host_vendor in
17379     sni)
17380       shlibpath_overrides_runpath=no
17381       need_lib_prefix=no
17382       export_dynamic_flag_spec='${wl}-Blargedynsym'
17383       runpath_var=LD_RUN_PATH
17384       ;;
17385     siemens)
17386       need_lib_prefix=no
17387       ;;
17388     motorola)
17389       need_lib_prefix=no
17390       need_version=no
17391       shlibpath_overrides_runpath=no
17392       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17393       ;;
17394   esac
17395   ;;
17396
17397 sysv4*MP*)
17398   if test -d /usr/nec ;then
17399     version_type=linux
17400     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17401     soname_spec='$libname${shared_ext}.$major'
17402     shlibpath_var=LD_LIBRARY_PATH
17403   fi
17404   ;;
17405
17406 uts4*)
17407   version_type=linux
17408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409   soname_spec='${libname}${release}${shared_ext}$major'
17410   shlibpath_var=LD_LIBRARY_PATH
17411   ;;
17412
17413 *)
17414   dynamic_linker=no
17415   ;;
17416 esac
17417 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17418 echo "${ECHO_T}$dynamic_linker" >&6
17419 test "$dynamic_linker" = no && can_build_shared=no
17420
17421 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17422 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17423 hardcode_action_CXX=
17424 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17425    test -n "$runpath_var_CXX" || \
17426    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17427
17428   # We can hardcode non-existant directories.
17429   if test "$hardcode_direct_CXX" != no &&
17430      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17431      # have to relink, otherwise we might link with an installed library
17432      # when we should be linking with a yet-to-be-installed one
17433      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17434      test "$hardcode_minus_L_CXX" != no; then
17435     # Linking always hardcodes the temporary library directory.
17436     hardcode_action_CXX=relink
17437   else
17438     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17439     hardcode_action_CXX=immediate
17440   fi
17441 else
17442   # We cannot hardcode anything, or else we can only hardcode existing
17443   # directories.
17444   hardcode_action_CXX=unsupported
17445 fi
17446 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17447 echo "${ECHO_T}$hardcode_action_CXX" >&6
17448
17449 if test "$hardcode_action_CXX" = relink; then
17450   # Fast installation is not supported
17451   enable_fast_install=no
17452 elif test "$shlibpath_overrides_runpath" = yes ||
17453      test "$enable_shared" = no; then
17454   # Fast installation is not necessary
17455   enable_fast_install=needless
17456 fi
17457
17458 striplib=
17459 old_striplib=
17460 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17461 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17462 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17463   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17464   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17465   echo "$as_me:$LINENO: result: yes" >&5
17466 echo "${ECHO_T}yes" >&6
17467 else
17468 # FIXME - insert some real tests, host_os isn't really good enough
17469   case $host_os in
17470    darwin*)
17471        if test -n "$STRIP" ; then
17472          striplib="$STRIP -x"
17473          echo "$as_me:$LINENO: result: yes" >&5
17474 echo "${ECHO_T}yes" >&6
17475        else
17476   echo "$as_me:$LINENO: result: no" >&5
17477 echo "${ECHO_T}no" >&6
17478 fi
17479        ;;
17480    *)
17481   echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6
17483     ;;
17484   esac
17485 fi
17486
17487 if test "x$enable_dlopen" != xyes; then
17488   enable_dlopen=unknown
17489   enable_dlopen_self=unknown
17490   enable_dlopen_self_static=unknown
17491 else
17492   lt_cv_dlopen=no
17493   lt_cv_dlopen_libs=
17494
17495   case $host_os in
17496   beos*)
17497     lt_cv_dlopen="load_add_on"
17498     lt_cv_dlopen_libs=
17499     lt_cv_dlopen_self=yes
17500     ;;
17501
17502   mingw* | pw32*)
17503     lt_cv_dlopen="LoadLibrary"
17504     lt_cv_dlopen_libs=
17505    ;;
17506
17507   cygwin*)
17508     lt_cv_dlopen="dlopen"
17509     lt_cv_dlopen_libs=
17510    ;;
17511
17512   darwin*)
17513   # if libdl is installed we need to link against it
17514     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17515 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17516 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519   ac_check_lib_save_LIBS=$LIBS
17520 LIBS="-ldl  $LIBS"
17521 cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527
17528 /* Override any gcc2 internal prototype to avoid an error.  */
17529 #ifdef __cplusplus
17530 extern "C"
17531 #endif
17532 /* We use char because int might match the return type of a gcc2
17533    builtin and then its argument prototype would still apply.  */
17534 char dlopen ();
17535 int
17536 main ()
17537 {
17538 dlopen ();
17539   ;
17540   return 0;
17541 }
17542 _ACEOF
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545   (eval $ac_link) 2>conftest.er1
17546   ac_status=$?
17547   grep -v '^ *+' conftest.er1 >conftest.err
17548   rm -f conftest.er1
17549   cat conftest.err >&5
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); } &&
17552          { ac_try='test -z "$ac_cxx_werror_flag"
17553                          || test ! -s conftest.err'
17554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555   (eval $ac_try) 2>&5
17556   ac_status=$?
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); }; } &&
17559          { ac_try='test -s conftest$ac_exeext'
17560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561   (eval $ac_try) 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; }; then
17565   ac_cv_lib_dl_dlopen=yes
17566 else
17567   echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570 ac_cv_lib_dl_dlopen=no
17571 fi
17572 rm -f conftest.err conftest.$ac_objext \
17573       conftest$ac_exeext conftest.$ac_ext
17574 LIBS=$ac_check_lib_save_LIBS
17575 fi
17576 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17578 if test $ac_cv_lib_dl_dlopen = yes; then
17579   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17580 else
17581
17582     lt_cv_dlopen="dyld"
17583     lt_cv_dlopen_libs=
17584     lt_cv_dlopen_self=yes
17585
17586 fi
17587
17588    ;;
17589
17590   *)
17591     echo "$as_me:$LINENO: checking for shl_load" >&5
17592 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17593 if test "${ac_cv_func_shl_load+set}" = set; then
17594   echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596   cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17604 #define shl_load innocuous_shl_load
17605
17606 /* System header to define __stub macros and hopefully few prototypes,
17607     which can conflict with char shl_load (); below.
17608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17609     <limits.h> exists even on freestanding compilers.  */
17610
17611 #ifdef __STDC__
17612 # include <limits.h>
17613 #else
17614 # include <assert.h>
17615 #endif
17616
17617 #undef shl_load
17618
17619 /* Override any gcc2 internal prototype to avoid an error.  */
17620 #ifdef __cplusplus
17621 extern "C"
17622 {
17623 #endif
17624 /* We use char because int might match the return type of a gcc2
17625    builtin and then its argument prototype would still apply.  */
17626 char shl_load ();
17627 /* The GNU C library defines this for functions which it implements
17628     to always fail with ENOSYS.  Some functions are actually named
17629     something starting with __ and the normal name is an alias.  */
17630 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17631 choke me
17632 #else
17633 char (*f) () = shl_load;
17634 #endif
17635 #ifdef __cplusplus
17636 }
17637 #endif
17638
17639 int
17640 main ()
17641 {
17642 return f != shl_load;
17643   ;
17644   return 0;
17645 }
17646 _ACEOF
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649   (eval $ac_link) 2>conftest.er1
17650   ac_status=$?
17651   grep -v '^ *+' conftest.er1 >conftest.err
17652   rm -f conftest.er1
17653   cat conftest.err >&5
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); } &&
17656          { ac_try='test -z "$ac_cxx_werror_flag"
17657                          || test ! -s conftest.err'
17658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659   (eval $ac_try) 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; } &&
17663          { ac_try='test -s conftest$ac_exeext'
17664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665   (eval $ac_try) 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; }; then
17669   ac_cv_func_shl_load=yes
17670 else
17671   echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17673
17674 ac_cv_func_shl_load=no
17675 fi
17676 rm -f conftest.err conftest.$ac_objext \
17677       conftest$ac_exeext conftest.$ac_ext
17678 fi
17679 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17680 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17681 if test $ac_cv_func_shl_load = yes; then
17682   lt_cv_dlopen="shl_load"
17683 else
17684   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689   ac_check_lib_save_LIBS=$LIBS
17690 LIBS="-ldld  $LIBS"
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h.  */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h.  */
17697
17698 /* Override any gcc2 internal prototype to avoid an error.  */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 /* We use char because int might match the return type of a gcc2
17703    builtin and then its argument prototype would still apply.  */
17704 char shl_load ();
17705 int
17706 main ()
17707 {
17708 shl_load ();
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715   (eval $ac_link) 2>conftest.er1
17716   ac_status=$?
17717   grep -v '^ *+' conftest.er1 >conftest.err
17718   rm -f conftest.er1
17719   cat conftest.err >&5
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } &&
17722          { ac_try='test -z "$ac_cxx_werror_flag"
17723                          || test ! -s conftest.err'
17724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725   (eval $ac_try) 2>&5
17726   ac_status=$?
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); }; } &&
17729          { ac_try='test -s conftest$ac_exeext'
17730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731   (eval $ac_try) 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; }; then
17735   ac_cv_lib_dld_shl_load=yes
17736 else
17737   echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740 ac_cv_lib_dld_shl_load=no
17741 fi
17742 rm -f conftest.err conftest.$ac_objext \
17743       conftest$ac_exeext conftest.$ac_ext
17744 LIBS=$ac_check_lib_save_LIBS
17745 fi
17746 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17747 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17748 if test $ac_cv_lib_dld_shl_load = yes; then
17749   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17750 else
17751   echo "$as_me:$LINENO: checking for dlopen" >&5
17752 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17753 if test "${ac_cv_func_dlopen+set}" = set; then
17754   echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756   cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h.  */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h.  */
17762 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17764 #define dlopen innocuous_dlopen
17765
17766 /* System header to define __stub macros and hopefully few prototypes,
17767     which can conflict with char dlopen (); below.
17768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17769     <limits.h> exists even on freestanding compilers.  */
17770
17771 #ifdef __STDC__
17772 # include <limits.h>
17773 #else
17774 # include <assert.h>
17775 #endif
17776
17777 #undef dlopen
17778
17779 /* Override any gcc2 internal prototype to avoid an error.  */
17780 #ifdef __cplusplus
17781 extern "C"
17782 {
17783 #endif
17784 /* We use char because int might match the return type of a gcc2
17785    builtin and then its argument prototype would still apply.  */
17786 char dlopen ();
17787 /* The GNU C library defines this for functions which it implements
17788     to always fail with ENOSYS.  Some functions are actually named
17789     something starting with __ and the normal name is an alias.  */
17790 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17791 choke me
17792 #else
17793 char (*f) () = dlopen;
17794 #endif
17795 #ifdef __cplusplus
17796 }
17797 #endif
17798
17799 int
17800 main ()
17801 {
17802 return f != dlopen;
17803   ;
17804   return 0;
17805 }
17806 _ACEOF
17807 rm -f conftest.$ac_objext conftest$ac_exeext
17808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809   (eval $ac_link) 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } &&
17816          { ac_try='test -z "$ac_cxx_werror_flag"
17817                          || test ! -s conftest.err'
17818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819   (eval $ac_try) 2>&5
17820   ac_status=$?
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); }; } &&
17823          { ac_try='test -s conftest$ac_exeext'
17824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825   (eval $ac_try) 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; }; then
17829   ac_cv_func_dlopen=yes
17830 else
17831   echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17833
17834 ac_cv_func_dlopen=no
17835 fi
17836 rm -f conftest.err conftest.$ac_objext \
17837       conftest$ac_exeext conftest.$ac_ext
17838 fi
17839 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17840 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17841 if test $ac_cv_func_dlopen = yes; then
17842   lt_cv_dlopen="dlopen"
17843 else
17844   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17845 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17847   echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849   ac_check_lib_save_LIBS=$LIBS
17850 LIBS="-ldl  $LIBS"
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h.  */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h.  */
17857
17858 /* Override any gcc2 internal prototype to avoid an error.  */
17859 #ifdef __cplusplus
17860 extern "C"
17861 #endif
17862 /* We use char because int might match the return type of a gcc2
17863    builtin and then its argument prototype would still apply.  */
17864 char dlopen ();
17865 int
17866 main ()
17867 {
17868 dlopen ();
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 rm -f conftest.$ac_objext conftest$ac_exeext
17874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17875   (eval $ac_link) 2>conftest.er1
17876   ac_status=$?
17877   grep -v '^ *+' conftest.er1 >conftest.err
17878   rm -f conftest.er1
17879   cat conftest.err >&5
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); } &&
17882          { ac_try='test -z "$ac_cxx_werror_flag"
17883                          || test ! -s conftest.err'
17884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885   (eval $ac_try) 2>&5
17886   ac_status=$?
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); }; } &&
17889          { ac_try='test -s conftest$ac_exeext'
17890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891   (eval $ac_try) 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; }; then
17895   ac_cv_lib_dl_dlopen=yes
17896 else
17897   echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17899
17900 ac_cv_lib_dl_dlopen=no
17901 fi
17902 rm -f conftest.err conftest.$ac_objext \
17903       conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17905 fi
17906 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17908 if test $ac_cv_lib_dl_dlopen = yes; then
17909   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17910 else
17911   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17912 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17914   echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916   ac_check_lib_save_LIBS=$LIBS
17917 LIBS="-lsvld  $LIBS"
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h.  */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h.  */
17924
17925 /* Override any gcc2 internal prototype to avoid an error.  */
17926 #ifdef __cplusplus
17927 extern "C"
17928 #endif
17929 /* We use char because int might match the return type of a gcc2
17930    builtin and then its argument prototype would still apply.  */
17931 char dlopen ();
17932 int
17933 main ()
17934 {
17935 dlopen ();
17936   ;
17937   return 0;
17938 }
17939 _ACEOF
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17942   (eval $ac_link) 2>conftest.er1
17943   ac_status=$?
17944   grep -v '^ *+' conftest.er1 >conftest.err
17945   rm -f conftest.er1
17946   cat conftest.err >&5
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); } &&
17949          { ac_try='test -z "$ac_cxx_werror_flag"
17950                          || test ! -s conftest.err'
17951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952   (eval $ac_try) 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; } &&
17956          { ac_try='test -s conftest$ac_exeext'
17957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958   (eval $ac_try) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; }; then
17962   ac_cv_lib_svld_dlopen=yes
17963 else
17964   echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17966
17967 ac_cv_lib_svld_dlopen=no
17968 fi
17969 rm -f conftest.err conftest.$ac_objext \
17970       conftest$ac_exeext conftest.$ac_ext
17971 LIBS=$ac_check_lib_save_LIBS
17972 fi
17973 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17974 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17975 if test $ac_cv_lib_svld_dlopen = yes; then
17976   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17977 else
17978   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17979 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17980 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17981   echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983   ac_check_lib_save_LIBS=$LIBS
17984 LIBS="-ldld  $LIBS"
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h.  */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h.  */
17991
17992 /* Override any gcc2 internal prototype to avoid an error.  */
17993 #ifdef __cplusplus
17994 extern "C"
17995 #endif
17996 /* We use char because int might match the return type of a gcc2
17997    builtin and then its argument prototype would still apply.  */
17998 char dld_link ();
17999 int
18000 main ()
18001 {
18002 dld_link ();
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18009   (eval $ac_link) 2>conftest.er1
18010   ac_status=$?
18011   grep -v '^ *+' conftest.er1 >conftest.err
18012   rm -f conftest.er1
18013   cat conftest.err >&5
18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015   (exit $ac_status); } &&
18016          { ac_try='test -z "$ac_cxx_werror_flag"
18017                          || test ! -s conftest.err'
18018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019   (eval $ac_try) 2>&5
18020   ac_status=$?
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); }; } &&
18023          { ac_try='test -s conftest$ac_exeext'
18024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025   (eval $ac_try) 2>&5
18026   ac_status=$?
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); }; }; then
18029   ac_cv_lib_dld_dld_link=yes
18030 else
18031   echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18033
18034 ac_cv_lib_dld_dld_link=no
18035 fi
18036 rm -f conftest.err conftest.$ac_objext \
18037       conftest$ac_exeext conftest.$ac_ext
18038 LIBS=$ac_check_lib_save_LIBS
18039 fi
18040 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18041 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18042 if test $ac_cv_lib_dld_dld_link = yes; then
18043   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18044 fi
18045
18046
18047 fi
18048
18049
18050 fi
18051
18052
18053 fi
18054
18055
18056 fi
18057
18058
18059 fi
18060
18061     ;;
18062   esac
18063
18064   if test "x$lt_cv_dlopen" != xno; then
18065     enable_dlopen=yes
18066   else
18067     enable_dlopen=no
18068   fi
18069
18070   case $lt_cv_dlopen in
18071   dlopen)
18072     save_CPPFLAGS="$CPPFLAGS"
18073     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18074
18075     save_LDFLAGS="$LDFLAGS"
18076     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18077
18078     save_LIBS="$LIBS"
18079     LIBS="$lt_cv_dlopen_libs $LIBS"
18080
18081     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18082 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18083 if test "${lt_cv_dlopen_self+set}" = set; then
18084   echo $ECHO_N "(cached) $ECHO_C" >&6
18085 else
18086           if test "$cross_compiling" = yes; then :
18087   lt_cv_dlopen_self=cross
18088 else
18089   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18090   lt_status=$lt_dlunknown
18091   cat > conftest.$ac_ext <<EOF
18092 #line 18092 "configure"
18093 #include "confdefs.h"
18094
18095 #if HAVE_DLFCN_H
18096 #include <dlfcn.h>
18097 #endif
18098
18099 #include <stdio.h>
18100
18101 #ifdef RTLD_GLOBAL
18102 #  define LT_DLGLOBAL           RTLD_GLOBAL
18103 #else
18104 #  ifdef DL_GLOBAL
18105 #    define LT_DLGLOBAL         DL_GLOBAL
18106 #  else
18107 #    define LT_DLGLOBAL         0
18108 #  endif
18109 #endif
18110
18111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18112    find out it does not work in some platform. */
18113 #ifndef LT_DLLAZY_OR_NOW
18114 #  ifdef RTLD_LAZY
18115 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18116 #  else
18117 #    ifdef DL_LAZY
18118 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18119 #    else
18120 #      ifdef RTLD_NOW
18121 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18122 #      else
18123 #        ifdef DL_NOW
18124 #          define LT_DLLAZY_OR_NOW      DL_NOW
18125 #        else
18126 #          define LT_DLLAZY_OR_NOW      0
18127 #        endif
18128 #      endif
18129 #    endif
18130 #  endif
18131 #endif
18132
18133 #ifdef __cplusplus
18134 extern "C" void exit (int);
18135 #endif
18136
18137 void fnord() { int i=42;}
18138 int main ()
18139 {
18140   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18141   int status = $lt_dlunknown;
18142
18143   if (self)
18144     {
18145       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18146       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18147       /* dlclose (self); */
18148     }
18149
18150     exit (status);
18151 }
18152 EOF
18153   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18154   (eval $ac_link) 2>&5
18155   ac_status=$?
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18158     (./conftest; exit; ) 2>/dev/null
18159     lt_status=$?
18160     case x$lt_status in
18161       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18162       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18163       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18164     esac
18165   else :
18166     # compilation failed
18167     lt_cv_dlopen_self=no
18168   fi
18169 fi
18170 rm -fr conftest*
18171
18172
18173 fi
18174 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18175 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18176
18177     if test "x$lt_cv_dlopen_self" = xyes; then
18178       LDFLAGS="$LDFLAGS $link_static_flag"
18179       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18180 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18181 if test "${lt_cv_dlopen_self_static+set}" = set; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184           if test "$cross_compiling" = yes; then :
18185   lt_cv_dlopen_self_static=cross
18186 else
18187   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18188   lt_status=$lt_dlunknown
18189   cat > conftest.$ac_ext <<EOF
18190 #line 18190 "configure"
18191 #include "confdefs.h"
18192
18193 #if HAVE_DLFCN_H
18194 #include <dlfcn.h>
18195 #endif
18196
18197 #include <stdio.h>
18198
18199 #ifdef RTLD_GLOBAL
18200 #  define LT_DLGLOBAL           RTLD_GLOBAL
18201 #else
18202 #  ifdef DL_GLOBAL
18203 #    define LT_DLGLOBAL         DL_GLOBAL
18204 #  else
18205 #    define LT_DLGLOBAL         0
18206 #  endif
18207 #endif
18208
18209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18210    find out it does not work in some platform. */
18211 #ifndef LT_DLLAZY_OR_NOW
18212 #  ifdef RTLD_LAZY
18213 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18214 #  else
18215 #    ifdef DL_LAZY
18216 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18217 #    else
18218 #      ifdef RTLD_NOW
18219 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18220 #      else
18221 #        ifdef DL_NOW
18222 #          define LT_DLLAZY_OR_NOW      DL_NOW
18223 #        else
18224 #          define LT_DLLAZY_OR_NOW      0
18225 #        endif
18226 #      endif
18227 #    endif
18228 #  endif
18229 #endif
18230
18231 #ifdef __cplusplus
18232 extern "C" void exit (int);
18233 #endif
18234
18235 void fnord() { int i=42;}
18236 int main ()
18237 {
18238   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18239   int status = $lt_dlunknown;
18240
18241   if (self)
18242     {
18243       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18244       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18245       /* dlclose (self); */
18246     }
18247
18248     exit (status);
18249 }
18250 EOF
18251   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252   (eval $ac_link) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18256     (./conftest; exit; ) 2>/dev/null
18257     lt_status=$?
18258     case x$lt_status in
18259       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18260       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18261       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18262     esac
18263   else :
18264     # compilation failed
18265     lt_cv_dlopen_self_static=no
18266   fi
18267 fi
18268 rm -fr conftest*
18269
18270
18271 fi
18272 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18273 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18274     fi
18275
18276     CPPFLAGS="$save_CPPFLAGS"
18277     LDFLAGS="$save_LDFLAGS"
18278     LIBS="$save_LIBS"
18279     ;;
18280   esac
18281
18282   case $lt_cv_dlopen_self in
18283   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18284   *) enable_dlopen_self=unknown ;;
18285   esac
18286
18287   case $lt_cv_dlopen_self_static in
18288   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18289   *) enable_dlopen_self_static=unknown ;;
18290   esac
18291 fi
18292
18293
18294 # The else clause should only fire when bootstrapping the
18295 # libtool distribution, otherwise you forgot to ship ltmain.sh
18296 # with your package, and you will get complaints that there are
18297 # no rules to generate ltmain.sh.
18298 if test -f "$ltmain"; then
18299   # See if we are running on zsh, and set the options which allow our commands through
18300   # without removal of \ escapes.
18301   if test -n "${ZSH_VERSION+set}" ; then
18302     setopt NO_GLOB_SUBST
18303   fi
18304   # Now quote all the things that may contain metacharacters while being
18305   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18306   # variables and quote the copies for generation of the libtool script.
18307   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18308     SED SHELL STRIP \
18309     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18310     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18311     deplibs_check_method reload_flag reload_cmds need_locks \
18312     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18313     lt_cv_sys_global_symbol_to_c_name_address \
18314     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18315     old_postinstall_cmds old_postuninstall_cmds \
18316     compiler_CXX \
18317     CC_CXX \
18318     LD_CXX \
18319     lt_prog_compiler_wl_CXX \
18320     lt_prog_compiler_pic_CXX \
18321     lt_prog_compiler_static_CXX \
18322     lt_prog_compiler_no_builtin_flag_CXX \
18323     export_dynamic_flag_spec_CXX \
18324     thread_safe_flag_spec_CXX \
18325     whole_archive_flag_spec_CXX \
18326     enable_shared_with_static_runtimes_CXX \
18327     old_archive_cmds_CXX \
18328     old_archive_from_new_cmds_CXX \
18329     predep_objects_CXX \
18330     postdep_objects_CXX \
18331     predeps_CXX \
18332     postdeps_CXX \
18333     compiler_lib_search_path_CXX \
18334     archive_cmds_CXX \
18335     archive_expsym_cmds_CXX \
18336     postinstall_cmds_CXX \
18337     postuninstall_cmds_CXX \
18338     old_archive_from_expsyms_cmds_CXX \
18339     allow_undefined_flag_CXX \
18340     no_undefined_flag_CXX \
18341     export_symbols_cmds_CXX \
18342     hardcode_libdir_flag_spec_CXX \
18343     hardcode_libdir_flag_spec_ld_CXX \
18344     hardcode_libdir_separator_CXX \
18345     hardcode_automatic_CXX \
18346     module_cmds_CXX \
18347     module_expsym_cmds_CXX \
18348     lt_cv_prog_compiler_c_o_CXX \
18349     exclude_expsyms_CXX \
18350     include_expsyms_CXX; do
18351
18352     case $var in
18353     old_archive_cmds_CXX | \
18354     old_archive_from_new_cmds_CXX | \
18355     archive_cmds_CXX | \
18356     archive_expsym_cmds_CXX | \
18357     module_cmds_CXX | \
18358     module_expsym_cmds_CXX | \
18359     old_archive_from_expsyms_cmds_CXX | \
18360     export_symbols_cmds_CXX | \
18361     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18362     postinstall_cmds | postuninstall_cmds | \
18363     old_postinstall_cmds | old_postuninstall_cmds | \
18364     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18365       # Double-quote double-evaled strings.
18366       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18367       ;;
18368     *)
18369       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18370       ;;
18371     esac
18372   done
18373
18374   case $lt_echo in
18375   *'\$0 --fallback-echo"')
18376     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18377     ;;
18378   esac
18379
18380 cfgfile="$ofile"
18381
18382   cat <<__EOF__ >> "$cfgfile"
18383 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18384
18385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18386
18387 # Shell to use when invoking shell scripts.
18388 SHELL=$lt_SHELL
18389
18390 # Whether or not to build shared libraries.
18391 build_libtool_libs=$enable_shared
18392
18393 # Whether or not to build static libraries.
18394 build_old_libs=$enable_static
18395
18396 # Whether or not to add -lc for building shared libraries.
18397 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18398
18399 # Whether or not to disallow shared libs when runtime libs are static
18400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18401
18402 # Whether or not to optimize for fast installation.
18403 fast_install=$enable_fast_install
18404
18405 # The host system.
18406 host_alias=$host_alias
18407 host=$host
18408
18409 # An echo program that does not interpret backslashes.
18410 echo=$lt_echo
18411
18412 # The archiver.
18413 AR=$lt_AR
18414 AR_FLAGS=$lt_AR_FLAGS
18415
18416 # A C compiler.
18417 LTCC=$lt_LTCC
18418
18419 # A language-specific compiler.
18420 CC=$lt_compiler_CXX
18421
18422 # Is the compiler the GNU C compiler?
18423 with_gcc=$GCC_CXX
18424
18425 # An ERE matcher.
18426 EGREP=$lt_EGREP
18427
18428 # The linker used to build libraries.
18429 LD=$lt_LD_CXX
18430
18431 # Whether we need hard or soft links.
18432 LN_S=$lt_LN_S
18433
18434 # A BSD-compatible nm program.
18435 NM=$lt_NM
18436
18437 # A symbol stripping program
18438 STRIP=$lt_STRIP
18439
18440 # Used to examine libraries when file_magic_cmd begins "file"
18441 MAGIC_CMD=$MAGIC_CMD
18442
18443 # Used on cygwin: DLL creation program.
18444 DLLTOOL="$DLLTOOL"
18445
18446 # Used on cygwin: object dumper.
18447 OBJDUMP="$OBJDUMP"
18448
18449 # Used on cygwin: assembler.
18450 AS="$AS"
18451
18452 # The name of the directory that contains temporary libtool files.
18453 objdir=$objdir
18454
18455 # How to create reloadable object files.
18456 reload_flag=$lt_reload_flag
18457 reload_cmds=$lt_reload_cmds
18458
18459 # How to pass a linker flag through the compiler.
18460 wl=$lt_lt_prog_compiler_wl_CXX
18461
18462 # Object file suffix (normally "o").
18463 objext="$ac_objext"
18464
18465 # Old archive suffix (normally "a").
18466 libext="$libext"
18467
18468 # Shared library suffix (normally ".so").
18469 shrext_cmds='$shrext_cmds'
18470
18471 # Executable file suffix (normally "").
18472 exeext="$exeext"
18473
18474 # Additional compiler flags for building library objects.
18475 pic_flag=$lt_lt_prog_compiler_pic_CXX
18476 pic_mode=$pic_mode
18477
18478 # What is the maximum length of a command?
18479 max_cmd_len=$lt_cv_sys_max_cmd_len
18480
18481 # Does compiler simultaneously support -c and -o options?
18482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18483
18484 # Must we lock files when doing compilation ?
18485 need_locks=$lt_need_locks
18486
18487 # Do we need the lib prefix for modules?
18488 need_lib_prefix=$need_lib_prefix
18489
18490 # Do we need a version for libraries?
18491 need_version=$need_version
18492
18493 # Whether dlopen is supported.
18494 dlopen_support=$enable_dlopen
18495
18496 # Whether dlopen of programs is supported.
18497 dlopen_self=$enable_dlopen_self
18498
18499 # Whether dlopen of statically linked programs is supported.
18500 dlopen_self_static=$enable_dlopen_self_static
18501
18502 # Compiler flag to prevent dynamic linking.
18503 link_static_flag=$lt_lt_prog_compiler_static_CXX
18504
18505 # Compiler flag to turn off builtin functions.
18506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18507
18508 # Compiler flag to allow reflexive dlopens.
18509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18510
18511 # Compiler flag to generate shared objects directly from archives.
18512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18513
18514 # Compiler flag to generate thread-safe objects.
18515 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18516
18517 # Library versioning type.
18518 version_type=$version_type
18519
18520 # Format of library name prefix.
18521 libname_spec=$lt_libname_spec
18522
18523 # List of archive names.  First name is the real one, the rest are links.
18524 # The last name is the one that the linker finds with -lNAME.
18525 library_names_spec=$lt_library_names_spec
18526
18527 # The coded name of the library, if different from the real name.
18528 soname_spec=$lt_soname_spec
18529
18530 # Commands used to build and install an old-style archive.
18531 RANLIB=$lt_RANLIB
18532 old_archive_cmds=$lt_old_archive_cmds_CXX
18533 old_postinstall_cmds=$lt_old_postinstall_cmds
18534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18535
18536 # Create an old-style archive from a shared archive.
18537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18538
18539 # Create a temporary old-style archive to link instead of a shared archive.
18540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18541
18542 # Commands used to build and install a shared archive.
18543 archive_cmds=$lt_archive_cmds_CXX
18544 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18545 postinstall_cmds=$lt_postinstall_cmds
18546 postuninstall_cmds=$lt_postuninstall_cmds
18547
18548 # Commands used to build a loadable module (assumed same as above if empty)
18549 module_cmds=$lt_module_cmds_CXX
18550 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18551
18552 # Commands to strip libraries.
18553 old_striplib=$lt_old_striplib
18554 striplib=$lt_striplib
18555
18556 # Dependencies to place before the objects being linked to create a
18557 # shared library.
18558 predep_objects=$lt_predep_objects_CXX
18559
18560 # Dependencies to place after the objects being linked to create a
18561 # shared library.
18562 postdep_objects=$lt_postdep_objects_CXX
18563
18564 # Dependencies to place before the objects being linked to create a
18565 # shared library.
18566 predeps=$lt_predeps_CXX
18567
18568 # Dependencies to place after the objects being linked to create a
18569 # shared library.
18570 postdeps=$lt_postdeps_CXX
18571
18572 # The library search path used internally by the compiler when linking
18573 # a shared library.
18574 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18575
18576 # Method to check whether dependent libraries are shared objects.
18577 deplibs_check_method=$lt_deplibs_check_method
18578
18579 # Command to use when deplibs_check_method == file_magic.
18580 file_magic_cmd=$lt_file_magic_cmd
18581
18582 # Flag that allows shared libraries with undefined symbols to be built.
18583 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18584
18585 # Flag that forces no undefined symbols.
18586 no_undefined_flag=$lt_no_undefined_flag_CXX
18587
18588 # Commands used to finish a libtool library installation in a directory.
18589 finish_cmds=$lt_finish_cmds
18590
18591 # Same as above, but a single script fragment to be evaled but not shown.
18592 finish_eval=$lt_finish_eval
18593
18594 # Take the output of nm and produce a listing of raw symbols and C names.
18595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18596
18597 # Transform the output of nm in a proper C declaration
18598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18599
18600 # Transform the output of nm in a C name address pair
18601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18602
18603 # This is the shared library runtime path variable.
18604 runpath_var=$runpath_var
18605
18606 # This is the shared library path variable.
18607 shlibpath_var=$shlibpath_var
18608
18609 # Is shlibpath searched before the hard-coded library search path?
18610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18611
18612 # How to hardcode a shared library path into an executable.
18613 hardcode_action=$hardcode_action_CXX
18614
18615 # Whether we should hardcode library paths into libraries.
18616 hardcode_into_libs=$hardcode_into_libs
18617
18618 # Flag to hardcode \$libdir into a binary during linking.
18619 # This must work even if \$libdir does not exist.
18620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18621
18622 # If ld is used when linking, flag to hardcode \$libdir into
18623 # a binary during linking. This must work even if \$libdir does
18624 # not exist.
18625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18626
18627 # Whether we need a single -rpath flag with a separated argument.
18628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18629
18630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18631 # resulting binary.
18632 hardcode_direct=$hardcode_direct_CXX
18633
18634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18635 # resulting binary.
18636 hardcode_minus_L=$hardcode_minus_L_CXX
18637
18638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18639 # the resulting binary.
18640 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18641
18642 # Set to yes if building a shared library automatically hardcodes DIR into the library
18643 # and all subsequent libraries and executables linked against it.
18644 hardcode_automatic=$hardcode_automatic_CXX
18645
18646 # Variables whose values should be saved in libtool wrapper scripts and
18647 # restored at relink time.
18648 variables_saved_for_relink="$variables_saved_for_relink"
18649
18650 # Whether libtool must link a program against all its dependency libraries.
18651 link_all_deplibs=$link_all_deplibs_CXX
18652
18653 # Compile-time system search path for libraries
18654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18655
18656 # Run-time system search path for libraries
18657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18658
18659 # Fix the shell variable \$srcfile for the compiler.
18660 fix_srcfile_path="$fix_srcfile_path_CXX"
18661
18662 # Set to yes if exported symbols are required.
18663 always_export_symbols=$always_export_symbols_CXX
18664
18665 # The commands to list exported symbols.
18666 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18667
18668 # The commands to extract the exported symbol list from a shared archive.
18669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18670
18671 # Symbols that should not be listed in the preloaded symbols.
18672 exclude_expsyms=$lt_exclude_expsyms_CXX
18673
18674 # Symbols that must always be exported.
18675 include_expsyms=$lt_include_expsyms_CXX
18676
18677 # ### END LIBTOOL TAG CONFIG: $tagname
18678
18679 __EOF__
18680
18681
18682 else
18683   # If there is no Makefile yet, we rely on a make rule to execute
18684   # `config.status --recheck' to rerun these tests and create the
18685   # libtool script then.
18686   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18687   if test -f "$ltmain_in"; then
18688     test -f Makefile && make "$ltmain"
18689   fi
18690 fi
18691
18692
18693 ac_ext=c
18694 ac_cpp='$CPP $CPPFLAGS'
18695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18698
18699 CC=$lt_save_CC
18700 LDCXX=$LD
18701 LD=$lt_save_LD
18702 GCC=$lt_save_GCC
18703 with_gnu_ldcxx=$with_gnu_ld
18704 with_gnu_ld=$lt_save_with_gnu_ld
18705 lt_cv_path_LDCXX=$lt_cv_path_LD
18706 lt_cv_path_LD=$lt_save_path_LD
18707 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18708 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18709
18710         else
18711           tagname=""
18712         fi
18713         ;;
18714
18715       F77)
18716         if test -n "$F77" && test "X$F77" != "Xno"; then
18717
18718 ac_ext=f
18719 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18720 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18722
18723
18724 archive_cmds_need_lc_F77=no
18725 allow_undefined_flag_F77=
18726 always_export_symbols_F77=no
18727 archive_expsym_cmds_F77=
18728 export_dynamic_flag_spec_F77=
18729 hardcode_direct_F77=no
18730 hardcode_libdir_flag_spec_F77=
18731 hardcode_libdir_flag_spec_ld_F77=
18732 hardcode_libdir_separator_F77=
18733 hardcode_minus_L_F77=no
18734 hardcode_automatic_F77=no
18735 module_cmds_F77=
18736 module_expsym_cmds_F77=
18737 link_all_deplibs_F77=unknown
18738 old_archive_cmds_F77=$old_archive_cmds
18739 no_undefined_flag_F77=
18740 whole_archive_flag_spec_F77=
18741 enable_shared_with_static_runtimes_F77=no
18742
18743 # Source file extension for f77 test sources.
18744 ac_ext=f
18745
18746 # Object file extension for compiled f77 test sources.
18747 objext=o
18748 objext_F77=$objext
18749
18750 # Code to be used in simple compile tests
18751 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18752
18753 # Code to be used in simple link tests
18754 lt_simple_link_test_code="      program t\n      end\n"
18755
18756 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18757
18758 # If no C compiler was specified, use CC.
18759 LTCC=${LTCC-"$CC"}
18760
18761 # Allow CC to be a program name with arguments.
18762 compiler=$CC
18763
18764
18765 # Allow CC to be a program name with arguments.
18766 lt_save_CC="$CC"
18767 CC=${F77-"f77"}
18768 compiler=$CC
18769 compiler_F77=$CC
18770 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18771
18772 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18773 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18774 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18775 echo "${ECHO_T}$can_build_shared" >&6
18776
18777 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18778 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18779 test "$can_build_shared" = "no" && enable_shared=no
18780
18781 # On AIX, shared libraries and static libraries use the same namespace, and
18782 # are all built from PIC.
18783 case "$host_os" in
18784 aix3*)
18785   test "$enable_shared" = yes && enable_static=no
18786   if test -n "$RANLIB"; then
18787     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18788     postinstall_cmds='$RANLIB $lib'
18789   fi
18790   ;;
18791 aix4* | aix5*)
18792   test "$enable_shared" = yes && enable_static=no
18793   ;;
18794 esac
18795 echo "$as_me:$LINENO: result: $enable_shared" >&5
18796 echo "${ECHO_T}$enable_shared" >&6
18797
18798 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18799 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18800 # Make sure either enable_shared or enable_static is yes.
18801 test "$enable_shared" = yes || enable_static=yes
18802 echo "$as_me:$LINENO: result: $enable_static" >&5
18803 echo "${ECHO_T}$enable_static" >&6
18804
18805 test "$ld_shlibs_F77" = no && can_build_shared=no
18806
18807 GCC_F77="$G77"
18808 LD_F77="$LD"
18809
18810 lt_prog_compiler_wl_F77=
18811 lt_prog_compiler_pic_F77=
18812 lt_prog_compiler_static_F77=
18813
18814 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18815 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18816
18817   if test "$GCC" = yes; then
18818     lt_prog_compiler_wl_F77='-Wl,'
18819     lt_prog_compiler_static_F77='-static'
18820
18821     case $host_os in
18822       aix*)
18823       # All AIX code is PIC.
18824       if test "$host_cpu" = ia64; then
18825         # AIX 5 now supports IA64 processor
18826         lt_prog_compiler_static_F77='-Bstatic'
18827       fi
18828       ;;
18829
18830     amigaos*)
18831       # FIXME: we need at least 68020 code to build shared libraries, but
18832       # adding the `-m68020' flag to GCC prevents building anything better,
18833       # like `-m68040'.
18834       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18835       ;;
18836
18837     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18838       # PIC is the default for these OSes.
18839       ;;
18840
18841     mingw* | pw32* | os2*)
18842       # This hack is so that the source file can tell whether it is being
18843       # built for inclusion in a dll (and should export symbols for example).
18844       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18845       ;;
18846
18847     darwin* | rhapsody*)
18848       # PIC is the default on this platform
18849       # Common symbols not allowed in MH_DYLIB files
18850       lt_prog_compiler_pic_F77='-fno-common'
18851       ;;
18852
18853     msdosdjgpp*)
18854       # Just because we use GCC doesn't mean we suddenly get shared libraries
18855       # on systems that don't support them.
18856       lt_prog_compiler_can_build_shared_F77=no
18857       enable_shared=no
18858       ;;
18859
18860     sysv4*MP*)
18861       if test -d /usr/nec; then
18862         lt_prog_compiler_pic_F77=-Kconform_pic
18863       fi
18864       ;;
18865
18866     hpux*)
18867       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18868       # not for PA HP-UX.
18869       case "$host_cpu" in
18870       hppa*64*|ia64*)
18871         # +Z the default
18872         ;;
18873       *)
18874         lt_prog_compiler_pic_F77='-fPIC'
18875         ;;
18876       esac
18877       ;;
18878
18879     *)
18880       lt_prog_compiler_pic_F77='-fPIC'
18881       ;;
18882     esac
18883   else
18884     # PORTME Check for flag to pass linker flags through the system compiler.
18885     case $host_os in
18886     aix*)
18887       lt_prog_compiler_wl_F77='-Wl,'
18888       if test "$host_cpu" = ia64; then
18889         # AIX 5 now supports IA64 processor
18890         lt_prog_compiler_static_F77='-Bstatic'
18891       else
18892         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18893       fi
18894       ;;
18895       darwin*)
18896         # PIC is the default on this platform
18897         # Common symbols not allowed in MH_DYLIB files
18898        case "$cc_basename" in
18899          xlc*)
18900          lt_prog_compiler_pic_F77='-qnocommon'
18901          lt_prog_compiler_wl_F77='-Wl,'
18902          ;;
18903        esac
18904        ;;
18905
18906     mingw* | pw32* | os2*)
18907       # This hack is so that the source file can tell whether it is being
18908       # built for inclusion in a dll (and should export symbols for example).
18909       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18910       ;;
18911
18912     hpux9* | hpux10* | hpux11*)
18913       lt_prog_compiler_wl_F77='-Wl,'
18914       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18915       # not for PA HP-UX.
18916       case "$host_cpu" in
18917       hppa*64*|ia64*)
18918         # +Z the default
18919         ;;
18920       *)
18921         lt_prog_compiler_pic_F77='+Z'
18922         ;;
18923       esac
18924       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18925       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18926       ;;
18927
18928     irix5* | irix6* | nonstopux*)
18929       lt_prog_compiler_wl_F77='-Wl,'
18930       # PIC (with -KPIC) is the default.
18931       lt_prog_compiler_static_F77='-non_shared'
18932       ;;
18933
18934     newsos6)
18935       lt_prog_compiler_pic_F77='-KPIC'
18936       lt_prog_compiler_static_F77='-Bstatic'
18937       ;;
18938
18939     linux*)
18940       case $CC in
18941       icc* | ecc*)
18942         lt_prog_compiler_wl_F77='-Wl,'
18943         lt_prog_compiler_pic_F77='-KPIC'
18944         lt_prog_compiler_static_F77='-static'
18945         ;;
18946       ccc*)
18947         lt_prog_compiler_wl_F77='-Wl,'
18948         # All Alpha code is PIC.
18949         lt_prog_compiler_static_F77='-non_shared'
18950         ;;
18951       esac
18952       ;;
18953
18954     osf3* | osf4* | osf5*)
18955       lt_prog_compiler_wl_F77='-Wl,'
18956       # All OSF/1 code is PIC.
18957       lt_prog_compiler_static_F77='-non_shared'
18958       ;;
18959
18960     sco3.2v5*)
18961       lt_prog_compiler_pic_F77='-Kpic'
18962       lt_prog_compiler_static_F77='-dn'
18963       ;;
18964
18965     solaris*)
18966       lt_prog_compiler_wl_F77='-Wl,'
18967       lt_prog_compiler_pic_F77='-KPIC'
18968       lt_prog_compiler_static_F77='-Bstatic'
18969       ;;
18970
18971     sunos4*)
18972       lt_prog_compiler_wl_F77='-Qoption ld '
18973       lt_prog_compiler_pic_F77='-PIC'
18974       lt_prog_compiler_static_F77='-Bstatic'
18975       ;;
18976
18977     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18978       lt_prog_compiler_wl_F77='-Wl,'
18979       lt_prog_compiler_pic_F77='-KPIC'
18980       lt_prog_compiler_static_F77='-Bstatic'
18981       ;;
18982
18983     sysv4*MP*)
18984       if test -d /usr/nec ;then
18985         lt_prog_compiler_pic_F77='-Kconform_pic'
18986         lt_prog_compiler_static_F77='-Bstatic'
18987       fi
18988       ;;
18989
18990     uts4*)
18991       lt_prog_compiler_pic_F77='-pic'
18992       lt_prog_compiler_static_F77='-Bstatic'
18993       ;;
18994
18995     *)
18996       lt_prog_compiler_can_build_shared_F77=no
18997       ;;
18998     esac
18999   fi
19000
19001 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19002 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19003
19004 #
19005 # Check to make sure the PIC flag actually works.
19006 #
19007 if test -n "$lt_prog_compiler_pic_F77"; then
19008
19009 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19010 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19011 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19012   echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014   lt_prog_compiler_pic_works_F77=no
19015   ac_outfile=conftest.$ac_objext
19016    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19017    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19018    # Insert the option either (1) after the last *FLAGS variable, or
19019    # (2) before a word containing "conftest.", or (3) at the end.
19020    # Note that $ac_compile itself does not contain backslashes and begins
19021    # with a dollar sign (not a hyphen), so the echo should work correctly.
19022    # The option is referenced via a variable to avoid confusing sed.
19023    lt_compile=`echo "$ac_compile" | $SED \
19024    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19026    -e 's:$: $lt_compiler_flag:'`
19027    (eval echo "\"\$as_me:19027: $lt_compile\"" >&5)
19028    (eval "$lt_compile" 2>conftest.err)
19029    ac_status=$?
19030    cat conftest.err >&5
19031    echo "$as_me:19031: \$? = $ac_status" >&5
19032    if (exit $ac_status) && test -s "$ac_outfile"; then
19033      # The compiler can only warn and ignore the option if not recognized
19034      # So say no if there are warnings
19035      if test ! -s conftest.err; then
19036        lt_prog_compiler_pic_works_F77=yes
19037      fi
19038    fi
19039    $rm conftest*
19040
19041 fi
19042 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19043 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19044
19045 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19046     case $lt_prog_compiler_pic_F77 in
19047      "" | " "*) ;;
19048      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19049      esac
19050 else
19051     lt_prog_compiler_pic_F77=
19052      lt_prog_compiler_can_build_shared_F77=no
19053 fi
19054
19055 fi
19056 case "$host_os" in
19057   # For platforms which do not support PIC, -DPIC is meaningless:
19058   *djgpp*)
19059     lt_prog_compiler_pic_F77=
19060     ;;
19061   *)
19062     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19063     ;;
19064 esac
19065
19066 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19067 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19068 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19069   echo $ECHO_N "(cached) $ECHO_C" >&6
19070 else
19071   lt_cv_prog_compiler_c_o_F77=no
19072    $rm -r conftest 2>/dev/null
19073    mkdir conftest
19074    cd conftest
19075    mkdir out
19076    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19077
19078    lt_compiler_flag="-o out/conftest2.$ac_objext"
19079    # Insert the option either (1) after the last *FLAGS variable, or
19080    # (2) before a word containing "conftest.", or (3) at the end.
19081    # Note that $ac_compile itself does not contain backslashes and begins
19082    # with a dollar sign (not a hyphen), so the echo should work correctly.
19083    lt_compile=`echo "$ac_compile" | $SED \
19084    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19085    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19086    -e 's:$: $lt_compiler_flag:'`
19087    (eval echo "\"\$as_me:19087: $lt_compile\"" >&5)
19088    (eval "$lt_compile" 2>out/conftest.err)
19089    ac_status=$?
19090    cat out/conftest.err >&5
19091    echo "$as_me:19091: \$? = $ac_status" >&5
19092    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19093    then
19094      # The compiler can only warn and ignore the option if not recognized
19095      # So say no if there are warnings
19096      if test ! -s out/conftest.err; then
19097        lt_cv_prog_compiler_c_o_F77=yes
19098      fi
19099    fi
19100    chmod u+w .
19101    $rm conftest*
19102    # SGI C++ compiler will create directory out/ii_files/ for
19103    # template instantiation
19104    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19105    $rm out/* && rmdir out
19106    cd ..
19107    rmdir conftest
19108    $rm conftest*
19109
19110 fi
19111 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19112 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19113
19114
19115 hard_links="nottested"
19116 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19117   # do not overwrite the value of need_locks provided by the user
19118   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19119 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19120   hard_links=yes
19121   $rm conftest*
19122   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19123   touch conftest.a
19124   ln conftest.a conftest.b 2>&5 || hard_links=no
19125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19126   echo "$as_me:$LINENO: result: $hard_links" >&5
19127 echo "${ECHO_T}$hard_links" >&6
19128   if test "$hard_links" = no; then
19129     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19130 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19131     need_locks=warn
19132   fi
19133 else
19134   need_locks=no
19135 fi
19136
19137 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19138 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19139
19140   runpath_var=
19141   allow_undefined_flag_F77=
19142   enable_shared_with_static_runtimes_F77=no
19143   archive_cmds_F77=
19144   archive_expsym_cmds_F77=
19145   old_archive_From_new_cmds_F77=
19146   old_archive_from_expsyms_cmds_F77=
19147   export_dynamic_flag_spec_F77=
19148   whole_archive_flag_spec_F77=
19149   thread_safe_flag_spec_F77=
19150   hardcode_libdir_flag_spec_F77=
19151   hardcode_libdir_flag_spec_ld_F77=
19152   hardcode_libdir_separator_F77=
19153   hardcode_direct_F77=no
19154   hardcode_minus_L_F77=no
19155   hardcode_shlibpath_var_F77=unsupported
19156   link_all_deplibs_F77=unknown
19157   hardcode_automatic_F77=no
19158   module_cmds_F77=
19159   module_expsym_cmds_F77=
19160   always_export_symbols_F77=no
19161   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19162   # include_expsyms should be a list of space-separated symbols to be *always*
19163   # included in the symbol list
19164   include_expsyms_F77=
19165   # exclude_expsyms can be an extended regexp of symbols to exclude
19166   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19167   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19168   # as well as any symbol that contains `d'.
19169   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19170   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19171   # platforms (ab)use it in PIC code, but their linkers get confused if
19172   # the symbol is explicitly referenced.  Since portable code cannot
19173   # rely on this symbol name, it's probably fine to never include it in
19174   # preloaded symbol tables.
19175   extract_expsyms_cmds=
19176
19177   case $host_os in
19178   cygwin* | mingw* | pw32*)
19179     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19180     # When not using gcc, we currently assume that we are using
19181     # Microsoft Visual C++.
19182     if test "$GCC" != yes; then
19183       with_gnu_ld=no
19184     fi
19185     ;;
19186   openbsd*)
19187     with_gnu_ld=no
19188     ;;
19189   esac
19190
19191   ld_shlibs_F77=yes
19192   if test "$with_gnu_ld" = yes; then
19193     # If archive_cmds runs LD, not CC, wlarc should be empty
19194     wlarc='${wl}'
19195
19196     # See if GNU ld supports shared libraries.
19197     case $host_os in
19198     aix3* | aix4* | aix5*)
19199       # On AIX/PPC, the GNU linker is very broken
19200       if test "$host_cpu" != ia64; then
19201         ld_shlibs_F77=no
19202         cat <<EOF 1>&2
19203
19204 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19205 *** to be unable to reliably create shared libraries on AIX.
19206 *** Therefore, libtool is disabling shared libraries support.  If you
19207 *** really care for shared libraries, you may want to modify your PATH
19208 *** so that a non-GNU linker is found, and then restart.
19209
19210 EOF
19211       fi
19212       ;;
19213
19214     amigaos*)
19215       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19216       hardcode_libdir_flag_spec_F77='-L$libdir'
19217       hardcode_minus_L_F77=yes
19218
19219       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19220       # that the semantics of dynamic libraries on AmigaOS, at least up
19221       # to version 4, is to share data among multiple programs linked
19222       # with the same dynamic library.  Since this doesn't match the
19223       # behavior of shared libraries on other platforms, we can't use
19224       # them.
19225       ld_shlibs_F77=no
19226       ;;
19227
19228     beos*)
19229       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19230         allow_undefined_flag_F77=unsupported
19231         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19232         # support --undefined.  This deserves some investigation.  FIXME
19233         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19234       else
19235         ld_shlibs_F77=no
19236       fi
19237       ;;
19238
19239     cygwin* | mingw* | pw32*)
19240       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19241       # as there is no search path for DLLs.
19242       hardcode_libdir_flag_spec_F77='-L$libdir'
19243       allow_undefined_flag_F77=unsupported
19244       always_export_symbols_F77=no
19245       enable_shared_with_static_runtimes_F77=yes
19246       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19247
19248       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19249         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19250         # If the export-symbols file already is a .def file (1st line
19251         # is EXPORTS), use it as is; otherwise, prepend...
19252         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19253           cp $export_symbols $output_objdir/$soname.def;
19254         else
19255           echo EXPORTS > $output_objdir/$soname.def;
19256           cat $export_symbols >> $output_objdir/$soname.def;
19257         fi~
19258         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19259       else
19260         ld_shlibs=no
19261       fi
19262       ;;
19263
19264     netbsd*)
19265       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19266         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19267         wlarc=
19268       else
19269         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19270         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19271       fi
19272       ;;
19273
19274     solaris* | sysv5*)
19275       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19276         ld_shlibs_F77=no
19277         cat <<EOF 1>&2
19278
19279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19280 *** create shared libraries on Solaris systems.  Therefore, libtool
19281 *** is disabling shared libraries support.  We urge you to upgrade GNU
19282 *** binutils to release 2.9.1 or newer.  Another option is to modify
19283 *** your PATH or compiler configuration so that the native linker is
19284 *** used, and then restart.
19285
19286 EOF
19287       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19288         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19289         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19290       else
19291         ld_shlibs_F77=no
19292       fi
19293       ;;
19294
19295     sunos4*)
19296       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19297       wlarc=
19298       hardcode_direct_F77=yes
19299       hardcode_shlibpath_var_F77=no
19300       ;;
19301
19302   linux*)
19303     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19304         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19305         archive_cmds_F77="$tmp_archive_cmds"
19306       supports_anon_versioning=no
19307       case `$LD -v 2>/dev/null` in
19308         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19309         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19310         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19311         *\ 2.11.*) ;; # other 2.11 versions
19312         *) supports_anon_versioning=yes ;;
19313       esac
19314       if test $supports_anon_versioning = yes; then
19315         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19317 $echo "local: *; };" >> $output_objdir/$libname.ver~
19318         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19319       else
19320         archive_expsym_cmds_F77="$tmp_archive_cmds"
19321       fi
19322     else
19323       ld_shlibs_F77=no
19324     fi
19325     ;;
19326
19327     *)
19328       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19329         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19330         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19331       else
19332         ld_shlibs_F77=no
19333       fi
19334       ;;
19335     esac
19336
19337     if test "$ld_shlibs_F77" = yes; then
19338       runpath_var=LD_RUN_PATH
19339       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19340       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19341       # ancient GNU ld didn't support --whole-archive et. al.
19342       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19343         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19344       else
19345         whole_archive_flag_spec_F77=
19346       fi
19347     fi
19348   else
19349     # PORTME fill in a description of your system's linker (not GNU ld)
19350     case $host_os in
19351     aix3*)
19352       allow_undefined_flag_F77=unsupported
19353       always_export_symbols_F77=yes
19354       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19355       # Note: this linker hardcodes the directories in LIBPATH if there
19356       # are no directories specified by -L.
19357       hardcode_minus_L_F77=yes
19358       if test "$GCC" = yes && test -z "$link_static_flag"; then
19359         # Neither direct hardcoding nor static linking is supported with a
19360         # broken collect2.
19361         hardcode_direct_F77=unsupported
19362       fi
19363       ;;
19364
19365     aix4* | aix5*)
19366       if test "$host_cpu" = ia64; then
19367         # On IA64, the linker does run time linking by default, so we don't
19368         # have to do anything special.
19369         aix_use_runtimelinking=no
19370         exp_sym_flag='-Bexport'
19371         no_entry_flag=""
19372       else
19373         # If we're using GNU nm, then we don't want the "-C" option.
19374         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19375         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19376           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19377         else
19378           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19379         fi
19380         aix_use_runtimelinking=no
19381
19382         # Test if we are trying to use run time linking or normal
19383         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19384         # need to do runtime linking.
19385         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19386           for ld_flag in $LDFLAGS; do
19387           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19388             aix_use_runtimelinking=yes
19389             break
19390           fi
19391           done
19392         esac
19393
19394         exp_sym_flag='-bexport'
19395         no_entry_flag='-bnoentry'
19396       fi
19397
19398       # When large executables or shared objects are built, AIX ld can
19399       # have problems creating the table of contents.  If linking a library
19400       # or program results in "error TOC overflow" add -mminimal-toc to
19401       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19402       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19403
19404       archive_cmds_F77=''
19405       hardcode_direct_F77=yes
19406       hardcode_libdir_separator_F77=':'
19407       link_all_deplibs_F77=yes
19408
19409       if test "$GCC" = yes; then
19410         case $host_os in aix4.012|aix4.012.*)
19411         # We only want to do this on AIX 4.2 and lower, the check
19412         # below for broken collect2 doesn't work under 4.3+
19413           collect2name=`${CC} -print-prog-name=collect2`
19414           if test -f "$collect2name" && \
19415            strings "$collect2name" | grep resolve_lib_name >/dev/null
19416           then
19417           # We have reworked collect2
19418           hardcode_direct_F77=yes
19419           else
19420           # We have old collect2
19421           hardcode_direct_F77=unsupported
19422           # It fails to find uninstalled libraries when the uninstalled
19423           # path is not listed in the libpath.  Setting hardcode_minus_L
19424           # to unsupported forces relinking
19425           hardcode_minus_L_F77=yes
19426           hardcode_libdir_flag_spec_F77='-L$libdir'
19427           hardcode_libdir_separator_F77=
19428           fi
19429         esac
19430         shared_flag='-shared'
19431       else
19432         # not using gcc
19433         if test "$host_cpu" = ia64; then
19434         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19435         # chokes on -Wl,-G. The following line is correct:
19436           shared_flag='-G'
19437         else
19438         if test "$aix_use_runtimelinking" = yes; then
19439             shared_flag='${wl}-G'
19440           else
19441             shared_flag='${wl}-bM:SRE'
19442         fi
19443         fi
19444       fi
19445
19446       # It seems that -bexpall does not export symbols beginning with
19447       # underscore (_), so it is better to generate a list of symbols to export.
19448       always_export_symbols_F77=yes
19449       if test "$aix_use_runtimelinking" = yes; then
19450         # Warning - without using the other runtime loading flags (-brtl),
19451         # -berok will link without error, but may produce a broken library.
19452         allow_undefined_flag_F77='-berok'
19453        # Determine the default libpath from the value encoded in an empty executable.
19454        cat >conftest.$ac_ext <<_ACEOF
19455       program main
19456
19457       end
19458 _ACEOF
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461   (eval $ac_link) 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } &&
19468          { ac_try='test -z "$ac_f77_werror_flag"
19469                          || test ! -s conftest.err'
19470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471   (eval $ac_try) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest$ac_exeext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481
19482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19483 }'`
19484 # Check for a 64-bit object if we didn't find anything.
19485 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19486 }'`; fi
19487 else
19488   echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 fi
19492 rm -f conftest.err conftest.$ac_objext \
19493       conftest$ac_exeext conftest.$ac_ext
19494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19495
19496        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19497         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19498        else
19499         if test "$host_cpu" = ia64; then
19500           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19501           allow_undefined_flag_F77="-z nodefs"
19502           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19503         else
19504          # Determine the default libpath from the value encoded in an empty executable.
19505          cat >conftest.$ac_ext <<_ACEOF
19506       program main
19507
19508       end
19509 _ACEOF
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512   (eval $ac_link) 2>conftest.er1
19513   ac_status=$?
19514   grep -v '^ *+' conftest.er1 >conftest.err
19515   rm -f conftest.er1
19516   cat conftest.err >&5
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -z "$ac_f77_werror_flag"
19520                          || test ! -s conftest.err'
19521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522   (eval $ac_try) 2>&5
19523   ac_status=$?
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); }; } &&
19526          { ac_try='test -s conftest$ac_exeext'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; }; then
19532
19533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19534 }'`
19535 # Check for a 64-bit object if we didn't find anything.
19536 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19537 }'`; fi
19538 else
19539   echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542 fi
19543 rm -f conftest.err conftest.$ac_objext \
19544       conftest$ac_exeext conftest.$ac_ext
19545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19546
19547          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19548           # Warning - without using the other run time loading flags,
19549           # -berok will link without error, but may produce a broken library.
19550           no_undefined_flag_F77=' ${wl}-bernotok'
19551           allow_undefined_flag_F77=' ${wl}-berok'
19552           # -bexpall does not export symbols beginning with underscore (_)
19553           always_export_symbols_F77=yes
19554           # Exported symbols can be pulled into shared objects from archives
19555           whole_archive_flag_spec_F77=' '
19556           archive_cmds_need_lc_F77=yes
19557           # This is similar to how AIX traditionally builds it's shared libraries.
19558           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19559         fi
19560       fi
19561       ;;
19562
19563     amigaos*)
19564       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19565       hardcode_libdir_flag_spec_F77='-L$libdir'
19566       hardcode_minus_L_F77=yes
19567       # see comment about different semantics on the GNU ld section
19568       ld_shlibs_F77=no
19569       ;;
19570
19571     bsdi[45]*)
19572       export_dynamic_flag_spec_F77=-rdynamic
19573       ;;
19574
19575     cygwin* | mingw* | pw32*)
19576       # When not using gcc, we currently assume that we are using
19577       # Microsoft Visual C++.
19578       # hardcode_libdir_flag_spec is actually meaningless, as there is
19579       # no search path for DLLs.
19580       hardcode_libdir_flag_spec_F77=' '
19581       allow_undefined_flag_F77=unsupported
19582       # Tell ltmain to make .lib files, not .a files.
19583       libext=lib
19584       # Tell ltmain to make .dll files, not .so files.
19585       shrext_cmds=".dll"
19586       # FIXME: Setting linknames here is a bad hack.
19587       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19588       # The linker will automatically build a .lib file if we build a DLL.
19589       old_archive_From_new_cmds_F77='true'
19590       # FIXME: Should let the user specify the lib program.
19591       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19592       fix_srcfile_path='`cygpath -w "$srcfile"`'
19593       enable_shared_with_static_runtimes_F77=yes
19594       ;;
19595
19596     darwin* | rhapsody*)
19597       case "$host_os" in
19598         rhapsody* | darwin1.[012])
19599          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19600          ;;
19601        *) # Darwin 1.3 on
19602          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19603            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19604          else
19605            case ${MACOSX_DEPLOYMENT_TARGET} in
19606              10.[012])
19607                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19608                ;;
19609              10.*)
19610                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19611                ;;
19612            esac
19613          fi
19614          ;;
19615       esac
19616       archive_cmds_need_lc_F77=no
19617       hardcode_direct_F77=no
19618       hardcode_automatic_F77=yes
19619       hardcode_shlibpath_var_F77=unsupported
19620       whole_archive_flag_spec_F77=''
19621       link_all_deplibs_F77=yes
19622     if test "$GCC" = yes ; then
19623         output_verbose_link_cmd='echo'
19624         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19625       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19626       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19627       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19628       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19629     else
19630       case "$cc_basename" in
19631         xlc*)
19632          output_verbose_link_cmd='echo'
19633          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19634          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19635           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19636          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19637           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19638           ;;
19639        *)
19640          ld_shlibs_F77=no
19641           ;;
19642       esac
19643     fi
19644       ;;
19645
19646     dgux*)
19647       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19648       hardcode_libdir_flag_spec_F77='-L$libdir'
19649       hardcode_shlibpath_var_F77=no
19650       ;;
19651
19652     freebsd1*)
19653       ld_shlibs_F77=no
19654       ;;
19655
19656     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19657     # support.  Future versions do this automatically, but an explicit c++rt0.o
19658     # does not break anything, and helps significantly (at the cost of a little
19659     # extra space).
19660     freebsd2.2*)
19661       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19662       hardcode_libdir_flag_spec_F77='-R$libdir'
19663       hardcode_direct_F77=yes
19664       hardcode_shlibpath_var_F77=no
19665       ;;
19666
19667     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19668     freebsd2*)
19669       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19670       hardcode_direct_F77=yes
19671       hardcode_minus_L_F77=yes
19672       hardcode_shlibpath_var_F77=no
19673       ;;
19674
19675     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19676     freebsd* | kfreebsd*-gnu)
19677       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19678       hardcode_libdir_flag_spec_F77='-R$libdir'
19679       hardcode_direct_F77=yes
19680       hardcode_shlibpath_var_F77=no
19681       ;;
19682
19683     hpux9*)
19684       if test "$GCC" = yes; then
19685         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19686       else
19687         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19688       fi
19689       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19690       hardcode_libdir_separator_F77=:
19691       hardcode_direct_F77=yes
19692
19693       # hardcode_minus_L: Not really in the search PATH,
19694       # but as the default location of the library.
19695       hardcode_minus_L_F77=yes
19696       export_dynamic_flag_spec_F77='${wl}-E'
19697       ;;
19698
19699     hpux10* | hpux11*)
19700       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19701         case "$host_cpu" in
19702         hppa*64*|ia64*)
19703           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19704           ;;
19705         *)
19706           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19707           ;;
19708         esac
19709       else
19710         case "$host_cpu" in
19711         hppa*64*|ia64*)
19712           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19713           ;;
19714         *)
19715           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19716           ;;
19717         esac
19718       fi
19719       if test "$with_gnu_ld" = no; then
19720         case "$host_cpu" in
19721         hppa*64*)
19722           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19723           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19724           hardcode_libdir_separator_F77=:
19725           hardcode_direct_F77=no
19726           hardcode_shlibpath_var_F77=no
19727           ;;
19728         ia64*)
19729           hardcode_libdir_flag_spec_F77='-L$libdir'
19730           hardcode_direct_F77=no
19731           hardcode_shlibpath_var_F77=no
19732
19733           # hardcode_minus_L: Not really in the search PATH,
19734           # but as the default location of the library.
19735           hardcode_minus_L_F77=yes
19736           ;;
19737         *)
19738           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19739           hardcode_libdir_separator_F77=:
19740           hardcode_direct_F77=yes
19741           export_dynamic_flag_spec_F77='${wl}-E'
19742
19743           # hardcode_minus_L: Not really in the search PATH,
19744           # but as the default location of the library.
19745           hardcode_minus_L_F77=yes
19746           ;;
19747         esac
19748       fi
19749       ;;
19750
19751     irix5* | irix6* | nonstopux*)
19752       if test "$GCC" = yes; then
19753         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19754       else
19755         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19756         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19757       fi
19758       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19759       hardcode_libdir_separator_F77=:
19760       link_all_deplibs_F77=yes
19761       ;;
19762
19763     netbsd*)
19764       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19765         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19766       else
19767         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19768       fi
19769       hardcode_libdir_flag_spec_F77='-R$libdir'
19770       hardcode_direct_F77=yes
19771       hardcode_shlibpath_var_F77=no
19772       ;;
19773
19774     newsos6)
19775       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19776       hardcode_direct_F77=yes
19777       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19778       hardcode_libdir_separator_F77=:
19779       hardcode_shlibpath_var_F77=no
19780       ;;
19781
19782     openbsd*)
19783       hardcode_direct_F77=yes
19784       hardcode_shlibpath_var_F77=no
19785       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19786         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19787         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19788         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19789         export_dynamic_flag_spec_F77='${wl}-E'
19790       else
19791        case $host_os in
19792          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19793            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19794            hardcode_libdir_flag_spec_F77='-R$libdir'
19795            ;;
19796          *)
19797            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19798            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19799            ;;
19800        esac
19801       fi
19802       ;;
19803
19804     os2*)
19805       hardcode_libdir_flag_spec_F77='-L$libdir'
19806       hardcode_minus_L_F77=yes
19807       allow_undefined_flag_F77=unsupported
19808       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19809       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19810       ;;
19811
19812     osf3*)
19813       if test "$GCC" = yes; then
19814         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19815         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19816       else
19817         allow_undefined_flag_F77=' -expect_unresolved \*'
19818         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19819       fi
19820       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19821       hardcode_libdir_separator_F77=:
19822       ;;
19823
19824     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19825       if test "$GCC" = yes; then
19826         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19827         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19828         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19829       else
19830         allow_undefined_flag_F77=' -expect_unresolved \*'
19831         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19832         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19833         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19834
19835         # Both c and cxx compiler support -rpath directly
19836         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19837       fi
19838       hardcode_libdir_separator_F77=:
19839       ;;
19840
19841     sco3.2v5*)
19842       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19843       hardcode_shlibpath_var_F77=no
19844       export_dynamic_flag_spec_F77='${wl}-Bexport'
19845       runpath_var=LD_RUN_PATH
19846       hardcode_runpath_var=yes
19847       ;;
19848
19849     solaris*)
19850       no_undefined_flag_F77=' -z text'
19851       if test "$GCC" = yes; then
19852         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19853         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19854           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19855       else
19856         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19857         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19858         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19859       fi
19860       hardcode_libdir_flag_spec_F77='-R$libdir'
19861       hardcode_shlibpath_var_F77=no
19862       case $host_os in
19863       solaris2.[0-5] | solaris2.[0-5].*) ;;
19864       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19865         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19866       esac
19867       link_all_deplibs_F77=yes
19868       ;;
19869
19870     sunos4*)
19871       if test "x$host_vendor" = xsequent; then
19872         # Use $CC to link under sequent, because it throws in some extra .o
19873         # files that make .init and .fini sections work.
19874         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19875       else
19876         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19877       fi
19878       hardcode_libdir_flag_spec_F77='-L$libdir'
19879       hardcode_direct_F77=yes
19880       hardcode_minus_L_F77=yes
19881       hardcode_shlibpath_var_F77=no
19882       ;;
19883
19884     sysv4)
19885       case $host_vendor in
19886         sni)
19887           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19888           hardcode_direct_F77=yes # is this really true???
19889         ;;
19890         siemens)
19891           ## LD is ld it makes a PLAMLIB
19892           ## CC just makes a GrossModule.
19893           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19894           reload_cmds_F77='$CC -r -o $output$reload_objs'
19895           hardcode_direct_F77=no
19896         ;;
19897         motorola)
19898           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19899           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19900         ;;
19901       esac
19902       runpath_var='LD_RUN_PATH'
19903       hardcode_shlibpath_var_F77=no
19904       ;;
19905
19906     sysv4.3*)
19907       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19908       hardcode_shlibpath_var_F77=no
19909       export_dynamic_flag_spec_F77='-Bexport'
19910       ;;
19911
19912     sysv4*MP*)
19913       if test -d /usr/nec; then
19914         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19915         hardcode_shlibpath_var_F77=no
19916         runpath_var=LD_RUN_PATH
19917         hardcode_runpath_var=yes
19918         ld_shlibs_F77=yes
19919       fi
19920       ;;
19921
19922     sysv4.2uw2*)
19923       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19924       hardcode_direct_F77=yes
19925       hardcode_minus_L_F77=no
19926       hardcode_shlibpath_var_F77=no
19927       hardcode_runpath_var=yes
19928       runpath_var=LD_RUN_PATH
19929       ;;
19930
19931    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19932       no_undefined_flag_F77='${wl}-z ${wl}text'
19933       if test "$GCC" = yes; then
19934         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19935       else
19936         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19937       fi
19938       runpath_var='LD_RUN_PATH'
19939       hardcode_shlibpath_var_F77=no
19940       ;;
19941
19942     sysv5*)
19943       no_undefined_flag_F77=' -z text'
19944       # $CC -shared without GNU ld will not create a library from C++
19945       # object files and a static libstdc++, better avoid it by now
19946       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19947       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19948                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19949       hardcode_libdir_flag_spec_F77=
19950       hardcode_shlibpath_var_F77=no
19951       runpath_var='LD_RUN_PATH'
19952       ;;
19953
19954     uts4*)
19955       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19956       hardcode_libdir_flag_spec_F77='-L$libdir'
19957       hardcode_shlibpath_var_F77=no
19958       ;;
19959
19960     *)
19961       ld_shlibs_F77=no
19962       ;;
19963     esac
19964   fi
19965
19966 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19967 echo "${ECHO_T}$ld_shlibs_F77" >&6
19968 test "$ld_shlibs_F77" = no && can_build_shared=no
19969
19970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19971 if test "$GCC" = yes; then
19972   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19973 fi
19974
19975 #
19976 # Do we need to explicitly link libc?
19977 #
19978 case "x$archive_cmds_need_lc_F77" in
19979 x|xyes)
19980   # Assume -lc should be added
19981   archive_cmds_need_lc_F77=yes
19982
19983   if test "$enable_shared" = yes && test "$GCC" = yes; then
19984     case $archive_cmds_F77 in
19985     *'~'*)
19986       # FIXME: we may have to deal with multi-command sequences.
19987       ;;
19988     '$CC '*)
19989       # Test whether the compiler implicitly links with -lc since on some
19990       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19991       # to ld, don't add -lc before -lgcc.
19992       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19994       $rm conftest*
19995       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19996
19997       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998   (eval $ac_compile) 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); } 2>conftest.err; then
20002         soname=conftest
20003         lib=conftest
20004         libobjs=conftest.$ac_objext
20005         deplibs=
20006         wl=$lt_prog_compiler_wl_F77
20007         compiler_flags=-v
20008         linker_flags=-v
20009         verstring=
20010         output_objdir=.
20011         libname=conftest
20012         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20013         allow_undefined_flag_F77=
20014         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20015   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }
20019         then
20020           archive_cmds_need_lc_F77=no
20021         else
20022           archive_cmds_need_lc_F77=yes
20023         fi
20024         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20025       else
20026         cat conftest.err 1>&5
20027       fi
20028       $rm conftest*
20029       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20030 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20031       ;;
20032     esac
20033   fi
20034   ;;
20035 esac
20036
20037 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20038 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20039 library_names_spec=
20040 libname_spec='lib$name'
20041 soname_spec=
20042 shrext_cmds=".so"
20043 postinstall_cmds=
20044 postuninstall_cmds=
20045 finish_cmds=
20046 finish_eval=
20047 shlibpath_var=
20048 shlibpath_overrides_runpath=unknown
20049 version_type=none
20050 dynamic_linker="$host_os ld.so"
20051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20052 if test "$GCC" = yes; then
20053   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20054   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20055     # if the path contains ";" then we assume it to be the separator
20056     # otherwise default to the standard path separator (i.e. ":") - it is
20057     # assumed that no part of a normal pathname contains ";" but that should
20058     # okay in the real world where ";" in dirpaths is itself problematic.
20059     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20060   else
20061     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20062   fi
20063 else
20064   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20065 fi
20066 need_lib_prefix=unknown
20067 hardcode_into_libs=no
20068
20069 # when you set need_version to no, make sure it does not cause -set_version
20070 # flags to be left without arguments
20071 need_version=unknown
20072
20073 case $host_os in
20074 aix3*)
20075   version_type=linux
20076   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20077   shlibpath_var=LIBPATH
20078
20079   # AIX 3 has no versioning support, so we append a major version to the name.
20080   soname_spec='${libname}${release}${shared_ext}$major'
20081   ;;
20082
20083 aix4* | aix5*)
20084   version_type=linux
20085   need_lib_prefix=no
20086   need_version=no
20087   hardcode_into_libs=yes
20088   if test "$host_cpu" = ia64; then
20089     # AIX 5 supports IA64
20090     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20091     shlibpath_var=LD_LIBRARY_PATH
20092   else
20093     # With GCC up to 2.95.x, collect2 would create an import file
20094     # for dependence libraries.  The import file would start with
20095     # the line `#! .'.  This would cause the generated library to
20096     # depend on `.', always an invalid library.  This was fixed in
20097     # development snapshots of GCC prior to 3.0.
20098     case $host_os in
20099       aix4 | aix4.[01] | aix4.[01].*)
20100       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20101            echo ' yes '
20102            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20103         :
20104       else
20105         can_build_shared=no
20106       fi
20107       ;;
20108     esac
20109     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20110     # soname into executable. Probably we can add versioning support to
20111     # collect2, so additional links can be useful in future.
20112     if test "$aix_use_runtimelinking" = yes; then
20113       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20114       # instead of lib<name>.a to let people know that these are not
20115       # typical AIX shared libraries.
20116       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20117     else
20118       # We preserve .a as extension for shared libraries through AIX4.2
20119       # and later when we are not doing run time linking.
20120       library_names_spec='${libname}${release}.a $libname.a'
20121       soname_spec='${libname}${release}${shared_ext}$major'
20122     fi
20123     shlibpath_var=LIBPATH
20124   fi
20125   ;;
20126
20127 amigaos*)
20128   library_names_spec='$libname.ixlibrary $libname.a'
20129   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20130   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20131   ;;
20132
20133 beos*)
20134   library_names_spec='${libname}${shared_ext}'
20135   dynamic_linker="$host_os ld.so"
20136   shlibpath_var=LIBRARY_PATH
20137   ;;
20138
20139 bsdi[45]*)
20140   version_type=linux
20141   need_version=no
20142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143   soname_spec='${libname}${release}${shared_ext}$major'
20144   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20145   shlibpath_var=LD_LIBRARY_PATH
20146   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20147   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20148   # the default ld.so.conf also contains /usr/contrib/lib and
20149   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20150   # libtool to hard-code these into programs
20151   ;;
20152
20153 cygwin* | mingw* | pw32*)
20154   version_type=windows
20155   shrext_cmds=".dll"
20156   need_version=no
20157   need_lib_prefix=no
20158
20159   case $GCC,$host_os in
20160   yes,cygwin* | yes,mingw* | yes,pw32*)
20161     library_names_spec='$libname.dll.a'
20162     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20163     postinstall_cmds='base_file=`basename \${file}`~
20164       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20165       dldir=$destdir/`dirname \$dlpath`~
20166       test -d \$dldir || mkdir -p \$dldir~
20167       $install_prog $dir/$dlname \$dldir/$dlname'
20168     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20169       dlpath=$dir/\$dldll~
20170        $rm \$dlpath'
20171     shlibpath_overrides_runpath=yes
20172
20173     case $host_os in
20174     cygwin*)
20175       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20176       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20177       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20178       ;;
20179     mingw*)
20180       # MinGW DLLs use traditional 'lib' prefix
20181       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20182       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20183       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20184         # It is most probably a Windows format PATH printed by
20185         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20186         # path with ; separators, and with drive letters. We can handle the
20187         # drive letters (cygwin fileutils understands them), so leave them,
20188         # especially as we might pass files found there to a mingw objdump,
20189         # which wouldn't understand a cygwinified path. Ahh.
20190         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20191       else
20192         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20193       fi
20194       ;;
20195     pw32*)
20196       # pw32 DLLs use 'pw' prefix rather than 'lib'
20197       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20198       ;;
20199     esac
20200     ;;
20201
20202   *)
20203     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20204     ;;
20205   esac
20206   dynamic_linker='Win32 ld.exe'
20207   # FIXME: first we should search . and the directory the executable is in
20208   shlibpath_var=PATH
20209   ;;
20210
20211 darwin* | rhapsody*)
20212   dynamic_linker="$host_os dyld"
20213   version_type=darwin
20214   need_lib_prefix=no
20215   need_version=no
20216   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20217   soname_spec='${libname}${release}${major}$shared_ext'
20218   shlibpath_overrides_runpath=yes
20219   shlibpath_var=DYLD_LIBRARY_PATH
20220   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20221   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20222   if test "$GCC" = yes; then
20223     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20224   else
20225     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20226   fi
20227   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20228   ;;
20229
20230 dgux*)
20231   version_type=linux
20232   need_lib_prefix=no
20233   need_version=no
20234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20235   soname_spec='${libname}${release}${shared_ext}$major'
20236   shlibpath_var=LD_LIBRARY_PATH
20237   ;;
20238
20239 freebsd1*)
20240   dynamic_linker=no
20241   ;;
20242
20243 kfreebsd*-gnu)
20244   version_type=linux
20245   need_lib_prefix=no
20246   need_version=no
20247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248   soname_spec='${libname}${release}${shared_ext}$major'
20249   shlibpath_var=LD_LIBRARY_PATH
20250   shlibpath_overrides_runpath=no
20251   hardcode_into_libs=yes
20252   dynamic_linker='GNU ld.so'
20253   ;;
20254
20255 freebsd*)
20256   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20257   version_type=freebsd-$objformat
20258   case $version_type in
20259     freebsd-elf*)
20260       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20261       need_version=no
20262       need_lib_prefix=no
20263       ;;
20264     freebsd-*)
20265       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20266       need_version=yes
20267       ;;
20268   esac
20269   shlibpath_var=LD_LIBRARY_PATH
20270   case $host_os in
20271   freebsd2*)
20272     shlibpath_overrides_runpath=yes
20273     ;;
20274   freebsd3.01* | freebsdelf3.01*)
20275     shlibpath_overrides_runpath=yes
20276     hardcode_into_libs=yes
20277     ;;
20278   *) # from 3.2 on
20279     shlibpath_overrides_runpath=no
20280     hardcode_into_libs=yes
20281     ;;
20282   esac
20283   ;;
20284
20285 gnu*)
20286   version_type=linux
20287   need_lib_prefix=no
20288   need_version=no
20289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20290   soname_spec='${libname}${release}${shared_ext}$major'
20291   shlibpath_var=LD_LIBRARY_PATH
20292   hardcode_into_libs=yes
20293   ;;
20294
20295 hpux9* | hpux10* | hpux11*)
20296   # Give a soname corresponding to the major version so that dld.sl refuses to
20297   # link against other versions.
20298   version_type=sunos
20299   need_lib_prefix=no
20300   need_version=no
20301   case "$host_cpu" in
20302   ia64*)
20303     shrext_cmds='.so'
20304     hardcode_into_libs=yes
20305     dynamic_linker="$host_os dld.so"
20306     shlibpath_var=LD_LIBRARY_PATH
20307     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309     soname_spec='${libname}${release}${shared_ext}$major'
20310     if test "X$HPUX_IA64_MODE" = X32; then
20311       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20312     else
20313       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20314     fi
20315     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20316     ;;
20317    hppa*64*)
20318      shrext_cmds='.sl'
20319      hardcode_into_libs=yes
20320      dynamic_linker="$host_os dld.sl"
20321      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20322      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20323      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20324      soname_spec='${libname}${release}${shared_ext}$major'
20325      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20326      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20327      ;;
20328    *)
20329     shrext_cmds='.sl'
20330     dynamic_linker="$host_os dld.sl"
20331     shlibpath_var=SHLIB_PATH
20332     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20334     soname_spec='${libname}${release}${shared_ext}$major'
20335     ;;
20336   esac
20337   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20338   postinstall_cmds='chmod 555 $lib'
20339   ;;
20340
20341 irix5* | irix6* | nonstopux*)
20342   case $host_os in
20343     nonstopux*) version_type=nonstopux ;;
20344     *)
20345         if test "$lt_cv_prog_gnu_ld" = yes; then
20346                 version_type=linux
20347         else
20348                 version_type=irix
20349         fi ;;
20350   esac
20351   need_lib_prefix=no
20352   need_version=no
20353   soname_spec='${libname}${release}${shared_ext}$major'
20354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20355   case $host_os in
20356   irix5* | nonstopux*)
20357     libsuff= shlibsuff=
20358     ;;
20359   *)
20360     case $LD in # libtool.m4 will add one of these switches to LD
20361     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20362       libsuff= shlibsuff= libmagic=32-bit;;
20363     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20364       libsuff=32 shlibsuff=N32 libmagic=N32;;
20365     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20366       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20367     *) libsuff= shlibsuff= libmagic=never-match;;
20368     esac
20369     ;;
20370   esac
20371   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20372   shlibpath_overrides_runpath=no
20373   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20374   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20375   hardcode_into_libs=yes
20376   ;;
20377
20378 # No shared lib support for Linux oldld, aout, or coff.
20379 linux*oldld* | linux*aout* | linux*coff*)
20380   dynamic_linker=no
20381   ;;
20382
20383 # This must be Linux ELF.
20384 linux*)
20385   version_type=linux
20386   need_lib_prefix=no
20387   need_version=no
20388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389   soname_spec='${libname}${release}${shared_ext}$major'
20390   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20391   shlibpath_var=LD_LIBRARY_PATH
20392   shlibpath_overrides_runpath=no
20393   # This implies no fast_install, which is unacceptable.
20394   # Some rework will be needed to allow for fast_install
20395   # before this can be enabled.
20396   hardcode_into_libs=yes
20397
20398   # Append ld.so.conf contents to the search path
20399   if test -f /etc/ld.so.conf; then
20400     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20401     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20402   fi
20403
20404   # We used to test for /lib/ld.so.1 and disable shared libraries on
20405   # powerpc, because MkLinux only supported shared libraries with the
20406   # GNU dynamic linker.  Since this was broken with cross compilers,
20407   # most powerpc-linux boxes support dynamic linking these days and
20408   # people can always --disable-shared, the test was removed, and we
20409   # assume the GNU/Linux dynamic linker is in use.
20410   dynamic_linker='GNU/Linux ld.so'
20411   ;;
20412
20413 knetbsd*-gnu)
20414   version_type=linux
20415   need_lib_prefix=no
20416   need_version=no
20417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20418   soname_spec='${libname}${release}${shared_ext}$major'
20419   shlibpath_var=LD_LIBRARY_PATH
20420   shlibpath_overrides_runpath=no
20421   hardcode_into_libs=yes
20422   dynamic_linker='GNU ld.so'
20423   ;;
20424
20425 netbsd*)
20426   version_type=sunos
20427   need_lib_prefix=no
20428   need_version=no
20429   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20431     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20432     dynamic_linker='NetBSD (a.out) ld.so'
20433   else
20434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20435     soname_spec='${libname}${release}${shared_ext}$major'
20436     dynamic_linker='NetBSD ld.elf_so'
20437   fi
20438   shlibpath_var=LD_LIBRARY_PATH
20439   shlibpath_overrides_runpath=yes
20440   hardcode_into_libs=yes
20441   ;;
20442
20443 newsos6)
20444   version_type=linux
20445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446   shlibpath_var=LD_LIBRARY_PATH
20447   shlibpath_overrides_runpath=yes
20448   ;;
20449
20450 nto-qnx*)
20451   version_type=linux
20452   need_lib_prefix=no
20453   need_version=no
20454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455   soname_spec='${libname}${release}${shared_ext}$major'
20456   shlibpath_var=LD_LIBRARY_PATH
20457   shlibpath_overrides_runpath=yes
20458   ;;
20459
20460 openbsd*)
20461   version_type=sunos
20462   need_lib_prefix=no
20463   need_version=no
20464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466   shlibpath_var=LD_LIBRARY_PATH
20467   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20468     case $host_os in
20469       openbsd2.[89] | openbsd2.[89].*)
20470         shlibpath_overrides_runpath=no
20471         ;;
20472       *)
20473         shlibpath_overrides_runpath=yes
20474         ;;
20475       esac
20476   else
20477     shlibpath_overrides_runpath=yes
20478   fi
20479   ;;
20480
20481 os2*)
20482   libname_spec='$name'
20483   shrext_cmds=".dll"
20484   need_lib_prefix=no
20485   library_names_spec='$libname${shared_ext} $libname.a'
20486   dynamic_linker='OS/2 ld.exe'
20487   shlibpath_var=LIBPATH
20488   ;;
20489
20490 osf3* | osf4* | osf5*)
20491   version_type=osf
20492   need_lib_prefix=no
20493   need_version=no
20494   soname_spec='${libname}${release}${shared_ext}$major'
20495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496   shlibpath_var=LD_LIBRARY_PATH
20497   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20498   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20499   ;;
20500
20501 sco3.2v5*)
20502   version_type=osf
20503   soname_spec='${libname}${release}${shared_ext}$major'
20504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505   shlibpath_var=LD_LIBRARY_PATH
20506   ;;
20507
20508 solaris*)
20509   version_type=linux
20510   need_lib_prefix=no
20511   need_version=no
20512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513   soname_spec='${libname}${release}${shared_ext}$major'
20514   shlibpath_var=LD_LIBRARY_PATH
20515   shlibpath_overrides_runpath=yes
20516   hardcode_into_libs=yes
20517   # ldd complains unless libraries are executable
20518   postinstall_cmds='chmod +x $lib'
20519   ;;
20520
20521 sunos4*)
20522   version_type=sunos
20523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20524   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20525   shlibpath_var=LD_LIBRARY_PATH
20526   shlibpath_overrides_runpath=yes
20527   if test "$with_gnu_ld" = yes; then
20528     need_lib_prefix=no
20529   fi
20530   need_version=yes
20531   ;;
20532
20533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20534   version_type=linux
20535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536   soname_spec='${libname}${release}${shared_ext}$major'
20537   shlibpath_var=LD_LIBRARY_PATH
20538   case $host_vendor in
20539     sni)
20540       shlibpath_overrides_runpath=no
20541       need_lib_prefix=no
20542       export_dynamic_flag_spec='${wl}-Blargedynsym'
20543       runpath_var=LD_RUN_PATH
20544       ;;
20545     siemens)
20546       need_lib_prefix=no
20547       ;;
20548     motorola)
20549       need_lib_prefix=no
20550       need_version=no
20551       shlibpath_overrides_runpath=no
20552       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20553       ;;
20554   esac
20555   ;;
20556
20557 sysv4*MP*)
20558   if test -d /usr/nec ;then
20559     version_type=linux
20560     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20561     soname_spec='$libname${shared_ext}.$major'
20562     shlibpath_var=LD_LIBRARY_PATH
20563   fi
20564   ;;
20565
20566 uts4*)
20567   version_type=linux
20568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569   soname_spec='${libname}${release}${shared_ext}$major'
20570   shlibpath_var=LD_LIBRARY_PATH
20571   ;;
20572
20573 *)
20574   dynamic_linker=no
20575   ;;
20576 esac
20577 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20578 echo "${ECHO_T}$dynamic_linker" >&6
20579 test "$dynamic_linker" = no && can_build_shared=no
20580
20581 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20582 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20583 hardcode_action_F77=
20584 if test -n "$hardcode_libdir_flag_spec_F77" || \
20585    test -n "$runpath_var_F77" || \
20586    test "X$hardcode_automatic_F77" = "Xyes" ; then
20587
20588   # We can hardcode non-existant directories.
20589   if test "$hardcode_direct_F77" != no &&
20590      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20591      # have to relink, otherwise we might link with an installed library
20592      # when we should be linking with a yet-to-be-installed one
20593      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20594      test "$hardcode_minus_L_F77" != no; then
20595     # Linking always hardcodes the temporary library directory.
20596     hardcode_action_F77=relink
20597   else
20598     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20599     hardcode_action_F77=immediate
20600   fi
20601 else
20602   # We cannot hardcode anything, or else we can only hardcode existing
20603   # directories.
20604   hardcode_action_F77=unsupported
20605 fi
20606 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20607 echo "${ECHO_T}$hardcode_action_F77" >&6
20608
20609 if test "$hardcode_action_F77" = relink; then
20610   # Fast installation is not supported
20611   enable_fast_install=no
20612 elif test "$shlibpath_overrides_runpath" = yes ||
20613      test "$enable_shared" = no; then
20614   # Fast installation is not necessary
20615   enable_fast_install=needless
20616 fi
20617
20618 striplib=
20619 old_striplib=
20620 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20621 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20622 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20623   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20624   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20625   echo "$as_me:$LINENO: result: yes" >&5
20626 echo "${ECHO_T}yes" >&6
20627 else
20628 # FIXME - insert some real tests, host_os isn't really good enough
20629   case $host_os in
20630    darwin*)
20631        if test -n "$STRIP" ; then
20632          striplib="$STRIP -x"
20633          echo "$as_me:$LINENO: result: yes" >&5
20634 echo "${ECHO_T}yes" >&6
20635        else
20636   echo "$as_me:$LINENO: result: no" >&5
20637 echo "${ECHO_T}no" >&6
20638 fi
20639        ;;
20640    *)
20641   echo "$as_me:$LINENO: result: no" >&5
20642 echo "${ECHO_T}no" >&6
20643     ;;
20644   esac
20645 fi
20646
20647
20648
20649 # The else clause should only fire when bootstrapping the
20650 # libtool distribution, otherwise you forgot to ship ltmain.sh
20651 # with your package, and you will get complaints that there are
20652 # no rules to generate ltmain.sh.
20653 if test -f "$ltmain"; then
20654   # See if we are running on zsh, and set the options which allow our commands through
20655   # without removal of \ escapes.
20656   if test -n "${ZSH_VERSION+set}" ; then
20657     setopt NO_GLOB_SUBST
20658   fi
20659   # Now quote all the things that may contain metacharacters while being
20660   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20661   # variables and quote the copies for generation of the libtool script.
20662   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20663     SED SHELL STRIP \
20664     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20665     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20666     deplibs_check_method reload_flag reload_cmds need_locks \
20667     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20668     lt_cv_sys_global_symbol_to_c_name_address \
20669     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20670     old_postinstall_cmds old_postuninstall_cmds \
20671     compiler_F77 \
20672     CC_F77 \
20673     LD_F77 \
20674     lt_prog_compiler_wl_F77 \
20675     lt_prog_compiler_pic_F77 \
20676     lt_prog_compiler_static_F77 \
20677     lt_prog_compiler_no_builtin_flag_F77 \
20678     export_dynamic_flag_spec_F77 \
20679     thread_safe_flag_spec_F77 \
20680     whole_archive_flag_spec_F77 \
20681     enable_shared_with_static_runtimes_F77 \
20682     old_archive_cmds_F77 \
20683     old_archive_from_new_cmds_F77 \
20684     predep_objects_F77 \
20685     postdep_objects_F77 \
20686     predeps_F77 \
20687     postdeps_F77 \
20688     compiler_lib_search_path_F77 \
20689     archive_cmds_F77 \
20690     archive_expsym_cmds_F77 \
20691     postinstall_cmds_F77 \
20692     postuninstall_cmds_F77 \
20693     old_archive_from_expsyms_cmds_F77 \
20694     allow_undefined_flag_F77 \
20695     no_undefined_flag_F77 \
20696     export_symbols_cmds_F77 \
20697     hardcode_libdir_flag_spec_F77 \
20698     hardcode_libdir_flag_spec_ld_F77 \
20699     hardcode_libdir_separator_F77 \
20700     hardcode_automatic_F77 \
20701     module_cmds_F77 \
20702     module_expsym_cmds_F77 \
20703     lt_cv_prog_compiler_c_o_F77 \
20704     exclude_expsyms_F77 \
20705     include_expsyms_F77; do
20706
20707     case $var in
20708     old_archive_cmds_F77 | \
20709     old_archive_from_new_cmds_F77 | \
20710     archive_cmds_F77 | \
20711     archive_expsym_cmds_F77 | \
20712     module_cmds_F77 | \
20713     module_expsym_cmds_F77 | \
20714     old_archive_from_expsyms_cmds_F77 | \
20715     export_symbols_cmds_F77 | \
20716     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20717     postinstall_cmds | postuninstall_cmds | \
20718     old_postinstall_cmds | old_postuninstall_cmds | \
20719     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20720       # Double-quote double-evaled strings.
20721       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20722       ;;
20723     *)
20724       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20725       ;;
20726     esac
20727   done
20728
20729   case $lt_echo in
20730   *'\$0 --fallback-echo"')
20731     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20732     ;;
20733   esac
20734
20735 cfgfile="$ofile"
20736
20737   cat <<__EOF__ >> "$cfgfile"
20738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20739
20740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20741
20742 # Shell to use when invoking shell scripts.
20743 SHELL=$lt_SHELL
20744
20745 # Whether or not to build shared libraries.
20746 build_libtool_libs=$enable_shared
20747
20748 # Whether or not to build static libraries.
20749 build_old_libs=$enable_static
20750
20751 # Whether or not to add -lc for building shared libraries.
20752 build_libtool_need_lc=$archive_cmds_need_lc_F77
20753
20754 # Whether or not to disallow shared libs when runtime libs are static
20755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20756
20757 # Whether or not to optimize for fast installation.
20758 fast_install=$enable_fast_install
20759
20760 # The host system.
20761 host_alias=$host_alias
20762 host=$host
20763
20764 # An echo program that does not interpret backslashes.
20765 echo=$lt_echo
20766
20767 # The archiver.
20768 AR=$lt_AR
20769 AR_FLAGS=$lt_AR_FLAGS
20770
20771 # A C compiler.
20772 LTCC=$lt_LTCC
20773
20774 # A language-specific compiler.
20775 CC=$lt_compiler_F77
20776
20777 # Is the compiler the GNU C compiler?
20778 with_gcc=$GCC_F77
20779
20780 # An ERE matcher.
20781 EGREP=$lt_EGREP
20782
20783 # The linker used to build libraries.
20784 LD=$lt_LD_F77
20785
20786 # Whether we need hard or soft links.
20787 LN_S=$lt_LN_S
20788
20789 # A BSD-compatible nm program.
20790 NM=$lt_NM
20791
20792 # A symbol stripping program
20793 STRIP=$lt_STRIP
20794
20795 # Used to examine libraries when file_magic_cmd begins "file"
20796 MAGIC_CMD=$MAGIC_CMD
20797
20798 # Used on cygwin: DLL creation program.
20799 DLLTOOL="$DLLTOOL"
20800
20801 # Used on cygwin: object dumper.
20802 OBJDUMP="$OBJDUMP"
20803
20804 # Used on cygwin: assembler.
20805 AS="$AS"
20806
20807 # The name of the directory that contains temporary libtool files.
20808 objdir=$objdir
20809
20810 # How to create reloadable object files.
20811 reload_flag=$lt_reload_flag
20812 reload_cmds=$lt_reload_cmds
20813
20814 # How to pass a linker flag through the compiler.
20815 wl=$lt_lt_prog_compiler_wl_F77
20816
20817 # Object file suffix (normally "o").
20818 objext="$ac_objext"
20819
20820 # Old archive suffix (normally "a").
20821 libext="$libext"
20822
20823 # Shared library suffix (normally ".so").
20824 shrext_cmds='$shrext_cmds'
20825
20826 # Executable file suffix (normally "").
20827 exeext="$exeext"
20828
20829 # Additional compiler flags for building library objects.
20830 pic_flag=$lt_lt_prog_compiler_pic_F77
20831 pic_mode=$pic_mode
20832
20833 # What is the maximum length of a command?
20834 max_cmd_len=$lt_cv_sys_max_cmd_len
20835
20836 # Does compiler simultaneously support -c and -o options?
20837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20838
20839 # Must we lock files when doing compilation ?
20840 need_locks=$lt_need_locks
20841
20842 # Do we need the lib prefix for modules?
20843 need_lib_prefix=$need_lib_prefix
20844
20845 # Do we need a version for libraries?
20846 need_version=$need_version
20847
20848 # Whether dlopen is supported.
20849 dlopen_support=$enable_dlopen
20850
20851 # Whether dlopen of programs is supported.
20852 dlopen_self=$enable_dlopen_self
20853
20854 # Whether dlopen of statically linked programs is supported.
20855 dlopen_self_static=$enable_dlopen_self_static
20856
20857 # Compiler flag to prevent dynamic linking.
20858 link_static_flag=$lt_lt_prog_compiler_static_F77
20859
20860 # Compiler flag to turn off builtin functions.
20861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20862
20863 # Compiler flag to allow reflexive dlopens.
20864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20865
20866 # Compiler flag to generate shared objects directly from archives.
20867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20868
20869 # Compiler flag to generate thread-safe objects.
20870 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20871
20872 # Library versioning type.
20873 version_type=$version_type
20874
20875 # Format of library name prefix.
20876 libname_spec=$lt_libname_spec
20877
20878 # List of archive names.  First name is the real one, the rest are links.
20879 # The last name is the one that the linker finds with -lNAME.
20880 library_names_spec=$lt_library_names_spec
20881
20882 # The coded name of the library, if different from the real name.
20883 soname_spec=$lt_soname_spec
20884
20885 # Commands used to build and install an old-style archive.
20886 RANLIB=$lt_RANLIB
20887 old_archive_cmds=$lt_old_archive_cmds_F77
20888 old_postinstall_cmds=$lt_old_postinstall_cmds
20889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20890
20891 # Create an old-style archive from a shared archive.
20892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20893
20894 # Create a temporary old-style archive to link instead of a shared archive.
20895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20896
20897 # Commands used to build and install a shared archive.
20898 archive_cmds=$lt_archive_cmds_F77
20899 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20900 postinstall_cmds=$lt_postinstall_cmds
20901 postuninstall_cmds=$lt_postuninstall_cmds
20902
20903 # Commands used to build a loadable module (assumed same as above if empty)
20904 module_cmds=$lt_module_cmds_F77
20905 module_expsym_cmds=$lt_module_expsym_cmds_F77
20906
20907 # Commands to strip libraries.
20908 old_striplib=$lt_old_striplib
20909 striplib=$lt_striplib
20910
20911 # Dependencies to place before the objects being linked to create a
20912 # shared library.
20913 predep_objects=$lt_predep_objects_F77
20914
20915 # Dependencies to place after the objects being linked to create a
20916 # shared library.
20917 postdep_objects=$lt_postdep_objects_F77
20918
20919 # Dependencies to place before the objects being linked to create a
20920 # shared library.
20921 predeps=$lt_predeps_F77
20922
20923 # Dependencies to place after the objects being linked to create a
20924 # shared library.
20925 postdeps=$lt_postdeps_F77
20926
20927 # The library search path used internally by the compiler when linking
20928 # a shared library.
20929 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20930
20931 # Method to check whether dependent libraries are shared objects.
20932 deplibs_check_method=$lt_deplibs_check_method
20933
20934 # Command to use when deplibs_check_method == file_magic.
20935 file_magic_cmd=$lt_file_magic_cmd
20936
20937 # Flag that allows shared libraries with undefined symbols to be built.
20938 allow_undefined_flag=$lt_allow_undefined_flag_F77
20939
20940 # Flag that forces no undefined symbols.
20941 no_undefined_flag=$lt_no_undefined_flag_F77
20942
20943 # Commands used to finish a libtool library installation in a directory.
20944 finish_cmds=$lt_finish_cmds
20945
20946 # Same as above, but a single script fragment to be evaled but not shown.
20947 finish_eval=$lt_finish_eval
20948
20949 # Take the output of nm and produce a listing of raw symbols and C names.
20950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20951
20952 # Transform the output of nm in a proper C declaration
20953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20954
20955 # Transform the output of nm in a C name address pair
20956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20957
20958 # This is the shared library runtime path variable.
20959 runpath_var=$runpath_var
20960
20961 # This is the shared library path variable.
20962 shlibpath_var=$shlibpath_var
20963
20964 # Is shlibpath searched before the hard-coded library search path?
20965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20966
20967 # How to hardcode a shared library path into an executable.
20968 hardcode_action=$hardcode_action_F77
20969
20970 # Whether we should hardcode library paths into libraries.
20971 hardcode_into_libs=$hardcode_into_libs
20972
20973 # Flag to hardcode \$libdir into a binary during linking.
20974 # This must work even if \$libdir does not exist.
20975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20976
20977 # If ld is used when linking, flag to hardcode \$libdir into
20978 # a binary during linking. This must work even if \$libdir does
20979 # not exist.
20980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20981
20982 # Whether we need a single -rpath flag with a separated argument.
20983 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20984
20985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20986 # resulting binary.
20987 hardcode_direct=$hardcode_direct_F77
20988
20989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20990 # resulting binary.
20991 hardcode_minus_L=$hardcode_minus_L_F77
20992
20993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20994 # the resulting binary.
20995 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20996
20997 # Set to yes if building a shared library automatically hardcodes DIR into the library
20998 # and all subsequent libraries and executables linked against it.
20999 hardcode_automatic=$hardcode_automatic_F77
21000
21001 # Variables whose values should be saved in libtool wrapper scripts and
21002 # restored at relink time.
21003 variables_saved_for_relink="$variables_saved_for_relink"
21004
21005 # Whether libtool must link a program against all its dependency libraries.
21006 link_all_deplibs=$link_all_deplibs_F77
21007
21008 # Compile-time system search path for libraries
21009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21010
21011 # Run-time system search path for libraries
21012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21013
21014 # Fix the shell variable \$srcfile for the compiler.
21015 fix_srcfile_path="$fix_srcfile_path_F77"
21016
21017 # Set to yes if exported symbols are required.
21018 always_export_symbols=$always_export_symbols_F77
21019
21020 # The commands to list exported symbols.
21021 export_symbols_cmds=$lt_export_symbols_cmds_F77
21022
21023 # The commands to extract the exported symbol list from a shared archive.
21024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21025
21026 # Symbols that should not be listed in the preloaded symbols.
21027 exclude_expsyms=$lt_exclude_expsyms_F77
21028
21029 # Symbols that must always be exported.
21030 include_expsyms=$lt_include_expsyms_F77
21031
21032 # ### END LIBTOOL TAG CONFIG: $tagname
21033
21034 __EOF__
21035
21036
21037 else
21038   # If there is no Makefile yet, we rely on a make rule to execute
21039   # `config.status --recheck' to rerun these tests and create the
21040   # libtool script then.
21041   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21042   if test -f "$ltmain_in"; then
21043     test -f Makefile && make "$ltmain"
21044   fi
21045 fi
21046
21047
21048 ac_ext=c
21049 ac_cpp='$CPP $CPPFLAGS'
21050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21053
21054 CC="$lt_save_CC"
21055
21056         else
21057           tagname=""
21058         fi
21059         ;;
21060
21061       GCJ)
21062         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21063           ac_ext=c
21064 ac_cpp='$CPP $CPPFLAGS'
21065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21068
21069
21070 # Source file extension for Java test sources.
21071 ac_ext=java
21072
21073 # Object file extension for compiled Java test sources.
21074 objext=o
21075 objext_GCJ=$objext
21076
21077 # Code to be used in simple compile tests
21078 lt_simple_compile_test_code="class foo {}\n"
21079
21080 # Code to be used in simple link tests
21081 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21082
21083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21084
21085 # If no C compiler was specified, use CC.
21086 LTCC=${LTCC-"$CC"}
21087
21088 # Allow CC to be a program name with arguments.
21089 compiler=$CC
21090
21091
21092 # Allow CC to be a program name with arguments.
21093 lt_save_CC="$CC"
21094 CC=${GCJ-"gcj"}
21095 compiler=$CC
21096 compiler_GCJ=$CC
21097
21098 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21099 archive_cmds_need_lc_GCJ=no
21100
21101
21102 lt_prog_compiler_no_builtin_flag_GCJ=
21103
21104 if test "$GCC" = yes; then
21105   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21106
21107
21108 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21109 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21110 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21111   echo $ECHO_N "(cached) $ECHO_C" >&6
21112 else
21113   lt_cv_prog_compiler_rtti_exceptions=no
21114   ac_outfile=conftest.$ac_objext
21115    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21116    lt_compiler_flag="-fno-rtti -fno-exceptions"
21117    # Insert the option either (1) after the last *FLAGS variable, or
21118    # (2) before a word containing "conftest.", or (3) at the end.
21119    # Note that $ac_compile itself does not contain backslashes and begins
21120    # with a dollar sign (not a hyphen), so the echo should work correctly.
21121    # The option is referenced via a variable to avoid confusing sed.
21122    lt_compile=`echo "$ac_compile" | $SED \
21123    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21125    -e 's:$: $lt_compiler_flag:'`
21126    (eval echo "\"\$as_me:21126: $lt_compile\"" >&5)
21127    (eval "$lt_compile" 2>conftest.err)
21128    ac_status=$?
21129    cat conftest.err >&5
21130    echo "$as_me:21130: \$? = $ac_status" >&5
21131    if (exit $ac_status) && test -s "$ac_outfile"; then
21132      # The compiler can only warn and ignore the option if not recognized
21133      # So say no if there are warnings
21134      if test ! -s conftest.err; then
21135        lt_cv_prog_compiler_rtti_exceptions=yes
21136      fi
21137    fi
21138    $rm conftest*
21139
21140 fi
21141 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21142 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21143
21144 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21145     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21146 else
21147     :
21148 fi
21149
21150 fi
21151
21152 lt_prog_compiler_wl_GCJ=
21153 lt_prog_compiler_pic_GCJ=
21154 lt_prog_compiler_static_GCJ=
21155
21156 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21158
21159   if test "$GCC" = yes; then
21160     lt_prog_compiler_wl_GCJ='-Wl,'
21161     lt_prog_compiler_static_GCJ='-static'
21162
21163     case $host_os in
21164       aix*)
21165       # All AIX code is PIC.
21166       if test "$host_cpu" = ia64; then
21167         # AIX 5 now supports IA64 processor
21168         lt_prog_compiler_static_GCJ='-Bstatic'
21169       fi
21170       ;;
21171
21172     amigaos*)
21173       # FIXME: we need at least 68020 code to build shared libraries, but
21174       # adding the `-m68020' flag to GCC prevents building anything better,
21175       # like `-m68040'.
21176       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21177       ;;
21178
21179     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21180       # PIC is the default for these OSes.
21181       ;;
21182
21183     mingw* | pw32* | os2*)
21184       # This hack is so that the source file can tell whether it is being
21185       # built for inclusion in a dll (and should export symbols for example).
21186       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21187       ;;
21188
21189     darwin* | rhapsody*)
21190       # PIC is the default on this platform
21191       # Common symbols not allowed in MH_DYLIB files
21192       lt_prog_compiler_pic_GCJ='-fno-common'
21193       ;;
21194
21195     msdosdjgpp*)
21196       # Just because we use GCC doesn't mean we suddenly get shared libraries
21197       # on systems that don't support them.
21198       lt_prog_compiler_can_build_shared_GCJ=no
21199       enable_shared=no
21200       ;;
21201
21202     sysv4*MP*)
21203       if test -d /usr/nec; then
21204         lt_prog_compiler_pic_GCJ=-Kconform_pic
21205       fi
21206       ;;
21207
21208     hpux*)
21209       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21210       # not for PA HP-UX.
21211       case "$host_cpu" in
21212       hppa*64*|ia64*)
21213         # +Z the default
21214         ;;
21215       *)
21216         lt_prog_compiler_pic_GCJ='-fPIC'
21217         ;;
21218       esac
21219       ;;
21220
21221     *)
21222       lt_prog_compiler_pic_GCJ='-fPIC'
21223       ;;
21224     esac
21225   else
21226     # PORTME Check for flag to pass linker flags through the system compiler.
21227     case $host_os in
21228     aix*)
21229       lt_prog_compiler_wl_GCJ='-Wl,'
21230       if test "$host_cpu" = ia64; then
21231         # AIX 5 now supports IA64 processor
21232         lt_prog_compiler_static_GCJ='-Bstatic'
21233       else
21234         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21235       fi
21236       ;;
21237       darwin*)
21238         # PIC is the default on this platform
21239         # Common symbols not allowed in MH_DYLIB files
21240        case "$cc_basename" in
21241          xlc*)
21242          lt_prog_compiler_pic_GCJ='-qnocommon'
21243          lt_prog_compiler_wl_GCJ='-Wl,'
21244          ;;
21245        esac
21246        ;;
21247
21248     mingw* | pw32* | os2*)
21249       # This hack is so that the source file can tell whether it is being
21250       # built for inclusion in a dll (and should export symbols for example).
21251       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21252       ;;
21253
21254     hpux9* | hpux10* | hpux11*)
21255       lt_prog_compiler_wl_GCJ='-Wl,'
21256       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21257       # not for PA HP-UX.
21258       case "$host_cpu" in
21259       hppa*64*|ia64*)
21260         # +Z the default
21261         ;;
21262       *)
21263         lt_prog_compiler_pic_GCJ='+Z'
21264         ;;
21265       esac
21266       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21267       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21268       ;;
21269
21270     irix5* | irix6* | nonstopux*)
21271       lt_prog_compiler_wl_GCJ='-Wl,'
21272       # PIC (with -KPIC) is the default.
21273       lt_prog_compiler_static_GCJ='-non_shared'
21274       ;;
21275
21276     newsos6)
21277       lt_prog_compiler_pic_GCJ='-KPIC'
21278       lt_prog_compiler_static_GCJ='-Bstatic'
21279       ;;
21280
21281     linux*)
21282       case $CC in
21283       icc* | ecc*)
21284         lt_prog_compiler_wl_GCJ='-Wl,'
21285         lt_prog_compiler_pic_GCJ='-KPIC'
21286         lt_prog_compiler_static_GCJ='-static'
21287         ;;
21288       ccc*)
21289         lt_prog_compiler_wl_GCJ='-Wl,'
21290         # All Alpha code is PIC.
21291         lt_prog_compiler_static_GCJ='-non_shared'
21292         ;;
21293       esac
21294       ;;
21295
21296     osf3* | osf4* | osf5*)
21297       lt_prog_compiler_wl_GCJ='-Wl,'
21298       # All OSF/1 code is PIC.
21299       lt_prog_compiler_static_GCJ='-non_shared'
21300       ;;
21301
21302     sco3.2v5*)
21303       lt_prog_compiler_pic_GCJ='-Kpic'
21304       lt_prog_compiler_static_GCJ='-dn'
21305       ;;
21306
21307     solaris*)
21308       lt_prog_compiler_wl_GCJ='-Wl,'
21309       lt_prog_compiler_pic_GCJ='-KPIC'
21310       lt_prog_compiler_static_GCJ='-Bstatic'
21311       ;;
21312
21313     sunos4*)
21314       lt_prog_compiler_wl_GCJ='-Qoption ld '
21315       lt_prog_compiler_pic_GCJ='-PIC'
21316       lt_prog_compiler_static_GCJ='-Bstatic'
21317       ;;
21318
21319     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21320       lt_prog_compiler_wl_GCJ='-Wl,'
21321       lt_prog_compiler_pic_GCJ='-KPIC'
21322       lt_prog_compiler_static_GCJ='-Bstatic'
21323       ;;
21324
21325     sysv4*MP*)
21326       if test -d /usr/nec ;then
21327         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21328         lt_prog_compiler_static_GCJ='-Bstatic'
21329       fi
21330       ;;
21331
21332     uts4*)
21333       lt_prog_compiler_pic_GCJ='-pic'
21334       lt_prog_compiler_static_GCJ='-Bstatic'
21335       ;;
21336
21337     *)
21338       lt_prog_compiler_can_build_shared_GCJ=no
21339       ;;
21340     esac
21341   fi
21342
21343 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21344 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21345
21346 #
21347 # Check to make sure the PIC flag actually works.
21348 #
21349 if test -n "$lt_prog_compiler_pic_GCJ"; then
21350
21351 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21352 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21353 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21354   echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21356   lt_prog_compiler_pic_works_GCJ=no
21357   ac_outfile=conftest.$ac_objext
21358    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21359    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21360    # Insert the option either (1) after the last *FLAGS variable, or
21361    # (2) before a word containing "conftest.", or (3) at the end.
21362    # Note that $ac_compile itself does not contain backslashes and begins
21363    # with a dollar sign (not a hyphen), so the echo should work correctly.
21364    # The option is referenced via a variable to avoid confusing sed.
21365    lt_compile=`echo "$ac_compile" | $SED \
21366    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21368    -e 's:$: $lt_compiler_flag:'`
21369    (eval echo "\"\$as_me:21369: $lt_compile\"" >&5)
21370    (eval "$lt_compile" 2>conftest.err)
21371    ac_status=$?
21372    cat conftest.err >&5
21373    echo "$as_me:21373: \$? = $ac_status" >&5
21374    if (exit $ac_status) && test -s "$ac_outfile"; then
21375      # The compiler can only warn and ignore the option if not recognized
21376      # So say no if there are warnings
21377      if test ! -s conftest.err; then
21378        lt_prog_compiler_pic_works_GCJ=yes
21379      fi
21380    fi
21381    $rm conftest*
21382
21383 fi
21384 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21385 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21386
21387 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21388     case $lt_prog_compiler_pic_GCJ in
21389      "" | " "*) ;;
21390      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21391      esac
21392 else
21393     lt_prog_compiler_pic_GCJ=
21394      lt_prog_compiler_can_build_shared_GCJ=no
21395 fi
21396
21397 fi
21398 case "$host_os" in
21399   # For platforms which do not support PIC, -DPIC is meaningless:
21400   *djgpp*)
21401     lt_prog_compiler_pic_GCJ=
21402     ;;
21403   *)
21404     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21405     ;;
21406 esac
21407
21408 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21409 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21410 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   lt_cv_prog_compiler_c_o_GCJ=no
21414    $rm -r conftest 2>/dev/null
21415    mkdir conftest
21416    cd conftest
21417    mkdir out
21418    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21419
21420    lt_compiler_flag="-o out/conftest2.$ac_objext"
21421    # Insert the option either (1) after the last *FLAGS variable, or
21422    # (2) before a word containing "conftest.", or (3) at the end.
21423    # Note that $ac_compile itself does not contain backslashes and begins
21424    # with a dollar sign (not a hyphen), so the echo should work correctly.
21425    lt_compile=`echo "$ac_compile" | $SED \
21426    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21428    -e 's:$: $lt_compiler_flag:'`
21429    (eval echo "\"\$as_me:21429: $lt_compile\"" >&5)
21430    (eval "$lt_compile" 2>out/conftest.err)
21431    ac_status=$?
21432    cat out/conftest.err >&5
21433    echo "$as_me:21433: \$? = $ac_status" >&5
21434    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21435    then
21436      # The compiler can only warn and ignore the option if not recognized
21437      # So say no if there are warnings
21438      if test ! -s out/conftest.err; then
21439        lt_cv_prog_compiler_c_o_GCJ=yes
21440      fi
21441    fi
21442    chmod u+w .
21443    $rm conftest*
21444    # SGI C++ compiler will create directory out/ii_files/ for
21445    # template instantiation
21446    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21447    $rm out/* && rmdir out
21448    cd ..
21449    rmdir conftest
21450    $rm conftest*
21451
21452 fi
21453 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21454 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21455
21456
21457 hard_links="nottested"
21458 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21459   # do not overwrite the value of need_locks provided by the user
21460   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21461 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21462   hard_links=yes
21463   $rm conftest*
21464   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21465   touch conftest.a
21466   ln conftest.a conftest.b 2>&5 || hard_links=no
21467   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21468   echo "$as_me:$LINENO: result: $hard_links" >&5
21469 echo "${ECHO_T}$hard_links" >&6
21470   if test "$hard_links" = no; then
21471     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21472 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21473     need_locks=warn
21474   fi
21475 else
21476   need_locks=no
21477 fi
21478
21479 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21480 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21481
21482   runpath_var=
21483   allow_undefined_flag_GCJ=
21484   enable_shared_with_static_runtimes_GCJ=no
21485   archive_cmds_GCJ=
21486   archive_expsym_cmds_GCJ=
21487   old_archive_From_new_cmds_GCJ=
21488   old_archive_from_expsyms_cmds_GCJ=
21489   export_dynamic_flag_spec_GCJ=
21490   whole_archive_flag_spec_GCJ=
21491   thread_safe_flag_spec_GCJ=
21492   hardcode_libdir_flag_spec_GCJ=
21493   hardcode_libdir_flag_spec_ld_GCJ=
21494   hardcode_libdir_separator_GCJ=
21495   hardcode_direct_GCJ=no
21496   hardcode_minus_L_GCJ=no
21497   hardcode_shlibpath_var_GCJ=unsupported
21498   link_all_deplibs_GCJ=unknown
21499   hardcode_automatic_GCJ=no
21500   module_cmds_GCJ=
21501   module_expsym_cmds_GCJ=
21502   always_export_symbols_GCJ=no
21503   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21504   # include_expsyms should be a list of space-separated symbols to be *always*
21505   # included in the symbol list
21506   include_expsyms_GCJ=
21507   # exclude_expsyms can be an extended regexp of symbols to exclude
21508   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21509   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21510   # as well as any symbol that contains `d'.
21511   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21512   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21513   # platforms (ab)use it in PIC code, but their linkers get confused if
21514   # the symbol is explicitly referenced.  Since portable code cannot
21515   # rely on this symbol name, it's probably fine to never include it in
21516   # preloaded symbol tables.
21517   extract_expsyms_cmds=
21518
21519   case $host_os in
21520   cygwin* | mingw* | pw32*)
21521     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21522     # When not using gcc, we currently assume that we are using
21523     # Microsoft Visual C++.
21524     if test "$GCC" != yes; then
21525       with_gnu_ld=no
21526     fi
21527     ;;
21528   openbsd*)
21529     with_gnu_ld=no
21530     ;;
21531   esac
21532
21533   ld_shlibs_GCJ=yes
21534   if test "$with_gnu_ld" = yes; then
21535     # If archive_cmds runs LD, not CC, wlarc should be empty
21536     wlarc='${wl}'
21537
21538     # See if GNU ld supports shared libraries.
21539     case $host_os in
21540     aix3* | aix4* | aix5*)
21541       # On AIX/PPC, the GNU linker is very broken
21542       if test "$host_cpu" != ia64; then
21543         ld_shlibs_GCJ=no
21544         cat <<EOF 1>&2
21545
21546 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21547 *** to be unable to reliably create shared libraries on AIX.
21548 *** Therefore, libtool is disabling shared libraries support.  If you
21549 *** really care for shared libraries, you may want to modify your PATH
21550 *** so that a non-GNU linker is found, and then restart.
21551
21552 EOF
21553       fi
21554       ;;
21555
21556     amigaos*)
21557       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
21558       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21559       hardcode_minus_L_GCJ=yes
21560
21561       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21562       # that the semantics of dynamic libraries on AmigaOS, at least up
21563       # to version 4, is to share data among multiple programs linked
21564       # with the same dynamic library.  Since this doesn't match the
21565       # behavior of shared libraries on other platforms, we can't use
21566       # them.
21567       ld_shlibs_GCJ=no
21568       ;;
21569
21570     beos*)
21571       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21572         allow_undefined_flag_GCJ=unsupported
21573         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21574         # support --undefined.  This deserves some investigation.  FIXME
21575         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21576       else
21577         ld_shlibs_GCJ=no
21578       fi
21579       ;;
21580
21581     cygwin* | mingw* | pw32*)
21582       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21583       # as there is no search path for DLLs.
21584       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21585       allow_undefined_flag_GCJ=unsupported
21586       always_export_symbols_GCJ=no
21587       enable_shared_with_static_runtimes_GCJ=yes
21588       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21589
21590       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21591         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21592         # If the export-symbols file already is a .def file (1st line
21593         # is EXPORTS), use it as is; otherwise, prepend...
21594         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21595           cp $export_symbols $output_objdir/$soname.def;
21596         else
21597           echo EXPORTS > $output_objdir/$soname.def;
21598           cat $export_symbols >> $output_objdir/$soname.def;
21599         fi~
21600         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21601       else
21602         ld_shlibs=no
21603       fi
21604       ;;
21605
21606     netbsd*)
21607       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21608         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21609         wlarc=
21610       else
21611         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21612         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21613       fi
21614       ;;
21615
21616     solaris* | sysv5*)
21617       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21618         ld_shlibs_GCJ=no
21619         cat <<EOF 1>&2
21620
21621 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21622 *** create shared libraries on Solaris systems.  Therefore, libtool
21623 *** is disabling shared libraries support.  We urge you to upgrade GNU
21624 *** binutils to release 2.9.1 or newer.  Another option is to modify
21625 *** your PATH or compiler configuration so that the native linker is
21626 *** used, and then restart.
21627
21628 EOF
21629       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21630         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21631         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21632       else
21633         ld_shlibs_GCJ=no
21634       fi
21635       ;;
21636
21637     sunos4*)
21638       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21639       wlarc=
21640       hardcode_direct_GCJ=yes
21641       hardcode_shlibpath_var_GCJ=no
21642       ;;
21643
21644   linux*)
21645     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21646         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21647         archive_cmds_GCJ="$tmp_archive_cmds"
21648       supports_anon_versioning=no
21649       case `$LD -v 2>/dev/null` in
21650         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21651         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21652         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21653         *\ 2.11.*) ;; # other 2.11 versions
21654         *) supports_anon_versioning=yes ;;
21655       esac
21656       if test $supports_anon_versioning = yes; then
21657         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21659 $echo "local: *; };" >> $output_objdir/$libname.ver~
21660         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21661       else
21662         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21663       fi
21664     else
21665       ld_shlibs_GCJ=no
21666     fi
21667     ;;
21668
21669     *)
21670       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21671         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21672         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21673       else
21674         ld_shlibs_GCJ=no
21675       fi
21676       ;;
21677     esac
21678
21679     if test "$ld_shlibs_GCJ" = yes; then
21680       runpath_var=LD_RUN_PATH
21681       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21682       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21683       # ancient GNU ld didn't support --whole-archive et. al.
21684       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21685         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21686       else
21687         whole_archive_flag_spec_GCJ=
21688       fi
21689     fi
21690   else
21691     # PORTME fill in a description of your system's linker (not GNU ld)
21692     case $host_os in
21693     aix3*)
21694       allow_undefined_flag_GCJ=unsupported
21695       always_export_symbols_GCJ=yes
21696       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
21697       # Note: this linker hardcodes the directories in LIBPATH if there
21698       # are no directories specified by -L.
21699       hardcode_minus_L_GCJ=yes
21700       if test "$GCC" = yes && test -z "$link_static_flag"; then
21701         # Neither direct hardcoding nor static linking is supported with a
21702         # broken collect2.
21703         hardcode_direct_GCJ=unsupported
21704       fi
21705       ;;
21706
21707     aix4* | aix5*)
21708       if test "$host_cpu" = ia64; then
21709         # On IA64, the linker does run time linking by default, so we don't
21710         # have to do anything special.
21711         aix_use_runtimelinking=no
21712         exp_sym_flag='-Bexport'
21713         no_entry_flag=""
21714       else
21715         # If we're using GNU nm, then we don't want the "-C" option.
21716         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21717         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21718           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21719         else
21720           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21721         fi
21722         aix_use_runtimelinking=no
21723
21724         # Test if we are trying to use run time linking or normal
21725         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21726         # need to do runtime linking.
21727         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21728           for ld_flag in $LDFLAGS; do
21729           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21730             aix_use_runtimelinking=yes
21731             break
21732           fi
21733           done
21734         esac
21735
21736         exp_sym_flag='-bexport'
21737         no_entry_flag='-bnoentry'
21738       fi
21739
21740       # When large executables or shared objects are built, AIX ld can
21741       # have problems creating the table of contents.  If linking a library
21742       # or program results in "error TOC overflow" add -mminimal-toc to
21743       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21744       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21745
21746       archive_cmds_GCJ=''
21747       hardcode_direct_GCJ=yes
21748       hardcode_libdir_separator_GCJ=':'
21749       link_all_deplibs_GCJ=yes
21750
21751       if test "$GCC" = yes; then
21752         case $host_os in aix4.012|aix4.012.*)
21753         # We only want to do this on AIX 4.2 and lower, the check
21754         # below for broken collect2 doesn't work under 4.3+
21755           collect2name=`${CC} -print-prog-name=collect2`
21756           if test -f "$collect2name" && \
21757            strings "$collect2name" | grep resolve_lib_name >/dev/null
21758           then
21759           # We have reworked collect2
21760           hardcode_direct_GCJ=yes
21761           else
21762           # We have old collect2
21763           hardcode_direct_GCJ=unsupported
21764           # It fails to find uninstalled libraries when the uninstalled
21765           # path is not listed in the libpath.  Setting hardcode_minus_L
21766           # to unsupported forces relinking
21767           hardcode_minus_L_GCJ=yes
21768           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21769           hardcode_libdir_separator_GCJ=
21770           fi
21771         esac
21772         shared_flag='-shared'
21773       else
21774         # not using gcc
21775         if test "$host_cpu" = ia64; then
21776         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21777         # chokes on -Wl,-G. The following line is correct:
21778           shared_flag='-G'
21779         else
21780         if test "$aix_use_runtimelinking" = yes; then
21781             shared_flag='${wl}-G'
21782           else
21783             shared_flag='${wl}-bM:SRE'
21784         fi
21785         fi
21786       fi
21787
21788       # It seems that -bexpall does not export symbols beginning with
21789       # underscore (_), so it is better to generate a list of symbols to export.
21790       always_export_symbols_GCJ=yes
21791       if test "$aix_use_runtimelinking" = yes; then
21792         # Warning - without using the other runtime loading flags (-brtl),
21793         # -berok will link without error, but may produce a broken library.
21794         allow_undefined_flag_GCJ='-berok'
21795        # Determine the default libpath from the value encoded in an empty executable.
21796        cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802
21803 int
21804 main ()
21805 {
21806
21807   ;
21808   return 0;
21809 }
21810 _ACEOF
21811 rm -f conftest.$ac_objext conftest$ac_exeext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21813   (eval $ac_link) 2>conftest.er1
21814   ac_status=$?
21815   grep -v '^ *+' conftest.er1 >conftest.err
21816   rm -f conftest.er1
21817   cat conftest.err >&5
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); } &&
21820          { ac_try='test -z "$ac_c_werror_flag"
21821                          || test ! -s conftest.err'
21822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823   (eval $ac_try) 2>&5
21824   ac_status=$?
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); }; } &&
21827          { ac_try='test -s conftest$ac_exeext'
21828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829   (eval $ac_try) 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; }; then
21833
21834 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21835 }'`
21836 # Check for a 64-bit object if we didn't find anything.
21837 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21838 }'`; fi
21839 else
21840   echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843 fi
21844 rm -f conftest.err conftest.$ac_objext \
21845       conftest$ac_exeext conftest.$ac_ext
21846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21847
21848        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21849         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21850        else
21851         if test "$host_cpu" = ia64; then
21852           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21853           allow_undefined_flag_GCJ="-z nodefs"
21854           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
21855         else
21856          # Determine the default libpath from the value encoded in an empty executable.
21857          cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h.  */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h.  */
21863
21864 int
21865 main ()
21866 {
21867
21868   ;
21869   return 0;
21870 }
21871 _ACEOF
21872 rm -f conftest.$ac_objext conftest$ac_exeext
21873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21874   (eval $ac_link) 2>conftest.er1
21875   ac_status=$?
21876   grep -v '^ *+' conftest.er1 >conftest.err
21877   rm -f conftest.er1
21878   cat conftest.err >&5
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); } &&
21881          { ac_try='test -z "$ac_c_werror_flag"
21882                          || test ! -s conftest.err'
21883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884   (eval $ac_try) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; } &&
21888          { ac_try='test -s conftest$ac_exeext'
21889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890   (eval $ac_try) 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; }; then
21894
21895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21896 }'`
21897 # Check for a 64-bit object if we didn't find anything.
21898 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21899 }'`; fi
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 fi
21905 rm -f conftest.err conftest.$ac_objext \
21906       conftest$ac_exeext conftest.$ac_ext
21907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21908
21909          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21910           # Warning - without using the other run time loading flags,
21911           # -berok will link without error, but may produce a broken library.
21912           no_undefined_flag_GCJ=' ${wl}-bernotok'
21913           allow_undefined_flag_GCJ=' ${wl}-berok'
21914           # -bexpall does not export symbols beginning with underscore (_)
21915           always_export_symbols_GCJ=yes
21916           # Exported symbols can be pulled into shared objects from archives
21917           whole_archive_flag_spec_GCJ=' '
21918           archive_cmds_need_lc_GCJ=yes
21919           # This is similar to how AIX traditionally builds it's shared libraries.
21920           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
21921         fi
21922       fi
21923       ;;
21924
21925     amigaos*)
21926       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
21927       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21928       hardcode_minus_L_GCJ=yes
21929       # see comment about different semantics on the GNU ld section
21930       ld_shlibs_GCJ=no
21931       ;;
21932
21933     bsdi[45]*)
21934       export_dynamic_flag_spec_GCJ=-rdynamic
21935       ;;
21936
21937     cygwin* | mingw* | pw32*)
21938       # When not using gcc, we currently assume that we are using
21939       # Microsoft Visual C++.
21940       # hardcode_libdir_flag_spec is actually meaningless, as there is
21941       # no search path for DLLs.
21942       hardcode_libdir_flag_spec_GCJ=' '
21943       allow_undefined_flag_GCJ=unsupported
21944       # Tell ltmain to make .lib files, not .a files.
21945       libext=lib
21946       # Tell ltmain to make .dll files, not .so files.
21947       shrext_cmds=".dll"
21948       # FIXME: Setting linknames here is a bad hack.
21949       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21950       # The linker will automatically build a .lib file if we build a DLL.
21951       old_archive_From_new_cmds_GCJ='true'
21952       # FIXME: Should let the user specify the lib program.
21953       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21954       fix_srcfile_path='`cygpath -w "$srcfile"`'
21955       enable_shared_with_static_runtimes_GCJ=yes
21956       ;;
21957
21958     darwin* | rhapsody*)
21959       case "$host_os" in
21960         rhapsody* | darwin1.[012])
21961          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21962          ;;
21963        *) # Darwin 1.3 on
21964          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21965            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21966          else
21967            case ${MACOSX_DEPLOYMENT_TARGET} in
21968              10.[012])
21969                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21970                ;;
21971              10.*)
21972                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21973                ;;
21974            esac
21975          fi
21976          ;;
21977       esac
21978       archive_cmds_need_lc_GCJ=no
21979       hardcode_direct_GCJ=no
21980       hardcode_automatic_GCJ=yes
21981       hardcode_shlibpath_var_GCJ=unsupported
21982       whole_archive_flag_spec_GCJ=''
21983       link_all_deplibs_GCJ=yes
21984     if test "$GCC" = yes ; then
21985         output_verbose_link_cmd='echo'
21986         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21987       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21988       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21989       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21990       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21991     else
21992       case "$cc_basename" in
21993         xlc*)
21994          output_verbose_link_cmd='echo'
21995          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21996          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21997           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21998          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21999           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22000           ;;
22001        *)
22002          ld_shlibs_GCJ=no
22003           ;;
22004       esac
22005     fi
22006       ;;
22007
22008     dgux*)
22009       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22010       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22011       hardcode_shlibpath_var_GCJ=no
22012       ;;
22013
22014     freebsd1*)
22015       ld_shlibs_GCJ=no
22016       ;;
22017
22018     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22019     # support.  Future versions do this automatically, but an explicit c++rt0.o
22020     # does not break anything, and helps significantly (at the cost of a little
22021     # extra space).
22022     freebsd2.2*)
22023       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22024       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22025       hardcode_direct_GCJ=yes
22026       hardcode_shlibpath_var_GCJ=no
22027       ;;
22028
22029     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22030     freebsd2*)
22031       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032       hardcode_direct_GCJ=yes
22033       hardcode_minus_L_GCJ=yes
22034       hardcode_shlibpath_var_GCJ=no
22035       ;;
22036
22037     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22038     freebsd* | kfreebsd*-gnu)
22039       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22040       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22041       hardcode_direct_GCJ=yes
22042       hardcode_shlibpath_var_GCJ=no
22043       ;;
22044
22045     hpux9*)
22046       if test "$GCC" = yes; then
22047         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22048       else
22049         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22050       fi
22051       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22052       hardcode_libdir_separator_GCJ=:
22053       hardcode_direct_GCJ=yes
22054
22055       # hardcode_minus_L: Not really in the search PATH,
22056       # but as the default location of the library.
22057       hardcode_minus_L_GCJ=yes
22058       export_dynamic_flag_spec_GCJ='${wl}-E'
22059       ;;
22060
22061     hpux10* | hpux11*)
22062       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22063         case "$host_cpu" in
22064         hppa*64*|ia64*)
22065           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22066           ;;
22067         *)
22068           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22069           ;;
22070         esac
22071       else
22072         case "$host_cpu" in
22073         hppa*64*|ia64*)
22074           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22075           ;;
22076         *)
22077           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22078           ;;
22079         esac
22080       fi
22081       if test "$with_gnu_ld" = no; then
22082         case "$host_cpu" in
22083         hppa*64*)
22084           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22085           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22086           hardcode_libdir_separator_GCJ=:
22087           hardcode_direct_GCJ=no
22088           hardcode_shlibpath_var_GCJ=no
22089           ;;
22090         ia64*)
22091           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22092           hardcode_direct_GCJ=no
22093           hardcode_shlibpath_var_GCJ=no
22094
22095           # hardcode_minus_L: Not really in the search PATH,
22096           # but as the default location of the library.
22097           hardcode_minus_L_GCJ=yes
22098           ;;
22099         *)
22100           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22101           hardcode_libdir_separator_GCJ=:
22102           hardcode_direct_GCJ=yes
22103           export_dynamic_flag_spec_GCJ='${wl}-E'
22104
22105           # hardcode_minus_L: Not really in the search PATH,
22106           # but as the default location of the library.
22107           hardcode_minus_L_GCJ=yes
22108           ;;
22109         esac
22110       fi
22111       ;;
22112
22113     irix5* | irix6* | nonstopux*)
22114       if test "$GCC" = yes; then
22115         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22116       else
22117         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22118         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22119       fi
22120       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22121       hardcode_libdir_separator_GCJ=:
22122       link_all_deplibs_GCJ=yes
22123       ;;
22124
22125     netbsd*)
22126       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22127         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22128       else
22129         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22130       fi
22131       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22132       hardcode_direct_GCJ=yes
22133       hardcode_shlibpath_var_GCJ=no
22134       ;;
22135
22136     newsos6)
22137       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22138       hardcode_direct_GCJ=yes
22139       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22140       hardcode_libdir_separator_GCJ=:
22141       hardcode_shlibpath_var_GCJ=no
22142       ;;
22143
22144     openbsd*)
22145       hardcode_direct_GCJ=yes
22146       hardcode_shlibpath_var_GCJ=no
22147       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22148         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22149         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22150         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22151         export_dynamic_flag_spec_GCJ='${wl}-E'
22152       else
22153        case $host_os in
22154          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22155            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22156            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22157            ;;
22158          *)
22159            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22160            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22161            ;;
22162        esac
22163       fi
22164       ;;
22165
22166     os2*)
22167       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22168       hardcode_minus_L_GCJ=yes
22169       allow_undefined_flag_GCJ=unsupported
22170       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
22171       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22172       ;;
22173
22174     osf3*)
22175       if test "$GCC" = yes; then
22176         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22177         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22178       else
22179         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22180         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22181       fi
22182       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22183       hardcode_libdir_separator_GCJ=:
22184       ;;
22185
22186     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22187       if test "$GCC" = yes; then
22188         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22189         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22190         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22191       else
22192         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22193         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22194         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22195         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
22196
22197         # Both c and cxx compiler support -rpath directly
22198         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22199       fi
22200       hardcode_libdir_separator_GCJ=:
22201       ;;
22202
22203     sco3.2v5*)
22204       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22205       hardcode_shlibpath_var_GCJ=no
22206       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22207       runpath_var=LD_RUN_PATH
22208       hardcode_runpath_var=yes
22209       ;;
22210
22211     solaris*)
22212       no_undefined_flag_GCJ=' -z text'
22213       if test "$GCC" = yes; then
22214         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22215         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22216           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22217       else
22218         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22219         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22220         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22221       fi
22222       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22223       hardcode_shlibpath_var_GCJ=no
22224       case $host_os in
22225       solaris2.[0-5] | solaris2.[0-5].*) ;;
22226       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22227         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22228       esac
22229       link_all_deplibs_GCJ=yes
22230       ;;
22231
22232     sunos4*)
22233       if test "x$host_vendor" = xsequent; then
22234         # Use $CC to link under sequent, because it throws in some extra .o
22235         # files that make .init and .fini sections work.
22236         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22237       else
22238         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22239       fi
22240       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22241       hardcode_direct_GCJ=yes
22242       hardcode_minus_L_GCJ=yes
22243       hardcode_shlibpath_var_GCJ=no
22244       ;;
22245
22246     sysv4)
22247       case $host_vendor in
22248         sni)
22249           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250           hardcode_direct_GCJ=yes # is this really true???
22251         ;;
22252         siemens)
22253           ## LD is ld it makes a PLAMLIB
22254           ## CC just makes a GrossModule.
22255           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22256           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22257           hardcode_direct_GCJ=no
22258         ;;
22259         motorola)
22260           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22261           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22262         ;;
22263       esac
22264       runpath_var='LD_RUN_PATH'
22265       hardcode_shlibpath_var_GCJ=no
22266       ;;
22267
22268     sysv4.3*)
22269       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270       hardcode_shlibpath_var_GCJ=no
22271       export_dynamic_flag_spec_GCJ='-Bexport'
22272       ;;
22273
22274     sysv4*MP*)
22275       if test -d /usr/nec; then
22276         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22277         hardcode_shlibpath_var_GCJ=no
22278         runpath_var=LD_RUN_PATH
22279         hardcode_runpath_var=yes
22280         ld_shlibs_GCJ=yes
22281       fi
22282       ;;
22283
22284     sysv4.2uw2*)
22285       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22286       hardcode_direct_GCJ=yes
22287       hardcode_minus_L_GCJ=no
22288       hardcode_shlibpath_var_GCJ=no
22289       hardcode_runpath_var=yes
22290       runpath_var=LD_RUN_PATH
22291       ;;
22292
22293    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22294       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22295       if test "$GCC" = yes; then
22296         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22297       else
22298         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22299       fi
22300       runpath_var='LD_RUN_PATH'
22301       hardcode_shlibpath_var_GCJ=no
22302       ;;
22303
22304     sysv5*)
22305       no_undefined_flag_GCJ=' -z text'
22306       # $CC -shared without GNU ld will not create a library from C++
22307       # object files and a static libstdc++, better avoid it by now
22308       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22309       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22310                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22311       hardcode_libdir_flag_spec_GCJ=
22312       hardcode_shlibpath_var_GCJ=no
22313       runpath_var='LD_RUN_PATH'
22314       ;;
22315
22316     uts4*)
22317       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22318       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22319       hardcode_shlibpath_var_GCJ=no
22320       ;;
22321
22322     *)
22323       ld_shlibs_GCJ=no
22324       ;;
22325     esac
22326   fi
22327
22328 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22329 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22330 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22331
22332 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22333 if test "$GCC" = yes; then
22334   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22335 fi
22336
22337 #
22338 # Do we need to explicitly link libc?
22339 #
22340 case "x$archive_cmds_need_lc_GCJ" in
22341 x|xyes)
22342   # Assume -lc should be added
22343   archive_cmds_need_lc_GCJ=yes
22344
22345   if test "$enable_shared" = yes && test "$GCC" = yes; then
22346     case $archive_cmds_GCJ in
22347     *'~'*)
22348       # FIXME: we may have to deal with multi-command sequences.
22349       ;;
22350     '$CC '*)
22351       # Test whether the compiler implicitly links with -lc since on some
22352       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22353       # to ld, don't add -lc before -lgcc.
22354       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22355 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22356       $rm conftest*
22357       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22358
22359       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360   (eval $ac_compile) 2>&5
22361   ac_status=$?
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); } 2>conftest.err; then
22364         soname=conftest
22365         lib=conftest
22366         libobjs=conftest.$ac_objext
22367         deplibs=
22368         wl=$lt_prog_compiler_wl_GCJ
22369         compiler_flags=-v
22370         linker_flags=-v
22371         verstring=
22372         output_objdir=.
22373         libname=conftest
22374         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22375         allow_undefined_flag_GCJ=
22376         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22377   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }
22381         then
22382           archive_cmds_need_lc_GCJ=no
22383         else
22384           archive_cmds_need_lc_GCJ=yes
22385         fi
22386         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22387       else
22388         cat conftest.err 1>&5
22389       fi
22390       $rm conftest*
22391       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22392 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22393       ;;
22394     esac
22395   fi
22396   ;;
22397 esac
22398
22399 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22401 library_names_spec=
22402 libname_spec='lib$name'
22403 soname_spec=
22404 shrext_cmds=".so"
22405 postinstall_cmds=
22406 postuninstall_cmds=
22407 finish_cmds=
22408 finish_eval=
22409 shlibpath_var=
22410 shlibpath_overrides_runpath=unknown
22411 version_type=none
22412 dynamic_linker="$host_os ld.so"
22413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22414 if test "$GCC" = yes; then
22415   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22416   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22417     # if the path contains ";" then we assume it to be the separator
22418     # otherwise default to the standard path separator (i.e. ":") - it is
22419     # assumed that no part of a normal pathname contains ";" but that should
22420     # okay in the real world where ";" in dirpaths is itself problematic.
22421     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22422   else
22423     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22424   fi
22425 else
22426   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22427 fi
22428 need_lib_prefix=unknown
22429 hardcode_into_libs=no
22430
22431 # when you set need_version to no, make sure it does not cause -set_version
22432 # flags to be left without arguments
22433 need_version=unknown
22434
22435 case $host_os in
22436 aix3*)
22437   version_type=linux
22438   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22439   shlibpath_var=LIBPATH
22440
22441   # AIX 3 has no versioning support, so we append a major version to the name.
22442   soname_spec='${libname}${release}${shared_ext}$major'
22443   ;;
22444
22445 aix4* | aix5*)
22446   version_type=linux
22447   need_lib_prefix=no
22448   need_version=no
22449   hardcode_into_libs=yes
22450   if test "$host_cpu" = ia64; then
22451     # AIX 5 supports IA64
22452     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22453     shlibpath_var=LD_LIBRARY_PATH
22454   else
22455     # With GCC up to 2.95.x, collect2 would create an import file
22456     # for dependence libraries.  The import file would start with
22457     # the line `#! .'.  This would cause the generated library to
22458     # depend on `.', always an invalid library.  This was fixed in
22459     # development snapshots of GCC prior to 3.0.
22460     case $host_os in
22461       aix4 | aix4.[01] | aix4.[01].*)
22462       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22463            echo ' yes '
22464            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22465         :
22466       else
22467         can_build_shared=no
22468       fi
22469       ;;
22470     esac
22471     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22472     # soname into executable. Probably we can add versioning support to
22473     # collect2, so additional links can be useful in future.
22474     if test "$aix_use_runtimelinking" = yes; then
22475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22476       # instead of lib<name>.a to let people know that these are not
22477       # typical AIX shared libraries.
22478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22479     else
22480       # We preserve .a as extension for shared libraries through AIX4.2
22481       # and later when we are not doing run time linking.
22482       library_names_spec='${libname}${release}.a $libname.a'
22483       soname_spec='${libname}${release}${shared_ext}$major'
22484     fi
22485     shlibpath_var=LIBPATH
22486   fi
22487   ;;
22488
22489 amigaos*)
22490   library_names_spec='$libname.ixlibrary $libname.a'
22491   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22492   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
22493   ;;
22494
22495 beos*)
22496   library_names_spec='${libname}${shared_ext}'
22497   dynamic_linker="$host_os ld.so"
22498   shlibpath_var=LIBRARY_PATH
22499   ;;
22500
22501 bsdi[45]*)
22502   version_type=linux
22503   need_version=no
22504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22505   soname_spec='${libname}${release}${shared_ext}$major'
22506   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22507   shlibpath_var=LD_LIBRARY_PATH
22508   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22509   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22510   # the default ld.so.conf also contains /usr/contrib/lib and
22511   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22512   # libtool to hard-code these into programs
22513   ;;
22514
22515 cygwin* | mingw* | pw32*)
22516   version_type=windows
22517   shrext_cmds=".dll"
22518   need_version=no
22519   need_lib_prefix=no
22520
22521   case $GCC,$host_os in
22522   yes,cygwin* | yes,mingw* | yes,pw32*)
22523     library_names_spec='$libname.dll.a'
22524     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22525     postinstall_cmds='base_file=`basename \${file}`~
22526       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22527       dldir=$destdir/`dirname \$dlpath`~
22528       test -d \$dldir || mkdir -p \$dldir~
22529       $install_prog $dir/$dlname \$dldir/$dlname'
22530     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22531       dlpath=$dir/\$dldll~
22532        $rm \$dlpath'
22533     shlibpath_overrides_runpath=yes
22534
22535     case $host_os in
22536     cygwin*)
22537       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22538       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22539       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22540       ;;
22541     mingw*)
22542       # MinGW DLLs use traditional 'lib' prefix
22543       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22544       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22545       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22546         # It is most probably a Windows format PATH printed by
22547         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22548         # path with ; separators, and with drive letters. We can handle the
22549         # drive letters (cygwin fileutils understands them), so leave them,
22550         # especially as we might pass files found there to a mingw objdump,
22551         # which wouldn't understand a cygwinified path. Ahh.
22552         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22553       else
22554         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22555       fi
22556       ;;
22557     pw32*)
22558       # pw32 DLLs use 'pw' prefix rather than 'lib'
22559       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22560       ;;
22561     esac
22562     ;;
22563
22564   *)
22565     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22566     ;;
22567   esac
22568   dynamic_linker='Win32 ld.exe'
22569   # FIXME: first we should search . and the directory the executable is in
22570   shlibpath_var=PATH
22571   ;;
22572
22573 darwin* | rhapsody*)
22574   dynamic_linker="$host_os dyld"
22575   version_type=darwin
22576   need_lib_prefix=no
22577   need_version=no
22578   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22579   soname_spec='${libname}${release}${major}$shared_ext'
22580   shlibpath_overrides_runpath=yes
22581   shlibpath_var=DYLD_LIBRARY_PATH
22582   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22583   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22584   if test "$GCC" = yes; then
22585     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22586   else
22587     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22588   fi
22589   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22590   ;;
22591
22592 dgux*)
22593   version_type=linux
22594   need_lib_prefix=no
22595   need_version=no
22596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22597   soname_spec='${libname}${release}${shared_ext}$major'
22598   shlibpath_var=LD_LIBRARY_PATH
22599   ;;
22600
22601 freebsd1*)
22602   dynamic_linker=no
22603   ;;
22604
22605 kfreebsd*-gnu)
22606   version_type=linux
22607   need_lib_prefix=no
22608   need_version=no
22609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22610   soname_spec='${libname}${release}${shared_ext}$major'
22611   shlibpath_var=LD_LIBRARY_PATH
22612   shlibpath_overrides_runpath=no
22613   hardcode_into_libs=yes
22614   dynamic_linker='GNU ld.so'
22615   ;;
22616
22617 freebsd*)
22618   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22619   version_type=freebsd-$objformat
22620   case $version_type in
22621     freebsd-elf*)
22622       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22623       need_version=no
22624       need_lib_prefix=no
22625       ;;
22626     freebsd-*)
22627       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22628       need_version=yes
22629       ;;
22630   esac
22631   shlibpath_var=LD_LIBRARY_PATH
22632   case $host_os in
22633   freebsd2*)
22634     shlibpath_overrides_runpath=yes
22635     ;;
22636   freebsd3.01* | freebsdelf3.01*)
22637     shlibpath_overrides_runpath=yes
22638     hardcode_into_libs=yes
22639     ;;
22640   *) # from 3.2 on
22641     shlibpath_overrides_runpath=no
22642     hardcode_into_libs=yes
22643     ;;
22644   esac
22645   ;;
22646
22647 gnu*)
22648   version_type=linux
22649   need_lib_prefix=no
22650   need_version=no
22651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22652   soname_spec='${libname}${release}${shared_ext}$major'
22653   shlibpath_var=LD_LIBRARY_PATH
22654   hardcode_into_libs=yes
22655   ;;
22656
22657 hpux9* | hpux10* | hpux11*)
22658   # Give a soname corresponding to the major version so that dld.sl refuses to
22659   # link against other versions.
22660   version_type=sunos
22661   need_lib_prefix=no
22662   need_version=no
22663   case "$host_cpu" in
22664   ia64*)
22665     shrext_cmds='.so'
22666     hardcode_into_libs=yes
22667     dynamic_linker="$host_os dld.so"
22668     shlibpath_var=LD_LIBRARY_PATH
22669     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671     soname_spec='${libname}${release}${shared_ext}$major'
22672     if test "X$HPUX_IA64_MODE" = X32; then
22673       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22674     else
22675       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22676     fi
22677     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22678     ;;
22679    hppa*64*)
22680      shrext_cmds='.sl'
22681      hardcode_into_libs=yes
22682      dynamic_linker="$host_os dld.sl"
22683      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22684      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22685      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686      soname_spec='${libname}${release}${shared_ext}$major'
22687      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22688      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22689      ;;
22690    *)
22691     shrext_cmds='.sl'
22692     dynamic_linker="$host_os dld.sl"
22693     shlibpath_var=SHLIB_PATH
22694     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696     soname_spec='${libname}${release}${shared_ext}$major'
22697     ;;
22698   esac
22699   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22700   postinstall_cmds='chmod 555 $lib'
22701   ;;
22702
22703 irix5* | irix6* | nonstopux*)
22704   case $host_os in
22705     nonstopux*) version_type=nonstopux ;;
22706     *)
22707         if test "$lt_cv_prog_gnu_ld" = yes; then
22708                 version_type=linux
22709         else
22710                 version_type=irix
22711         fi ;;
22712   esac
22713   need_lib_prefix=no
22714   need_version=no
22715   soname_spec='${libname}${release}${shared_ext}$major'
22716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22717   case $host_os in
22718   irix5* | nonstopux*)
22719     libsuff= shlibsuff=
22720     ;;
22721   *)
22722     case $LD in # libtool.m4 will add one of these switches to LD
22723     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22724       libsuff= shlibsuff= libmagic=32-bit;;
22725     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22726       libsuff=32 shlibsuff=N32 libmagic=N32;;
22727     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22728       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22729     *) libsuff= shlibsuff= libmagic=never-match;;
22730     esac
22731     ;;
22732   esac
22733   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22734   shlibpath_overrides_runpath=no
22735   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22736   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22737   hardcode_into_libs=yes
22738   ;;
22739
22740 # No shared lib support for Linux oldld, aout, or coff.
22741 linux*oldld* | linux*aout* | linux*coff*)
22742   dynamic_linker=no
22743   ;;
22744
22745 # This must be Linux ELF.
22746 linux*)
22747   version_type=linux
22748   need_lib_prefix=no
22749   need_version=no
22750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22751   soname_spec='${libname}${release}${shared_ext}$major'
22752   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22753   shlibpath_var=LD_LIBRARY_PATH
22754   shlibpath_overrides_runpath=no
22755   # This implies no fast_install, which is unacceptable.
22756   # Some rework will be needed to allow for fast_install
22757   # before this can be enabled.
22758   hardcode_into_libs=yes
22759
22760   # Append ld.so.conf contents to the search path
22761   if test -f /etc/ld.so.conf; then
22762     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22763     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22764   fi
22765
22766   # We used to test for /lib/ld.so.1 and disable shared libraries on
22767   # powerpc, because MkLinux only supported shared libraries with the
22768   # GNU dynamic linker.  Since this was broken with cross compilers,
22769   # most powerpc-linux boxes support dynamic linking these days and
22770   # people can always --disable-shared, the test was removed, and we
22771   # assume the GNU/Linux dynamic linker is in use.
22772   dynamic_linker='GNU/Linux ld.so'
22773   ;;
22774
22775 knetbsd*-gnu)
22776   version_type=linux
22777   need_lib_prefix=no
22778   need_version=no
22779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22780   soname_spec='${libname}${release}${shared_ext}$major'
22781   shlibpath_var=LD_LIBRARY_PATH
22782   shlibpath_overrides_runpath=no
22783   hardcode_into_libs=yes
22784   dynamic_linker='GNU ld.so'
22785   ;;
22786
22787 netbsd*)
22788   version_type=sunos
22789   need_lib_prefix=no
22790   need_version=no
22791   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22793     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22794     dynamic_linker='NetBSD (a.out) ld.so'
22795   else
22796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22797     soname_spec='${libname}${release}${shared_ext}$major'
22798     dynamic_linker='NetBSD ld.elf_so'
22799   fi
22800   shlibpath_var=LD_LIBRARY_PATH
22801   shlibpath_overrides_runpath=yes
22802   hardcode_into_libs=yes
22803   ;;
22804
22805 newsos6)
22806   version_type=linux
22807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808   shlibpath_var=LD_LIBRARY_PATH
22809   shlibpath_overrides_runpath=yes
22810   ;;
22811
22812 nto-qnx*)
22813   version_type=linux
22814   need_lib_prefix=no
22815   need_version=no
22816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22817   soname_spec='${libname}${release}${shared_ext}$major'
22818   shlibpath_var=LD_LIBRARY_PATH
22819   shlibpath_overrides_runpath=yes
22820   ;;
22821
22822 openbsd*)
22823   version_type=sunos
22824   need_lib_prefix=no
22825   need_version=no
22826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22827   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22828   shlibpath_var=LD_LIBRARY_PATH
22829   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22830     case $host_os in
22831       openbsd2.[89] | openbsd2.[89].*)
22832         shlibpath_overrides_runpath=no
22833         ;;
22834       *)
22835         shlibpath_overrides_runpath=yes
22836         ;;
22837       esac
22838   else
22839     shlibpath_overrides_runpath=yes
22840   fi
22841   ;;
22842
22843 os2*)
22844   libname_spec='$name'
22845   shrext_cmds=".dll"
22846   need_lib_prefix=no
22847   library_names_spec='$libname${shared_ext} $libname.a'
22848   dynamic_linker='OS/2 ld.exe'
22849   shlibpath_var=LIBPATH
22850   ;;
22851
22852 osf3* | osf4* | osf5*)
22853   version_type=osf
22854   need_lib_prefix=no
22855   need_version=no
22856   soname_spec='${libname}${release}${shared_ext}$major'
22857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858   shlibpath_var=LD_LIBRARY_PATH
22859   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22860   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22861   ;;
22862
22863 sco3.2v5*)
22864   version_type=osf
22865   soname_spec='${libname}${release}${shared_ext}$major'
22866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867   shlibpath_var=LD_LIBRARY_PATH
22868   ;;
22869
22870 solaris*)
22871   version_type=linux
22872   need_lib_prefix=no
22873   need_version=no
22874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875   soname_spec='${libname}${release}${shared_ext}$major'
22876   shlibpath_var=LD_LIBRARY_PATH
22877   shlibpath_overrides_runpath=yes
22878   hardcode_into_libs=yes
22879   # ldd complains unless libraries are executable
22880   postinstall_cmds='chmod +x $lib'
22881   ;;
22882
22883 sunos4*)
22884   version_type=sunos
22885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22886   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22887   shlibpath_var=LD_LIBRARY_PATH
22888   shlibpath_overrides_runpath=yes
22889   if test "$with_gnu_ld" = yes; then
22890     need_lib_prefix=no
22891   fi
22892   need_version=yes
22893   ;;
22894
22895 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22896   version_type=linux
22897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898   soname_spec='${libname}${release}${shared_ext}$major'
22899   shlibpath_var=LD_LIBRARY_PATH
22900   case $host_vendor in
22901     sni)
22902       shlibpath_overrides_runpath=no
22903       need_lib_prefix=no
22904       export_dynamic_flag_spec='${wl}-Blargedynsym'
22905       runpath_var=LD_RUN_PATH
22906       ;;
22907     siemens)
22908       need_lib_prefix=no
22909       ;;
22910     motorola)
22911       need_lib_prefix=no
22912       need_version=no
22913       shlibpath_overrides_runpath=no
22914       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22915       ;;
22916   esac
22917   ;;
22918
22919 sysv4*MP*)
22920   if test -d /usr/nec ;then
22921     version_type=linux
22922     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22923     soname_spec='$libname${shared_ext}.$major'
22924     shlibpath_var=LD_LIBRARY_PATH
22925   fi
22926   ;;
22927
22928 uts4*)
22929   version_type=linux
22930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22931   soname_spec='${libname}${release}${shared_ext}$major'
22932   shlibpath_var=LD_LIBRARY_PATH
22933   ;;
22934
22935 *)
22936   dynamic_linker=no
22937   ;;
22938 esac
22939 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22940 echo "${ECHO_T}$dynamic_linker" >&6
22941 test "$dynamic_linker" = no && can_build_shared=no
22942
22943 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22944 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22945 hardcode_action_GCJ=
22946 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22947    test -n "$runpath_var_GCJ" || \
22948    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22949
22950   # We can hardcode non-existant directories.
22951   if test "$hardcode_direct_GCJ" != no &&
22952      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22953      # have to relink, otherwise we might link with an installed library
22954      # when we should be linking with a yet-to-be-installed one
22955      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22956      test "$hardcode_minus_L_GCJ" != no; then
22957     # Linking always hardcodes the temporary library directory.
22958     hardcode_action_GCJ=relink
22959   else
22960     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22961     hardcode_action_GCJ=immediate
22962   fi
22963 else
22964   # We cannot hardcode anything, or else we can only hardcode existing
22965   # directories.
22966   hardcode_action_GCJ=unsupported
22967 fi
22968 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22969 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22970
22971 if test "$hardcode_action_GCJ" = relink; then
22972   # Fast installation is not supported
22973   enable_fast_install=no
22974 elif test "$shlibpath_overrides_runpath" = yes ||
22975      test "$enable_shared" = no; then
22976   # Fast installation is not necessary
22977   enable_fast_install=needless
22978 fi
22979
22980 striplib=
22981 old_striplib=
22982 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22983 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22984 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22985   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22986   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22987   echo "$as_me:$LINENO: result: yes" >&5
22988 echo "${ECHO_T}yes" >&6
22989 else
22990 # FIXME - insert some real tests, host_os isn't really good enough
22991   case $host_os in
22992    darwin*)
22993        if test -n "$STRIP" ; then
22994          striplib="$STRIP -x"
22995          echo "$as_me:$LINENO: result: yes" >&5
22996 echo "${ECHO_T}yes" >&6
22997        else
22998   echo "$as_me:$LINENO: result: no" >&5
22999 echo "${ECHO_T}no" >&6
23000 fi
23001        ;;
23002    *)
23003   echo "$as_me:$LINENO: result: no" >&5
23004 echo "${ECHO_T}no" >&6
23005     ;;
23006   esac
23007 fi
23008
23009 if test "x$enable_dlopen" != xyes; then
23010   enable_dlopen=unknown
23011   enable_dlopen_self=unknown
23012   enable_dlopen_self_static=unknown
23013 else
23014   lt_cv_dlopen=no
23015   lt_cv_dlopen_libs=
23016
23017   case $host_os in
23018   beos*)
23019     lt_cv_dlopen="load_add_on"
23020     lt_cv_dlopen_libs=
23021     lt_cv_dlopen_self=yes
23022     ;;
23023
23024   mingw* | pw32*)
23025     lt_cv_dlopen="LoadLibrary"
23026     lt_cv_dlopen_libs=
23027    ;;
23028
23029   cygwin*)
23030     lt_cv_dlopen="dlopen"
23031     lt_cv_dlopen_libs=
23032    ;;
23033
23034   darwin*)
23035   # if libdl is installed we need to link against it
23036     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23039   echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041   ac_check_lib_save_LIBS=$LIBS
23042 LIBS="-ldl  $LIBS"
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049
23050 /* Override any gcc2 internal prototype to avoid an error.  */
23051 #ifdef __cplusplus
23052 extern "C"
23053 #endif
23054 /* We use char because int might match the return type of a gcc2
23055    builtin and then its argument prototype would still apply.  */
23056 char dlopen ();
23057 int
23058 main ()
23059 {
23060 dlopen ();
23061   ;
23062   return 0;
23063 }
23064 _ACEOF
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067   (eval $ac_link) 2>conftest.er1
23068   ac_status=$?
23069   grep -v '^ *+' conftest.er1 >conftest.err
23070   rm -f conftest.er1
23071   cat conftest.err >&5
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); } &&
23074          { ac_try='test -z "$ac_c_werror_flag"
23075                          || test ! -s conftest.err'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; } &&
23081          { ac_try='test -s conftest$ac_exeext'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; }; then
23087   ac_cv_lib_dl_dlopen=yes
23088 else
23089   echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23091
23092 ac_cv_lib_dl_dlopen=no
23093 fi
23094 rm -f conftest.err conftest.$ac_objext \
23095       conftest$ac_exeext conftest.$ac_ext
23096 LIBS=$ac_check_lib_save_LIBS
23097 fi
23098 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23100 if test $ac_cv_lib_dl_dlopen = yes; then
23101   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23102 else
23103
23104     lt_cv_dlopen="dyld"
23105     lt_cv_dlopen_libs=
23106     lt_cv_dlopen_self=yes
23107
23108 fi
23109
23110    ;;
23111
23112   *)
23113     echo "$as_me:$LINENO: checking for shl_load" >&5
23114 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23115 if test "${ac_cv_func_shl_load+set}" = set; then
23116   echo $ECHO_N "(cached) $ECHO_C" >&6
23117 else
23118   cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h.  */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h.  */
23124 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23126 #define shl_load innocuous_shl_load
23127
23128 /* System header to define __stub macros and hopefully few prototypes,
23129     which can conflict with char shl_load (); below.
23130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23131     <limits.h> exists even on freestanding compilers.  */
23132
23133 #ifdef __STDC__
23134 # include <limits.h>
23135 #else
23136 # include <assert.h>
23137 #endif
23138
23139 #undef shl_load
23140
23141 /* Override any gcc2 internal prototype to avoid an error.  */
23142 #ifdef __cplusplus
23143 extern "C"
23144 {
23145 #endif
23146 /* We use char because int might match the return type of a gcc2
23147    builtin and then its argument prototype would still apply.  */
23148 char shl_load ();
23149 /* The GNU C library defines this for functions which it implements
23150     to always fail with ENOSYS.  Some functions are actually named
23151     something starting with __ and the normal name is an alias.  */
23152 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23153 choke me
23154 #else
23155 char (*f) () = shl_load;
23156 #endif
23157 #ifdef __cplusplus
23158 }
23159 #endif
23160
23161 int
23162 main ()
23163 {
23164 return f != shl_load;
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext conftest$ac_exeext
23170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23171   (eval $ac_link) 2>conftest.er1
23172   ac_status=$?
23173   grep -v '^ *+' conftest.er1 >conftest.err
23174   rm -f conftest.er1
23175   cat conftest.err >&5
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } &&
23178          { ac_try='test -z "$ac_c_werror_flag"
23179                          || test ! -s conftest.err'
23180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181   (eval $ac_try) 2>&5
23182   ac_status=$?
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); }; } &&
23185          { ac_try='test -s conftest$ac_exeext'
23186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187   (eval $ac_try) 2>&5
23188   ac_status=$?
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); }; }; then
23191   ac_cv_func_shl_load=yes
23192 else
23193   echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 ac_cv_func_shl_load=no
23197 fi
23198 rm -f conftest.err conftest.$ac_objext \
23199       conftest$ac_exeext conftest.$ac_ext
23200 fi
23201 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23202 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23203 if test $ac_cv_func_shl_load = yes; then
23204   lt_cv_dlopen="shl_load"
23205 else
23206   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23207 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23208 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23209   echo $ECHO_N "(cached) $ECHO_C" >&6
23210 else
23211   ac_check_lib_save_LIBS=$LIBS
23212 LIBS="-ldld  $LIBS"
23213 cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219
23220 /* Override any gcc2 internal prototype to avoid an error.  */
23221 #ifdef __cplusplus
23222 extern "C"
23223 #endif
23224 /* We use char because int might match the return type of a gcc2
23225    builtin and then its argument prototype would still apply.  */
23226 char shl_load ();
23227 int
23228 main ()
23229 {
23230 shl_load ();
23231   ;
23232   return 0;
23233 }
23234 _ACEOF
23235 rm -f conftest.$ac_objext conftest$ac_exeext
23236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23237   (eval $ac_link) 2>conftest.er1
23238   ac_status=$?
23239   grep -v '^ *+' conftest.er1 >conftest.err
23240   rm -f conftest.er1
23241   cat conftest.err >&5
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); } &&
23244          { ac_try='test -z "$ac_c_werror_flag"
23245                          || test ! -s conftest.err'
23246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247   (eval $ac_try) 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); }; } &&
23251          { ac_try='test -s conftest$ac_exeext'
23252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253   (eval $ac_try) 2>&5
23254   ac_status=$?
23255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256   (exit $ac_status); }; }; then
23257   ac_cv_lib_dld_shl_load=yes
23258 else
23259   echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23261
23262 ac_cv_lib_dld_shl_load=no
23263 fi
23264 rm -f conftest.err conftest.$ac_objext \
23265       conftest$ac_exeext conftest.$ac_ext
23266 LIBS=$ac_check_lib_save_LIBS
23267 fi
23268 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23269 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23270 if test $ac_cv_lib_dld_shl_load = yes; then
23271   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23272 else
23273   echo "$as_me:$LINENO: checking for dlopen" >&5
23274 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23275 if test "${ac_cv_func_dlopen+set}" = set; then
23276   echo $ECHO_N "(cached) $ECHO_C" >&6
23277 else
23278   cat >conftest.$ac_ext <<_ACEOF
23279 /* confdefs.h.  */
23280 _ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h.  */
23284 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23286 #define dlopen innocuous_dlopen
23287
23288 /* System header to define __stub macros and hopefully few prototypes,
23289     which can conflict with char dlopen (); below.
23290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23291     <limits.h> exists even on freestanding compilers.  */
23292
23293 #ifdef __STDC__
23294 # include <limits.h>
23295 #else
23296 # include <assert.h>
23297 #endif
23298
23299 #undef dlopen
23300
23301 /* Override any gcc2 internal prototype to avoid an error.  */
23302 #ifdef __cplusplus
23303 extern "C"
23304 {
23305 #endif
23306 /* We use char because int might match the return type of a gcc2
23307    builtin and then its argument prototype would still apply.  */
23308 char dlopen ();
23309 /* The GNU C library defines this for functions which it implements
23310     to always fail with ENOSYS.  Some functions are actually named
23311     something starting with __ and the normal name is an alias.  */
23312 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23313 choke me
23314 #else
23315 char (*f) () = dlopen;
23316 #endif
23317 #ifdef __cplusplus
23318 }
23319 #endif
23320
23321 int
23322 main ()
23323 {
23324 return f != dlopen;
23325   ;
23326   return 0;
23327 }
23328 _ACEOF
23329 rm -f conftest.$ac_objext conftest$ac_exeext
23330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331   (eval $ac_link) 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } &&
23338          { ac_try='test -z "$ac_c_werror_flag"
23339                          || test ! -s conftest.err'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; } &&
23345          { ac_try='test -s conftest$ac_exeext'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; }; then
23351   ac_cv_func_dlopen=yes
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356 ac_cv_func_dlopen=no
23357 fi
23358 rm -f conftest.err conftest.$ac_objext \
23359       conftest$ac_exeext conftest.$ac_ext
23360 fi
23361 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23362 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23363 if test $ac_cv_func_dlopen = yes; then
23364   lt_cv_dlopen="dlopen"
23365 else
23366   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23367 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23369   echo $ECHO_N "(cached) $ECHO_C" >&6
23370 else
23371   ac_check_lib_save_LIBS=$LIBS
23372 LIBS="-ldl  $LIBS"
23373 cat >conftest.$ac_ext <<_ACEOF
23374 /* confdefs.h.  */
23375 _ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h.  */
23379
23380 /* Override any gcc2 internal prototype to avoid an error.  */
23381 #ifdef __cplusplus
23382 extern "C"
23383 #endif
23384 /* We use char because int might match the return type of a gcc2
23385    builtin and then its argument prototype would still apply.  */
23386 char dlopen ();
23387 int
23388 main ()
23389 {
23390 dlopen ();
23391   ;
23392   return 0;
23393 }
23394 _ACEOF
23395 rm -f conftest.$ac_objext conftest$ac_exeext
23396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23397   (eval $ac_link) 2>conftest.er1
23398   ac_status=$?
23399   grep -v '^ *+' conftest.er1 >conftest.err
23400   rm -f conftest.er1
23401   cat conftest.err >&5
23402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); } &&
23404          { ac_try='test -z "$ac_c_werror_flag"
23405                          || test ! -s conftest.err'
23406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407   (eval $ac_try) 2>&5
23408   ac_status=$?
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); }; } &&
23411          { ac_try='test -s conftest$ac_exeext'
23412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413   (eval $ac_try) 2>&5
23414   ac_status=$?
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); }; }; then
23417   ac_cv_lib_dl_dlopen=yes
23418 else
23419   echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23421
23422 ac_cv_lib_dl_dlopen=no
23423 fi
23424 rm -f conftest.err conftest.$ac_objext \
23425       conftest$ac_exeext conftest.$ac_ext
23426 LIBS=$ac_check_lib_save_LIBS
23427 fi
23428 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23429 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23430 if test $ac_cv_lib_dl_dlopen = yes; then
23431   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23432 else
23433   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23434 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23435 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23436   echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438   ac_check_lib_save_LIBS=$LIBS
23439 LIBS="-lsvld  $LIBS"
23440 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h.  */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h.  */
23446
23447 /* Override any gcc2 internal prototype to avoid an error.  */
23448 #ifdef __cplusplus
23449 extern "C"
23450 #endif
23451 /* We use char because int might match the return type of a gcc2
23452    builtin and then its argument prototype would still apply.  */
23453 char dlopen ();
23454 int
23455 main ()
23456 {
23457 dlopen ();
23458   ;
23459   return 0;
23460 }
23461 _ACEOF
23462 rm -f conftest.$ac_objext conftest$ac_exeext
23463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23464   (eval $ac_link) 2>conftest.er1
23465   ac_status=$?
23466   grep -v '^ *+' conftest.er1 >conftest.err
23467   rm -f conftest.er1
23468   cat conftest.err >&5
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); } &&
23471          { ac_try='test -z "$ac_c_werror_flag"
23472                          || test ! -s conftest.err'
23473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474   (eval $ac_try) 2>&5
23475   ac_status=$?
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); }; } &&
23478          { ac_try='test -s conftest$ac_exeext'
23479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23480   (eval $ac_try) 2>&5
23481   ac_status=$?
23482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483   (exit $ac_status); }; }; then
23484   ac_cv_lib_svld_dlopen=yes
23485 else
23486   echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23488
23489 ac_cv_lib_svld_dlopen=no
23490 fi
23491 rm -f conftest.err conftest.$ac_objext \
23492       conftest$ac_exeext conftest.$ac_ext
23493 LIBS=$ac_check_lib_save_LIBS
23494 fi
23495 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23496 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23497 if test $ac_cv_lib_svld_dlopen = yes; then
23498   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23499 else
23500   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23501 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23502 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23503   echo $ECHO_N "(cached) $ECHO_C" >&6
23504 else
23505   ac_check_lib_save_LIBS=$LIBS
23506 LIBS="-ldld  $LIBS"
23507 cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513
23514 /* Override any gcc2 internal prototype to avoid an error.  */
23515 #ifdef __cplusplus
23516 extern "C"
23517 #endif
23518 /* We use char because int might match the return type of a gcc2
23519    builtin and then its argument prototype would still apply.  */
23520 char dld_link ();
23521 int
23522 main ()
23523 {
23524 dld_link ();
23525   ;
23526   return 0;
23527 }
23528 _ACEOF
23529 rm -f conftest.$ac_objext conftest$ac_exeext
23530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23531   (eval $ac_link) 2>conftest.er1
23532   ac_status=$?
23533   grep -v '^ *+' conftest.er1 >conftest.err
23534   rm -f conftest.er1
23535   cat conftest.err >&5
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); } &&
23538          { ac_try='test -z "$ac_c_werror_flag"
23539                          || test ! -s conftest.err'
23540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541   (eval $ac_try) 2>&5
23542   ac_status=$?
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); }; } &&
23545          { ac_try='test -s conftest$ac_exeext'
23546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547   (eval $ac_try) 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); }; }; then
23551   ac_cv_lib_dld_dld_link=yes
23552 else
23553   echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23555
23556 ac_cv_lib_dld_dld_link=no
23557 fi
23558 rm -f conftest.err conftest.$ac_objext \
23559       conftest$ac_exeext conftest.$ac_ext
23560 LIBS=$ac_check_lib_save_LIBS
23561 fi
23562 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23563 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23564 if test $ac_cv_lib_dld_dld_link = yes; then
23565   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23566 fi
23567
23568
23569 fi
23570
23571
23572 fi
23573
23574
23575 fi
23576
23577
23578 fi
23579
23580
23581 fi
23582
23583     ;;
23584   esac
23585
23586   if test "x$lt_cv_dlopen" != xno; then
23587     enable_dlopen=yes
23588   else
23589     enable_dlopen=no
23590   fi
23591
23592   case $lt_cv_dlopen in
23593   dlopen)
23594     save_CPPFLAGS="$CPPFLAGS"
23595     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23596
23597     save_LDFLAGS="$LDFLAGS"
23598     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23599
23600     save_LIBS="$LIBS"
23601     LIBS="$lt_cv_dlopen_libs $LIBS"
23602
23603     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23604 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23605 if test "${lt_cv_dlopen_self+set}" = set; then
23606   echo $ECHO_N "(cached) $ECHO_C" >&6
23607 else
23608           if test "$cross_compiling" = yes; then :
23609   lt_cv_dlopen_self=cross
23610 else
23611   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23612   lt_status=$lt_dlunknown
23613   cat > conftest.$ac_ext <<EOF
23614 #line 23614 "configure"
23615 #include "confdefs.h"
23616
23617 #if HAVE_DLFCN_H
23618 #include <dlfcn.h>
23619 #endif
23620
23621 #include <stdio.h>
23622
23623 #ifdef RTLD_GLOBAL
23624 #  define LT_DLGLOBAL           RTLD_GLOBAL
23625 #else
23626 #  ifdef DL_GLOBAL
23627 #    define LT_DLGLOBAL         DL_GLOBAL
23628 #  else
23629 #    define LT_DLGLOBAL         0
23630 #  endif
23631 #endif
23632
23633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23634    find out it does not work in some platform. */
23635 #ifndef LT_DLLAZY_OR_NOW
23636 #  ifdef RTLD_LAZY
23637 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23638 #  else
23639 #    ifdef DL_LAZY
23640 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23641 #    else
23642 #      ifdef RTLD_NOW
23643 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23644 #      else
23645 #        ifdef DL_NOW
23646 #          define LT_DLLAZY_OR_NOW      DL_NOW
23647 #        else
23648 #          define LT_DLLAZY_OR_NOW      0
23649 #        endif
23650 #      endif
23651 #    endif
23652 #  endif
23653 #endif
23654
23655 #ifdef __cplusplus
23656 extern "C" void exit (int);
23657 #endif
23658
23659 void fnord() { int i=42;}
23660 int main ()
23661 {
23662   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23663   int status = $lt_dlunknown;
23664
23665   if (self)
23666     {
23667       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23668       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23669       /* dlclose (self); */
23670     }
23671
23672     exit (status);
23673 }
23674 EOF
23675   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23676   (eval $ac_link) 2>&5
23677   ac_status=$?
23678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23680     (./conftest; exit; ) 2>/dev/null
23681     lt_status=$?
23682     case x$lt_status in
23683       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23684       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23685       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23686     esac
23687   else :
23688     # compilation failed
23689     lt_cv_dlopen_self=no
23690   fi
23691 fi
23692 rm -fr conftest*
23693
23694
23695 fi
23696 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23697 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23698
23699     if test "x$lt_cv_dlopen_self" = xyes; then
23700       LDFLAGS="$LDFLAGS $link_static_flag"
23701       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23702 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23703 if test "${lt_cv_dlopen_self_static+set}" = set; then
23704   echo $ECHO_N "(cached) $ECHO_C" >&6
23705 else
23706           if test "$cross_compiling" = yes; then :
23707   lt_cv_dlopen_self_static=cross
23708 else
23709   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23710   lt_status=$lt_dlunknown
23711   cat > conftest.$ac_ext <<EOF
23712 #line 23712 "configure"
23713 #include "confdefs.h"
23714
23715 #if HAVE_DLFCN_H
23716 #include <dlfcn.h>
23717 #endif
23718
23719 #include <stdio.h>
23720
23721 #ifdef RTLD_GLOBAL
23722 #  define LT_DLGLOBAL           RTLD_GLOBAL
23723 #else
23724 #  ifdef DL_GLOBAL
23725 #    define LT_DLGLOBAL         DL_GLOBAL
23726 #  else
23727 #    define LT_DLGLOBAL         0
23728 #  endif
23729 #endif
23730
23731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23732    find out it does not work in some platform. */
23733 #ifndef LT_DLLAZY_OR_NOW
23734 #  ifdef RTLD_LAZY
23735 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23736 #  else
23737 #    ifdef DL_LAZY
23738 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23739 #    else
23740 #      ifdef RTLD_NOW
23741 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23742 #      else
23743 #        ifdef DL_NOW
23744 #          define LT_DLLAZY_OR_NOW      DL_NOW
23745 #        else
23746 #          define LT_DLLAZY_OR_NOW      0
23747 #        endif
23748 #      endif
23749 #    endif
23750 #  endif
23751 #endif
23752
23753 #ifdef __cplusplus
23754 extern "C" void exit (int);
23755 #endif
23756
23757 void fnord() { int i=42;}
23758 int main ()
23759 {
23760   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23761   int status = $lt_dlunknown;
23762
23763   if (self)
23764     {
23765       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23766       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23767       /* dlclose (self); */
23768     }
23769
23770     exit (status);
23771 }
23772 EOF
23773   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23774   (eval $ac_link) 2>&5
23775   ac_status=$?
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23778     (./conftest; exit; ) 2>/dev/null
23779     lt_status=$?
23780     case x$lt_status in
23781       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23782       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23783       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23784     esac
23785   else :
23786     # compilation failed
23787     lt_cv_dlopen_self_static=no
23788   fi
23789 fi
23790 rm -fr conftest*
23791
23792
23793 fi
23794 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23795 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23796     fi
23797
23798     CPPFLAGS="$save_CPPFLAGS"
23799     LDFLAGS="$save_LDFLAGS"
23800     LIBS="$save_LIBS"
23801     ;;
23802   esac
23803
23804   case $lt_cv_dlopen_self in
23805   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23806   *) enable_dlopen_self=unknown ;;
23807   esac
23808
23809   case $lt_cv_dlopen_self_static in
23810   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23811   *) enable_dlopen_self_static=unknown ;;
23812   esac
23813 fi
23814
23815
23816 # The else clause should only fire when bootstrapping the
23817 # libtool distribution, otherwise you forgot to ship ltmain.sh
23818 # with your package, and you will get complaints that there are
23819 # no rules to generate ltmain.sh.
23820 if test -f "$ltmain"; then
23821   # See if we are running on zsh, and set the options which allow our commands through
23822   # without removal of \ escapes.
23823   if test -n "${ZSH_VERSION+set}" ; then
23824     setopt NO_GLOB_SUBST
23825   fi
23826   # Now quote all the things that may contain metacharacters while being
23827   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23828   # variables and quote the copies for generation of the libtool script.
23829   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23830     SED SHELL STRIP \
23831     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23832     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23833     deplibs_check_method reload_flag reload_cmds need_locks \
23834     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23835     lt_cv_sys_global_symbol_to_c_name_address \
23836     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23837     old_postinstall_cmds old_postuninstall_cmds \
23838     compiler_GCJ \
23839     CC_GCJ \
23840     LD_GCJ \
23841     lt_prog_compiler_wl_GCJ \
23842     lt_prog_compiler_pic_GCJ \
23843     lt_prog_compiler_static_GCJ \
23844     lt_prog_compiler_no_builtin_flag_GCJ \
23845     export_dynamic_flag_spec_GCJ \
23846     thread_safe_flag_spec_GCJ \
23847     whole_archive_flag_spec_GCJ \
23848     enable_shared_with_static_runtimes_GCJ \
23849     old_archive_cmds_GCJ \
23850     old_archive_from_new_cmds_GCJ \
23851     predep_objects_GCJ \
23852     postdep_objects_GCJ \
23853     predeps_GCJ \
23854     postdeps_GCJ \
23855     compiler_lib_search_path_GCJ \
23856     archive_cmds_GCJ \
23857     archive_expsym_cmds_GCJ \
23858     postinstall_cmds_GCJ \
23859     postuninstall_cmds_GCJ \
23860     old_archive_from_expsyms_cmds_GCJ \
23861     allow_undefined_flag_GCJ \
23862     no_undefined_flag_GCJ \
23863     export_symbols_cmds_GCJ \
23864     hardcode_libdir_flag_spec_GCJ \
23865     hardcode_libdir_flag_spec_ld_GCJ \
23866     hardcode_libdir_separator_GCJ \
23867     hardcode_automatic_GCJ \
23868     module_cmds_GCJ \
23869     module_expsym_cmds_GCJ \
23870     lt_cv_prog_compiler_c_o_GCJ \
23871     exclude_expsyms_GCJ \
23872     include_expsyms_GCJ; do
23873
23874     case $var in
23875     old_archive_cmds_GCJ | \
23876     old_archive_from_new_cmds_GCJ | \
23877     archive_cmds_GCJ | \
23878     archive_expsym_cmds_GCJ | \
23879     module_cmds_GCJ | \
23880     module_expsym_cmds_GCJ | \
23881     old_archive_from_expsyms_cmds_GCJ | \
23882     export_symbols_cmds_GCJ | \
23883     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23884     postinstall_cmds | postuninstall_cmds | \
23885     old_postinstall_cmds | old_postuninstall_cmds | \
23886     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23887       # Double-quote double-evaled strings.
23888       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23889       ;;
23890     *)
23891       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23892       ;;
23893     esac
23894   done
23895
23896   case $lt_echo in
23897   *'\$0 --fallback-echo"')
23898     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23899     ;;
23900   esac
23901
23902 cfgfile="$ofile"
23903
23904   cat <<__EOF__ >> "$cfgfile"
23905 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23906
23907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23908
23909 # Shell to use when invoking shell scripts.
23910 SHELL=$lt_SHELL
23911
23912 # Whether or not to build shared libraries.
23913 build_libtool_libs=$enable_shared
23914
23915 # Whether or not to build static libraries.
23916 build_old_libs=$enable_static
23917
23918 # Whether or not to add -lc for building shared libraries.
23919 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23920
23921 # Whether or not to disallow shared libs when runtime libs are static
23922 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23923
23924 # Whether or not to optimize for fast installation.
23925 fast_install=$enable_fast_install
23926
23927 # The host system.
23928 host_alias=$host_alias
23929 host=$host
23930
23931 # An echo program that does not interpret backslashes.
23932 echo=$lt_echo
23933
23934 # The archiver.
23935 AR=$lt_AR
23936 AR_FLAGS=$lt_AR_FLAGS
23937
23938 # A C compiler.
23939 LTCC=$lt_LTCC
23940
23941 # A language-specific compiler.
23942 CC=$lt_compiler_GCJ
23943
23944 # Is the compiler the GNU C compiler?
23945 with_gcc=$GCC_GCJ
23946
23947 # An ERE matcher.
23948 EGREP=$lt_EGREP
23949
23950 # The linker used to build libraries.
23951 LD=$lt_LD_GCJ
23952
23953 # Whether we need hard or soft links.
23954 LN_S=$lt_LN_S
23955
23956 # A BSD-compatible nm program.
23957 NM=$lt_NM
23958
23959 # A symbol stripping program
23960 STRIP=$lt_STRIP
23961
23962 # Used to examine libraries when file_magic_cmd begins "file"
23963 MAGIC_CMD=$MAGIC_CMD
23964
23965 # Used on cygwin: DLL creation program.
23966 DLLTOOL="$DLLTOOL"
23967
23968 # Used on cygwin: object dumper.
23969 OBJDUMP="$OBJDUMP"
23970
23971 # Used on cygwin: assembler.
23972 AS="$AS"
23973
23974 # The name of the directory that contains temporary libtool files.
23975 objdir=$objdir
23976
23977 # How to create reloadable object files.
23978 reload_flag=$lt_reload_flag
23979 reload_cmds=$lt_reload_cmds
23980
23981 # How to pass a linker flag through the compiler.
23982 wl=$lt_lt_prog_compiler_wl_GCJ
23983
23984 # Object file suffix (normally "o").
23985 objext="$ac_objext"
23986
23987 # Old archive suffix (normally "a").
23988 libext="$libext"
23989
23990 # Shared library suffix (normally ".so").
23991 shrext_cmds='$shrext_cmds'
23992
23993 # Executable file suffix (normally "").
23994 exeext="$exeext"
23995
23996 # Additional compiler flags for building library objects.
23997 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23998 pic_mode=$pic_mode
23999
24000 # What is the maximum length of a command?
24001 max_cmd_len=$lt_cv_sys_max_cmd_len
24002
24003 # Does compiler simultaneously support -c and -o options?
24004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24005
24006 # Must we lock files when doing compilation ?
24007 need_locks=$lt_need_locks
24008
24009 # Do we need the lib prefix for modules?
24010 need_lib_prefix=$need_lib_prefix
24011
24012 # Do we need a version for libraries?
24013 need_version=$need_version
24014
24015 # Whether dlopen is supported.
24016 dlopen_support=$enable_dlopen
24017
24018 # Whether dlopen of programs is supported.
24019 dlopen_self=$enable_dlopen_self
24020
24021 # Whether dlopen of statically linked programs is supported.
24022 dlopen_self_static=$enable_dlopen_self_static
24023
24024 # Compiler flag to prevent dynamic linking.
24025 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24026
24027 # Compiler flag to turn off builtin functions.
24028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24029
24030 # Compiler flag to allow reflexive dlopens.
24031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24032
24033 # Compiler flag to generate shared objects directly from archives.
24034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24035
24036 # Compiler flag to generate thread-safe objects.
24037 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24038
24039 # Library versioning type.
24040 version_type=$version_type
24041
24042 # Format of library name prefix.
24043 libname_spec=$lt_libname_spec
24044
24045 # List of archive names.  First name is the real one, the rest are links.
24046 # The last name is the one that the linker finds with -lNAME.
24047 library_names_spec=$lt_library_names_spec
24048
24049 # The coded name of the library, if different from the real name.
24050 soname_spec=$lt_soname_spec
24051
24052 # Commands used to build and install an old-style archive.
24053 RANLIB=$lt_RANLIB
24054 old_archive_cmds=$lt_old_archive_cmds_GCJ
24055 old_postinstall_cmds=$lt_old_postinstall_cmds
24056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24057
24058 # Create an old-style archive from a shared archive.
24059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24060
24061 # Create a temporary old-style archive to link instead of a shared archive.
24062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24063
24064 # Commands used to build and install a shared archive.
24065 archive_cmds=$lt_archive_cmds_GCJ
24066 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24067 postinstall_cmds=$lt_postinstall_cmds
24068 postuninstall_cmds=$lt_postuninstall_cmds
24069
24070 # Commands used to build a loadable module (assumed same as above if empty)
24071 module_cmds=$lt_module_cmds_GCJ
24072 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24073
24074 # Commands to strip libraries.
24075 old_striplib=$lt_old_striplib
24076 striplib=$lt_striplib
24077
24078 # Dependencies to place before the objects being linked to create a
24079 # shared library.
24080 predep_objects=$lt_predep_objects_GCJ
24081
24082 # Dependencies to place after the objects being linked to create a
24083 # shared library.
24084 postdep_objects=$lt_postdep_objects_GCJ
24085
24086 # Dependencies to place before the objects being linked to create a
24087 # shared library.
24088 predeps=$lt_predeps_GCJ
24089
24090 # Dependencies to place after the objects being linked to create a
24091 # shared library.
24092 postdeps=$lt_postdeps_GCJ
24093
24094 # The library search path used internally by the compiler when linking
24095 # a shared library.
24096 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24097
24098 # Method to check whether dependent libraries are shared objects.
24099 deplibs_check_method=$lt_deplibs_check_method
24100
24101 # Command to use when deplibs_check_method == file_magic.
24102 file_magic_cmd=$lt_file_magic_cmd
24103
24104 # Flag that allows shared libraries with undefined symbols to be built.
24105 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24106
24107 # Flag that forces no undefined symbols.
24108 no_undefined_flag=$lt_no_undefined_flag_GCJ
24109
24110 # Commands used to finish a libtool library installation in a directory.
24111 finish_cmds=$lt_finish_cmds
24112
24113 # Same as above, but a single script fragment to be evaled but not shown.
24114 finish_eval=$lt_finish_eval
24115
24116 # Take the output of nm and produce a listing of raw symbols and C names.
24117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24118
24119 # Transform the output of nm in a proper C declaration
24120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24121
24122 # Transform the output of nm in a C name address pair
24123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24124
24125 # This is the shared library runtime path variable.
24126 runpath_var=$runpath_var
24127
24128 # This is the shared library path variable.
24129 shlibpath_var=$shlibpath_var
24130
24131 # Is shlibpath searched before the hard-coded library search path?
24132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24133
24134 # How to hardcode a shared library path into an executable.
24135 hardcode_action=$hardcode_action_GCJ
24136
24137 # Whether we should hardcode library paths into libraries.
24138 hardcode_into_libs=$hardcode_into_libs
24139
24140 # Flag to hardcode \$libdir into a binary during linking.
24141 # This must work even if \$libdir does not exist.
24142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24143
24144 # If ld is used when linking, flag to hardcode \$libdir into
24145 # a binary during linking. This must work even if \$libdir does
24146 # not exist.
24147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24148
24149 # Whether we need a single -rpath flag with a separated argument.
24150 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24151
24152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24153 # resulting binary.
24154 hardcode_direct=$hardcode_direct_GCJ
24155
24156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24157 # resulting binary.
24158 hardcode_minus_L=$hardcode_minus_L_GCJ
24159
24160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24161 # the resulting binary.
24162 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24163
24164 # Set to yes if building a shared library automatically hardcodes DIR into the library
24165 # and all subsequent libraries and executables linked against it.
24166 hardcode_automatic=$hardcode_automatic_GCJ
24167
24168 # Variables whose values should be saved in libtool wrapper scripts and
24169 # restored at relink time.
24170 variables_saved_for_relink="$variables_saved_for_relink"
24171
24172 # Whether libtool must link a program against all its dependency libraries.
24173 link_all_deplibs=$link_all_deplibs_GCJ
24174
24175 # Compile-time system search path for libraries
24176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24177
24178 # Run-time system search path for libraries
24179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24180
24181 # Fix the shell variable \$srcfile for the compiler.
24182 fix_srcfile_path="$fix_srcfile_path_GCJ"
24183
24184 # Set to yes if exported symbols are required.
24185 always_export_symbols=$always_export_symbols_GCJ
24186
24187 # The commands to list exported symbols.
24188 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24189
24190 # The commands to extract the exported symbol list from a shared archive.
24191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24192
24193 # Symbols that should not be listed in the preloaded symbols.
24194 exclude_expsyms=$lt_exclude_expsyms_GCJ
24195
24196 # Symbols that must always be exported.
24197 include_expsyms=$lt_include_expsyms_GCJ
24198
24199 # ### END LIBTOOL TAG CONFIG: $tagname
24200
24201 __EOF__
24202
24203
24204 else
24205   # If there is no Makefile yet, we rely on a make rule to execute
24206   # `config.status --recheck' to rerun these tests and create the
24207   # libtool script then.
24208   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24209   if test -f "$ltmain_in"; then
24210     test -f Makefile && make "$ltmain"
24211   fi
24212 fi
24213
24214
24215 ac_ext=c
24216 ac_cpp='$CPP $CPPFLAGS'
24217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24220
24221 CC="$lt_save_CC"
24222
24223         else
24224           tagname=""
24225         fi
24226         ;;
24227
24228       RC)
24229         ac_ext=c
24230 ac_cpp='$CPP $CPPFLAGS'
24231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24234
24235
24236 # Source file extension for RC test sources.
24237 ac_ext=rc
24238
24239 # Object file extension for compiled RC test sources.
24240 objext=o
24241 objext_RC=$objext
24242
24243 # Code to be used in simple compile tests
24244 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24245
24246 # Code to be used in simple link tests
24247 lt_simple_link_test_code="$lt_simple_compile_test_code"
24248
24249 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24250
24251 # If no C compiler was specified, use CC.
24252 LTCC=${LTCC-"$CC"}
24253
24254 # Allow CC to be a program name with arguments.
24255 compiler=$CC
24256
24257
24258 # Allow CC to be a program name with arguments.
24259 lt_save_CC="$CC"
24260 CC=${RC-"windres"}
24261 compiler=$CC
24262 compiler_RC=$CC
24263 lt_cv_prog_compiler_c_o_RC=yes
24264
24265 # The else clause should only fire when bootstrapping the
24266 # libtool distribution, otherwise you forgot to ship ltmain.sh
24267 # with your package, and you will get complaints that there are
24268 # no rules to generate ltmain.sh.
24269 if test -f "$ltmain"; then
24270   # See if we are running on zsh, and set the options which allow our commands through
24271   # without removal of \ escapes.
24272   if test -n "${ZSH_VERSION+set}" ; then
24273     setopt NO_GLOB_SUBST
24274   fi
24275   # Now quote all the things that may contain metacharacters while being
24276   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24277   # variables and quote the copies for generation of the libtool script.
24278   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24279     SED SHELL STRIP \
24280     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24281     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24282     deplibs_check_method reload_flag reload_cmds need_locks \
24283     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24284     lt_cv_sys_global_symbol_to_c_name_address \
24285     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24286     old_postinstall_cmds old_postuninstall_cmds \
24287     compiler_RC \
24288     CC_RC \
24289     LD_RC \
24290     lt_prog_compiler_wl_RC \
24291     lt_prog_compiler_pic_RC \
24292     lt_prog_compiler_static_RC \
24293     lt_prog_compiler_no_builtin_flag_RC \
24294     export_dynamic_flag_spec_RC \
24295     thread_safe_flag_spec_RC \
24296     whole_archive_flag_spec_RC \
24297     enable_shared_with_static_runtimes_RC \
24298     old_archive_cmds_RC \
24299     old_archive_from_new_cmds_RC \
24300     predep_objects_RC \
24301     postdep_objects_RC \
24302     predeps_RC \
24303     postdeps_RC \
24304     compiler_lib_search_path_RC \
24305     archive_cmds_RC \
24306     archive_expsym_cmds_RC \
24307     postinstall_cmds_RC \
24308     postuninstall_cmds_RC \
24309     old_archive_from_expsyms_cmds_RC \
24310     allow_undefined_flag_RC \
24311     no_undefined_flag_RC \
24312     export_symbols_cmds_RC \
24313     hardcode_libdir_flag_spec_RC \
24314     hardcode_libdir_flag_spec_ld_RC \
24315     hardcode_libdir_separator_RC \
24316     hardcode_automatic_RC \
24317     module_cmds_RC \
24318     module_expsym_cmds_RC \
24319     lt_cv_prog_compiler_c_o_RC \
24320     exclude_expsyms_RC \
24321     include_expsyms_RC; do
24322
24323     case $var in
24324     old_archive_cmds_RC | \
24325     old_archive_from_new_cmds_RC | \
24326     archive_cmds_RC | \
24327     archive_expsym_cmds_RC | \
24328     module_cmds_RC | \
24329     module_expsym_cmds_RC | \
24330     old_archive_from_expsyms_cmds_RC | \
24331     export_symbols_cmds_RC | \
24332     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24333     postinstall_cmds | postuninstall_cmds | \
24334     old_postinstall_cmds | old_postuninstall_cmds | \
24335     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24336       # Double-quote double-evaled strings.
24337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24338       ;;
24339     *)
24340       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24341       ;;
24342     esac
24343   done
24344
24345   case $lt_echo in
24346   *'\$0 --fallback-echo"')
24347     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24348     ;;
24349   esac
24350
24351 cfgfile="$ofile"
24352
24353   cat <<__EOF__ >> "$cfgfile"
24354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24355
24356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24357
24358 # Shell to use when invoking shell scripts.
24359 SHELL=$lt_SHELL
24360
24361 # Whether or not to build shared libraries.
24362 build_libtool_libs=$enable_shared
24363
24364 # Whether or not to build static libraries.
24365 build_old_libs=$enable_static
24366
24367 # Whether or not to add -lc for building shared libraries.
24368 build_libtool_need_lc=$archive_cmds_need_lc_RC
24369
24370 # Whether or not to disallow shared libs when runtime libs are static
24371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24372
24373 # Whether or not to optimize for fast installation.
24374 fast_install=$enable_fast_install
24375
24376 # The host system.
24377 host_alias=$host_alias
24378 host=$host
24379
24380 # An echo program that does not interpret backslashes.
24381 echo=$lt_echo
24382
24383 # The archiver.
24384 AR=$lt_AR
24385 AR_FLAGS=$lt_AR_FLAGS
24386
24387 # A C compiler.
24388 LTCC=$lt_LTCC
24389
24390 # A language-specific compiler.
24391 CC=$lt_compiler_RC
24392
24393 # Is the compiler the GNU C compiler?
24394 with_gcc=$GCC_RC
24395
24396 # An ERE matcher.
24397 EGREP=$lt_EGREP
24398
24399 # The linker used to build libraries.
24400 LD=$lt_LD_RC
24401
24402 # Whether we need hard or soft links.
24403 LN_S=$lt_LN_S
24404
24405 # A BSD-compatible nm program.
24406 NM=$lt_NM
24407
24408 # A symbol stripping program
24409 STRIP=$lt_STRIP
24410
24411 # Used to examine libraries when file_magic_cmd begins "file"
24412 MAGIC_CMD=$MAGIC_CMD
24413
24414 # Used on cygwin: DLL creation program.
24415 DLLTOOL="$DLLTOOL"
24416
24417 # Used on cygwin: object dumper.
24418 OBJDUMP="$OBJDUMP"
24419
24420 # Used on cygwin: assembler.
24421 AS="$AS"
24422
24423 # The name of the directory that contains temporary libtool files.
24424 objdir=$objdir
24425
24426 # How to create reloadable object files.
24427 reload_flag=$lt_reload_flag
24428 reload_cmds=$lt_reload_cmds
24429
24430 # How to pass a linker flag through the compiler.
24431 wl=$lt_lt_prog_compiler_wl_RC
24432
24433 # Object file suffix (normally "o").
24434 objext="$ac_objext"
24435
24436 # Old archive suffix (normally "a").
24437 libext="$libext"
24438
24439 # Shared library suffix (normally ".so").
24440 shrext_cmds='$shrext_cmds'
24441
24442 # Executable file suffix (normally "").
24443 exeext="$exeext"
24444
24445 # Additional compiler flags for building library objects.
24446 pic_flag=$lt_lt_prog_compiler_pic_RC
24447 pic_mode=$pic_mode
24448
24449 # What is the maximum length of a command?
24450 max_cmd_len=$lt_cv_sys_max_cmd_len
24451
24452 # Does compiler simultaneously support -c and -o options?
24453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24454
24455 # Must we lock files when doing compilation ?
24456 need_locks=$lt_need_locks
24457
24458 # Do we need the lib prefix for modules?
24459 need_lib_prefix=$need_lib_prefix
24460
24461 # Do we need a version for libraries?
24462 need_version=$need_version
24463
24464 # Whether dlopen is supported.
24465 dlopen_support=$enable_dlopen
24466
24467 # Whether dlopen of programs is supported.
24468 dlopen_self=$enable_dlopen_self
24469
24470 # Whether dlopen of statically linked programs is supported.
24471 dlopen_self_static=$enable_dlopen_self_static
24472
24473 # Compiler flag to prevent dynamic linking.
24474 link_static_flag=$lt_lt_prog_compiler_static_RC
24475
24476 # Compiler flag to turn off builtin functions.
24477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24478
24479 # Compiler flag to allow reflexive dlopens.
24480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24481
24482 # Compiler flag to generate shared objects directly from archives.
24483 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24484
24485 # Compiler flag to generate thread-safe objects.
24486 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24487
24488 # Library versioning type.
24489 version_type=$version_type
24490
24491 # Format of library name prefix.
24492 libname_spec=$lt_libname_spec
24493
24494 # List of archive names.  First name is the real one, the rest are links.
24495 # The last name is the one that the linker finds with -lNAME.
24496 library_names_spec=$lt_library_names_spec
24497
24498 # The coded name of the library, if different from the real name.
24499 soname_spec=$lt_soname_spec
24500
24501 # Commands used to build and install an old-style archive.
24502 RANLIB=$lt_RANLIB
24503 old_archive_cmds=$lt_old_archive_cmds_RC
24504 old_postinstall_cmds=$lt_old_postinstall_cmds
24505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24506
24507 # Create an old-style archive from a shared archive.
24508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24509
24510 # Create a temporary old-style archive to link instead of a shared archive.
24511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24512
24513 # Commands used to build and install a shared archive.
24514 archive_cmds=$lt_archive_cmds_RC
24515 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24516 postinstall_cmds=$lt_postinstall_cmds
24517 postuninstall_cmds=$lt_postuninstall_cmds
24518
24519 # Commands used to build a loadable module (assumed same as above if empty)
24520 module_cmds=$lt_module_cmds_RC
24521 module_expsym_cmds=$lt_module_expsym_cmds_RC
24522
24523 # Commands to strip libraries.
24524 old_striplib=$lt_old_striplib
24525 striplib=$lt_striplib
24526
24527 # Dependencies to place before the objects being linked to create a
24528 # shared library.
24529 predep_objects=$lt_predep_objects_RC
24530
24531 # Dependencies to place after the objects being linked to create a
24532 # shared library.
24533 postdep_objects=$lt_postdep_objects_RC
24534
24535 # Dependencies to place before the objects being linked to create a
24536 # shared library.
24537 predeps=$lt_predeps_RC
24538
24539 # Dependencies to place after the objects being linked to create a
24540 # shared library.
24541 postdeps=$lt_postdeps_RC
24542
24543 # The library search path used internally by the compiler when linking
24544 # a shared library.
24545 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24546
24547 # Method to check whether dependent libraries are shared objects.
24548 deplibs_check_method=$lt_deplibs_check_method
24549
24550 # Command to use when deplibs_check_method == file_magic.
24551 file_magic_cmd=$lt_file_magic_cmd
24552
24553 # Flag that allows shared libraries with undefined symbols to be built.
24554 allow_undefined_flag=$lt_allow_undefined_flag_RC
24555
24556 # Flag that forces no undefined symbols.
24557 no_undefined_flag=$lt_no_undefined_flag_RC
24558
24559 # Commands used to finish a libtool library installation in a directory.
24560 finish_cmds=$lt_finish_cmds
24561
24562 # Same as above, but a single script fragment to be evaled but not shown.
24563 finish_eval=$lt_finish_eval
24564
24565 # Take the output of nm and produce a listing of raw symbols and C names.
24566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24567
24568 # Transform the output of nm in a proper C declaration
24569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24570
24571 # Transform the output of nm in a C name address pair
24572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24573
24574 # This is the shared library runtime path variable.
24575 runpath_var=$runpath_var
24576
24577 # This is the shared library path variable.
24578 shlibpath_var=$shlibpath_var
24579
24580 # Is shlibpath searched before the hard-coded library search path?
24581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24582
24583 # How to hardcode a shared library path into an executable.
24584 hardcode_action=$hardcode_action_RC
24585
24586 # Whether we should hardcode library paths into libraries.
24587 hardcode_into_libs=$hardcode_into_libs
24588
24589 # Flag to hardcode \$libdir into a binary during linking.
24590 # This must work even if \$libdir does not exist.
24591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24592
24593 # If ld is used when linking, flag to hardcode \$libdir into
24594 # a binary during linking. This must work even if \$libdir does
24595 # not exist.
24596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24597
24598 # Whether we need a single -rpath flag with a separated argument.
24599 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24600
24601 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24602 # resulting binary.
24603 hardcode_direct=$hardcode_direct_RC
24604
24605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24606 # resulting binary.
24607 hardcode_minus_L=$hardcode_minus_L_RC
24608
24609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24610 # the resulting binary.
24611 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24612
24613 # Set to yes if building a shared library automatically hardcodes DIR into the library
24614 # and all subsequent libraries and executables linked against it.
24615 hardcode_automatic=$hardcode_automatic_RC
24616
24617 # Variables whose values should be saved in libtool wrapper scripts and
24618 # restored at relink time.
24619 variables_saved_for_relink="$variables_saved_for_relink"
24620
24621 # Whether libtool must link a program against all its dependency libraries.
24622 link_all_deplibs=$link_all_deplibs_RC
24623
24624 # Compile-time system search path for libraries
24625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24626
24627 # Run-time system search path for libraries
24628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24629
24630 # Fix the shell variable \$srcfile for the compiler.
24631 fix_srcfile_path="$fix_srcfile_path_RC"
24632
24633 # Set to yes if exported symbols are required.
24634 always_export_symbols=$always_export_symbols_RC
24635
24636 # The commands to list exported symbols.
24637 export_symbols_cmds=$lt_export_symbols_cmds_RC
24638
24639 # The commands to extract the exported symbol list from a shared archive.
24640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24641
24642 # Symbols that should not be listed in the preloaded symbols.
24643 exclude_expsyms=$lt_exclude_expsyms_RC
24644
24645 # Symbols that must always be exported.
24646 include_expsyms=$lt_include_expsyms_RC
24647
24648 # ### END LIBTOOL TAG CONFIG: $tagname
24649
24650 __EOF__
24651
24652
24653 else
24654   # If there is no Makefile yet, we rely on a make rule to execute
24655   # `config.status --recheck' to rerun these tests and create the
24656   # libtool script then.
24657   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24658   if test -f "$ltmain_in"; then
24659     test -f Makefile && make "$ltmain"
24660   fi
24661 fi
24662
24663
24664 ac_ext=c
24665 ac_cpp='$CPP $CPPFLAGS'
24666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24669
24670 CC="$lt_save_CC"
24671
24672         ;;
24673
24674       *)
24675         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24676 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24677    { (exit 1); exit 1; }; }
24678         ;;
24679       esac
24680
24681       # Append the new tag name to the list of available tags.
24682       if test -n "$tagname" ; then
24683       available_tags="$available_tags $tagname"
24684     fi
24685     fi
24686   done
24687   IFS="$lt_save_ifs"
24688
24689   # Now substitute the updated list of available tags.
24690   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24691     mv "${ofile}T" "$ofile"
24692     chmod +x "$ofile"
24693   else
24694     rm -f "${ofile}T"
24695     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24696 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24697    { (exit 1); exit 1; }; }
24698   fi
24699 fi
24700
24701
24702
24703 # This can be used to rebuild libtool when needed
24704 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24705
24706 # Always use our own libtool.
24707 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24708
24709 # Prevent multiple expansion
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731 if test "$lt_cv_dlopen_self" = "yes" ; then
24732
24733 cat >>confdefs.h <<\_ACEOF
24734 #define CAN_DLOPEN_SELF 1
24735 _ACEOF
24736
24737 fi
24738
24739 etags_version=`$ETAGS --version 2>&1`
24740 case "$etags_version" in
24741         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24742         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24743         *) ETAGSFLAGS="" ;;
24744 esac
24745 ETAGSFLAGS=$ETAGSFLAGS
24746
24747
24748 if test "$WITH_LLVMGCCDIR" = "default" ; then
24749   LLVMGCC="llvm-gcc${EXEEXT}"
24750   LLVMGXX="llvm-g++${EXEEXT}"
24751   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24752 set dummy $LLVMGCC; ac_word=$2
24753 echo "$as_me:$LINENO: checking for $ac_word" >&5
24754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24755 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24756   echo $ECHO_N "(cached) $ECHO_C" >&6
24757 else
24758   case $LLVMGCC in
24759   [\\/]* | ?:[\\/]*)
24760   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24761   ;;
24762   *)
24763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24764 for as_dir in $PATH
24765 do
24766   IFS=$as_save_IFS
24767   test -z "$as_dir" && as_dir=.
24768   for ac_exec_ext in '' $ac_executable_extensions; do
24769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24770     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24772     break 2
24773   fi
24774 done
24775 done
24776
24777   ;;
24778 esac
24779 fi
24780 LLVMGCC=$ac_cv_path_LLVMGCC
24781
24782 if test -n "$LLVMGCC"; then
24783   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24784 echo "${ECHO_T}$LLVMGCC" >&6
24785 else
24786   echo "$as_me:$LINENO: result: no" >&5
24787 echo "${ECHO_T}no" >&6
24788 fi
24789
24790   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24791 set dummy $LLVMGXX; ac_word=$2
24792 echo "$as_me:$LINENO: checking for $ac_word" >&5
24793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24794 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24795   echo $ECHO_N "(cached) $ECHO_C" >&6
24796 else
24797   case $LLVMGXX in
24798   [\\/]* | ?:[\\/]*)
24799   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24800   ;;
24801   *)
24802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24803 for as_dir in $PATH
24804 do
24805   IFS=$as_save_IFS
24806   test -z "$as_dir" && as_dir=.
24807   for ac_exec_ext in '' $ac_executable_extensions; do
24808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24809     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24811     break 2
24812   fi
24813 done
24814 done
24815
24816   ;;
24817 esac
24818 fi
24819 LLVMGXX=$ac_cv_path_LLVMGXX
24820
24821 if test -n "$LLVMGXX"; then
24822   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24823 echo "${ECHO_T}$LLVMGXX" >&6
24824 else
24825   echo "$as_me:$LINENO: result: no" >&5
24826 echo "${ECHO_T}no" >&6
24827 fi
24828
24829 else
24830   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24831   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24832   LLVMGCC=$LLVMGCC
24833
24834   LLVMGXX=$LLVMGXX
24835
24836 fi
24837
24838 echo "$as_me:$LINENO: checking tool compatibility" >&5
24839 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24840
24841 ICC=no
24842 IXX=no
24843 case $CC in
24844   icc*|icpc*)
24845     ICC=yes
24846     IXX=yes
24847     ;;
24848    *)
24849     ;;
24850 esac
24851
24852 if test "$GCC" != "yes" && test "$ICC" != "yes"
24853 then
24854   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24855 echo "$as_me: error: gcc|icc required but not found" >&2;}
24856    { (exit 1); exit 1; }; }
24857 fi
24858
24859 if test "$GXX" != "yes" && test "$IXX" != "yes"
24860 then
24861   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24862 echo "$as_me: error: g++|icc required but not found" >&2;}
24863    { (exit 1); exit 1; }; }
24864 fi
24865
24866 if test "$GCC" = "yes"
24867 then
24868   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24869   if test "$gccmajor" -lt "3"
24870   then
24871     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24872 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24873    { (exit 1); exit 1; }; }
24874   fi
24875 fi
24876
24877 if test -z "$llvm_cv_gnu_make_command"
24878 then
24879   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24880 echo "$as_me: error: GNU Make required but not found" >&2;}
24881    { (exit 1); exit 1; }; }
24882 fi
24883
24884 echo "$as_me:$LINENO: result: ok" >&5
24885 echo "${ECHO_T}ok" >&6
24886
24887
24888
24889 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24890 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24891 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24892   echo $ECHO_N "(cached) $ECHO_C" >&6
24893 else
24894   ac_check_lib_save_LIBS=$LIBS
24895 LIBS="-lelf  $LIBS"
24896 cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902
24903 /* Override any gcc2 internal prototype to avoid an error.  */
24904 #ifdef __cplusplus
24905 extern "C"
24906 #endif
24907 /* We use char because int might match the return type of a gcc2
24908    builtin and then its argument prototype would still apply.  */
24909 char elf_begin ();
24910 int
24911 main ()
24912 {
24913 elf_begin ();
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920   (eval $ac_link) 2>conftest.er1
24921   ac_status=$?
24922   grep -v '^ *+' conftest.er1 >conftest.err
24923   rm -f conftest.er1
24924   cat conftest.err >&5
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); } &&
24927          { ac_try='test -z "$ac_c_werror_flag"
24928                          || test ! -s conftest.err'
24929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930   (eval $ac_try) 2>&5
24931   ac_status=$?
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); }; } &&
24934          { ac_try='test -s conftest$ac_exeext'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; }; then
24940   ac_cv_lib_elf_elf_begin=yes
24941 else
24942   echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945 ac_cv_lib_elf_elf_begin=no
24946 fi
24947 rm -f conftest.err conftest.$ac_objext \
24948       conftest$ac_exeext conftest.$ac_ext
24949 LIBS=$ac_check_lib_save_LIBS
24950 fi
24951 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24952 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24953 if test $ac_cv_lib_elf_elf_begin = yes; then
24954   cat >>confdefs.h <<_ACEOF
24955 #define HAVE_LIBELF 1
24956 _ACEOF
24957
24958   LIBS="-lelf $LIBS"
24959
24960 fi
24961
24962
24963
24964 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24965 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24966 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24967   echo $ECHO_N "(cached) $ECHO_C" >&6
24968 else
24969   ac_func_search_save_LIBS=$LIBS
24970 ac_cv_search_lt_dlopen=no
24971 cat >conftest.$ac_ext <<_ACEOF
24972 /* confdefs.h.  */
24973 _ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h.  */
24977
24978 /* Override any gcc2 internal prototype to avoid an error.  */
24979 #ifdef __cplusplus
24980 extern "C"
24981 #endif
24982 /* We use char because int might match the return type of a gcc2
24983    builtin and then its argument prototype would still apply.  */
24984 char lt_dlopen ();
24985 int
24986 main ()
24987 {
24988 lt_dlopen ();
24989   ;
24990   return 0;
24991 }
24992 _ACEOF
24993 rm -f conftest.$ac_objext conftest$ac_exeext
24994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995   (eval $ac_link) 2>conftest.er1
24996   ac_status=$?
24997   grep -v '^ *+' conftest.er1 >conftest.err
24998   rm -f conftest.er1
24999   cat conftest.err >&5
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); } &&
25002          { ac_try='test -z "$ac_c_werror_flag"
25003                          || test ! -s conftest.err'
25004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005   (eval $ac_try) 2>&5
25006   ac_status=$?
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); }; } &&
25009          { ac_try='test -s conftest$ac_exeext'
25010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; }; then
25015   ac_cv_search_lt_dlopen="none required"
25016 else
25017   echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020 fi
25021 rm -f conftest.err conftest.$ac_objext \
25022       conftest$ac_exeext conftest.$ac_ext
25023 if test "$ac_cv_search_lt_dlopen" = no; then
25024   for ac_lib in ltdl; do
25025     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25026     cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h.  */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h.  */
25032
25033 /* Override any gcc2 internal prototype to avoid an error.  */
25034 #ifdef __cplusplus
25035 extern "C"
25036 #endif
25037 /* We use char because int might match the return type of a gcc2
25038    builtin and then its argument prototype would still apply.  */
25039 char lt_dlopen ();
25040 int
25041 main ()
25042 {
25043 lt_dlopen ();
25044   ;
25045   return 0;
25046 }
25047 _ACEOF
25048 rm -f conftest.$ac_objext conftest$ac_exeext
25049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25050   (eval $ac_link) 2>conftest.er1
25051   ac_status=$?
25052   grep -v '^ *+' conftest.er1 >conftest.err
25053   rm -f conftest.er1
25054   cat conftest.err >&5
25055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056   (exit $ac_status); } &&
25057          { ac_try='test -z "$ac_c_werror_flag"
25058                          || test ! -s conftest.err'
25059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060   (eval $ac_try) 2>&5
25061   ac_status=$?
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); }; } &&
25064          { ac_try='test -s conftest$ac_exeext'
25065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066   (eval $ac_try) 2>&5
25067   ac_status=$?
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); }; }; then
25070   ac_cv_search_lt_dlopen="-l$ac_lib"
25071 break
25072 else
25073   echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25075
25076 fi
25077 rm -f conftest.err conftest.$ac_objext \
25078       conftest$ac_exeext conftest.$ac_ext
25079   done
25080 fi
25081 LIBS=$ac_func_search_save_LIBS
25082 fi
25083 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25084 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25085 if test "$ac_cv_search_lt_dlopen" != no; then
25086   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25087
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_LT_DLOPEN 1
25090 _ACEOF
25091
25092 else
25093   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25094                            not be available" >&5
25095 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25096                            not be available" >&2;}
25097 fi
25098
25099
25100 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25101 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25102 if test "${ac_cv_search_dlopen+set}" = set; then
25103   echo $ECHO_N "(cached) $ECHO_C" >&6
25104 else
25105   ac_func_search_save_LIBS=$LIBS
25106 ac_cv_search_dlopen=no
25107 cat >conftest.$ac_ext <<_ACEOF
25108 /* confdefs.h.  */
25109 _ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h.  */
25113
25114 /* Override any gcc2 internal prototype to avoid an error.  */
25115 #ifdef __cplusplus
25116 extern "C"
25117 #endif
25118 /* We use char because int might match the return type of a gcc2
25119    builtin and then its argument prototype would still apply.  */
25120 char dlopen ();
25121 int
25122 main ()
25123 {
25124 dlopen ();
25125   ;
25126   return 0;
25127 }
25128 _ACEOF
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25131   (eval $ac_link) 2>conftest.er1
25132   ac_status=$?
25133   grep -v '^ *+' conftest.er1 >conftest.err
25134   rm -f conftest.er1
25135   cat conftest.err >&5
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); } &&
25138          { ac_try='test -z "$ac_c_werror_flag"
25139                          || test ! -s conftest.err'
25140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141   (eval $ac_try) 2>&5
25142   ac_status=$?
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); }; } &&
25145          { ac_try='test -s conftest$ac_exeext'
25146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147   (eval $ac_try) 2>&5
25148   ac_status=$?
25149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); }; }; then
25151   ac_cv_search_dlopen="none required"
25152 else
25153   echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25155
25156 fi
25157 rm -f conftest.err conftest.$ac_objext \
25158       conftest$ac_exeext conftest.$ac_ext
25159 if test "$ac_cv_search_dlopen" = no; then
25160   for ac_lib in dl; do
25161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25162     cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h.  */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h.  */
25168
25169 /* Override any gcc2 internal prototype to avoid an error.  */
25170 #ifdef __cplusplus
25171 extern "C"
25172 #endif
25173 /* We use char because int might match the return type of a gcc2
25174    builtin and then its argument prototype would still apply.  */
25175 char dlopen ();
25176 int
25177 main ()
25178 {
25179 dlopen ();
25180   ;
25181   return 0;
25182 }
25183 _ACEOF
25184 rm -f conftest.$ac_objext conftest$ac_exeext
25185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25186   (eval $ac_link) 2>conftest.er1
25187   ac_status=$?
25188   grep -v '^ *+' conftest.er1 >conftest.err
25189   rm -f conftest.er1
25190   cat conftest.err >&5
25191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192   (exit $ac_status); } &&
25193          { ac_try='test -z "$ac_c_werror_flag"
25194                          || test ! -s conftest.err'
25195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196   (eval $ac_try) 2>&5
25197   ac_status=$?
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); }; } &&
25200          { ac_try='test -s conftest$ac_exeext'
25201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202   (eval $ac_try) 2>&5
25203   ac_status=$?
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); }; }; then
25206   ac_cv_search_dlopen="-l$ac_lib"
25207 break
25208 else
25209   echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212 fi
25213 rm -f conftest.err conftest.$ac_objext \
25214       conftest$ac_exeext conftest.$ac_ext
25215   done
25216 fi
25217 LIBS=$ac_func_search_save_LIBS
25218 fi
25219 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25220 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25221 if test "$ac_cv_search_dlopen" != no; then
25222   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25223
25224 cat >>confdefs.h <<\_ACEOF
25225 #define HAVE_DLOPEN 1
25226 _ACEOF
25227
25228 else
25229   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25230 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25231 fi
25232
25233
25234 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25235 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25236 if test "${ac_cv_search_mallinfo+set}" = set; then
25237   echo $ECHO_N "(cached) $ECHO_C" >&6
25238 else
25239   ac_func_search_save_LIBS=$LIBS
25240 ac_cv_search_mallinfo=no
25241 cat >conftest.$ac_ext <<_ACEOF
25242 /* confdefs.h.  */
25243 _ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h.  */
25247
25248 /* Override any gcc2 internal prototype to avoid an error.  */
25249 #ifdef __cplusplus
25250 extern "C"
25251 #endif
25252 /* We use char because int might match the return type of a gcc2
25253    builtin and then its argument prototype would still apply.  */
25254 char mallinfo ();
25255 int
25256 main ()
25257 {
25258 mallinfo ();
25259   ;
25260   return 0;
25261 }
25262 _ACEOF
25263 rm -f conftest.$ac_objext conftest$ac_exeext
25264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25265   (eval $ac_link) 2>conftest.er1
25266   ac_status=$?
25267   grep -v '^ *+' conftest.er1 >conftest.err
25268   rm -f conftest.er1
25269   cat conftest.err >&5
25270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271   (exit $ac_status); } &&
25272          { ac_try='test -z "$ac_c_werror_flag"
25273                          || test ! -s conftest.err'
25274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275   (eval $ac_try) 2>&5
25276   ac_status=$?
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); }; } &&
25279          { ac_try='test -s conftest$ac_exeext'
25280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281   (eval $ac_try) 2>&5
25282   ac_status=$?
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); }; }; then
25285   ac_cv_search_mallinfo="none required"
25286 else
25287   echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25289
25290 fi
25291 rm -f conftest.err conftest.$ac_objext \
25292       conftest$ac_exeext conftest.$ac_ext
25293 if test "$ac_cv_search_mallinfo" = no; then
25294   for ac_lib in malloc; do
25295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25296     cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303 /* Override any gcc2 internal prototype to avoid an error.  */
25304 #ifdef __cplusplus
25305 extern "C"
25306 #endif
25307 /* We use char because int might match the return type of a gcc2
25308    builtin and then its argument prototype would still apply.  */
25309 char mallinfo ();
25310 int
25311 main ()
25312 {
25313 mallinfo ();
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320   (eval $ac_link) 2>conftest.er1
25321   ac_status=$?
25322   grep -v '^ *+' conftest.er1 >conftest.err
25323   rm -f conftest.er1
25324   cat conftest.err >&5
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); } &&
25327          { ac_try='test -z "$ac_c_werror_flag"
25328                          || test ! -s conftest.err'
25329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330   (eval $ac_try) 2>&5
25331   ac_status=$?
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); }; } &&
25334          { ac_try='test -s conftest$ac_exeext'
25335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336   (eval $ac_try) 2>&5
25337   ac_status=$?
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); }; }; then
25340   ac_cv_search_mallinfo="-l$ac_lib"
25341 break
25342 else
25343   echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25345
25346 fi
25347 rm -f conftest.err conftest.$ac_objext \
25348       conftest$ac_exeext conftest.$ac_ext
25349   done
25350 fi
25351 LIBS=$ac_func_search_save_LIBS
25352 fi
25353 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25354 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25355 if test "$ac_cv_search_mallinfo" != no; then
25356   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25357
25358 cat >>confdefs.h <<\_ACEOF
25359 #define HAVE_MALLINFO 1
25360 _ACEOF
25361
25362 fi
25363
25364
25365 if test "$ENABLE_THREADS" -eq 1 ; then
25366
25367 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25368 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25369 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25370   echo $ECHO_N "(cached) $ECHO_C" >&6
25371 else
25372   ac_check_lib_save_LIBS=$LIBS
25373 LIBS="-lpthread  $LIBS"
25374 cat >conftest.$ac_ext <<_ACEOF
25375 /* confdefs.h.  */
25376 _ACEOF
25377 cat confdefs.h >>conftest.$ac_ext
25378 cat >>conftest.$ac_ext <<_ACEOF
25379 /* end confdefs.h.  */
25380
25381 /* Override any gcc2 internal prototype to avoid an error.  */
25382 #ifdef __cplusplus
25383 extern "C"
25384 #endif
25385 /* We use char because int might match the return type of a gcc2
25386    builtin and then its argument prototype would still apply.  */
25387 char pthread_mutex_init ();
25388 int
25389 main ()
25390 {
25391 pthread_mutex_init ();
25392   ;
25393   return 0;
25394 }
25395 _ACEOF
25396 rm -f conftest.$ac_objext conftest$ac_exeext
25397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25398   (eval $ac_link) 2>conftest.er1
25399   ac_status=$?
25400   grep -v '^ *+' conftest.er1 >conftest.err
25401   rm -f conftest.er1
25402   cat conftest.err >&5
25403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404   (exit $ac_status); } &&
25405          { ac_try='test -z "$ac_c_werror_flag"
25406                          || test ! -s conftest.err'
25407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408   (eval $ac_try) 2>&5
25409   ac_status=$?
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); }; } &&
25412          { ac_try='test -s conftest$ac_exeext'
25413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414   (eval $ac_try) 2>&5
25415   ac_status=$?
25416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417   (exit $ac_status); }; }; then
25418   ac_cv_lib_pthread_pthread_mutex_init=yes
25419 else
25420   echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25422
25423 ac_cv_lib_pthread_pthread_mutex_init=no
25424 fi
25425 rm -f conftest.err conftest.$ac_objext \
25426       conftest$ac_exeext conftest.$ac_ext
25427 LIBS=$ac_check_lib_save_LIBS
25428 fi
25429 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25430 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25431 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25432   cat >>confdefs.h <<_ACEOF
25433 #define HAVE_LIBPTHREAD 1
25434 _ACEOF
25435
25436   LIBS="-lpthread $LIBS"
25437
25438 fi
25439
25440   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25441 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25442 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25443   echo $ECHO_N "(cached) $ECHO_C" >&6
25444 else
25445   ac_func_search_save_LIBS=$LIBS
25446 ac_cv_search_pthread_mutex_lock=no
25447 cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453
25454 /* Override any gcc2 internal prototype to avoid an error.  */
25455 #ifdef __cplusplus
25456 extern "C"
25457 #endif
25458 /* We use char because int might match the return type of a gcc2
25459    builtin and then its argument prototype would still apply.  */
25460 char pthread_mutex_lock ();
25461 int
25462 main ()
25463 {
25464 pthread_mutex_lock ();
25465   ;
25466   return 0;
25467 }
25468 _ACEOF
25469 rm -f conftest.$ac_objext conftest$ac_exeext
25470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25471   (eval $ac_link) 2>conftest.er1
25472   ac_status=$?
25473   grep -v '^ *+' conftest.er1 >conftest.err
25474   rm -f conftest.er1
25475   cat conftest.err >&5
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); } &&
25478          { ac_try='test -z "$ac_c_werror_flag"
25479                          || test ! -s conftest.err'
25480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484   (exit $ac_status); }; } &&
25485          { ac_try='test -s conftest$ac_exeext'
25486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487   (eval $ac_try) 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); }; }; then
25491   ac_cv_search_pthread_mutex_lock="none required"
25492 else
25493   echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25495
25496 fi
25497 rm -f conftest.err conftest.$ac_objext \
25498       conftest$ac_exeext conftest.$ac_ext
25499 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25500   for ac_lib in pthread; do
25501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25502     cat >conftest.$ac_ext <<_ACEOF
25503 /* confdefs.h.  */
25504 _ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h.  */
25508
25509 /* Override any gcc2 internal prototype to avoid an error.  */
25510 #ifdef __cplusplus
25511 extern "C"
25512 #endif
25513 /* We use char because int might match the return type of a gcc2
25514    builtin and then its argument prototype would still apply.  */
25515 char pthread_mutex_lock ();
25516 int
25517 main ()
25518 {
25519 pthread_mutex_lock ();
25520   ;
25521   return 0;
25522 }
25523 _ACEOF
25524 rm -f conftest.$ac_objext conftest$ac_exeext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526   (eval $ac_link) 2>conftest.er1
25527   ac_status=$?
25528   grep -v '^ *+' conftest.er1 >conftest.err
25529   rm -f conftest.er1
25530   cat conftest.err >&5
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); } &&
25533          { ac_try='test -z "$ac_c_werror_flag"
25534                          || test ! -s conftest.err'
25535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536   (eval $ac_try) 2>&5
25537   ac_status=$?
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); }; } &&
25540          { ac_try='test -s conftest$ac_exeext'
25541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542   (eval $ac_try) 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); }; }; then
25546   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25547 break
25548 else
25549   echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25551
25552 fi
25553 rm -f conftest.err conftest.$ac_objext \
25554       conftest$ac_exeext conftest.$ac_ext
25555   done
25556 fi
25557 LIBS=$ac_func_search_save_LIBS
25558 fi
25559 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25560 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25561 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25562   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25563
25564 cat >>confdefs.h <<\_ACEOF
25565 #define HAVE_PTHREAD_MUTEX_LOCK 1
25566 _ACEOF
25567
25568 fi
25569
25570 fi
25571
25572
25573
25574
25575
25576
25577
25578 ac_header_dirent=no
25579 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25580   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25581 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25582 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25584   echo $ECHO_N "(cached) $ECHO_C" >&6
25585 else
25586   cat >conftest.$ac_ext <<_ACEOF
25587 /* confdefs.h.  */
25588 _ACEOF
25589 cat confdefs.h >>conftest.$ac_ext
25590 cat >>conftest.$ac_ext <<_ACEOF
25591 /* end confdefs.h.  */
25592 #include <sys/types.h>
25593 #include <$ac_hdr>
25594
25595 int
25596 main ()
25597 {
25598 if ((DIR *) 0)
25599 return 0;
25600   ;
25601   return 0;
25602 }
25603 _ACEOF
25604 rm -f conftest.$ac_objext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25606   (eval $ac_compile) 2>conftest.er1
25607   ac_status=$?
25608   grep -v '^ *+' conftest.er1 >conftest.err
25609   rm -f conftest.er1
25610   cat conftest.err >&5
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); } &&
25613          { ac_try='test -z "$ac_c_werror_flag"
25614                          || test ! -s conftest.err'
25615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616   (eval $ac_try) 2>&5
25617   ac_status=$?
25618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619   (exit $ac_status); }; } &&
25620          { ac_try='test -s conftest.$ac_objext'
25621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622   (eval $ac_try) 2>&5
25623   ac_status=$?
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; }; then
25626   eval "$as_ac_Header=yes"
25627 else
25628   echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25630
25631 eval "$as_ac_Header=no"
25632 fi
25633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25634 fi
25635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25638   cat >>confdefs.h <<_ACEOF
25639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25640 _ACEOF
25641
25642 ac_header_dirent=$ac_hdr; break
25643 fi
25644
25645 done
25646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25647 if test $ac_header_dirent = dirent.h; then
25648   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25650 if test "${ac_cv_search_opendir+set}" = set; then
25651   echo $ECHO_N "(cached) $ECHO_C" >&6
25652 else
25653   ac_func_search_save_LIBS=$LIBS
25654 ac_cv_search_opendir=no
25655 cat >conftest.$ac_ext <<_ACEOF
25656 /* confdefs.h.  */
25657 _ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h.  */
25661
25662 /* Override any gcc2 internal prototype to avoid an error.  */
25663 #ifdef __cplusplus
25664 extern "C"
25665 #endif
25666 /* We use char because int might match the return type of a gcc2
25667    builtin and then its argument prototype would still apply.  */
25668 char opendir ();
25669 int
25670 main ()
25671 {
25672 opendir ();
25673   ;
25674   return 0;
25675 }
25676 _ACEOF
25677 rm -f conftest.$ac_objext conftest$ac_exeext
25678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25679   (eval $ac_link) 2>conftest.er1
25680   ac_status=$?
25681   grep -v '^ *+' conftest.er1 >conftest.err
25682   rm -f conftest.er1
25683   cat conftest.err >&5
25684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); } &&
25686          { ac_try='test -z "$ac_c_werror_flag"
25687                          || test ! -s conftest.err'
25688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689   (eval $ac_try) 2>&5
25690   ac_status=$?
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); }; } &&
25693          { ac_try='test -s conftest$ac_exeext'
25694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695   (eval $ac_try) 2>&5
25696   ac_status=$?
25697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698   (exit $ac_status); }; }; then
25699   ac_cv_search_opendir="none required"
25700 else
25701   echo "$as_me: failed program was:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25703
25704 fi
25705 rm -f conftest.err conftest.$ac_objext \
25706       conftest$ac_exeext conftest.$ac_ext
25707 if test "$ac_cv_search_opendir" = no; then
25708   for ac_lib in dir; do
25709     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25710     cat >conftest.$ac_ext <<_ACEOF
25711 /* confdefs.h.  */
25712 _ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h.  */
25716
25717 /* Override any gcc2 internal prototype to avoid an error.  */
25718 #ifdef __cplusplus
25719 extern "C"
25720 #endif
25721 /* We use char because int might match the return type of a gcc2
25722    builtin and then its argument prototype would still apply.  */
25723 char opendir ();
25724 int
25725 main ()
25726 {
25727 opendir ();
25728   ;
25729   return 0;
25730 }
25731 _ACEOF
25732 rm -f conftest.$ac_objext conftest$ac_exeext
25733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25734   (eval $ac_link) 2>conftest.er1
25735   ac_status=$?
25736   grep -v '^ *+' conftest.er1 >conftest.err
25737   rm -f conftest.er1
25738   cat conftest.err >&5
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); } &&
25741          { ac_try='test -z "$ac_c_werror_flag"
25742                          || test ! -s conftest.err'
25743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744   (eval $ac_try) 2>&5
25745   ac_status=$?
25746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747   (exit $ac_status); }; } &&
25748          { ac_try='test -s conftest$ac_exeext'
25749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750   (eval $ac_try) 2>&5
25751   ac_status=$?
25752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753   (exit $ac_status); }; }; then
25754   ac_cv_search_opendir="-l$ac_lib"
25755 break
25756 else
25757   echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25759
25760 fi
25761 rm -f conftest.err conftest.$ac_objext \
25762       conftest$ac_exeext conftest.$ac_ext
25763   done
25764 fi
25765 LIBS=$ac_func_search_save_LIBS
25766 fi
25767 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25768 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25769 if test "$ac_cv_search_opendir" != no; then
25770   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25771
25772 fi
25773
25774 else
25775   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25777 if test "${ac_cv_search_opendir+set}" = set; then
25778   echo $ECHO_N "(cached) $ECHO_C" >&6
25779 else
25780   ac_func_search_save_LIBS=$LIBS
25781 ac_cv_search_opendir=no
25782 cat >conftest.$ac_ext <<_ACEOF
25783 /* confdefs.h.  */
25784 _ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h.  */
25788
25789 /* Override any gcc2 internal prototype to avoid an error.  */
25790 #ifdef __cplusplus
25791 extern "C"
25792 #endif
25793 /* We use char because int might match the return type of a gcc2
25794    builtin and then its argument prototype would still apply.  */
25795 char opendir ();
25796 int
25797 main ()
25798 {
25799 opendir ();
25800   ;
25801   return 0;
25802 }
25803 _ACEOF
25804 rm -f conftest.$ac_objext conftest$ac_exeext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806   (eval $ac_link) 2>conftest.er1
25807   ac_status=$?
25808   grep -v '^ *+' conftest.er1 >conftest.err
25809   rm -f conftest.er1
25810   cat conftest.err >&5
25811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); } &&
25813          { ac_try='test -z "$ac_c_werror_flag"
25814                          || test ! -s conftest.err'
25815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816   (eval $ac_try) 2>&5
25817   ac_status=$?
25818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819   (exit $ac_status); }; } &&
25820          { ac_try='test -s conftest$ac_exeext'
25821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822   (eval $ac_try) 2>&5
25823   ac_status=$?
25824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825   (exit $ac_status); }; }; then
25826   ac_cv_search_opendir="none required"
25827 else
25828   echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25830
25831 fi
25832 rm -f conftest.err conftest.$ac_objext \
25833       conftest$ac_exeext conftest.$ac_ext
25834 if test "$ac_cv_search_opendir" = no; then
25835   for ac_lib in x; do
25836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25837     cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843
25844 /* Override any gcc2 internal prototype to avoid an error.  */
25845 #ifdef __cplusplus
25846 extern "C"
25847 #endif
25848 /* We use char because int might match the return type of a gcc2
25849    builtin and then its argument prototype would still apply.  */
25850 char opendir ();
25851 int
25852 main ()
25853 {
25854 opendir ();
25855   ;
25856   return 0;
25857 }
25858 _ACEOF
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25861   (eval $ac_link) 2>conftest.er1
25862   ac_status=$?
25863   grep -v '^ *+' conftest.er1 >conftest.err
25864   rm -f conftest.er1
25865   cat conftest.err >&5
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); } &&
25868          { ac_try='test -z "$ac_c_werror_flag"
25869                          || test ! -s conftest.err'
25870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871   (eval $ac_try) 2>&5
25872   ac_status=$?
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); }; } &&
25875          { ac_try='test -s conftest$ac_exeext'
25876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877   (eval $ac_try) 2>&5
25878   ac_status=$?
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); }; }; then
25881   ac_cv_search_opendir="-l$ac_lib"
25882 break
25883 else
25884   echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887 fi
25888 rm -f conftest.err conftest.$ac_objext \
25889       conftest$ac_exeext conftest.$ac_ext
25890   done
25891 fi
25892 LIBS=$ac_func_search_save_LIBS
25893 fi
25894 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25895 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25896 if test "$ac_cv_search_opendir" != no; then
25897   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25898
25899 fi
25900
25901 fi
25902
25903 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25904 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25905 if test "${ac_cv_header_mmap_anon+set}" = set; then
25906   echo $ECHO_N "(cached) $ECHO_C" >&6
25907 else
25908    ac_ext=c
25909 ac_cpp='$CPP $CPPFLAGS'
25910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25913
25914   cat >conftest.$ac_ext <<_ACEOF
25915 /* confdefs.h.  */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h.  */
25920 #include <sys/mman.h>
25921 #include <unistd.h>
25922 #include <fcntl.h>
25923 int
25924 main ()
25925 {
25926 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25927   ;
25928   return 0;
25929 }
25930 _ACEOF
25931 rm -f conftest.$ac_objext
25932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25933   (eval $ac_compile) 2>conftest.er1
25934   ac_status=$?
25935   grep -v '^ *+' conftest.er1 >conftest.err
25936   rm -f conftest.er1
25937   cat conftest.err >&5
25938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939   (exit $ac_status); } &&
25940          { ac_try='test -z "$ac_c_werror_flag"
25941                          || test ! -s conftest.err'
25942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943   (eval $ac_try) 2>&5
25944   ac_status=$?
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); }; } &&
25947          { ac_try='test -s conftest.$ac_objext'
25948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949   (eval $ac_try) 2>&5
25950   ac_status=$?
25951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952   (exit $ac_status); }; }; then
25953   ac_cv_header_mmap_anon=yes
25954 else
25955   echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25957
25958 ac_cv_header_mmap_anon=no
25959 fi
25960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25961   ac_ext=c
25962 ac_cpp='$CPP $CPPFLAGS'
25963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25966
25967
25968 fi
25969 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25970 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25971 if test "$ac_cv_header_mmap_anon" = yes; then
25972
25973 cat >>confdefs.h <<\_ACEOF
25974 #define HAVE_MMAP_ANONYMOUS 1
25975 _ACEOF
25976
25977 fi
25978
25979 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25980 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25981 if test "${ac_cv_header_stat_broken+set}" = set; then
25982   echo $ECHO_N "(cached) $ECHO_C" >&6
25983 else
25984   cat >conftest.$ac_ext <<_ACEOF
25985 /* confdefs.h.  */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h.  */
25990 #include <sys/types.h>
25991 #include <sys/stat.h>
25992
25993 #if defined(S_ISBLK) && defined(S_IFDIR)
25994 # if S_ISBLK (S_IFDIR)
25995 You lose.
25996 # endif
25997 #endif
25998
25999 #if defined(S_ISBLK) && defined(S_IFCHR)
26000 # if S_ISBLK (S_IFCHR)
26001 You lose.
26002 # endif
26003 #endif
26004
26005 #if defined(S_ISLNK) && defined(S_IFREG)
26006 # if S_ISLNK (S_IFREG)
26007 You lose.
26008 # endif
26009 #endif
26010
26011 #if defined(S_ISSOCK) && defined(S_IFREG)
26012 # if S_ISSOCK (S_IFREG)
26013 You lose.
26014 # endif
26015 #endif
26016
26017 _ACEOF
26018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26019   $EGREP "You lose" >/dev/null 2>&1; then
26020   ac_cv_header_stat_broken=yes
26021 else
26022   ac_cv_header_stat_broken=no
26023 fi
26024 rm -f conftest*
26025
26026 fi
26027 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26028 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26029 if test $ac_cv_header_stat_broken = yes; then
26030
26031 cat >>confdefs.h <<\_ACEOF
26032 #define STAT_MACROS_BROKEN 1
26033 _ACEOF
26034
26035 fi
26036
26037 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26039 if test "${ac_cv_header_stdc+set}" = set; then
26040   echo $ECHO_N "(cached) $ECHO_C" >&6
26041 else
26042   cat >conftest.$ac_ext <<_ACEOF
26043 /* confdefs.h.  */
26044 _ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h.  */
26048 #include <stdlib.h>
26049 #include <stdarg.h>
26050 #include <string.h>
26051 #include <float.h>
26052
26053 int
26054 main ()
26055 {
26056
26057   ;
26058   return 0;
26059 }
26060 _ACEOF
26061 rm -f conftest.$ac_objext
26062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26063   (eval $ac_compile) 2>conftest.er1
26064   ac_status=$?
26065   grep -v '^ *+' conftest.er1 >conftest.err
26066   rm -f conftest.er1
26067   cat conftest.err >&5
26068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069   (exit $ac_status); } &&
26070          { ac_try='test -z "$ac_c_werror_flag"
26071                          || test ! -s conftest.err'
26072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26073   (eval $ac_try) 2>&5
26074   ac_status=$?
26075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076   (exit $ac_status); }; } &&
26077          { ac_try='test -s conftest.$ac_objext'
26078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26079   (eval $ac_try) 2>&5
26080   ac_status=$?
26081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082   (exit $ac_status); }; }; then
26083   ac_cv_header_stdc=yes
26084 else
26085   echo "$as_me: failed program was:" >&5
26086 sed 's/^/| /' conftest.$ac_ext >&5
26087
26088 ac_cv_header_stdc=no
26089 fi
26090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26091
26092 if test $ac_cv_header_stdc = yes; then
26093   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26094   cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100 #include <string.h>
26101
26102 _ACEOF
26103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26104   $EGREP "memchr" >/dev/null 2>&1; then
26105   :
26106 else
26107   ac_cv_header_stdc=no
26108 fi
26109 rm -f conftest*
26110
26111 fi
26112
26113 if test $ac_cv_header_stdc = yes; then
26114   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26115   cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121 #include <stdlib.h>
26122
26123 _ACEOF
26124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26125   $EGREP "free" >/dev/null 2>&1; then
26126   :
26127 else
26128   ac_cv_header_stdc=no
26129 fi
26130 rm -f conftest*
26131
26132 fi
26133
26134 if test $ac_cv_header_stdc = yes; then
26135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26136   if test "$cross_compiling" = yes; then
26137   :
26138 else
26139   cat >conftest.$ac_ext <<_ACEOF
26140 /* confdefs.h.  */
26141 _ACEOF
26142 cat confdefs.h >>conftest.$ac_ext
26143 cat >>conftest.$ac_ext <<_ACEOF
26144 /* end confdefs.h.  */
26145 #include <ctype.h>
26146 #if ((' ' & 0x0FF) == 0x020)
26147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26149 #else
26150 # define ISLOWER(c) \
26151                    (('a' <= (c) && (c) <= 'i') \
26152                      || ('j' <= (c) && (c) <= 'r') \
26153                      || ('s' <= (c) && (c) <= 'z'))
26154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26155 #endif
26156
26157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26158 int
26159 main ()
26160 {
26161   int i;
26162   for (i = 0; i < 256; i++)
26163     if (XOR (islower (i), ISLOWER (i))
26164         || toupper (i) != TOUPPER (i))
26165       exit(2);
26166   exit (0);
26167 }
26168 _ACEOF
26169 rm -f conftest$ac_exeext
26170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26171   (eval $ac_link) 2>&5
26172   ac_status=$?
26173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176   (eval $ac_try) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); }; }; then
26180   :
26181 else
26182   echo "$as_me: program exited with status $ac_status" >&5
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26185
26186 ( exit $ac_status )
26187 ac_cv_header_stdc=no
26188 fi
26189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26190 fi
26191 fi
26192 fi
26193 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26194 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26195 if test $ac_cv_header_stdc = yes; then
26196
26197 cat >>confdefs.h <<\_ACEOF
26198 #define STDC_HEADERS 1
26199 _ACEOF
26200
26201 fi
26202
26203 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26204 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26205 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26206   echo $ECHO_N "(cached) $ECHO_C" >&6
26207 else
26208   cat >conftest.$ac_ext <<_ACEOF
26209 /* confdefs.h.  */
26210 _ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h.  */
26214 #include <sys/types.h>
26215 #include <sys/wait.h>
26216 #ifndef WEXITSTATUS
26217 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26218 #endif
26219 #ifndef WIFEXITED
26220 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26221 #endif
26222
26223 int
26224 main ()
26225 {
26226   int s;
26227   wait (&s);
26228   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26229   ;
26230   return 0;
26231 }
26232 _ACEOF
26233 rm -f conftest.$ac_objext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235   (eval $ac_compile) 2>conftest.er1
26236   ac_status=$?
26237   grep -v '^ *+' conftest.er1 >conftest.err
26238   rm -f conftest.er1
26239   cat conftest.err >&5
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); } &&
26242          { ac_try='test -z "$ac_c_werror_flag"
26243                          || test ! -s conftest.err'
26244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245   (eval $ac_try) 2>&5
26246   ac_status=$?
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); }; } &&
26249          { ac_try='test -s conftest.$ac_objext'
26250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251   (eval $ac_try) 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); }; }; then
26255   ac_cv_header_sys_wait_h=yes
26256 else
26257   echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260 ac_cv_header_sys_wait_h=no
26261 fi
26262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26263 fi
26264 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26265 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26266 if test $ac_cv_header_sys_wait_h = yes; then
26267
26268 cat >>confdefs.h <<\_ACEOF
26269 #define HAVE_SYS_WAIT_H 1
26270 _ACEOF
26271
26272 fi
26273
26274 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26275 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26276 if test "${ac_cv_header_time+set}" = set; then
26277   echo $ECHO_N "(cached) $ECHO_C" >&6
26278 else
26279   cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285 #include <sys/types.h>
26286 #include <sys/time.h>
26287 #include <time.h>
26288
26289 int
26290 main ()
26291 {
26292 if ((struct tm *) 0)
26293 return 0;
26294   ;
26295   return 0;
26296 }
26297 _ACEOF
26298 rm -f conftest.$ac_objext
26299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26300   (eval $ac_compile) 2>conftest.er1
26301   ac_status=$?
26302   grep -v '^ *+' conftest.er1 >conftest.err
26303   rm -f conftest.er1
26304   cat conftest.err >&5
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); } &&
26307          { ac_try='test -z "$ac_c_werror_flag"
26308                          || test ! -s conftest.err'
26309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26310   (eval $ac_try) 2>&5
26311   ac_status=$?
26312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313   (exit $ac_status); }; } &&
26314          { ac_try='test -s conftest.$ac_objext'
26315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316   (eval $ac_try) 2>&5
26317   ac_status=$?
26318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319   (exit $ac_status); }; }; then
26320   ac_cv_header_time=yes
26321 else
26322   echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26324
26325 ac_cv_header_time=no
26326 fi
26327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26328 fi
26329 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26330 echo "${ECHO_T}$ac_cv_header_time" >&6
26331 if test $ac_cv_header_time = yes; then
26332
26333 cat >>confdefs.h <<\_ACEOF
26334 #define TIME_WITH_SYS_TIME 1
26335 _ACEOF
26336
26337 fi
26338
26339
26340
26341
26342
26343
26344
26345
26346 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26347 do
26348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26350   echo "$as_me:$LINENO: checking for $ac_header" >&5
26351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26353   echo $ECHO_N "(cached) $ECHO_C" >&6
26354 fi
26355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26357 else
26358   # Is the header compilable?
26359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26361 cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h.  */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h.  */
26367 $ac_includes_default
26368 #include <$ac_header>
26369 _ACEOF
26370 rm -f conftest.$ac_objext
26371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26372   (eval $ac_compile) 2>conftest.er1
26373   ac_status=$?
26374   grep -v '^ *+' conftest.er1 >conftest.err
26375   rm -f conftest.er1
26376   cat conftest.err >&5
26377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378   (exit $ac_status); } &&
26379          { ac_try='test -z "$ac_c_werror_flag"
26380                          || test ! -s conftest.err'
26381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382   (eval $ac_try) 2>&5
26383   ac_status=$?
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); }; } &&
26386          { ac_try='test -s conftest.$ac_objext'
26387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388   (eval $ac_try) 2>&5
26389   ac_status=$?
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); }; }; then
26392   ac_header_compiler=yes
26393 else
26394   echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26396
26397 ac_header_compiler=no
26398 fi
26399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26401 echo "${ECHO_T}$ac_header_compiler" >&6
26402
26403 # Is the header present?
26404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26406 cat >conftest.$ac_ext <<_ACEOF
26407 /* confdefs.h.  */
26408 _ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h.  */
26412 #include <$ac_header>
26413 _ACEOF
26414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26416   ac_status=$?
26417   grep -v '^ *+' conftest.er1 >conftest.err
26418   rm -f conftest.er1
26419   cat conftest.err >&5
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); } >/dev/null; then
26422   if test -s conftest.err; then
26423     ac_cpp_err=$ac_c_preproc_warn_flag
26424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26425   else
26426     ac_cpp_err=
26427   fi
26428 else
26429   ac_cpp_err=yes
26430 fi
26431 if test -z "$ac_cpp_err"; then
26432   ac_header_preproc=yes
26433 else
26434   echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26436
26437   ac_header_preproc=no
26438 fi
26439 rm -f conftest.err conftest.$ac_ext
26440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26441 echo "${ECHO_T}$ac_header_preproc" >&6
26442
26443 # So?  What about this header?
26444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26445   yes:no: )
26446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26450     ac_header_preproc=yes
26451     ;;
26452   no:yes:* )
26453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26465     (
26466       cat <<\_ASBOX
26467 ## ----------------------------------- ##
26468 ## Report this to llvmbugs@cs.uiuc.edu ##
26469 ## ----------------------------------- ##
26470 _ASBOX
26471     ) |
26472       sed "s/^/$as_me: WARNING:     /" >&2
26473     ;;
26474 esac
26475 echo "$as_me:$LINENO: checking for $ac_header" >&5
26476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26478   echo $ECHO_N "(cached) $ECHO_C" >&6
26479 else
26480   eval "$as_ac_Header=\$ac_header_preproc"
26481 fi
26482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26484
26485 fi
26486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26487   cat >>confdefs.h <<_ACEOF
26488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26489 _ACEOF
26490
26491 fi
26492
26493 done
26494
26495
26496
26497
26498
26499
26500
26501 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26502 do
26503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26505   echo "$as_me:$LINENO: checking for $ac_header" >&5
26506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26508   echo $ECHO_N "(cached) $ECHO_C" >&6
26509 fi
26510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26512 else
26513   # Is the header compilable?
26514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26516 cat >conftest.$ac_ext <<_ACEOF
26517 /* confdefs.h.  */
26518 _ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h.  */
26522 $ac_includes_default
26523 #include <$ac_header>
26524 _ACEOF
26525 rm -f conftest.$ac_objext
26526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26527   (eval $ac_compile) 2>conftest.er1
26528   ac_status=$?
26529   grep -v '^ *+' conftest.er1 >conftest.err
26530   rm -f conftest.er1
26531   cat conftest.err >&5
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); } &&
26534          { ac_try='test -z "$ac_c_werror_flag"
26535                          || test ! -s conftest.err'
26536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537   (eval $ac_try) 2>&5
26538   ac_status=$?
26539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540   (exit $ac_status); }; } &&
26541          { ac_try='test -s conftest.$ac_objext'
26542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543   (eval $ac_try) 2>&5
26544   ac_status=$?
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); }; }; then
26547   ac_header_compiler=yes
26548 else
26549   echo "$as_me: failed program was:" >&5
26550 sed 's/^/| /' conftest.$ac_ext >&5
26551
26552 ac_header_compiler=no
26553 fi
26554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26556 echo "${ECHO_T}$ac_header_compiler" >&6
26557
26558 # Is the header present?
26559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26561 cat >conftest.$ac_ext <<_ACEOF
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567 #include <$ac_header>
26568 _ACEOF
26569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26571   ac_status=$?
26572   grep -v '^ *+' conftest.er1 >conftest.err
26573   rm -f conftest.er1
26574   cat conftest.err >&5
26575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576   (exit $ac_status); } >/dev/null; then
26577   if test -s conftest.err; then
26578     ac_cpp_err=$ac_c_preproc_warn_flag
26579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26580   else
26581     ac_cpp_err=
26582   fi
26583 else
26584   ac_cpp_err=yes
26585 fi
26586 if test -z "$ac_cpp_err"; then
26587   ac_header_preproc=yes
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592   ac_header_preproc=no
26593 fi
26594 rm -f conftest.err conftest.$ac_ext
26595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26596 echo "${ECHO_T}$ac_header_preproc" >&6
26597
26598 # So?  What about this header?
26599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26600   yes:no: )
26601     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26605     ac_header_preproc=yes
26606     ;;
26607   no:yes:* )
26608     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26610     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26611 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26612     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26614     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26615 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26618     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26620     (
26621       cat <<\_ASBOX
26622 ## ----------------------------------- ##
26623 ## Report this to llvmbugs@cs.uiuc.edu ##
26624 ## ----------------------------------- ##
26625 _ASBOX
26626     ) |
26627       sed "s/^/$as_me: WARNING:     /" >&2
26628     ;;
26629 esac
26630 echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633   echo $ECHO_N "(cached) $ECHO_C" >&6
26634 else
26635   eval "$as_ac_Header=\$ac_header_preproc"
26636 fi
26637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26639
26640 fi
26641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26642   cat >>confdefs.h <<_ACEOF
26643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26644 _ACEOF
26645
26646 fi
26647
26648 done
26649
26650
26651
26652
26653
26654
26655 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26656 do
26657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26659   echo "$as_me:$LINENO: checking for $ac_header" >&5
26660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26662   echo $ECHO_N "(cached) $ECHO_C" >&6
26663 fi
26664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26666 else
26667   # Is the header compilable?
26668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26670 cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676 $ac_includes_default
26677 #include <$ac_header>
26678 _ACEOF
26679 rm -f conftest.$ac_objext
26680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26681   (eval $ac_compile) 2>conftest.er1
26682   ac_status=$?
26683   grep -v '^ *+' conftest.er1 >conftest.err
26684   rm -f conftest.er1
26685   cat conftest.err >&5
26686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687   (exit $ac_status); } &&
26688          { ac_try='test -z "$ac_c_werror_flag"
26689                          || test ! -s conftest.err'
26690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691   (eval $ac_try) 2>&5
26692   ac_status=$?
26693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); }; } &&
26695          { ac_try='test -s conftest.$ac_objext'
26696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697   (eval $ac_try) 2>&5
26698   ac_status=$?
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); }; }; then
26701   ac_header_compiler=yes
26702 else
26703   echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26705
26706 ac_header_compiler=no
26707 fi
26708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26710 echo "${ECHO_T}$ac_header_compiler" >&6
26711
26712 # Is the header present?
26713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26715 cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721 #include <$ac_header>
26722 _ACEOF
26723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26725   ac_status=$?
26726   grep -v '^ *+' conftest.er1 >conftest.err
26727   rm -f conftest.er1
26728   cat conftest.err >&5
26729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); } >/dev/null; then
26731   if test -s conftest.err; then
26732     ac_cpp_err=$ac_c_preproc_warn_flag
26733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26734   else
26735     ac_cpp_err=
26736   fi
26737 else
26738   ac_cpp_err=yes
26739 fi
26740 if test -z "$ac_cpp_err"; then
26741   ac_header_preproc=yes
26742 else
26743   echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26745
26746   ac_header_preproc=no
26747 fi
26748 rm -f conftest.err conftest.$ac_ext
26749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26750 echo "${ECHO_T}$ac_header_preproc" >&6
26751
26752 # So?  What about this header?
26753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26754   yes:no: )
26755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26759     ac_header_preproc=yes
26760     ;;
26761   no:yes:* )
26762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26774     (
26775       cat <<\_ASBOX
26776 ## ----------------------------------- ##
26777 ## Report this to llvmbugs@cs.uiuc.edu ##
26778 ## ----------------------------------- ##
26779 _ASBOX
26780     ) |
26781       sed "s/^/$as_me: WARNING:     /" >&2
26782     ;;
26783 esac
26784 echo "$as_me:$LINENO: checking for $ac_header" >&5
26785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26787   echo $ECHO_N "(cached) $ECHO_C" >&6
26788 else
26789   eval "$as_ac_Header=\$ac_header_preproc"
26790 fi
26791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26793
26794 fi
26795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26796   cat >>confdefs.h <<_ACEOF
26797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26798 _ACEOF
26799
26800 fi
26801
26802 done
26803
26804
26805
26806 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26807 do
26808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26810   echo "$as_me:$LINENO: checking for $ac_header" >&5
26811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26813   echo $ECHO_N "(cached) $ECHO_C" >&6
26814 fi
26815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26817 else
26818   # Is the header compilable?
26819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26821 cat >conftest.$ac_ext <<_ACEOF
26822 /* confdefs.h.  */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h.  */
26827 $ac_includes_default
26828 #include <$ac_header>
26829 _ACEOF
26830 rm -f conftest.$ac_objext
26831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26832   (eval $ac_compile) 2>conftest.er1
26833   ac_status=$?
26834   grep -v '^ *+' conftest.er1 >conftest.err
26835   rm -f conftest.er1
26836   cat conftest.err >&5
26837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); } &&
26839          { ac_try='test -z "$ac_c_werror_flag"
26840                          || test ! -s conftest.err'
26841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842   (eval $ac_try) 2>&5
26843   ac_status=$?
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); }; } &&
26846          { ac_try='test -s conftest.$ac_objext'
26847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848   (eval $ac_try) 2>&5
26849   ac_status=$?
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); }; }; then
26852   ac_header_compiler=yes
26853 else
26854   echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26856
26857 ac_header_compiler=no
26858 fi
26859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26861 echo "${ECHO_T}$ac_header_compiler" >&6
26862
26863 # Is the header present?
26864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26866 cat >conftest.$ac_ext <<_ACEOF
26867 /* confdefs.h.  */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h.  */
26872 #include <$ac_header>
26873 _ACEOF
26874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26876   ac_status=$?
26877   grep -v '^ *+' conftest.er1 >conftest.err
26878   rm -f conftest.er1
26879   cat conftest.err >&5
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); } >/dev/null; then
26882   if test -s conftest.err; then
26883     ac_cpp_err=$ac_c_preproc_warn_flag
26884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26885   else
26886     ac_cpp_err=
26887   fi
26888 else
26889   ac_cpp_err=yes
26890 fi
26891 if test -z "$ac_cpp_err"; then
26892   ac_header_preproc=yes
26893 else
26894   echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26896
26897   ac_header_preproc=no
26898 fi
26899 rm -f conftest.err conftest.$ac_ext
26900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26901 echo "${ECHO_T}$ac_header_preproc" >&6
26902
26903 # So?  What about this header?
26904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26905   yes:no: )
26906     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26910     ac_header_preproc=yes
26911     ;;
26912   no:yes:* )
26913     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26915     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26916 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26917     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26919     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26920 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26923     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26925     (
26926       cat <<\_ASBOX
26927 ## ----------------------------------- ##
26928 ## Report this to llvmbugs@cs.uiuc.edu ##
26929 ## ----------------------------------- ##
26930 _ASBOX
26931     ) |
26932       sed "s/^/$as_me: WARNING:     /" >&2
26933     ;;
26934 esac
26935 echo "$as_me:$LINENO: checking for $ac_header" >&5
26936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26938   echo $ECHO_N "(cached) $ECHO_C" >&6
26939 else
26940   eval "$as_ac_Header=\$ac_header_preproc"
26941 fi
26942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26944
26945 fi
26946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26947   cat >>confdefs.h <<_ACEOF
26948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26949 _ACEOF
26950
26951 fi
26952
26953 done
26954
26955 if test "$ENABLE_THREADS" -eq 1 ; then
26956
26957 for ac_header in pthread.h
26958 do
26959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26961   echo "$as_me:$LINENO: checking for $ac_header" >&5
26962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26964   echo $ECHO_N "(cached) $ECHO_C" >&6
26965 fi
26966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26968 else
26969   # Is the header compilable?
26970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26972 cat >conftest.$ac_ext <<_ACEOF
26973 /* confdefs.h.  */
26974 _ACEOF
26975 cat confdefs.h >>conftest.$ac_ext
26976 cat >>conftest.$ac_ext <<_ACEOF
26977 /* end confdefs.h.  */
26978 $ac_includes_default
26979 #include <$ac_header>
26980 _ACEOF
26981 rm -f conftest.$ac_objext
26982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26983   (eval $ac_compile) 2>conftest.er1
26984   ac_status=$?
26985   grep -v '^ *+' conftest.er1 >conftest.err
26986   rm -f conftest.er1
26987   cat conftest.err >&5
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); } &&
26990          { ac_try='test -z "$ac_c_werror_flag"
26991                          || test ! -s conftest.err'
26992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26993   (eval $ac_try) 2>&5
26994   ac_status=$?
26995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996   (exit $ac_status); }; } &&
26997          { ac_try='test -s conftest.$ac_objext'
26998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999   (eval $ac_try) 2>&5
27000   ac_status=$?
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); }; }; then
27003   ac_header_compiler=yes
27004 else
27005   echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008 ac_header_compiler=no
27009 fi
27010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27012 echo "${ECHO_T}$ac_header_compiler" >&6
27013
27014 # Is the header present?
27015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27017 cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h.  */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h.  */
27023 #include <$ac_header>
27024 _ACEOF
27025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27027   ac_status=$?
27028   grep -v '^ *+' conftest.er1 >conftest.err
27029   rm -f conftest.er1
27030   cat conftest.err >&5
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); } >/dev/null; then
27033   if test -s conftest.err; then
27034     ac_cpp_err=$ac_c_preproc_warn_flag
27035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27036   else
27037     ac_cpp_err=
27038   fi
27039 else
27040   ac_cpp_err=yes
27041 fi
27042 if test -z "$ac_cpp_err"; then
27043   ac_header_preproc=yes
27044 else
27045   echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048   ac_header_preproc=no
27049 fi
27050 rm -f conftest.err conftest.$ac_ext
27051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27052 echo "${ECHO_T}$ac_header_preproc" >&6
27053
27054 # So?  What about this header?
27055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27056   yes:no: )
27057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27061     ac_header_preproc=yes
27062     ;;
27063   no:yes:* )
27064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27076     (
27077       cat <<\_ASBOX
27078 ## ----------------------------------- ##
27079 ## Report this to llvmbugs@cs.uiuc.edu ##
27080 ## ----------------------------------- ##
27081 _ASBOX
27082     ) |
27083       sed "s/^/$as_me: WARNING:     /" >&2
27084     ;;
27085 esac
27086 echo "$as_me:$LINENO: checking for $ac_header" >&5
27087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27089   echo $ECHO_N "(cached) $ECHO_C" >&6
27090 else
27091   eval "$as_ac_Header=\$ac_header_preproc"
27092 fi
27093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27095
27096 fi
27097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27098   cat >>confdefs.h <<_ACEOF
27099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27100 _ACEOF
27101
27102 fi
27103
27104 done
27105
27106 fi
27107
27108
27109 echo "$as_me:$LINENO: checking for pid_t" >&5
27110 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27111 if test "${ac_cv_type_pid_t+set}" = set; then
27112   echo $ECHO_N "(cached) $ECHO_C" >&6
27113 else
27114   cat >conftest.$ac_ext <<_ACEOF
27115 /* confdefs.h.  */
27116 _ACEOF
27117 cat confdefs.h >>conftest.$ac_ext
27118 cat >>conftest.$ac_ext <<_ACEOF
27119 /* end confdefs.h.  */
27120 $ac_includes_default
27121 int
27122 main ()
27123 {
27124 if ((pid_t *) 0)
27125   return 0;
27126 if (sizeof (pid_t))
27127   return 0;
27128   ;
27129   return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext
27133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27134   (eval $ac_compile) 2>conftest.er1
27135   ac_status=$?
27136   grep -v '^ *+' conftest.er1 >conftest.err
27137   rm -f conftest.er1
27138   cat conftest.err >&5
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); } &&
27141          { ac_try='test -z "$ac_c_werror_flag"
27142                          || test ! -s conftest.err'
27143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144   (eval $ac_try) 2>&5
27145   ac_status=$?
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); }; } &&
27148          { ac_try='test -s conftest.$ac_objext'
27149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150   (eval $ac_try) 2>&5
27151   ac_status=$?
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); }; }; then
27154   ac_cv_type_pid_t=yes
27155 else
27156   echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27158
27159 ac_cv_type_pid_t=no
27160 fi
27161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27162 fi
27163 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27164 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27165 if test $ac_cv_type_pid_t = yes; then
27166   :
27167 else
27168
27169 cat >>confdefs.h <<_ACEOF
27170 #define pid_t int
27171 _ACEOF
27172
27173 fi
27174
27175 echo "$as_me:$LINENO: checking for size_t" >&5
27176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27177 if test "${ac_cv_type_size_t+set}" = set; then
27178   echo $ECHO_N "(cached) $ECHO_C" >&6
27179 else
27180   cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186 $ac_includes_default
27187 int
27188 main ()
27189 {
27190 if ((size_t *) 0)
27191   return 0;
27192 if (sizeof (size_t))
27193   return 0;
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 rm -f conftest.$ac_objext
27199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27200   (eval $ac_compile) 2>conftest.er1
27201   ac_status=$?
27202   grep -v '^ *+' conftest.er1 >conftest.err
27203   rm -f conftest.er1
27204   cat conftest.err >&5
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); } &&
27207          { ac_try='test -z "$ac_c_werror_flag"
27208                          || test ! -s conftest.err'
27209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210   (eval $ac_try) 2>&5
27211   ac_status=$?
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); }; } &&
27214          { ac_try='test -s conftest.$ac_objext'
27215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216   (eval $ac_try) 2>&5
27217   ac_status=$?
27218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); }; }; then
27220   ac_cv_type_size_t=yes
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225 ac_cv_type_size_t=no
27226 fi
27227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27228 fi
27229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27231 if test $ac_cv_type_size_t = yes; then
27232   :
27233 else
27234
27235 cat >>confdefs.h <<_ACEOF
27236 #define size_t unsigned
27237 _ACEOF
27238
27239 fi
27240
27241 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27242 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27243 if test "${ac_cv_type_signal+set}" = set; then
27244   echo $ECHO_N "(cached) $ECHO_C" >&6
27245 else
27246   cat >conftest.$ac_ext <<_ACEOF
27247 /* confdefs.h.  */
27248 _ACEOF
27249 cat confdefs.h >>conftest.$ac_ext
27250 cat >>conftest.$ac_ext <<_ACEOF
27251 /* end confdefs.h.  */
27252 #include <sys/types.h>
27253 #include <signal.h>
27254 #ifdef signal
27255 # undef signal
27256 #endif
27257 #ifdef __cplusplus
27258 extern "C" void (*signal (int, void (*)(int)))(int);
27259 #else
27260 void (*signal ()) ();
27261 #endif
27262
27263 int
27264 main ()
27265 {
27266 int i;
27267   ;
27268   return 0;
27269 }
27270 _ACEOF
27271 rm -f conftest.$ac_objext
27272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27273   (eval $ac_compile) 2>conftest.er1
27274   ac_status=$?
27275   grep -v '^ *+' conftest.er1 >conftest.err
27276   rm -f conftest.er1
27277   cat conftest.err >&5
27278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279   (exit $ac_status); } &&
27280          { ac_try='test -z "$ac_c_werror_flag"
27281                          || test ! -s conftest.err'
27282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283   (eval $ac_try) 2>&5
27284   ac_status=$?
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); }; } &&
27287          { ac_try='test -s conftest.$ac_objext'
27288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289   (eval $ac_try) 2>&5
27290   ac_status=$?
27291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292   (exit $ac_status); }; }; then
27293   ac_cv_type_signal=void
27294 else
27295   echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27297
27298 ac_cv_type_signal=int
27299 fi
27300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27301 fi
27302 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27303 echo "${ECHO_T}$ac_cv_type_signal" >&6
27304
27305 cat >>confdefs.h <<_ACEOF
27306 #define RETSIGTYPE $ac_cv_type_signal
27307 _ACEOF
27308
27309
27310 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27311 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27312 if test "${ac_cv_struct_tm+set}" = set; then
27313   echo $ECHO_N "(cached) $ECHO_C" >&6
27314 else
27315   cat >conftest.$ac_ext <<_ACEOF
27316 /* confdefs.h.  */
27317 _ACEOF
27318 cat confdefs.h >>conftest.$ac_ext
27319 cat >>conftest.$ac_ext <<_ACEOF
27320 /* end confdefs.h.  */
27321 #include <sys/types.h>
27322 #include <time.h>
27323
27324 int
27325 main ()
27326 {
27327 struct tm *tp; tp->tm_sec;
27328   ;
27329   return 0;
27330 }
27331 _ACEOF
27332 rm -f conftest.$ac_objext
27333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27334   (eval $ac_compile) 2>conftest.er1
27335   ac_status=$?
27336   grep -v '^ *+' conftest.er1 >conftest.err
27337   rm -f conftest.er1
27338   cat conftest.err >&5
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); } &&
27341          { ac_try='test -z "$ac_c_werror_flag"
27342                          || test ! -s conftest.err'
27343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344   (eval $ac_try) 2>&5
27345   ac_status=$?
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); }; } &&
27348          { ac_try='test -s conftest.$ac_objext'
27349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350   (eval $ac_try) 2>&5
27351   ac_status=$?
27352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353   (exit $ac_status); }; }; then
27354   ac_cv_struct_tm=time.h
27355 else
27356   echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359 ac_cv_struct_tm=sys/time.h
27360 fi
27361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27362 fi
27363 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27364 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27365 if test $ac_cv_struct_tm = sys/time.h; then
27366
27367 cat >>confdefs.h <<\_ACEOF
27368 #define TM_IN_SYS_TIME 1
27369 _ACEOF
27370
27371 fi
27372
27373 echo "$as_me:$LINENO: checking for int64_t" >&5
27374 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27375 if test "${ac_cv_type_int64_t+set}" = set; then
27376   echo $ECHO_N "(cached) $ECHO_C" >&6
27377 else
27378   cat >conftest.$ac_ext <<_ACEOF
27379 /* confdefs.h.  */
27380 _ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h.  */
27384 $ac_includes_default
27385 int
27386 main ()
27387 {
27388 if ((int64_t *) 0)
27389   return 0;
27390 if (sizeof (int64_t))
27391   return 0;
27392   ;
27393   return 0;
27394 }
27395 _ACEOF
27396 rm -f conftest.$ac_objext
27397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27398   (eval $ac_compile) 2>conftest.er1
27399   ac_status=$?
27400   grep -v '^ *+' conftest.er1 >conftest.err
27401   rm -f conftest.er1
27402   cat conftest.err >&5
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); } &&
27405          { ac_try='test -z "$ac_c_werror_flag"
27406                          || test ! -s conftest.err'
27407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408   (eval $ac_try) 2>&5
27409   ac_status=$?
27410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); }; } &&
27412          { ac_try='test -s conftest.$ac_objext'
27413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27414   (eval $ac_try) 2>&5
27415   ac_status=$?
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); }; }; then
27418   ac_cv_type_int64_t=yes
27419 else
27420   echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27422
27423 ac_cv_type_int64_t=no
27424 fi
27425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27426 fi
27427 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27428 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27429 if test $ac_cv_type_int64_t = yes; then
27430
27431 cat >>confdefs.h <<_ACEOF
27432 #define HAVE_INT64_T 1
27433 _ACEOF
27434
27435
27436 else
27437   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27438 echo "$as_me: error: Type int64_t required but not found" >&2;}
27439    { (exit 1); exit 1; }; }
27440 fi
27441
27442 echo "$as_me:$LINENO: checking for uint64_t" >&5
27443 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27444 if test "${ac_cv_type_uint64_t+set}" = set; then
27445   echo $ECHO_N "(cached) $ECHO_C" >&6
27446 else
27447   cat >conftest.$ac_ext <<_ACEOF
27448 /* confdefs.h.  */
27449 _ACEOF
27450 cat confdefs.h >>conftest.$ac_ext
27451 cat >>conftest.$ac_ext <<_ACEOF
27452 /* end confdefs.h.  */
27453 $ac_includes_default
27454 int
27455 main ()
27456 {
27457 if ((uint64_t *) 0)
27458   return 0;
27459 if (sizeof (uint64_t))
27460   return 0;
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 rm -f conftest.$ac_objext
27466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27467   (eval $ac_compile) 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } &&
27474          { ac_try='test -z "$ac_c_werror_flag"
27475                          || test ! -s conftest.err'
27476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477   (eval $ac_try) 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; } &&
27481          { ac_try='test -s conftest.$ac_objext'
27482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483   (eval $ac_try) 2>&5
27484   ac_status=$?
27485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486   (exit $ac_status); }; }; then
27487   ac_cv_type_uint64_t=yes
27488 else
27489   echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27491
27492 ac_cv_type_uint64_t=no
27493 fi
27494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27495 fi
27496 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27497 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27498 if test $ac_cv_type_uint64_t = yes; then
27499
27500 cat >>confdefs.h <<_ACEOF
27501 #define HAVE_UINT64_T 1
27502 _ACEOF
27503
27504
27505 else
27506   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27507 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27508 if test "${ac_cv_type_u_int64_t+set}" = set; then
27509   echo $ECHO_N "(cached) $ECHO_C" >&6
27510 else
27511   cat >conftest.$ac_ext <<_ACEOF
27512 /* confdefs.h.  */
27513 _ACEOF
27514 cat confdefs.h >>conftest.$ac_ext
27515 cat >>conftest.$ac_ext <<_ACEOF
27516 /* end confdefs.h.  */
27517 $ac_includes_default
27518 int
27519 main ()
27520 {
27521 if ((u_int64_t *) 0)
27522   return 0;
27523 if (sizeof (u_int64_t))
27524   return 0;
27525   ;
27526   return 0;
27527 }
27528 _ACEOF
27529 rm -f conftest.$ac_objext
27530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27531   (eval $ac_compile) 2>conftest.er1
27532   ac_status=$?
27533   grep -v '^ *+' conftest.er1 >conftest.err
27534   rm -f conftest.er1
27535   cat conftest.err >&5
27536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537   (exit $ac_status); } &&
27538          { ac_try='test -z "$ac_c_werror_flag"
27539                          || test ! -s conftest.err'
27540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541   (eval $ac_try) 2>&5
27542   ac_status=$?
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); }; } &&
27545          { ac_try='test -s conftest.$ac_objext'
27546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547   (eval $ac_try) 2>&5
27548   ac_status=$?
27549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550   (exit $ac_status); }; }; then
27551   ac_cv_type_u_int64_t=yes
27552 else
27553   echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27555
27556 ac_cv_type_u_int64_t=no
27557 fi
27558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27559 fi
27560 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27561 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27562 if test $ac_cv_type_u_int64_t = yes; then
27563
27564 cat >>confdefs.h <<_ACEOF
27565 #define HAVE_U_INT64_T 1
27566 _ACEOF
27567
27568
27569 else
27570   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27571 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27572    { (exit 1); exit 1; }; }
27573 fi
27574
27575 fi
27576
27577
27578
27579
27580
27581
27582
27583
27584 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27585 do
27586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27587 echo "$as_me:$LINENO: checking for $ac_func" >&5
27588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27589 if eval "test \"\${$as_ac_var+set}\" = set"; then
27590   echo $ECHO_N "(cached) $ECHO_C" >&6
27591 else
27592   cat >conftest.$ac_ext <<_ACEOF
27593 /* confdefs.h.  */
27594 _ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h.  */
27598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27600 #define $ac_func innocuous_$ac_func
27601
27602 /* System header to define __stub macros and hopefully few prototypes,
27603     which can conflict with char $ac_func (); below.
27604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27605     <limits.h> exists even on freestanding compilers.  */
27606
27607 #ifdef __STDC__
27608 # include <limits.h>
27609 #else
27610 # include <assert.h>
27611 #endif
27612
27613 #undef $ac_func
27614
27615 /* Override any gcc2 internal prototype to avoid an error.  */
27616 #ifdef __cplusplus
27617 extern "C"
27618 {
27619 #endif
27620 /* We use char because int might match the return type of a gcc2
27621    builtin and then its argument prototype would still apply.  */
27622 char $ac_func ();
27623 /* The GNU C library defines this for functions which it implements
27624     to always fail with ENOSYS.  Some functions are actually named
27625     something starting with __ and the normal name is an alias.  */
27626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27627 choke me
27628 #else
27629 char (*f) () = $ac_func;
27630 #endif
27631 #ifdef __cplusplus
27632 }
27633 #endif
27634
27635 int
27636 main ()
27637 {
27638 return f != $ac_func;
27639   ;
27640   return 0;
27641 }
27642 _ACEOF
27643 rm -f conftest.$ac_objext conftest$ac_exeext
27644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27645   (eval $ac_link) 2>conftest.er1
27646   ac_status=$?
27647   grep -v '^ *+' conftest.er1 >conftest.err
27648   rm -f conftest.er1
27649   cat conftest.err >&5
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); } &&
27652          { ac_try='test -z "$ac_c_werror_flag"
27653                          || test ! -s conftest.err'
27654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27655   (eval $ac_try) 2>&5
27656   ac_status=$?
27657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   (exit $ac_status); }; } &&
27659          { ac_try='test -s conftest$ac_exeext'
27660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661   (eval $ac_try) 2>&5
27662   ac_status=$?
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); }; }; then
27665   eval "$as_ac_var=yes"
27666 else
27667   echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27669
27670 eval "$as_ac_var=no"
27671 fi
27672 rm -f conftest.err conftest.$ac_objext \
27673       conftest$ac_exeext conftest.$ac_ext
27674 fi
27675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27677 if test `eval echo '${'$as_ac_var'}'` = yes; then
27678   cat >>confdefs.h <<_ACEOF
27679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27680 _ACEOF
27681
27682 fi
27683 done
27684
27685
27686
27687
27688
27689 for ac_func in isatty mkdtemp mkstemp mktemp
27690 do
27691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27692 echo "$as_me:$LINENO: checking for $ac_func" >&5
27693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27694 if eval "test \"\${$as_ac_var+set}\" = set"; then
27695   echo $ECHO_N "(cached) $ECHO_C" >&6
27696 else
27697   cat >conftest.$ac_ext <<_ACEOF
27698 /* confdefs.h.  */
27699 _ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h.  */
27703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27705 #define $ac_func innocuous_$ac_func
27706
27707 /* System header to define __stub macros and hopefully few prototypes,
27708     which can conflict with char $ac_func (); below.
27709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27710     <limits.h> exists even on freestanding compilers.  */
27711
27712 #ifdef __STDC__
27713 # include <limits.h>
27714 #else
27715 # include <assert.h>
27716 #endif
27717
27718 #undef $ac_func
27719
27720 /* Override any gcc2 internal prototype to avoid an error.  */
27721 #ifdef __cplusplus
27722 extern "C"
27723 {
27724 #endif
27725 /* We use char because int might match the return type of a gcc2
27726    builtin and then its argument prototype would still apply.  */
27727 char $ac_func ();
27728 /* The GNU C library defines this for functions which it implements
27729     to always fail with ENOSYS.  Some functions are actually named
27730     something starting with __ and the normal name is an alias.  */
27731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27732 choke me
27733 #else
27734 char (*f) () = $ac_func;
27735 #endif
27736 #ifdef __cplusplus
27737 }
27738 #endif
27739
27740 int
27741 main ()
27742 {
27743 return f != $ac_func;
27744   ;
27745   return 0;
27746 }
27747 _ACEOF
27748 rm -f conftest.$ac_objext conftest$ac_exeext
27749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27750   (eval $ac_link) 2>conftest.er1
27751   ac_status=$?
27752   grep -v '^ *+' conftest.er1 >conftest.err
27753   rm -f conftest.er1
27754   cat conftest.err >&5
27755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756   (exit $ac_status); } &&
27757          { ac_try='test -z "$ac_c_werror_flag"
27758                          || test ! -s conftest.err'
27759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760   (eval $ac_try) 2>&5
27761   ac_status=$?
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); }; } &&
27764          { ac_try='test -s conftest$ac_exeext'
27765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766   (eval $ac_try) 2>&5
27767   ac_status=$?
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); }; }; then
27770   eval "$as_ac_var=yes"
27771 else
27772   echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27774
27775 eval "$as_ac_var=no"
27776 fi
27777 rm -f conftest.err conftest.$ac_objext \
27778       conftest$ac_exeext conftest.$ac_ext
27779 fi
27780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27782 if test `eval echo '${'$as_ac_var'}'` = yes; then
27783   cat >>confdefs.h <<_ACEOF
27784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27785 _ACEOF
27786
27787 fi
27788 done
27789
27790
27791
27792
27793
27794
27795
27796 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27797 do
27798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799 echo "$as_me:$LINENO: checking for $ac_func" >&5
27800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27801 if eval "test \"\${$as_ac_var+set}\" = set"; then
27802   echo $ECHO_N "(cached) $ECHO_C" >&6
27803 else
27804   cat >conftest.$ac_ext <<_ACEOF
27805 /* confdefs.h.  */
27806 _ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h.  */
27810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27812 #define $ac_func innocuous_$ac_func
27813
27814 /* System header to define __stub macros and hopefully few prototypes,
27815     which can conflict with char $ac_func (); below.
27816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27817     <limits.h> exists even on freestanding compilers.  */
27818
27819 #ifdef __STDC__
27820 # include <limits.h>
27821 #else
27822 # include <assert.h>
27823 #endif
27824
27825 #undef $ac_func
27826
27827 /* Override any gcc2 internal prototype to avoid an error.  */
27828 #ifdef __cplusplus
27829 extern "C"
27830 {
27831 #endif
27832 /* We use char because int might match the return type of a gcc2
27833    builtin and then its argument prototype would still apply.  */
27834 char $ac_func ();
27835 /* The GNU C library defines this for functions which it implements
27836     to always fail with ENOSYS.  Some functions are actually named
27837     something starting with __ and the normal name is an alias.  */
27838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27839 choke me
27840 #else
27841 char (*f) () = $ac_func;
27842 #endif
27843 #ifdef __cplusplus
27844 }
27845 #endif
27846
27847 int
27848 main ()
27849 {
27850 return f != $ac_func;
27851   ;
27852   return 0;
27853 }
27854 _ACEOF
27855 rm -f conftest.$ac_objext conftest$ac_exeext
27856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27857   (eval $ac_link) 2>conftest.er1
27858   ac_status=$?
27859   grep -v '^ *+' conftest.er1 >conftest.err
27860   rm -f conftest.er1
27861   cat conftest.err >&5
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); } &&
27864          { ac_try='test -z "$ac_c_werror_flag"
27865                          || test ! -s conftest.err'
27866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867   (eval $ac_try) 2>&5
27868   ac_status=$?
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); }; } &&
27871          { ac_try='test -s conftest$ac_exeext'
27872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873   (eval $ac_try) 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; }; then
27877   eval "$as_ac_var=yes"
27878 else
27879   echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27881
27882 eval "$as_ac_var=no"
27883 fi
27884 rm -f conftest.err conftest.$ac_objext \
27885       conftest$ac_exeext conftest.$ac_ext
27886 fi
27887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27889 if test `eval echo '${'$as_ac_var'}'` = yes; then
27890   cat >>confdefs.h <<_ACEOF
27891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27892 _ACEOF
27893
27894 fi
27895 done
27896
27897
27898
27899
27900 for ac_func in strtoll strtoq sysconf
27901 do
27902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27903 echo "$as_me:$LINENO: checking for $ac_func" >&5
27904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27905 if eval "test \"\${$as_ac_var+set}\" = set"; then
27906   echo $ECHO_N "(cached) $ECHO_C" >&6
27907 else
27908   cat >conftest.$ac_ext <<_ACEOF
27909 /* confdefs.h.  */
27910 _ACEOF
27911 cat confdefs.h >>conftest.$ac_ext
27912 cat >>conftest.$ac_ext <<_ACEOF
27913 /* end confdefs.h.  */
27914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27916 #define $ac_func innocuous_$ac_func
27917
27918 /* System header to define __stub macros and hopefully few prototypes,
27919     which can conflict with char $ac_func (); below.
27920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27921     <limits.h> exists even on freestanding compilers.  */
27922
27923 #ifdef __STDC__
27924 # include <limits.h>
27925 #else
27926 # include <assert.h>
27927 #endif
27928
27929 #undef $ac_func
27930
27931 /* Override any gcc2 internal prototype to avoid an error.  */
27932 #ifdef __cplusplus
27933 extern "C"
27934 {
27935 #endif
27936 /* We use char because int might match the return type of a gcc2
27937    builtin and then its argument prototype would still apply.  */
27938 char $ac_func ();
27939 /* The GNU C library defines this for functions which it implements
27940     to always fail with ENOSYS.  Some functions are actually named
27941     something starting with __ and the normal name is an alias.  */
27942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27943 choke me
27944 #else
27945 char (*f) () = $ac_func;
27946 #endif
27947 #ifdef __cplusplus
27948 }
27949 #endif
27950
27951 int
27952 main ()
27953 {
27954 return f != $ac_func;
27955   ;
27956   return 0;
27957 }
27958 _ACEOF
27959 rm -f conftest.$ac_objext conftest$ac_exeext
27960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27961   (eval $ac_link) 2>conftest.er1
27962   ac_status=$?
27963   grep -v '^ *+' conftest.er1 >conftest.err
27964   rm -f conftest.er1
27965   cat conftest.err >&5
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); } &&
27968          { ac_try='test -z "$ac_c_werror_flag"
27969                          || test ! -s conftest.err'
27970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971   (eval $ac_try) 2>&5
27972   ac_status=$?
27973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974   (exit $ac_status); }; } &&
27975          { ac_try='test -s conftest$ac_exeext'
27976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977   (eval $ac_try) 2>&5
27978   ac_status=$?
27979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980   (exit $ac_status); }; }; then
27981   eval "$as_ac_var=yes"
27982 else
27983   echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27985
27986 eval "$as_ac_var=no"
27987 fi
27988 rm -f conftest.err conftest.$ac_objext \
27989       conftest$ac_exeext conftest.$ac_ext
27990 fi
27991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27993 if test `eval echo '${'$as_ac_var'}'` = yes; then
27994   cat >>confdefs.h <<_ACEOF
27995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27996 _ACEOF
27997
27998 fi
27999 done
28000
28001 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28002 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28003 if test "${llvm_cv_c_printf_a+set}" = set; then
28004   echo $ECHO_N "(cached) $ECHO_C" >&6
28005 else
28006   ac_ext=c
28007 ac_cpp='$CPP $CPPFLAGS'
28008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28011
28012  if test "$cross_compiling" = yes; then
28013   llvmac_cv_c_printf_a=no
28014 else
28015   cat >conftest.$ac_ext <<_ACEOF
28016
28017   /* confdefs.h.  */
28018 _ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h.  */
28022
28023 #include <stdio.h>
28024 #include <stdlib.h>
28025
28026 int
28027 main ()
28028 {
28029
28030 volatile double A, B;
28031 char Buffer[100];
28032 A = 1;
28033 A /= 10.0;
28034 sprintf(Buffer, "%a", A);
28035 B = atof(Buffer);
28036 if (A != B)
28037   return (1);
28038 if (A != 0x1.999999999999ap-4)
28039   return (1);
28040 return (0);
28041   ;
28042   return 0;
28043 }
28044 _ACEOF
28045 rm -f conftest$ac_exeext
28046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28047   (eval $ac_link) 2>&5
28048   ac_status=$?
28049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28052   (eval $ac_try) 2>&5
28053   ac_status=$?
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); }; }; then
28056   llvm_cv_c_printf_a=yes
28057 else
28058   echo "$as_me: program exited with status $ac_status" >&5
28059 echo "$as_me: failed program was:" >&5
28060 sed 's/^/| /' conftest.$ac_ext >&5
28061
28062 ( exit $ac_status )
28063 llvmac_cv_c_printf_a=no
28064 fi
28065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28066 fi
28067  ac_ext=c
28068 ac_cpp='$CPP $CPPFLAGS'
28069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28072
28073 fi
28074 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28075 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28076  if test "$llvm_cv_c_printf_a" = "yes"; then
28077
28078 cat >>confdefs.h <<\_ACEOF
28079 #define HAVE_PRINTF_A 1
28080 _ACEOF
28081
28082  fi
28083
28084 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28085 # for constant arguments.  Useless!
28086 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28087 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28088 if test "${ac_cv_working_alloca_h+set}" = set; then
28089   echo $ECHO_N "(cached) $ECHO_C" >&6
28090 else
28091   cat >conftest.$ac_ext <<_ACEOF
28092 /* confdefs.h.  */
28093 _ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h.  */
28097 #include <alloca.h>
28098 int
28099 main ()
28100 {
28101 char *p = (char *) alloca (2 * sizeof (int));
28102   ;
28103   return 0;
28104 }
28105 _ACEOF
28106 rm -f conftest.$ac_objext conftest$ac_exeext
28107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28108   (eval $ac_link) 2>conftest.er1
28109   ac_status=$?
28110   grep -v '^ *+' conftest.er1 >conftest.err
28111   rm -f conftest.er1
28112   cat conftest.err >&5
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } &&
28115          { ac_try='test -z "$ac_c_werror_flag"
28116                          || test ! -s conftest.err'
28117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118   (eval $ac_try) 2>&5
28119   ac_status=$?
28120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121   (exit $ac_status); }; } &&
28122          { ac_try='test -s conftest$ac_exeext'
28123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124   (eval $ac_try) 2>&5
28125   ac_status=$?
28126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127   (exit $ac_status); }; }; then
28128   ac_cv_working_alloca_h=yes
28129 else
28130   echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28132
28133 ac_cv_working_alloca_h=no
28134 fi
28135 rm -f conftest.err conftest.$ac_objext \
28136       conftest$ac_exeext conftest.$ac_ext
28137 fi
28138 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28139 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28140 if test $ac_cv_working_alloca_h = yes; then
28141
28142 cat >>confdefs.h <<\_ACEOF
28143 #define HAVE_ALLOCA_H 1
28144 _ACEOF
28145
28146 fi
28147
28148 echo "$as_me:$LINENO: checking for alloca" >&5
28149 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28150 if test "${ac_cv_func_alloca_works+set}" = set; then
28151   echo $ECHO_N "(cached) $ECHO_C" >&6
28152 else
28153   cat >conftest.$ac_ext <<_ACEOF
28154 /* confdefs.h.  */
28155 _ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h.  */
28159 #ifdef __GNUC__
28160 # define alloca __builtin_alloca
28161 #else
28162 # ifdef _MSC_VER
28163 #  include <malloc.h>
28164 #  define alloca _alloca
28165 # else
28166 #  if HAVE_ALLOCA_H
28167 #   include <alloca.h>
28168 #  else
28169 #   ifdef _AIX
28170  #pragma alloca
28171 #   else
28172 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28173 char *alloca ();
28174 #    endif
28175 #   endif
28176 #  endif
28177 # endif
28178 #endif
28179
28180 int
28181 main ()
28182 {
28183 char *p = (char *) alloca (1);
28184   ;
28185   return 0;
28186 }
28187 _ACEOF
28188 rm -f conftest.$ac_objext conftest$ac_exeext
28189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28190   (eval $ac_link) 2>conftest.er1
28191   ac_status=$?
28192   grep -v '^ *+' conftest.er1 >conftest.err
28193   rm -f conftest.er1
28194   cat conftest.err >&5
28195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196   (exit $ac_status); } &&
28197          { ac_try='test -z "$ac_c_werror_flag"
28198                          || test ! -s conftest.err'
28199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200   (eval $ac_try) 2>&5
28201   ac_status=$?
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); }; } &&
28204          { ac_try='test -s conftest$ac_exeext'
28205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206   (eval $ac_try) 2>&5
28207   ac_status=$?
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); }; }; then
28210   ac_cv_func_alloca_works=yes
28211 else
28212   echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28214
28215 ac_cv_func_alloca_works=no
28216 fi
28217 rm -f conftest.err conftest.$ac_objext \
28218       conftest$ac_exeext conftest.$ac_ext
28219 fi
28220 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28221 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28222
28223 if test $ac_cv_func_alloca_works = yes; then
28224
28225 cat >>confdefs.h <<\_ACEOF
28226 #define HAVE_ALLOCA 1
28227 _ACEOF
28228
28229 else
28230   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28231 # that cause trouble.  Some versions do not even contain alloca or
28232 # contain a buggy version.  If you still want to use their alloca,
28233 # use ar to extract alloca.o from them instead of compiling alloca.c.
28234
28235 ALLOCA=alloca.$ac_objext
28236
28237 cat >>confdefs.h <<\_ACEOF
28238 #define C_ALLOCA 1
28239 _ACEOF
28240
28241
28242 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28243 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28244 if test "${ac_cv_os_cray+set}" = set; then
28245   echo $ECHO_N "(cached) $ECHO_C" >&6
28246 else
28247   cat >conftest.$ac_ext <<_ACEOF
28248 /* confdefs.h.  */
28249 _ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h.  */
28253 #if defined(CRAY) && ! defined(CRAY2)
28254 webecray
28255 #else
28256 wenotbecray
28257 #endif
28258
28259 _ACEOF
28260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28261   $EGREP "webecray" >/dev/null 2>&1; then
28262   ac_cv_os_cray=yes
28263 else
28264   ac_cv_os_cray=no
28265 fi
28266 rm -f conftest*
28267
28268 fi
28269 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28270 echo "${ECHO_T}$ac_cv_os_cray" >&6
28271 if test $ac_cv_os_cray = yes; then
28272   for ac_func in _getb67 GETB67 getb67; do
28273     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28274 echo "$as_me:$LINENO: checking for $ac_func" >&5
28275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28276 if eval "test \"\${$as_ac_var+set}\" = set"; then
28277   echo $ECHO_N "(cached) $ECHO_C" >&6
28278 else
28279   cat >conftest.$ac_ext <<_ACEOF
28280 /* confdefs.h.  */
28281 _ACEOF
28282 cat confdefs.h >>conftest.$ac_ext
28283 cat >>conftest.$ac_ext <<_ACEOF
28284 /* end confdefs.h.  */
28285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28287 #define $ac_func innocuous_$ac_func
28288
28289 /* System header to define __stub macros and hopefully few prototypes,
28290     which can conflict with char $ac_func (); below.
28291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28292     <limits.h> exists even on freestanding compilers.  */
28293
28294 #ifdef __STDC__
28295 # include <limits.h>
28296 #else
28297 # include <assert.h>
28298 #endif
28299
28300 #undef $ac_func
28301
28302 /* Override any gcc2 internal prototype to avoid an error.  */
28303 #ifdef __cplusplus
28304 extern "C"
28305 {
28306 #endif
28307 /* We use char because int might match the return type of a gcc2
28308    builtin and then its argument prototype would still apply.  */
28309 char $ac_func ();
28310 /* The GNU C library defines this for functions which it implements
28311     to always fail with ENOSYS.  Some functions are actually named
28312     something starting with __ and the normal name is an alias.  */
28313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28314 choke me
28315 #else
28316 char (*f) () = $ac_func;
28317 #endif
28318 #ifdef __cplusplus
28319 }
28320 #endif
28321
28322 int
28323 main ()
28324 {
28325 return f != $ac_func;
28326   ;
28327   return 0;
28328 }
28329 _ACEOF
28330 rm -f conftest.$ac_objext conftest$ac_exeext
28331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28332   (eval $ac_link) 2>conftest.er1
28333   ac_status=$?
28334   grep -v '^ *+' conftest.er1 >conftest.err
28335   rm -f conftest.er1
28336   cat conftest.err >&5
28337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338   (exit $ac_status); } &&
28339          { ac_try='test -z "$ac_c_werror_flag"
28340                          || test ! -s conftest.err'
28341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342   (eval $ac_try) 2>&5
28343   ac_status=$?
28344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345   (exit $ac_status); }; } &&
28346          { ac_try='test -s conftest$ac_exeext'
28347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348   (eval $ac_try) 2>&5
28349   ac_status=$?
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); }; }; then
28352   eval "$as_ac_var=yes"
28353 else
28354   echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28356
28357 eval "$as_ac_var=no"
28358 fi
28359 rm -f conftest.err conftest.$ac_objext \
28360       conftest$ac_exeext conftest.$ac_ext
28361 fi
28362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28364 if test `eval echo '${'$as_ac_var'}'` = yes; then
28365
28366 cat >>confdefs.h <<_ACEOF
28367 #define CRAY_STACKSEG_END $ac_func
28368 _ACEOF
28369
28370     break
28371 fi
28372
28373   done
28374 fi
28375
28376 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28377 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28378 if test "${ac_cv_c_stack_direction+set}" = set; then
28379   echo $ECHO_N "(cached) $ECHO_C" >&6
28380 else
28381   if test "$cross_compiling" = yes; then
28382   ac_cv_c_stack_direction=0
28383 else
28384   cat >conftest.$ac_ext <<_ACEOF
28385 /* confdefs.h.  */
28386 _ACEOF
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h.  */
28390 int
28391 find_stack_direction ()
28392 {
28393   static char *addr = 0;
28394   auto char dummy;
28395   if (addr == 0)
28396     {
28397       addr = &dummy;
28398       return find_stack_direction ();
28399     }
28400   else
28401     return (&dummy > addr) ? 1 : -1;
28402 }
28403
28404 int
28405 main ()
28406 {
28407   exit (find_stack_direction () < 0);
28408 }
28409 _ACEOF
28410 rm -f conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412   (eval $ac_link) 2>&5
28413   ac_status=$?
28414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417   (eval $ac_try) 2>&5
28418   ac_status=$?
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; }; then
28421   ac_cv_c_stack_direction=1
28422 else
28423   echo "$as_me: program exited with status $ac_status" >&5
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28426
28427 ( exit $ac_status )
28428 ac_cv_c_stack_direction=-1
28429 fi
28430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28431 fi
28432 fi
28433 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28434 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28435
28436 cat >>confdefs.h <<_ACEOF
28437 #define STACK_DIRECTION $ac_cv_c_stack_direction
28438 _ACEOF
28439
28440
28441 fi
28442
28443
28444 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28445 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28446 if test "${ac_cv_func_rand48+set}" = set; then
28447   echo $ECHO_N "(cached) $ECHO_C" >&6
28448 else
28449   ac_ext=cc
28450 ac_cpp='$CXXCPP $CPPFLAGS'
28451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28454
28455    cat >conftest.$ac_ext <<_ACEOF
28456 /* confdefs.h.  */
28457 _ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h.  */
28461 #include <stdlib.h>
28462 int
28463 main ()
28464 {
28465 srand48(0);lrand48();drand48();
28466   ;
28467   return 0;
28468 }
28469 _ACEOF
28470 rm -f conftest.$ac_objext
28471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28472   (eval $ac_compile) 2>conftest.er1
28473   ac_status=$?
28474   grep -v '^ *+' conftest.er1 >conftest.err
28475   rm -f conftest.er1
28476   cat conftest.err >&5
28477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478   (exit $ac_status); } &&
28479          { ac_try='test -z "$ac_cxx_werror_flag"
28480                          || test ! -s conftest.err'
28481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482   (eval $ac_try) 2>&5
28483   ac_status=$?
28484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485   (exit $ac_status); }; } &&
28486          { ac_try='test -s conftest.$ac_objext'
28487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488   (eval $ac_try) 2>&5
28489   ac_status=$?
28490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491   (exit $ac_status); }; }; then
28492   ac_cv_func_rand48=yes
28493 else
28494   echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28496
28497 ac_cv_func_rand48=no
28498 fi
28499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28500   ac_ext=c
28501 ac_cpp='$CPP $CPPFLAGS'
28502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28505
28506 fi
28507 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28508 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28509
28510 if test "$ac_cv_func_rand48" = "yes" ; then
28511
28512 cat >>confdefs.h <<\_ACEOF
28513 #define HAVE_RAND48 1
28514 _ACEOF
28515
28516 fi
28517
28518
28519 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28520 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28521 if test "${ac_cv_cxx_namespaces+set}" = set; then
28522   echo $ECHO_N "(cached) $ECHO_C" >&6
28523 else
28524   ac_ext=cc
28525 ac_cpp='$CXXCPP $CPPFLAGS'
28526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28529
28530  cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h.  */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h.  */
28536 namespace Outer { namespace Inner { int i = 0; }}
28537 int
28538 main ()
28539 {
28540 using namespace Outer::Inner; return i;
28541   ;
28542   return 0;
28543 }
28544 _ACEOF
28545 rm -f conftest.$ac_objext
28546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28547   (eval $ac_compile) 2>conftest.er1
28548   ac_status=$?
28549   grep -v '^ *+' conftest.er1 >conftest.err
28550   rm -f conftest.er1
28551   cat conftest.err >&5
28552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553   (exit $ac_status); } &&
28554          { ac_try='test -z "$ac_cxx_werror_flag"
28555                          || test ! -s conftest.err'
28556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557   (eval $ac_try) 2>&5
28558   ac_status=$?
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); }; } &&
28561          { ac_try='test -s conftest.$ac_objext'
28562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563   (eval $ac_try) 2>&5
28564   ac_status=$?
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); }; }; then
28567   ac_cv_cxx_namespaces=yes
28568 else
28569   echo "$as_me: failed program was:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28571
28572 ac_cv_cxx_namespaces=no
28573 fi
28574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28575  ac_ext=c
28576 ac_cpp='$CPP $CPPFLAGS'
28577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28580
28581
28582 fi
28583 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28584 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28585 if test "$ac_cv_cxx_namespaces" = yes; then
28586
28587 cat >>confdefs.h <<\_ACEOF
28588 #define HAVE_NAMESPACES
28589 _ACEOF
28590
28591 fi
28592
28593 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28594 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28595 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28596   echo $ECHO_N "(cached) $ECHO_C" >&6
28597 else
28598
28599   ac_ext=cc
28600 ac_cpp='$CXXCPP $CPPFLAGS'
28601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28604
28605   cat >conftest.$ac_ext <<_ACEOF
28606 /* confdefs.h.  */
28607 _ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h.  */
28611 #include <ext/hash_map>
28612 #ifdef HAVE_NAMESPACES
28613 using namespace std;
28614 #endif
28615 int
28616 main ()
28617 {
28618 hash_map<int, int> t;
28619   ;
28620   return 0;
28621 }
28622 _ACEOF
28623 rm -f conftest.$ac_objext
28624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28625   (eval $ac_compile) 2>conftest.er1
28626   ac_status=$?
28627   grep -v '^ *+' conftest.er1 >conftest.err
28628   rm -f conftest.er1
28629   cat conftest.err >&5
28630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631   (exit $ac_status); } &&
28632          { ac_try='test -z "$ac_cxx_werror_flag"
28633                          || test ! -s conftest.err'
28634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635   (eval $ac_try) 2>&5
28636   ac_status=$?
28637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638   (exit $ac_status); }; } &&
28639          { ac_try='test -s conftest.$ac_objext'
28640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641   (eval $ac_try) 2>&5
28642   ac_status=$?
28643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644   (exit $ac_status); }; }; then
28645   ac_cv_cxx_have_std_ext_hash_map=yes
28646 else
28647   echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28649
28650 ac_cv_cxx_have_std_ext_hash_map=no
28651 fi
28652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28653   ac_ext=c
28654 ac_cpp='$CPP $CPPFLAGS'
28655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28658
28659 fi
28660 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28661 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28662  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28663  then
28664
28665 cat >>confdefs.h <<\_ACEOF
28666 #define HAVE_STD_EXT_HASH_MAP 1
28667 _ACEOF
28668
28669  else
28670
28671 cat >>confdefs.h <<\_ACEOF
28672 #define HAVE_STD_EXT_HASH_MAP 0
28673 _ACEOF
28674
28675  fi
28676
28677  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28678 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28679 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28680   echo $ECHO_N "(cached) $ECHO_C" >&6
28681 else
28682
28683   ac_ext=cc
28684 ac_cpp='$CXXCPP $CPPFLAGS'
28685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28688
28689   cat >conftest.$ac_ext <<_ACEOF
28690 /* confdefs.h.  */
28691 _ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h.  */
28695 #include <ext/hash_map>
28696 #ifdef HAVE_NAMESPACES
28697 using namespace __gnu_cxx;
28698 #endif
28699 int
28700 main ()
28701 {
28702 hash_map<int,int> t;
28703   ;
28704   return 0;
28705 }
28706 _ACEOF
28707 rm -f conftest.$ac_objext
28708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28709   (eval $ac_compile) 2>conftest.er1
28710   ac_status=$?
28711   grep -v '^ *+' conftest.er1 >conftest.err
28712   rm -f conftest.er1
28713   cat conftest.err >&5
28714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715   (exit $ac_status); } &&
28716          { ac_try='test -z "$ac_cxx_werror_flag"
28717                          || test ! -s conftest.err'
28718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719   (eval $ac_try) 2>&5
28720   ac_status=$?
28721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722   (exit $ac_status); }; } &&
28723          { ac_try='test -s conftest.$ac_objext'
28724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725   (eval $ac_try) 2>&5
28726   ac_status=$?
28727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728   (exit $ac_status); }; }; then
28729   ac_cv_cxx_have_gnu_ext_hash_map=yes
28730 else
28731   echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28733
28734 ac_cv_cxx_have_gnu_ext_hash_map=no
28735 fi
28736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28737   ac_ext=c
28738 ac_cpp='$CPP $CPPFLAGS'
28739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28742
28743 fi
28744 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28745 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28746  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28747  then
28748
28749 cat >>confdefs.h <<\_ACEOF
28750 #define HAVE_GNU_EXT_HASH_MAP 1
28751 _ACEOF
28752
28753  else
28754
28755 cat >>confdefs.h <<\_ACEOF
28756 #define HAVE_GNU_EXT_HASH_MAP 0
28757 _ACEOF
28758
28759  fi
28760
28761  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28762 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28763 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28764   echo $ECHO_N "(cached) $ECHO_C" >&6
28765 else
28766
28767   ac_ext=cc
28768 ac_cpp='$CXXCPP $CPPFLAGS'
28769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28772
28773   cat >conftest.$ac_ext <<_ACEOF
28774 /* confdefs.h.  */
28775 _ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h.  */
28779 #include <hash_map>
28780 int
28781 main ()
28782 {
28783 hash_map<int,int> t;
28784   ;
28785   return 0;
28786 }
28787 _ACEOF
28788 rm -f conftest.$ac_objext
28789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28790   (eval $ac_compile) 2>conftest.er1
28791   ac_status=$?
28792   grep -v '^ *+' conftest.er1 >conftest.err
28793   rm -f conftest.er1
28794   cat conftest.err >&5
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); } &&
28797          { ac_try='test -z "$ac_cxx_werror_flag"
28798                          || test ! -s conftest.err'
28799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800   (eval $ac_try) 2>&5
28801   ac_status=$?
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); }; } &&
28804          { ac_try='test -s conftest.$ac_objext'
28805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806   (eval $ac_try) 2>&5
28807   ac_status=$?
28808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809   (exit $ac_status); }; }; then
28810   ac_cv_cxx_have_global_hash_map=yes
28811 else
28812   echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28814
28815 ac_cv_cxx_have_global_hash_map=no
28816 fi
28817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28818   ac_ext=c
28819 ac_cpp='$CPP $CPPFLAGS'
28820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28823
28824 fi
28825 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28826 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28827  if test "$ac_cv_cxx_have_global_hash_map" = yes
28828  then
28829
28830 cat >>confdefs.h <<\_ACEOF
28831 #define HAVE_GLOBAL_HASH_MAP 1
28832 _ACEOF
28833
28834  else
28835
28836 cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_GLOBAL_HASH_MAP 0
28838 _ACEOF
28839
28840  fi
28841
28842 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28843 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28844 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28845   echo $ECHO_N "(cached) $ECHO_C" >&6
28846 else
28847
28848   ac_ext=cc
28849 ac_cpp='$CXXCPP $CPPFLAGS'
28850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28853
28854   cat >conftest.$ac_ext <<_ACEOF
28855 /* confdefs.h.  */
28856 _ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h.  */
28860 #include <ext/hash_set>
28861 #ifdef HAVE_NAMESPACES
28862 using namespace std;
28863 #endif
28864 int
28865 main ()
28866 {
28867 hash_set<int> t;
28868   ;
28869   return 0;
28870 }
28871 _ACEOF
28872 rm -f conftest.$ac_objext
28873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28874   (eval $ac_compile) 2>conftest.er1
28875   ac_status=$?
28876   grep -v '^ *+' conftest.er1 >conftest.err
28877   rm -f conftest.er1
28878   cat conftest.err >&5
28879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880   (exit $ac_status); } &&
28881          { ac_try='test -z "$ac_cxx_werror_flag"
28882                          || test ! -s conftest.err'
28883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884   (eval $ac_try) 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; } &&
28888          { ac_try='test -s conftest.$ac_objext'
28889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890   (eval $ac_try) 2>&5
28891   ac_status=$?
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); }; }; then
28894   ac_cv_cxx_have_std_ext_hash_set=yes
28895 else
28896   echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28898
28899 ac_cv_cxx_have_std_ext_hash_set=no
28900 fi
28901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28902   ac_ext=c
28903 ac_cpp='$CPP $CPPFLAGS'
28904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28907
28908 fi
28909 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28910 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28911  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28912  then
28913
28914 cat >>confdefs.h <<\_ACEOF
28915 #define HAVE_STD_EXT_HASH_SET 1
28916 _ACEOF
28917
28918  else
28919
28920 cat >>confdefs.h <<\_ACEOF
28921 #define HAVE_STD_EXT_HASH_SET 0
28922 _ACEOF
28923
28924  fi
28925
28926  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28927 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28928 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28929   echo $ECHO_N "(cached) $ECHO_C" >&6
28930 else
28931
28932   ac_ext=cc
28933 ac_cpp='$CXXCPP $CPPFLAGS'
28934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28937
28938   cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944 #include <ext/hash_set>
28945 #ifdef HAVE_NAMESPACES
28946 using namespace __gnu_cxx;
28947 #endif
28948 int
28949 main ()
28950 {
28951 hash_set<int> t;
28952   ;
28953   return 0;
28954 }
28955 _ACEOF
28956 rm -f conftest.$ac_objext
28957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28958   (eval $ac_compile) 2>conftest.er1
28959   ac_status=$?
28960   grep -v '^ *+' conftest.er1 >conftest.err
28961   rm -f conftest.er1
28962   cat conftest.err >&5
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); } &&
28965          { ac_try='test -z "$ac_cxx_werror_flag"
28966                          || test ! -s conftest.err'
28967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968   (eval $ac_try) 2>&5
28969   ac_status=$?
28970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971   (exit $ac_status); }; } &&
28972          { ac_try='test -s conftest.$ac_objext'
28973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974   (eval $ac_try) 2>&5
28975   ac_status=$?
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); }; }; then
28978   ac_cv_cxx_have_gnu_ext_hash_set=yes
28979 else
28980   echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28982
28983 ac_cv_cxx_have_gnu_ext_hash_set=no
28984 fi
28985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28986   ac_ext=c
28987 ac_cpp='$CPP $CPPFLAGS'
28988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28991
28992 fi
28993 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28994 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28995  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28996  then
28997
28998 cat >>confdefs.h <<\_ACEOF
28999 #define HAVE_GNU_EXT_HASH_SET 1
29000 _ACEOF
29001
29002  else
29003
29004 cat >>confdefs.h <<\_ACEOF
29005 #define HAVE_GNU_EXT_HASH_SET 0
29006 _ACEOF
29007
29008  fi
29009
29010  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29011 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29012 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29013   echo $ECHO_N "(cached) $ECHO_C" >&6
29014 else
29015
29016   ac_ext=cc
29017 ac_cpp='$CXXCPP $CPPFLAGS'
29018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29021
29022   cat >conftest.$ac_ext <<_ACEOF
29023 /* confdefs.h.  */
29024 _ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h.  */
29028 #include <hash_set>
29029 int
29030 main ()
29031 {
29032 hash_set<int> t; return 0;
29033   ;
29034   return 0;
29035 }
29036 _ACEOF
29037 rm -f conftest.$ac_objext
29038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29039   (eval $ac_compile) 2>conftest.er1
29040   ac_status=$?
29041   grep -v '^ *+' conftest.er1 >conftest.err
29042   rm -f conftest.er1
29043   cat conftest.err >&5
29044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045   (exit $ac_status); } &&
29046          { ac_try='test -z "$ac_cxx_werror_flag"
29047                          || test ! -s conftest.err'
29048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049   (eval $ac_try) 2>&5
29050   ac_status=$?
29051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052   (exit $ac_status); }; } &&
29053          { ac_try='test -s conftest.$ac_objext'
29054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055   (eval $ac_try) 2>&5
29056   ac_status=$?
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); }; }; then
29059   ac_cv_cxx_have_global_hash_set=yes
29060 else
29061   echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064 ac_cv_cxx_have_global_hash_set=no
29065 fi
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29067   ac_ext=c
29068 ac_cpp='$CPP $CPPFLAGS'
29069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29072
29073 fi
29074 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29075 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29076  if test "$ac_cv_cxx_have_global_hash_set" = yes
29077  then
29078
29079 cat >>confdefs.h <<\_ACEOF
29080 #define HAVE_GLOBAL_HASH_SET 1
29081 _ACEOF
29082
29083  else
29084
29085 cat >>confdefs.h <<\_ACEOF
29086 #define HAVE_GLOBAL_HASH_SET 0
29087 _ACEOF
29088
29089  fi
29090
29091 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29092 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29093 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29094   echo $ECHO_N "(cached) $ECHO_C" >&6
29095 else
29096
29097   ac_ext=cc
29098 ac_cpp='$CXXCPP $CPPFLAGS'
29099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29102
29103   cat >conftest.$ac_ext <<_ACEOF
29104 /* confdefs.h.  */
29105 _ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h.  */
29109 #include <iterator>
29110 #ifdef HAVE_NAMESPACES
29111 using namespace std;
29112 #endif
29113 int
29114 main ()
29115 {
29116 iterator<int,int,int> t; return 0;
29117   ;
29118   return 0;
29119 }
29120 _ACEOF
29121 rm -f conftest.$ac_objext
29122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29123   (eval $ac_compile) 2>conftest.er1
29124   ac_status=$?
29125   grep -v '^ *+' conftest.er1 >conftest.err
29126   rm -f conftest.er1
29127   cat conftest.err >&5
29128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129   (exit $ac_status); } &&
29130          { ac_try='test -z "$ac_cxx_werror_flag"
29131                          || test ! -s conftest.err'
29132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133   (eval $ac_try) 2>&5
29134   ac_status=$?
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); }; } &&
29137          { ac_try='test -s conftest.$ac_objext'
29138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139   (eval $ac_try) 2>&5
29140   ac_status=$?
29141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142   (exit $ac_status); }; }; then
29143   ac_cv_cxx_have_std_iterator=yes
29144 else
29145   echo "$as_me: failed program was:" >&5
29146 sed 's/^/| /' conftest.$ac_ext >&5
29147
29148 ac_cv_cxx_have_std_iterator=no
29149 fi
29150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29151   ac_ext=c
29152 ac_cpp='$CPP $CPPFLAGS'
29153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29156
29157
29158 fi
29159 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29160 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29161 if test "$ac_cv_cxx_have_std_iterator" = yes
29162 then
29163
29164 cat >>confdefs.h <<\_ACEOF
29165 #define HAVE_STD_ITERATOR 1
29166 _ACEOF
29167
29168 else
29169
29170 cat >>confdefs.h <<\_ACEOF
29171 #define HAVE_STD_ITERATOR 0
29172 _ACEOF
29173
29174 fi
29175
29176 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29177 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29178 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29179   echo $ECHO_N "(cached) $ECHO_C" >&6
29180 else
29181
29182   ac_ext=cc
29183 ac_cpp='$CXXCPP $CPPFLAGS'
29184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29187
29188   cat >conftest.$ac_ext <<_ACEOF
29189 /* confdefs.h.  */
29190 _ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h.  */
29194 #include <iterator>
29195 #ifdef HAVE_NAMESPACES
29196 using namespace std;
29197 #endif
29198 int
29199 main ()
29200 {
29201 bidirectional_iterator<int,int> t; return 0;
29202   ;
29203   return 0;
29204 }
29205 _ACEOF
29206 rm -f conftest.$ac_objext
29207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29208   (eval $ac_compile) 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } &&
29215          { ac_try='test -z "$ac_cxx_werror_flag"
29216                          || test ! -s conftest.err'
29217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218   (eval $ac_try) 2>&5
29219   ac_status=$?
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); }; } &&
29222          { ac_try='test -s conftest.$ac_objext'
29223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224   (eval $ac_try) 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; }; then
29228   ac_cv_cxx_have_bi_iterator=yes
29229 else
29230   echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29232
29233 ac_cv_cxx_have_bi_iterator=no
29234 fi
29235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29236   ac_ext=c
29237 ac_cpp='$CPP $CPPFLAGS'
29238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29241
29242
29243 fi
29244 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29245 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29246 if test "$ac_cv_cxx_have_bi_iterator" = yes
29247 then
29248
29249 cat >>confdefs.h <<\_ACEOF
29250 #define HAVE_BI_ITERATOR 1
29251 _ACEOF
29252
29253 else
29254
29255 cat >>confdefs.h <<\_ACEOF
29256 #define HAVE_BI_ITERATOR 0
29257 _ACEOF
29258
29259 fi
29260
29261 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29262 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29263 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29264   echo $ECHO_N "(cached) $ECHO_C" >&6
29265 else
29266
29267   ac_ext=cc
29268 ac_cpp='$CXXCPP $CPPFLAGS'
29269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29272
29273   cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h.  */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h.  */
29279 #include <iterator>
29280 #ifdef HAVE_NAMESPACES
29281 using namespace std;
29282 #endif
29283 int
29284 main ()
29285 {
29286 forward_iterator<int,int> t; return 0;
29287   ;
29288   return 0;
29289 }
29290 _ACEOF
29291 rm -f conftest.$ac_objext
29292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29293   (eval $ac_compile) 2>conftest.er1
29294   ac_status=$?
29295   grep -v '^ *+' conftest.er1 >conftest.err
29296   rm -f conftest.er1
29297   cat conftest.err >&5
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); } &&
29300          { ac_try='test -z "$ac_cxx_werror_flag"
29301                          || test ! -s conftest.err'
29302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303   (eval $ac_try) 2>&5
29304   ac_status=$?
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); }; } &&
29307          { ac_try='test -s conftest.$ac_objext'
29308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309   (eval $ac_try) 2>&5
29310   ac_status=$?
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); }; }; then
29313   ac_cv_cxx_have_fwd_iterator=yes
29314 else
29315   echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29317
29318 ac_cv_cxx_have_fwd_iterator=no
29319 fi
29320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29321   ac_ext=c
29322 ac_cpp='$CPP $CPPFLAGS'
29323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29326
29327
29328 fi
29329 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29330 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29331 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29332 then
29333
29334 cat >>confdefs.h <<\_ACEOF
29335 #define HAVE_FWD_ITERATOR 1
29336 _ACEOF
29337
29338 else
29339
29340 cat >>confdefs.h <<\_ACEOF
29341 #define HAVE_FWD_ITERATOR 0
29342 _ACEOF
29343
29344 fi
29345
29346
29347 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29348 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29349 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29350   echo $ECHO_N "(cached) $ECHO_C" >&6
29351 else
29352   ac_ext=cc
29353 ac_cpp='$CXXCPP $CPPFLAGS'
29354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29357
29358    cat >conftest.$ac_ext <<_ACEOF
29359 /* confdefs.h.  */
29360 _ACEOF
29361 cat confdefs.h >>conftest.$ac_ext
29362 cat >>conftest.$ac_ext <<_ACEOF
29363 /* end confdefs.h.  */
29364 #include <math.h>
29365 int
29366 main ()
29367 {
29368 float f; isnan(f);
29369   ;
29370   return 0;
29371 }
29372 _ACEOF
29373 rm -f conftest.$ac_objext
29374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29375   (eval $ac_compile) 2>conftest.er1
29376   ac_status=$?
29377   grep -v '^ *+' conftest.er1 >conftest.err
29378   rm -f conftest.er1
29379   cat conftest.err >&5
29380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381   (exit $ac_status); } &&
29382          { ac_try='test -z "$ac_cxx_werror_flag"
29383                          || test ! -s conftest.err'
29384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385   (eval $ac_try) 2>&5
29386   ac_status=$?
29387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388   (exit $ac_status); }; } &&
29389          { ac_try='test -s conftest.$ac_objext'
29390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391   (eval $ac_try) 2>&5
29392   ac_status=$?
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); }; }; then
29395   ac_cv_func_isnan_in_math_h=yes
29396 else
29397   echo "$as_me: failed program was:" >&5
29398 sed 's/^/| /' conftest.$ac_ext >&5
29399
29400 ac_cv_func_isnan_in_math_h=no
29401 fi
29402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29403   ac_ext=c
29404 ac_cpp='$CPP $CPPFLAGS'
29405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29408
29409 fi
29410 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29411 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29412
29413
29414 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29415
29416 cat >>confdefs.h <<\_ACEOF
29417 #define HAVE_ISNAN_IN_MATH_H 1
29418 _ACEOF
29419
29420 fi
29421
29422 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29423 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29424 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29425   echo $ECHO_N "(cached) $ECHO_C" >&6
29426 else
29427   ac_ext=cc
29428 ac_cpp='$CXXCPP $CPPFLAGS'
29429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29432
29433    cat >conftest.$ac_ext <<_ACEOF
29434 /* confdefs.h.  */
29435 _ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h.  */
29439 #include <cmath>
29440 int
29441 main ()
29442 {
29443 float f; isnan(f);
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 rm -f conftest.$ac_objext
29449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29450   (eval $ac_compile) 2>conftest.er1
29451   ac_status=$?
29452   grep -v '^ *+' conftest.er1 >conftest.err
29453   rm -f conftest.er1
29454   cat conftest.err >&5
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); } &&
29457          { ac_try='test -z "$ac_cxx_werror_flag"
29458                          || test ! -s conftest.err'
29459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460   (eval $ac_try) 2>&5
29461   ac_status=$?
29462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463   (exit $ac_status); }; } &&
29464          { ac_try='test -s conftest.$ac_objext'
29465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29466   (eval $ac_try) 2>&5
29467   ac_status=$?
29468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469   (exit $ac_status); }; }; then
29470   ac_cv_func_isnan_in_cmath=yes
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475 ac_cv_func_isnan_in_cmath=no
29476 fi
29477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29478   ac_ext=c
29479 ac_cpp='$CPP $CPPFLAGS'
29480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29483
29484 fi
29485 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29486 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29487
29488 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29489
29490 cat >>confdefs.h <<\_ACEOF
29491 #define HAVE_ISNAN_IN_CMATH 1
29492 _ACEOF
29493
29494 fi
29495
29496 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29497 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29498 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29499   echo $ECHO_N "(cached) $ECHO_C" >&6
29500 else
29501   ac_ext=cc
29502 ac_cpp='$CXXCPP $CPPFLAGS'
29503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29506
29507    cat >conftest.$ac_ext <<_ACEOF
29508 /* confdefs.h.  */
29509 _ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h.  */
29513 #include <cmath>
29514 int
29515 main ()
29516 {
29517 float f; std::isnan(f);
29518   ;
29519   return 0;
29520 }
29521 _ACEOF
29522 rm -f conftest.$ac_objext
29523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29524   (eval $ac_compile) 2>conftest.er1
29525   ac_status=$?
29526   grep -v '^ *+' conftest.er1 >conftest.err
29527   rm -f conftest.er1
29528   cat conftest.err >&5
29529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530   (exit $ac_status); } &&
29531          { ac_try='test -z "$ac_cxx_werror_flag"
29532                          || test ! -s conftest.err'
29533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29534   (eval $ac_try) 2>&5
29535   ac_status=$?
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); }; } &&
29538          { ac_try='test -s conftest.$ac_objext'
29539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540   (eval $ac_try) 2>&5
29541   ac_status=$?
29542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543   (exit $ac_status); }; }; then
29544   ac_cv_func_std_isnan_in_cmath=yes
29545 else
29546   echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29548
29549 ac_cv_func_std_isnan_in_cmath=no
29550 fi
29551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29552   ac_ext=c
29553 ac_cpp='$CPP $CPPFLAGS'
29554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29557
29558 fi
29559 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29560 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29561
29562 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29563
29564 cat >>confdefs.h <<\_ACEOF
29565 #define HAVE_STD_ISNAN_IN_CMATH 1
29566 _ACEOF
29567
29568 fi
29569
29570
29571 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29572 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29573 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29574   echo $ECHO_N "(cached) $ECHO_C" >&6
29575 else
29576   ac_ext=cc
29577 ac_cpp='$CXXCPP $CPPFLAGS'
29578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29581
29582    cat >conftest.$ac_ext <<_ACEOF
29583 /* confdefs.h.  */
29584 _ACEOF
29585 cat confdefs.h >>conftest.$ac_ext
29586 cat >>conftest.$ac_ext <<_ACEOF
29587 /* end confdefs.h.  */
29588 #include <math.h>
29589 int
29590 main ()
29591 {
29592 float f; isinf(f);
29593   ;
29594   return 0;
29595 }
29596 _ACEOF
29597 rm -f conftest.$ac_objext
29598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29599   (eval $ac_compile) 2>conftest.er1
29600   ac_status=$?
29601   grep -v '^ *+' conftest.er1 >conftest.err
29602   rm -f conftest.er1
29603   cat conftest.err >&5
29604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605   (exit $ac_status); } &&
29606          { ac_try='test -z "$ac_cxx_werror_flag"
29607                          || test ! -s conftest.err'
29608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609   (eval $ac_try) 2>&5
29610   ac_status=$?
29611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612   (exit $ac_status); }; } &&
29613          { ac_try='test -s conftest.$ac_objext'
29614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615   (eval $ac_try) 2>&5
29616   ac_status=$?
29617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618   (exit $ac_status); }; }; then
29619   ac_cv_func_isinf_in_math_h=yes
29620 else
29621   echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.$ac_ext >&5
29623
29624 ac_cv_func_isinf_in_math_h=no
29625 fi
29626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29627   ac_ext=c
29628 ac_cpp='$CPP $CPPFLAGS'
29629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29632
29633 fi
29634 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29635 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29636
29637 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29638
29639 cat >>confdefs.h <<\_ACEOF
29640 #define HAVE_ISINF_IN_MATH_H 1
29641 _ACEOF
29642
29643 fi
29644
29645 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29646 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29647 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29648   echo $ECHO_N "(cached) $ECHO_C" >&6
29649 else
29650   ac_ext=cc
29651 ac_cpp='$CXXCPP $CPPFLAGS'
29652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29655
29656    cat >conftest.$ac_ext <<_ACEOF
29657 /* confdefs.h.  */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h.  */
29662 #include <cmath>
29663 int
29664 main ()
29665 {
29666 float f; isinf(f);
29667   ;
29668   return 0;
29669 }
29670 _ACEOF
29671 rm -f conftest.$ac_objext
29672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29673   (eval $ac_compile) 2>conftest.er1
29674   ac_status=$?
29675   grep -v '^ *+' conftest.er1 >conftest.err
29676   rm -f conftest.er1
29677   cat conftest.err >&5
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); } &&
29680          { ac_try='test -z "$ac_cxx_werror_flag"
29681                          || test ! -s conftest.err'
29682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29683   (eval $ac_try) 2>&5
29684   ac_status=$?
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); }; } &&
29687          { ac_try='test -s conftest.$ac_objext'
29688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689   (eval $ac_try) 2>&5
29690   ac_status=$?
29691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692   (exit $ac_status); }; }; then
29693   ac_cv_func_isinf_in_cmath=yes
29694 else
29695   echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29697
29698 ac_cv_func_isinf_in_cmath=no
29699 fi
29700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29701   ac_ext=c
29702 ac_cpp='$CPP $CPPFLAGS'
29703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29706
29707 fi
29708 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29709 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29710
29711 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29712
29713 cat >>confdefs.h <<\_ACEOF
29714 #define HAVE_ISINF_IN_CMATH 1
29715 _ACEOF
29716
29717 fi
29718
29719 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29720 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29721 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29722   echo $ECHO_N "(cached) $ECHO_C" >&6
29723 else
29724   ac_ext=cc
29725 ac_cpp='$CXXCPP $CPPFLAGS'
29726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29729
29730    cat >conftest.$ac_ext <<_ACEOF
29731 /* confdefs.h.  */
29732 _ACEOF
29733 cat confdefs.h >>conftest.$ac_ext
29734 cat >>conftest.$ac_ext <<_ACEOF
29735 /* end confdefs.h.  */
29736 #include <cmath>
29737 int
29738 main ()
29739 {
29740 float f; std::isinf(f)}
29741   ;
29742   return 0;
29743 }
29744 _ACEOF
29745 rm -f conftest.$ac_objext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29747   (eval $ac_compile) 2>conftest.er1
29748   ac_status=$?
29749   grep -v '^ *+' conftest.er1 >conftest.err
29750   rm -f conftest.er1
29751   cat conftest.err >&5
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } &&
29754          { ac_try='test -z "$ac_cxx_werror_flag"
29755                          || test ! -s conftest.err'
29756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757   (eval $ac_try) 2>&5
29758   ac_status=$?
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); }; } &&
29761          { ac_try='test -s conftest.$ac_objext'
29762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763   (eval $ac_try) 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; }; then
29767   ac_cv_func_std_isinf_in_cmath=yes
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772 ac_cv_func_std_isinf_in_cmath=no
29773 fi
29774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29775   ac_ext=c
29776 ac_cpp='$CPP $CPPFLAGS'
29777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29780
29781 fi
29782 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29783 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29784
29785 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29786
29787 cat >>confdefs.h <<\_ACEOF
29788 #define HAVE_STD_ISINF_IN_CMATH 1
29789 _ACEOF
29790
29791 fi
29792
29793 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29794 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29795 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29796   echo $ECHO_N "(cached) $ECHO_C" >&6
29797 else
29798   ac_ext=cc
29799 ac_cpp='$CXXCPP $CPPFLAGS'
29800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29803
29804    cat >conftest.$ac_ext <<_ACEOF
29805 /* confdefs.h.  */
29806 _ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h.  */
29810 #include <ieeefp.h>
29811 int
29812 main ()
29813 {
29814 float f; finite(f);
29815   ;
29816   return 0;
29817 }
29818 _ACEOF
29819 rm -f conftest.$ac_objext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29821   (eval $ac_compile) 2>conftest.er1
29822   ac_status=$?
29823   grep -v '^ *+' conftest.er1 >conftest.err
29824   rm -f conftest.er1
29825   cat conftest.err >&5
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); } &&
29828          { ac_try='test -z "$ac_cxx_werror_flag"
29829                          || test ! -s conftest.err'
29830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831   (eval $ac_try) 2>&5
29832   ac_status=$?
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); }; } &&
29835          { ac_try='test -s conftest.$ac_objext'
29836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837   (eval $ac_try) 2>&5
29838   ac_status=$?
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); }; }; then
29841   ac_cv_func_finite_in_ieeefp_h=yes
29842 else
29843   echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29845
29846 ac_cv_func_finite_in_ieeefp_h=no
29847 fi
29848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29849   ac_ext=c
29850 ac_cpp='$CPP $CPPFLAGS'
29851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29854
29855 fi
29856 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29857 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29858
29859 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29860
29861 cat >>confdefs.h <<\_ACEOF
29862 #define HAVE_FINITE_IN_IEEEFP_H 1
29863 _ACEOF
29864
29865 fi
29866
29867
29868
29869
29870
29871 for ac_header in stdlib.h unistd.h
29872 do
29873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29875   echo "$as_me:$LINENO: checking for $ac_header" >&5
29876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29878   echo $ECHO_N "(cached) $ECHO_C" >&6
29879 fi
29880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29882 else
29883   # Is the header compilable?
29884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29886 cat >conftest.$ac_ext <<_ACEOF
29887 /* confdefs.h.  */
29888 _ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h.  */
29892 $ac_includes_default
29893 #include <$ac_header>
29894 _ACEOF
29895 rm -f conftest.$ac_objext
29896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29897   (eval $ac_compile) 2>conftest.er1
29898   ac_status=$?
29899   grep -v '^ *+' conftest.er1 >conftest.err
29900   rm -f conftest.er1
29901   cat conftest.err >&5
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); } &&
29904          { ac_try='test -z "$ac_c_werror_flag"
29905                          || test ! -s conftest.err'
29906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907   (eval $ac_try) 2>&5
29908   ac_status=$?
29909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910   (exit $ac_status); }; } &&
29911          { ac_try='test -s conftest.$ac_objext'
29912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29913   (eval $ac_try) 2>&5
29914   ac_status=$?
29915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916   (exit $ac_status); }; }; then
29917   ac_header_compiler=yes
29918 else
29919   echo "$as_me: failed program was:" >&5
29920 sed 's/^/| /' conftest.$ac_ext >&5
29921
29922 ac_header_compiler=no
29923 fi
29924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29926 echo "${ECHO_T}$ac_header_compiler" >&6
29927
29928 # Is the header present?
29929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29931 cat >conftest.$ac_ext <<_ACEOF
29932 /* confdefs.h.  */
29933 _ACEOF
29934 cat confdefs.h >>conftest.$ac_ext
29935 cat >>conftest.$ac_ext <<_ACEOF
29936 /* end confdefs.h.  */
29937 #include <$ac_header>
29938 _ACEOF
29939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29941   ac_status=$?
29942   grep -v '^ *+' conftest.er1 >conftest.err
29943   rm -f conftest.er1
29944   cat conftest.err >&5
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); } >/dev/null; then
29947   if test -s conftest.err; then
29948     ac_cpp_err=$ac_c_preproc_warn_flag
29949     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29950   else
29951     ac_cpp_err=
29952   fi
29953 else
29954   ac_cpp_err=yes
29955 fi
29956 if test -z "$ac_cpp_err"; then
29957   ac_header_preproc=yes
29958 else
29959   echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29961
29962   ac_header_preproc=no
29963 fi
29964 rm -f conftest.err conftest.$ac_ext
29965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29966 echo "${ECHO_T}$ac_header_preproc" >&6
29967
29968 # So?  What about this header?
29969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29970   yes:no: )
29971     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29975     ac_header_preproc=yes
29976     ;;
29977   no:yes:* )
29978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29980     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29981 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29982     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29984     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29985 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29988     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29990     (
29991       cat <<\_ASBOX
29992 ## ----------------------------------- ##
29993 ## Report this to llvmbugs@cs.uiuc.edu ##
29994 ## ----------------------------------- ##
29995 _ASBOX
29996     ) |
29997       sed "s/^/$as_me: WARNING:     /" >&2
29998     ;;
29999 esac
30000 echo "$as_me:$LINENO: checking for $ac_header" >&5
30001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30003   echo $ECHO_N "(cached) $ECHO_C" >&6
30004 else
30005   eval "$as_ac_Header=\$ac_header_preproc"
30006 fi
30007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30009
30010 fi
30011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30012   cat >>confdefs.h <<_ACEOF
30013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30014 _ACEOF
30015
30016 fi
30017
30018 done
30019
30020
30021 for ac_func in getpagesize
30022 do
30023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30024 echo "$as_me:$LINENO: checking for $ac_func" >&5
30025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30026 if eval "test \"\${$as_ac_var+set}\" = set"; then
30027   echo $ECHO_N "(cached) $ECHO_C" >&6
30028 else
30029   cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30037 #define $ac_func innocuous_$ac_func
30038
30039 /* System header to define __stub macros and hopefully few prototypes,
30040     which can conflict with char $ac_func (); below.
30041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30042     <limits.h> exists even on freestanding compilers.  */
30043
30044 #ifdef __STDC__
30045 # include <limits.h>
30046 #else
30047 # include <assert.h>
30048 #endif
30049
30050 #undef $ac_func
30051
30052 /* Override any gcc2 internal prototype to avoid an error.  */
30053 #ifdef __cplusplus
30054 extern "C"
30055 {
30056 #endif
30057 /* We use char because int might match the return type of a gcc2
30058    builtin and then its argument prototype would still apply.  */
30059 char $ac_func ();
30060 /* The GNU C library defines this for functions which it implements
30061     to always fail with ENOSYS.  Some functions are actually named
30062     something starting with __ and the normal name is an alias.  */
30063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30064 choke me
30065 #else
30066 char (*f) () = $ac_func;
30067 #endif
30068 #ifdef __cplusplus
30069 }
30070 #endif
30071
30072 int
30073 main ()
30074 {
30075 return f != $ac_func;
30076   ;
30077   return 0;
30078 }
30079 _ACEOF
30080 rm -f conftest.$ac_objext conftest$ac_exeext
30081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30082   (eval $ac_link) 2>conftest.er1
30083   ac_status=$?
30084   grep -v '^ *+' conftest.er1 >conftest.err
30085   rm -f conftest.er1
30086   cat conftest.err >&5
30087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088   (exit $ac_status); } &&
30089          { ac_try='test -z "$ac_c_werror_flag"
30090                          || test ! -s conftest.err'
30091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092   (eval $ac_try) 2>&5
30093   ac_status=$?
30094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095   (exit $ac_status); }; } &&
30096          { ac_try='test -s conftest$ac_exeext'
30097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098   (eval $ac_try) 2>&5
30099   ac_status=$?
30100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101   (exit $ac_status); }; }; then
30102   eval "$as_ac_var=yes"
30103 else
30104   echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30106
30107 eval "$as_ac_var=no"
30108 fi
30109 rm -f conftest.err conftest.$ac_objext \
30110       conftest$ac_exeext conftest.$ac_ext
30111 fi
30112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30114 if test `eval echo '${'$as_ac_var'}'` = yes; then
30115   cat >>confdefs.h <<_ACEOF
30116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30117 _ACEOF
30118
30119 fi
30120 done
30121
30122 echo "$as_me:$LINENO: checking for working mmap" >&5
30123 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30124 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30125   echo $ECHO_N "(cached) $ECHO_C" >&6
30126 else
30127   if test "$cross_compiling" = yes; then
30128   ac_cv_func_mmap_fixed_mapped=no
30129 else
30130   cat >conftest.$ac_ext <<_ACEOF
30131 /* confdefs.h.  */
30132 _ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h.  */
30136 $ac_includes_default
30137 /* malloc might have been renamed as rpl_malloc. */
30138 #undef malloc
30139
30140 /* Thanks to Mike Haertel and Jim Avera for this test.
30141    Here is a matrix of mmap possibilities:
30142         mmap private not fixed
30143         mmap private fixed at somewhere currently unmapped
30144         mmap private fixed at somewhere already mapped
30145         mmap shared not fixed
30146         mmap shared fixed at somewhere currently unmapped
30147         mmap shared fixed at somewhere already mapped
30148    For private mappings, we should verify that changes cannot be read()
30149    back from the file, nor mmap's back from the file at a different
30150    address.  (There have been systems where private was not correctly
30151    implemented like the infamous i386 svr4.0, and systems where the
30152    VM page cache was not coherent with the file system buffer cache
30153    like early versions of FreeBSD and possibly contemporary NetBSD.)
30154    For shared mappings, we should conversely verify that changes get
30155    propagated back to all the places they're supposed to be.
30156
30157    Grep wants private fixed already mapped.
30158    The main things grep needs to know about mmap are:
30159    * does it exist and is it safe to write into the mmap'd area
30160    * how to use it (BSD variants)  */
30161
30162 #include <fcntl.h>
30163 #include <sys/mman.h>
30164
30165 #if !STDC_HEADERS && !HAVE_STDLIB_H
30166 char *malloc ();
30167 #endif
30168
30169 /* This mess was copied from the GNU getpagesize.h.  */
30170 #if !HAVE_GETPAGESIZE
30171 /* Assume that all systems that can run configure have sys/param.h.  */
30172 # if !HAVE_SYS_PARAM_H
30173 #  define HAVE_SYS_PARAM_H 1
30174 # endif
30175
30176 # ifdef _SC_PAGESIZE
30177 #  define getpagesize() sysconf(_SC_PAGESIZE)
30178 # else /* no _SC_PAGESIZE */
30179 #  if HAVE_SYS_PARAM_H
30180 #   include <sys/param.h>
30181 #   ifdef EXEC_PAGESIZE
30182 #    define getpagesize() EXEC_PAGESIZE
30183 #   else /* no EXEC_PAGESIZE */
30184 #    ifdef NBPG
30185 #     define getpagesize() NBPG * CLSIZE
30186 #     ifndef CLSIZE
30187 #      define CLSIZE 1
30188 #     endif /* no CLSIZE */
30189 #    else /* no NBPG */
30190 #     ifdef NBPC
30191 #      define getpagesize() NBPC
30192 #     else /* no NBPC */
30193 #      ifdef PAGESIZE
30194 #       define getpagesize() PAGESIZE
30195 #      endif /* PAGESIZE */
30196 #     endif /* no NBPC */
30197 #    endif /* no NBPG */
30198 #   endif /* no EXEC_PAGESIZE */
30199 #  else /* no HAVE_SYS_PARAM_H */
30200 #   define getpagesize() 8192   /* punt totally */
30201 #  endif /* no HAVE_SYS_PARAM_H */
30202 # endif /* no _SC_PAGESIZE */
30203
30204 #endif /* no HAVE_GETPAGESIZE */
30205
30206 int
30207 main ()
30208 {
30209   char *data, *data2, *data3;
30210   int i, pagesize;
30211   int fd;
30212
30213   pagesize = getpagesize ();
30214
30215   /* First, make a file with some known garbage in it. */
30216   data = (char *) malloc (pagesize);
30217   if (!data)
30218     exit (1);
30219   for (i = 0; i < pagesize; ++i)
30220     *(data + i) = rand ();
30221   umask (0);
30222   fd = creat ("conftest.mmap", 0600);
30223   if (fd < 0)
30224     exit (1);
30225   if (write (fd, data, pagesize) != pagesize)
30226     exit (1);
30227   close (fd);
30228
30229   /* Next, try to mmap the file at a fixed address which already has
30230      something else allocated at it.  If we can, also make sure that
30231      we see the same garbage.  */
30232   fd = open ("conftest.mmap", O_RDWR);
30233   if (fd < 0)
30234     exit (1);
30235   data2 = (char *) malloc (2 * pagesize);
30236   if (!data2)
30237     exit (1);
30238   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30239   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30240                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30241     exit (1);
30242   for (i = 0; i < pagesize; ++i)
30243     if (*(data + i) != *(data2 + i))
30244       exit (1);
30245
30246   /* Finally, make sure that changes to the mapped area do not
30247      percolate back to the file as seen by read().  (This is a bug on
30248      some variants of i386 svr4.0.)  */
30249   for (i = 0; i < pagesize; ++i)
30250     *(data2 + i) = *(data2 + i) + 1;
30251   data3 = (char *) malloc (pagesize);
30252   if (!data3)
30253     exit (1);
30254   if (read (fd, data3, pagesize) != pagesize)
30255     exit (1);
30256   for (i = 0; i < pagesize; ++i)
30257     if (*(data + i) != *(data3 + i))
30258       exit (1);
30259   close (fd);
30260   exit (0);
30261 }
30262 _ACEOF
30263 rm -f conftest$ac_exeext
30264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30265   (eval $ac_link) 2>&5
30266   ac_status=$?
30267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30270   (eval $ac_try) 2>&5
30271   ac_status=$?
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); }; }; then
30274   ac_cv_func_mmap_fixed_mapped=yes
30275 else
30276   echo "$as_me: program exited with status $ac_status" >&5
30277 echo "$as_me: failed program was:" >&5
30278 sed 's/^/| /' conftest.$ac_ext >&5
30279
30280 ( exit $ac_status )
30281 ac_cv_func_mmap_fixed_mapped=no
30282 fi
30283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30284 fi
30285 fi
30286 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30287 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30288 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30289
30290 cat >>confdefs.h <<\_ACEOF
30291 #define HAVE_MMAP 1
30292 _ACEOF
30293
30294 fi
30295 rm -f conftest.mmap
30296
30297 echo "$as_me:$LINENO: checking for mmap of files" >&5
30298 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30299 if test "${ac_cv_func_mmap_file+set}" = set; then
30300   echo $ECHO_N "(cached) $ECHO_C" >&6
30301 else
30302    ac_ext=c
30303 ac_cpp='$CPP $CPPFLAGS'
30304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30307
30308   if test "$cross_compiling" = yes; then
30309   ac_cv_func_mmap_file=no
30310 else
30311   cat >conftest.$ac_ext <<_ACEOF
30312
30313     /* confdefs.h.  */
30314 _ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h.  */
30318
30319 #include <sys/types.h>
30320 #include <sys/mman.h>
30321 #include <fcntl.h>
30322
30323 int
30324 main ()
30325 {
30326
30327   int fd;
30328   fd = creat ("foo",0777);
30329   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30330   unlink ("foo");
30331   return (fd != (int) MAP_FAILED);
30332   ;
30333   return 0;
30334 }
30335 _ACEOF
30336 rm -f conftest$ac_exeext
30337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30338   (eval $ac_link) 2>&5
30339   ac_status=$?
30340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30343   (eval $ac_try) 2>&5
30344   ac_status=$?
30345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346   (exit $ac_status); }; }; then
30347   ac_cv_func_mmap_file=yes
30348 else
30349   echo "$as_me: program exited with status $ac_status" >&5
30350 echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30352
30353 ( exit $ac_status )
30354 ac_cv_func_mmap_file=no
30355 fi
30356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30357 fi
30358   ac_ext=c
30359 ac_cpp='$CPP $CPPFLAGS'
30360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30363
30364
30365 fi
30366 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30367 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30368 if test "$ac_cv_func_mmap_file" = yes; then
30369
30370 cat >>confdefs.h <<\_ACEOF
30371 #define HAVE_MMAP_FILE
30372 _ACEOF
30373
30374    MMAP_FILE=yes
30375
30376 fi
30377
30378 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30379 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30380 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30381   echo $ECHO_N "(cached) $ECHO_C" >&6
30382 else
30383   if test "$llvm_cv_os_type" = "Interix" ; then
30384    ac_cv_need_dev_zero_for_mmap=yes
30385  else
30386    ac_cv_need_dev_zero_for_mmap=no
30387  fi
30388
30389 fi
30390 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30391 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30392 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30393
30394 cat >>confdefs.h <<\_ACEOF
30395 #define NEED_DEV_ZERO_FOR_MMAP 1
30396 _ACEOF
30397
30398 fi
30399 echo "$as_me:$LINENO: checking for mprotect" >&5
30400 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30401 if test "${ac_cv_func_mprotect+set}" = set; then
30402   echo $ECHO_N "(cached) $ECHO_C" >&6
30403 else
30404   cat >conftest.$ac_ext <<_ACEOF
30405 /* confdefs.h.  */
30406 _ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h.  */
30410 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30412 #define mprotect innocuous_mprotect
30413
30414 /* System header to define __stub macros and hopefully few prototypes,
30415     which can conflict with char mprotect (); below.
30416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30417     <limits.h> exists even on freestanding compilers.  */
30418
30419 #ifdef __STDC__
30420 # include <limits.h>
30421 #else
30422 # include <assert.h>
30423 #endif
30424
30425 #undef mprotect
30426
30427 /* Override any gcc2 internal prototype to avoid an error.  */
30428 #ifdef __cplusplus
30429 extern "C"
30430 {
30431 #endif
30432 /* We use char because int might match the return type of a gcc2
30433    builtin and then its argument prototype would still apply.  */
30434 char mprotect ();
30435 /* The GNU C library defines this for functions which it implements
30436     to always fail with ENOSYS.  Some functions are actually named
30437     something starting with __ and the normal name is an alias.  */
30438 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30439 choke me
30440 #else
30441 char (*f) () = mprotect;
30442 #endif
30443 #ifdef __cplusplus
30444 }
30445 #endif
30446
30447 int
30448 main ()
30449 {
30450 return f != mprotect;
30451   ;
30452   return 0;
30453 }
30454 _ACEOF
30455 rm -f conftest.$ac_objext conftest$ac_exeext
30456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30457   (eval $ac_link) 2>conftest.er1
30458   ac_status=$?
30459   grep -v '^ *+' conftest.er1 >conftest.err
30460   rm -f conftest.er1
30461   cat conftest.err >&5
30462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463   (exit $ac_status); } &&
30464          { ac_try='test -z "$ac_c_werror_flag"
30465                          || test ! -s conftest.err'
30466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30467   (eval $ac_try) 2>&5
30468   ac_status=$?
30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); }; } &&
30471          { ac_try='test -s conftest$ac_exeext'
30472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473   (eval $ac_try) 2>&5
30474   ac_status=$?
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); }; }; then
30477   ac_cv_func_mprotect=yes
30478 else
30479   echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30481
30482 ac_cv_func_mprotect=no
30483 fi
30484 rm -f conftest.err conftest.$ac_objext \
30485       conftest$ac_exeext conftest.$ac_ext
30486 fi
30487 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30488 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30489 if test $ac_cv_func_mprotect = yes; then
30490   :
30491 else
30492   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30493 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30494    { (exit 1); exit 1; }; }
30495 fi
30496
30497
30498 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30499 then
30500   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30501 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30502 fi
30503 if test "$ac_cv_func_mmap_file" = "no"
30504 then
30505   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30506 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30507 fi
30508
30509
30510 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30511 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30512 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30513   echo $ECHO_N "(cached) $ECHO_C" >&6
30514 else
30515   llvm_cv_llvmgcc_sanity="no"
30516 if test -x "$LLVMGCC" ; then
30517   cp /dev/null conftest.c
30518   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30519   if test $? -eq 0 ; then
30520     llvm_cv_llvmgcc_sanity="yes"
30521   fi
30522   rm conftest.c
30523 fi
30524 fi
30525 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30526 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30527
30528 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30529   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30530   LLVMCC1=$llvmcc1path
30531
30532   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30533   LLVMCC1PLUS=$llvmcc1pluspath
30534
30535   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30536   LLVMGCCDIR=$llvmgccdir
30537
30538 fi
30539
30540 SHLIBEXT=$libltdl_cv_shlibext
30541
30542
30543 # Translate the various configuration directories and other basic
30544 # information into substitutions that will end up in Makefile.config.in
30545 # that these configured values can be used by the makefiles
30546 eval LLVM_PREFIX="${prefix}";
30547 eval LLVM_BINDIR="${prefix}/bin";
30548 eval LLVM_LIBDIR="${prefix}/lib";
30549 eval LLVM_DATADIR="${prefix}/share/llvm";
30550 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30551 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30552 eval LLVM_INCLUDEDIR="${prefix}/include";
30553 eval LLVM_INFODIR="${prefix}/info";
30554 eval LLVM_MANDIR="${prefix}/man";
30555 LLVM_CONFIGTIME=`date`
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567 # Place the various directores into the config.h file as #defines so that we
30568 # can know about the installation paths within LLVM.
30569
30570 cat >>confdefs.h <<_ACEOF
30571 #define LLVM_PREFIX "$LLVM_PREFIX"
30572 _ACEOF
30573
30574
30575 cat >>confdefs.h <<_ACEOF
30576 #define LLVM_BINDIR "$LLVM_BINDIR"
30577 _ACEOF
30578
30579
30580 cat >>confdefs.h <<_ACEOF
30581 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30582 _ACEOF
30583
30584
30585 cat >>confdefs.h <<_ACEOF
30586 #define LLVM_DATADIR "$LLVM_DATADIR"
30587 _ACEOF
30588
30589
30590 cat >>confdefs.h <<_ACEOF
30591 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30592 _ACEOF
30593
30594
30595 cat >>confdefs.h <<_ACEOF
30596 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30597 _ACEOF
30598
30599
30600 cat >>confdefs.h <<_ACEOF
30601 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30602 _ACEOF
30603
30604
30605 cat >>confdefs.h <<_ACEOF
30606 #define LLVM_INFODIR "$LLVM_INFODIR"
30607 _ACEOF
30608
30609
30610 cat >>confdefs.h <<_ACEOF
30611 #define LLVM_MANDIR "$LLVM_MANDIR"
30612 _ACEOF
30613
30614
30615 cat >>confdefs.h <<_ACEOF
30616 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30617 _ACEOF
30618
30619
30620
30621           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30622
30623           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30624
30625           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30626
30627           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30628
30629           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30630
30631
30632           ac_config_files="$ac_config_files Makefile.config"
30633
30634
30635           ac_config_files="$ac_config_files docs/doxygen.cfg"
30636
30637
30638           ac_config_commands="$ac_config_commands setup"
30639
30640           ac_config_commands="$ac_config_commands Makefile"
30641
30642
30643           ac_config_commands="$ac_config_commands Makefile.common"
30644
30645
30646           ac_config_commands="$ac_config_commands examples/Makefile"
30647
30648
30649           ac_config_commands="$ac_config_commands lib/Makefile"
30650
30651
30652           ac_config_commands="$ac_config_commands runtime/Makefile"
30653
30654
30655           ac_config_commands="$ac_config_commands test/Makefile"
30656
30657
30658           ac_config_commands="$ac_config_commands test/Makefile.tests"
30659
30660
30661           ac_config_commands="$ac_config_commands tools/Makefile"
30662
30663
30664           ac_config_commands="$ac_config_commands utils/Makefile"
30665
30666
30667           ac_config_commands="$ac_config_commands projects/Makefile"
30668
30669
30670
30671 cat >confcache <<\_ACEOF
30672 # This file is a shell script that caches the results of configure
30673 # tests run on this system so they can be shared between configure
30674 # scripts and configure runs, see configure's option --config-cache.
30675 # It is not useful on other systems.  If it contains results you don't
30676 # want to keep, you may remove or edit it.
30677 #
30678 # config.status only pays attention to the cache file if you give it
30679 # the --recheck option to rerun configure.
30680 #
30681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30683 # following values.
30684
30685 _ACEOF
30686
30687 # The following way of writing the cache mishandles newlines in values,
30688 # but we know of no workaround that is simple, portable, and efficient.
30689 # So, don't put newlines in cache variables' values.
30690 # Ultrix sh set writes to stderr and can't be redirected directly,
30691 # and sets the high bit in the cache file unless we assign to the vars.
30692 {
30693   (set) 2>&1 |
30694     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30695     *ac_space=\ *)
30696       # `set' does not quote correctly, so add quotes (double-quote
30697       # substitution turns \\\\ into \\, and sed turns \\ into \).
30698       sed -n \
30699         "s/'/'\\\\''/g;
30700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30701       ;;
30702     *)
30703       # `set' quotes correctly as required by POSIX, so do not add quotes.
30704       sed -n \
30705         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30706       ;;
30707     esac;
30708 } |
30709   sed '
30710      t clear
30711      : clear
30712      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30713      t end
30714      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30715      : end' >>confcache
30716 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30717   if test -w $cache_file; then
30718     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30719     cat confcache >$cache_file
30720   else
30721     echo "not updating unwritable cache $cache_file"
30722   fi
30723 fi
30724 rm -f confcache
30725
30726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30727 # Let make expand exec_prefix.
30728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30729
30730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30732 # trailing colons and then remove the whole line if VPATH becomes empty
30733 # (actually we leave an empty line to preserve line numbers).
30734 if test "x$srcdir" = x.; then
30735   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30736 s/:*\$(srcdir):*/:/;
30737 s/:*\${srcdir}:*/:/;
30738 s/:*@srcdir@:*/:/;
30739 s/^\([^=]*=[     ]*\):*/\1/;
30740 s/:*$//;
30741 s/^[^=]*=[       ]*$//;
30742 }'
30743 fi
30744
30745 DEFS=-DHAVE_CONFIG_H
30746
30747 ac_libobjs=
30748 ac_ltlibobjs=
30749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30750   # 1. Remove the extension, and $U if already installed.
30751   ac_i=`echo "$ac_i" |
30752          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30753   # 2. Add them.
30754   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30755   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30756 done
30757 LIBOBJS=$ac_libobjs
30758
30759 LTLIBOBJS=$ac_ltlibobjs
30760
30761
30762 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30763   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30764 Usually this means the macro was only invoked conditionally." >&5
30765 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30766 Usually this means the macro was only invoked conditionally." >&2;}
30767    { (exit 1); exit 1; }; }
30768 fi
30769 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30770   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30771 Usually this means the macro was only invoked conditionally." >&5
30772 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30773 Usually this means the macro was only invoked conditionally." >&2;}
30774    { (exit 1); exit 1; }; }
30775 fi
30776
30777 : ${CONFIG_STATUS=./config.status}
30778 ac_clean_files_save=$ac_clean_files
30779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30780 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30781 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30782 cat >$CONFIG_STATUS <<_ACEOF
30783 #! $SHELL
30784 # Generated by $as_me.
30785 # Run this file to recreate the current configuration.
30786 # Compiler output produced by configure, useful for debugging
30787 # configure, is in config.log if it exists.
30788
30789 debug=false
30790 ac_cs_recheck=false
30791 ac_cs_silent=false
30792 SHELL=\${CONFIG_SHELL-$SHELL}
30793 _ACEOF
30794
30795 cat >>$CONFIG_STATUS <<\_ACEOF
30796 ## --------------------- ##
30797 ## M4sh Initialization.  ##
30798 ## --------------------- ##
30799
30800 # Be Bourne compatible
30801 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30802   emulate sh
30803   NULLCMD=:
30804   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30805   # is contrary to our usage.  Disable this feature.
30806   alias -g '${1+"$@"}'='"$@"'
30807 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30808   set -o posix
30809 fi
30810 DUALCASE=1; export DUALCASE # for MKS sh
30811
30812 # Support unset when possible.
30813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30814   as_unset=unset
30815 else
30816   as_unset=false
30817 fi
30818
30819
30820 # Work around bugs in pre-3.0 UWIN ksh.
30821 $as_unset ENV MAIL MAILPATH
30822 PS1='$ '
30823 PS2='> '
30824 PS4='+ '
30825
30826 # NLS nuisances.
30827 for as_var in \
30828   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30829   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30830   LC_TELEPHONE LC_TIME
30831 do
30832   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30833     eval $as_var=C; export $as_var
30834   else
30835     $as_unset $as_var
30836   fi
30837 done
30838
30839 # Required to use basename.
30840 if expr a : '\(a\)' >/dev/null 2>&1; then
30841   as_expr=expr
30842 else
30843   as_expr=false
30844 fi
30845
30846 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30847   as_basename=basename
30848 else
30849   as_basename=false
30850 fi
30851
30852
30853 # Name of the executable.
30854 as_me=`$as_basename "$0" ||
30855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30856          X"$0" : 'X\(//\)$' \| \
30857          X"$0" : 'X\(/\)$' \| \
30858          .     : '\(.\)' 2>/dev/null ||
30859 echo X/"$0" |
30860     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30861           /^X\/\(\/\/\)$/{ s//\1/; q; }
30862           /^X\/\(\/\).*/{ s//\1/; q; }
30863           s/.*/./; q'`
30864
30865
30866 # PATH needs CR, and LINENO needs CR and PATH.
30867 # Avoid depending upon Character Ranges.
30868 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30871 as_cr_digits='0123456789'
30872 as_cr_alnum=$as_cr_Letters$as_cr_digits
30873
30874 # The user is always right.
30875 if test "${PATH_SEPARATOR+set}" != set; then
30876   echo "#! /bin/sh" >conf$$.sh
30877   echo  "exit 0"   >>conf$$.sh
30878   chmod +x conf$$.sh
30879   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30880     PATH_SEPARATOR=';'
30881   else
30882     PATH_SEPARATOR=:
30883   fi
30884   rm -f conf$$.sh
30885 fi
30886
30887
30888   as_lineno_1=$LINENO
30889   as_lineno_2=$LINENO
30890   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30891   test "x$as_lineno_1" != "x$as_lineno_2" &&
30892   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30893   # Find who we are.  Look in the path if we contain no path at all
30894   # relative or not.
30895   case $0 in
30896     *[\\/]* ) as_myself=$0 ;;
30897     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30898 for as_dir in $PATH
30899 do
30900   IFS=$as_save_IFS
30901   test -z "$as_dir" && as_dir=.
30902   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30903 done
30904
30905        ;;
30906   esac
30907   # We did not find ourselves, most probably we were run as `sh COMMAND'
30908   # in which case we are not to be found in the path.
30909   if test "x$as_myself" = x; then
30910     as_myself=$0
30911   fi
30912   if test ! -f "$as_myself"; then
30913     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30914 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30915    { (exit 1); exit 1; }; }
30916   fi
30917   case $CONFIG_SHELL in
30918   '')
30919     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30920 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30921 do
30922   IFS=$as_save_IFS
30923   test -z "$as_dir" && as_dir=.
30924   for as_base in sh bash ksh sh5; do
30925          case $as_dir in
30926          /*)
30927            if ("$as_dir/$as_base" -c '
30928   as_lineno_1=$LINENO
30929   as_lineno_2=$LINENO
30930   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30931   test "x$as_lineno_1" != "x$as_lineno_2" &&
30932   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30933              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30934              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30935              CONFIG_SHELL=$as_dir/$as_base
30936              export CONFIG_SHELL
30937              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30938            fi;;
30939          esac
30940        done
30941 done
30942 ;;
30943   esac
30944
30945   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30946   # uniformly replaced by the line number.  The first 'sed' inserts a
30947   # line-number line before each line; the second 'sed' does the real
30948   # work.  The second script uses 'N' to pair each line-number line
30949   # with the numbered line, and appends trailing '-' during
30950   # substitution so that $LINENO is not a special case at line end.
30951   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30952   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30953   sed '=' <$as_myself |
30954     sed '
30955       N
30956       s,$,-,
30957       : loop
30958       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30959       t loop
30960       s,-$,,
30961       s,^['$as_cr_digits']*\n,,
30962     ' >$as_me.lineno &&
30963   chmod +x $as_me.lineno ||
30964     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30965 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30966    { (exit 1); exit 1; }; }
30967
30968   # Don't try to exec as it changes $[0], causing all sort of problems
30969   # (the dirname of $[0] is not the place where we might find the
30970   # original and so on.  Autoconf is especially sensible to this).
30971   . ./$as_me.lineno
30972   # Exit status is that of the last command.
30973   exit
30974 }
30975
30976
30977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30978   *c*,-n*) ECHO_N= ECHO_C='
30979 ' ECHO_T='      ' ;;
30980   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30981   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30982 esac
30983
30984 if expr a : '\(a\)' >/dev/null 2>&1; then
30985   as_expr=expr
30986 else
30987   as_expr=false
30988 fi
30989
30990 rm -f conf$$ conf$$.exe conf$$.file
30991 echo >conf$$.file
30992 if ln -s conf$$.file conf$$ 2>/dev/null; then
30993   # We could just check for DJGPP; but this test a) works b) is more generic
30994   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30995   if test -f conf$$.exe; then
30996     # Don't use ln at all; we don't have any links
30997     as_ln_s='cp -p'
30998   else
30999     as_ln_s='ln -s'
31000   fi
31001 elif ln conf$$.file conf$$ 2>/dev/null; then
31002   as_ln_s=ln
31003 else
31004   as_ln_s='cp -p'
31005 fi
31006 rm -f conf$$ conf$$.exe conf$$.file
31007
31008 if mkdir -p . 2>/dev/null; then
31009   as_mkdir_p=:
31010 else
31011   test -d ./-p && rmdir ./-p
31012   as_mkdir_p=false
31013 fi
31014
31015 as_executable_p="test -f"
31016
31017 # Sed expression to map a string onto a valid CPP name.
31018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31019
31020 # Sed expression to map a string onto a valid variable name.
31021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31022
31023
31024 # IFS
31025 # We need space, tab and new line, in precisely that order.
31026 as_nl='
31027 '
31028 IFS="   $as_nl"
31029
31030 # CDPATH.
31031 $as_unset CDPATH
31032
31033 exec 6>&1
31034
31035 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31036 # report actual input values of CONFIG_FILES etc. instead of their
31037 # values after options handling.  Logging --version etc. is OK.
31038 exec 5>>config.log
31039 {
31040   echo
31041   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31042 ## Running $as_me. ##
31043 _ASBOX
31044 } >&5
31045 cat >&5 <<_CSEOF
31046
31047 This file was extended by llvm $as_me 1.6, which was
31048 generated by GNU Autoconf 2.59.  Invocation command line was
31049
31050   CONFIG_FILES    = $CONFIG_FILES
31051   CONFIG_HEADERS  = $CONFIG_HEADERS
31052   CONFIG_LINKS    = $CONFIG_LINKS
31053   CONFIG_COMMANDS = $CONFIG_COMMANDS
31054   $ $0 $@
31055
31056 _CSEOF
31057 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31058 echo >&5
31059 _ACEOF
31060
31061 # Files that config.status was made for.
31062 if test -n "$ac_config_files"; then
31063   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31064 fi
31065
31066 if test -n "$ac_config_headers"; then
31067   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31068 fi
31069
31070 if test -n "$ac_config_links"; then
31071   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31072 fi
31073
31074 if test -n "$ac_config_commands"; then
31075   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31076 fi
31077
31078 cat >>$CONFIG_STATUS <<\_ACEOF
31079
31080 ac_cs_usage="\
31081 \`$as_me' instantiates files from templates according to the
31082 current configuration.
31083
31084 Usage: $0 [OPTIONS] [FILE]...
31085
31086   -h, --help       print this help, then exit
31087   -V, --version    print version number, then exit
31088   -q, --quiet      do not print progress messages
31089   -d, --debug      don't remove temporary files
31090       --recheck    update $as_me by reconfiguring in the same conditions
31091   --file=FILE[:TEMPLATE]
31092                    instantiate the configuration file FILE
31093   --header=FILE[:TEMPLATE]
31094                    instantiate the configuration header FILE
31095
31096 Configuration files:
31097 $config_files
31098
31099 Configuration headers:
31100 $config_headers
31101
31102 Configuration commands:
31103 $config_commands
31104
31105 Report bugs to <bug-autoconf@gnu.org>."
31106 _ACEOF
31107
31108 cat >>$CONFIG_STATUS <<_ACEOF
31109 ac_cs_version="\\
31110 llvm config.status 1.6
31111 configured by $0, generated by GNU Autoconf 2.59,
31112   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31113
31114 Copyright (C) 2003 Free Software Foundation, Inc.
31115 This config.status script is free software; the Free Software Foundation
31116 gives unlimited permission to copy, distribute and modify it."
31117 srcdir=$srcdir
31118 INSTALL="$INSTALL"
31119 _ACEOF
31120
31121 cat >>$CONFIG_STATUS <<\_ACEOF
31122 # If no file are specified by the user, then we need to provide default
31123 # value.  By we need to know if files were specified by the user.
31124 ac_need_defaults=:
31125 while test $# != 0
31126 do
31127   case $1 in
31128   --*=*)
31129     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31130     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31131     ac_shift=:
31132     ;;
31133   -*)
31134     ac_option=$1
31135     ac_optarg=$2
31136     ac_shift=shift
31137     ;;
31138   *) # This is not an option, so the user has probably given explicit
31139      # arguments.
31140      ac_option=$1
31141      ac_need_defaults=false;;
31142   esac
31143
31144   case $ac_option in
31145   # Handling of the options.
31146 _ACEOF
31147 cat >>$CONFIG_STATUS <<\_ACEOF
31148   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31149     ac_cs_recheck=: ;;
31150   --version | --vers* | -V )
31151     echo "$ac_cs_version"; exit 0 ;;
31152   --he | --h)
31153     # Conflict between --help and --header
31154     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31155 Try \`$0 --help' for more information." >&5
31156 echo "$as_me: error: ambiguous option: $1
31157 Try \`$0 --help' for more information." >&2;}
31158    { (exit 1); exit 1; }; };;
31159   --help | --hel | -h )
31160     echo "$ac_cs_usage"; exit 0 ;;
31161   --debug | --d* | -d )
31162     debug=: ;;
31163   --file | --fil | --fi | --f )
31164     $ac_shift
31165     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31166     ac_need_defaults=false;;
31167   --header | --heade | --head | --hea )
31168     $ac_shift
31169     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31170     ac_need_defaults=false;;
31171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31172   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31173     ac_cs_silent=: ;;
31174
31175   # This is an error.
31176   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31177 Try \`$0 --help' for more information." >&5
31178 echo "$as_me: error: unrecognized option: $1
31179 Try \`$0 --help' for more information." >&2;}
31180    { (exit 1); exit 1; }; } ;;
31181
31182   *) ac_config_targets="$ac_config_targets $1" ;;
31183
31184   esac
31185   shift
31186 done
31187
31188 ac_configure_extra_args=
31189
31190 if $ac_cs_silent; then
31191   exec 6>/dev/null
31192   ac_configure_extra_args="$ac_configure_extra_args --silent"
31193 fi
31194
31195 _ACEOF
31196 cat >>$CONFIG_STATUS <<_ACEOF
31197 if \$ac_cs_recheck; then
31198   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31199   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31200 fi
31201
31202 _ACEOF
31203
31204 cat >>$CONFIG_STATUS <<_ACEOF
31205 #
31206 # INIT-COMMANDS section.
31207 #
31208
31209 llvm_src="${srcdir}"
31210
31211 _ACEOF
31212
31213
31214
31215 cat >>$CONFIG_STATUS <<\_ACEOF
31216 for ac_config_target in $ac_config_targets
31217 do
31218   case "$ac_config_target" in
31219   # Handling of arguments.
31220   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31221   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31222   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31223   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31224   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31225   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31226   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31227   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31228   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31229   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31230   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31231   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31232   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31233   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31234   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31235   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31236   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31237   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31238   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31239 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31240    { (exit 1); exit 1; }; };;
31241   esac
31242 done
31243
31244 # If the user did not use the arguments to specify the items to instantiate,
31245 # then the envvar interface is used.  Set only those that are not.
31246 # We use the long form for the default assignment because of an extremely
31247 # bizarre bug on SunOS 4.1.3.
31248 if $ac_need_defaults; then
31249   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31250   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31251   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31252 fi
31253
31254 # Have a temporary directory for convenience.  Make it in the build tree
31255 # simply because there is no reason to put it here, and in addition,
31256 # creating and moving files from /tmp can sometimes cause problems.
31257 # Create a temporary directory, and hook for its removal unless debugging.
31258 $debug ||
31259 {
31260   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31261   trap '{ (exit 1); exit 1; }' 1 2 13 15
31262 }
31263
31264 # Create a (secure) tmp directory for tmp files.
31265
31266 {
31267   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31268   test -n "$tmp" && test -d "$tmp"
31269 }  ||
31270 {
31271   tmp=./confstat$$-$RANDOM
31272   (umask 077 && mkdir $tmp)
31273 } ||
31274 {
31275    echo "$me: cannot create a temporary directory in ." >&2
31276    { (exit 1); exit 1; }
31277 }
31278
31279 _ACEOF
31280
31281 cat >>$CONFIG_STATUS <<_ACEOF
31282
31283 #
31284 # CONFIG_FILES section.
31285 #
31286
31287 # No need to generate the scripts if there are no CONFIG_FILES.
31288 # This happens for instance when ./config.status config.h
31289 if test -n "\$CONFIG_FILES"; then
31290   # Protect against being on the right side of a sed subst in config.status.
31291   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31292    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31293 s,@SHELL@,$SHELL,;t t
31294 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31295 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31296 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31297 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31298 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31299 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31300 s,@exec_prefix@,$exec_prefix,;t t
31301 s,@prefix@,$prefix,;t t
31302 s,@program_transform_name@,$program_transform_name,;t t
31303 s,@bindir@,$bindir,;t t
31304 s,@sbindir@,$sbindir,;t t
31305 s,@libexecdir@,$libexecdir,;t t
31306 s,@datadir@,$datadir,;t t
31307 s,@sysconfdir@,$sysconfdir,;t t
31308 s,@sharedstatedir@,$sharedstatedir,;t t
31309 s,@localstatedir@,$localstatedir,;t t
31310 s,@libdir@,$libdir,;t t
31311 s,@includedir@,$includedir,;t t
31312 s,@oldincludedir@,$oldincludedir,;t t
31313 s,@infodir@,$infodir,;t t
31314 s,@mandir@,$mandir,;t t
31315 s,@build_alias@,$build_alias,;t t
31316 s,@host_alias@,$host_alias,;t t
31317 s,@target_alias@,$target_alias,;t t
31318 s,@DEFS@,$DEFS,;t t
31319 s,@ECHO_C@,$ECHO_C,;t t
31320 s,@ECHO_N@,$ECHO_N,;t t
31321 s,@ECHO_T@,$ECHO_T,;t t
31322 s,@LIBS@,$LIBS,;t t
31323 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31324 s,@subdirs@,$subdirs,;t t
31325 s,@build@,$build,;t t
31326 s,@build_cpu@,$build_cpu,;t t
31327 s,@build_vendor@,$build_vendor,;t t
31328 s,@build_os@,$build_os,;t t
31329 s,@host@,$host,;t t
31330 s,@host_cpu@,$host_cpu,;t t
31331 s,@host_vendor@,$host_vendor,;t t
31332 s,@host_os@,$host_os,;t t
31333 s,@target@,$target,;t t
31334 s,@target_cpu@,$target_cpu,;t t
31335 s,@target_vendor@,$target_vendor,;t t
31336 s,@target_os@,$target_os,;t t
31337 s,@OS@,$OS,;t t
31338 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31339 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31340 s,@ARCH@,$ARCH,;t t
31341 s,@ENDIAN@,$ENDIAN,;t t
31342 s,@CC@,$CC,;t t
31343 s,@CFLAGS@,$CFLAGS,;t t
31344 s,@LDFLAGS@,$LDFLAGS,;t t
31345 s,@CPPFLAGS@,$CPPFLAGS,;t t
31346 s,@ac_ct_CC@,$ac_ct_CC,;t t
31347 s,@EXEEXT@,$EXEEXT,;t t
31348 s,@OBJEXT@,$OBJEXT,;t t
31349 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31350 s,@JIT@,$JIT,;t t
31351 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31352 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31353 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31354 s,@CPP@,$CPP,;t t
31355 s,@CXX@,$CXX,;t t
31356 s,@CXXFLAGS@,$CXXFLAGS,;t t
31357 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31358 s,@LEX@,$LEX,;t t
31359 s,@LEXLIB@,$LEXLIB,;t t
31360 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31361 s,@FLEX@,$FLEX,;t t
31362 s,@YACC@,$YACC,;t t
31363 s,@BISON@,$BISON,;t t
31364 s,@ifGNUmake@,$ifGNUmake,;t t
31365 s,@LN_S@,$LN_S,;t t
31366 s,@CMP@,$CMP,;t t
31367 s,@CP@,$CP,;t t
31368 s,@DATE@,$DATE,;t t
31369 s,@FIND@,$FIND,;t t
31370 s,@GREP@,$GREP,;t t
31371 s,@MKDIR@,$MKDIR,;t t
31372 s,@MV@,$MV,;t t
31373 s,@RANLIB@,$RANLIB,;t t
31374 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31375 s,@RM@,$RM,;t t
31376 s,@SED@,$SED,;t t
31377 s,@TAR@,$TAR,;t t
31378 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31379 s,@GV@,$GV,;t t
31380 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31381 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31382 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31383 s,@BZIP2@,$BZIP2,;t t
31384 s,@DOT@,$DOT,;t t
31385 s,@DOXYGEN@,$DOXYGEN,;t t
31386 s,@ETAGS@,$ETAGS,;t t
31387 s,@GROFF@,$GROFF,;t t
31388 s,@GZIP@,$GZIP,;t t
31389 s,@POD2HTML@,$POD2HTML,;t t
31390 s,@POD2MAN@,$POD2MAN,;t t
31391 s,@RUNTEST@,$RUNTEST,;t t
31392 s,@TCLSH@,$TCLSH,;t t
31393 s,@ZIP@,$ZIP,;t t
31394 s,@EGREP@,$EGREP,;t t
31395 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31396 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31397 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31398 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31399 s,@LIBADD_DL@,$LIBADD_DL,;t t
31400 s,@ECHO@,$ECHO,;t t
31401 s,@AR@,$AR,;t t
31402 s,@ac_ct_AR@,$ac_ct_AR,;t t
31403 s,@STRIP@,$STRIP,;t t
31404 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31405 s,@CXXCPP@,$CXXCPP,;t t
31406 s,@F77@,$F77,;t t
31407 s,@FFLAGS@,$FFLAGS,;t t
31408 s,@ac_ct_F77@,$ac_ct_F77,;t t
31409 s,@LIBTOOL@,$LIBTOOL,;t t
31410 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31411 s,@LLVMGCC@,$LLVMGCC,;t t
31412 s,@LLVMGXX@,$LLVMGXX,;t t
31413 s,@ALLOCA@,$ALLOCA,;t t
31414 s,@MMAP_FILE@,$MMAP_FILE,;t t
31415 s,@LLVMCC1@,$LLVMCC1,;t t
31416 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31417 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31418 s,@SHLIBEXT@,$SHLIBEXT,;t t
31419 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31420 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31421 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31422 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31423 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31424 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31425 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31426 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31427 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31428 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31429 s,@LIBOBJS@,$LIBOBJS,;t t
31430 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31431 CEOF
31432
31433 _ACEOF
31434
31435   cat >>$CONFIG_STATUS <<\_ACEOF
31436   # Split the substitutions into bite-sized pieces for seds with
31437   # small command number limits, like on Digital OSF/1 and HP-UX.
31438   ac_max_sed_lines=48
31439   ac_sed_frag=1 # Number of current file.
31440   ac_beg=1 # First line for current file.
31441   ac_end=$ac_max_sed_lines # Line after last line for current file.
31442   ac_more_lines=:
31443   ac_sed_cmds=
31444   while $ac_more_lines; do
31445     if test $ac_beg -gt 1; then
31446       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31447     else
31448       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31449     fi
31450     if test ! -s $tmp/subs.frag; then
31451       ac_more_lines=false
31452     else
31453       # The purpose of the label and of the branching condition is to
31454       # speed up the sed processing (if there are no `@' at all, there
31455       # is no need to browse any of the substitutions).
31456       # These are the two extra sed commands mentioned above.
31457       (echo ':t
31458   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31459       if test -z "$ac_sed_cmds"; then
31460         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31461       else
31462         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31463       fi
31464       ac_sed_frag=`expr $ac_sed_frag + 1`
31465       ac_beg=$ac_end
31466       ac_end=`expr $ac_end + $ac_max_sed_lines`
31467     fi
31468   done
31469   if test -z "$ac_sed_cmds"; then
31470     ac_sed_cmds=cat
31471   fi
31472 fi # test -n "$CONFIG_FILES"
31473
31474 _ACEOF
31475 cat >>$CONFIG_STATUS <<\_ACEOF
31476 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31477   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31478   case $ac_file in
31479   - | *:- | *:-:* ) # input from stdin
31480         cat >$tmp/stdin
31481         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31482         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31483   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31484         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31485   * )   ac_file_in=$ac_file.in ;;
31486   esac
31487
31488   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31489   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31491          X"$ac_file" : 'X\(//\)[^/]' \| \
31492          X"$ac_file" : 'X\(//\)$' \| \
31493          X"$ac_file" : 'X\(/\)' \| \
31494          .     : '\(.\)' 2>/dev/null ||
31495 echo X"$ac_file" |
31496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31498           /^X\(\/\/\)$/{ s//\1/; q; }
31499           /^X\(\/\).*/{ s//\1/; q; }
31500           s/.*/./; q'`
31501   { if $as_mkdir_p; then
31502     mkdir -p "$ac_dir"
31503   else
31504     as_dir="$ac_dir"
31505     as_dirs=
31506     while test ! -d "$as_dir"; do
31507       as_dirs="$as_dir $as_dirs"
31508       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31510          X"$as_dir" : 'X\(//\)[^/]' \| \
31511          X"$as_dir" : 'X\(//\)$' \| \
31512          X"$as_dir" : 'X\(/\)' \| \
31513          .     : '\(.\)' 2>/dev/null ||
31514 echo X"$as_dir" |
31515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31517           /^X\(\/\/\)$/{ s//\1/; q; }
31518           /^X\(\/\).*/{ s//\1/; q; }
31519           s/.*/./; q'`
31520     done
31521     test ! -n "$as_dirs" || mkdir $as_dirs
31522   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31524    { (exit 1); exit 1; }; }; }
31525
31526   ac_builddir=.
31527
31528 if test "$ac_dir" != .; then
31529   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31530   # A "../" for each directory in $ac_dir_suffix.
31531   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31532 else
31533   ac_dir_suffix= ac_top_builddir=
31534 fi
31535
31536 case $srcdir in
31537   .)  # No --srcdir option.  We are building in place.
31538     ac_srcdir=.
31539     if test -z "$ac_top_builddir"; then
31540        ac_top_srcdir=.
31541     else
31542        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31543     fi ;;
31544   [\\/]* | ?:[\\/]* )  # Absolute path.
31545     ac_srcdir=$srcdir$ac_dir_suffix;
31546     ac_top_srcdir=$srcdir ;;
31547   *) # Relative path.
31548     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31549     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31550 esac
31551
31552 # Do not use `cd foo && pwd` to compute absolute paths, because
31553 # the directories may not exist.
31554 case `pwd` in
31555 .) ac_abs_builddir="$ac_dir";;
31556 *)
31557   case "$ac_dir" in
31558   .) ac_abs_builddir=`pwd`;;
31559   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31560   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31561   esac;;
31562 esac
31563 case $ac_abs_builddir in
31564 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31565 *)
31566   case ${ac_top_builddir}. in
31567   .) ac_abs_top_builddir=$ac_abs_builddir;;
31568   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31569   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31570   esac;;
31571 esac
31572 case $ac_abs_builddir in
31573 .) ac_abs_srcdir=$ac_srcdir;;
31574 *)
31575   case $ac_srcdir in
31576   .) ac_abs_srcdir=$ac_abs_builddir;;
31577   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31578   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31579   esac;;
31580 esac
31581 case $ac_abs_builddir in
31582 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31583 *)
31584   case $ac_top_srcdir in
31585   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31586   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31587   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31588   esac;;
31589 esac
31590
31591
31592   case $INSTALL in
31593   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31594   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31595   esac
31596
31597   if test x"$ac_file" != x-; then
31598     { echo "$as_me:$LINENO: creating $ac_file" >&5
31599 echo "$as_me: creating $ac_file" >&6;}
31600     rm -f "$ac_file"
31601   fi
31602   # Let's still pretend it is `configure' which instantiates (i.e., don't
31603   # use $as_me), people would be surprised to read:
31604   #    /* config.h.  Generated by config.status.  */
31605   if test x"$ac_file" = x-; then
31606     configure_input=
31607   else
31608     configure_input="$ac_file.  "
31609   fi
31610   configure_input=$configure_input"Generated from `echo $ac_file_in |
31611                                      sed 's,.*/,,'` by configure."
31612
31613   # First look for the input files in the build tree, otherwise in the
31614   # src tree.
31615   ac_file_inputs=`IFS=:
31616     for f in $ac_file_in; do
31617       case $f in
31618       -) echo $tmp/stdin ;;
31619       [\\/$]*)
31620          # Absolute (can't be DOS-style, as IFS=:)
31621          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31622 echo "$as_me: error: cannot find input file: $f" >&2;}
31623    { (exit 1); exit 1; }; }
31624          echo "$f";;
31625       *) # Relative
31626          if test -f "$f"; then
31627            # Build tree
31628            echo "$f"
31629          elif test -f "$srcdir/$f"; then
31630            # Source tree
31631            echo "$srcdir/$f"
31632          else
31633            # /dev/null tree
31634            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31635 echo "$as_me: error: cannot find input file: $f" >&2;}
31636    { (exit 1); exit 1; }; }
31637          fi;;
31638       esac
31639     done` || { (exit 1); exit 1; }
31640 _ACEOF
31641 cat >>$CONFIG_STATUS <<_ACEOF
31642   sed "$ac_vpsub
31643 $extrasub
31644 _ACEOF
31645 cat >>$CONFIG_STATUS <<\_ACEOF
31646 :t
31647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31648 s,@configure_input@,$configure_input,;t t
31649 s,@srcdir@,$ac_srcdir,;t t
31650 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31651 s,@top_srcdir@,$ac_top_srcdir,;t t
31652 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31653 s,@builddir@,$ac_builddir,;t t
31654 s,@abs_builddir@,$ac_abs_builddir,;t t
31655 s,@top_builddir@,$ac_top_builddir,;t t
31656 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31657 s,@INSTALL@,$ac_INSTALL,;t t
31658 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31659   rm -f $tmp/stdin
31660   if test x"$ac_file" != x-; then
31661     mv $tmp/out $ac_file
31662   else
31663     cat $tmp/out
31664     rm -f $tmp/out
31665   fi
31666
31667 done
31668 _ACEOF
31669 cat >>$CONFIG_STATUS <<\_ACEOF
31670
31671 #
31672 # CONFIG_HEADER section.
31673 #
31674
31675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31677 #
31678 # ac_d sets the value in "#define NAME VALUE" lines.
31679 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31680 ac_dB='[         ].*$,\1#\2'
31681 ac_dC=' '
31682 ac_dD=',;t'
31683 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31684 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31685 ac_uB='$,\1#\2define\3'
31686 ac_uC=' '
31687 ac_uD=',;t'
31688
31689 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31690   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31691   case $ac_file in
31692   - | *:- | *:-:* ) # input from stdin
31693         cat >$tmp/stdin
31694         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31695         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31696   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31697         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31698   * )   ac_file_in=$ac_file.in ;;
31699   esac
31700
31701   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31702 echo "$as_me: creating $ac_file" >&6;}
31703
31704   # First look for the input files in the build tree, otherwise in the
31705   # src tree.
31706   ac_file_inputs=`IFS=:
31707     for f in $ac_file_in; do
31708       case $f in
31709       -) echo $tmp/stdin ;;
31710       [\\/$]*)
31711          # Absolute (can't be DOS-style, as IFS=:)
31712          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31713 echo "$as_me: error: cannot find input file: $f" >&2;}
31714    { (exit 1); exit 1; }; }
31715          # Do quote $f, to prevent DOS paths from being IFS'd.
31716          echo "$f";;
31717       *) # Relative
31718          if test -f "$f"; then
31719            # Build tree
31720            echo "$f"
31721          elif test -f "$srcdir/$f"; then
31722            # Source tree
31723            echo "$srcdir/$f"
31724          else
31725            # /dev/null tree
31726            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31727 echo "$as_me: error: cannot find input file: $f" >&2;}
31728    { (exit 1); exit 1; }; }
31729          fi;;
31730       esac
31731     done` || { (exit 1); exit 1; }
31732   # Remove the trailing spaces.
31733   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31734
31735 _ACEOF
31736
31737 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31738 # `conftest.undefs', that substitutes the proper values into
31739 # config.h.in to produce config.h.  The first handles `#define'
31740 # templates, and the second `#undef' templates.
31741 # And first: Protect against being on the right side of a sed subst in
31742 # config.status.  Protect against being in an unquoted here document
31743 # in config.status.
31744 rm -f conftest.defines conftest.undefs
31745 # Using a here document instead of a string reduces the quoting nightmare.
31746 # Putting comments in sed scripts is not portable.
31747 #
31748 # `end' is used to avoid that the second main sed command (meant for
31749 # 0-ary CPP macros) applies to n-ary macro definitions.
31750 # See the Autoconf documentation for `clear'.
31751 cat >confdef2sed.sed <<\_ACEOF
31752 s/[\\&,]/\\&/g
31753 s,[\\$`],\\&,g
31754 t clear
31755 : clear
31756 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31757 t end
31758 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31759 : end
31760 _ACEOF
31761 # If some macros were called several times there might be several times
31762 # the same #defines, which is useless.  Nevertheless, we may not want to
31763 # sort them, since we want the *last* AC-DEFINE to be honored.
31764 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31765 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31766 rm -f confdef2sed.sed
31767
31768 # This sed command replaces #undef with comments.  This is necessary, for
31769 # example, in the case of _POSIX_SOURCE, which is predefined and required
31770 # on some systems where configure will not decide to define it.
31771 cat >>conftest.undefs <<\_ACEOF
31772 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31773 _ACEOF
31774
31775 # Break up conftest.defines because some shells have a limit on the size
31776 # of here documents, and old seds have small limits too (100 cmds).
31777 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31778 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31779 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31780 echo '  :' >>$CONFIG_STATUS
31781 rm -f conftest.tail
31782 while grep . conftest.defines >/dev/null
31783 do
31784   # Write a limited-size here document to $tmp/defines.sed.
31785   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31786   # Speed up: don't consider the non `#define' lines.
31787   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31788   # Work around the forget-to-reset-the-flag bug.
31789   echo 't clr' >>$CONFIG_STATUS
31790   echo ': clr' >>$CONFIG_STATUS
31791   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31792   echo 'CEOF
31793   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31794   rm -f $tmp/in
31795   mv $tmp/out $tmp/in
31796 ' >>$CONFIG_STATUS
31797   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31798   rm -f conftest.defines
31799   mv conftest.tail conftest.defines
31800 done
31801 rm -f conftest.defines
31802 echo '  fi # grep' >>$CONFIG_STATUS
31803 echo >>$CONFIG_STATUS
31804
31805 # Break up conftest.undefs because some shells have a limit on the size
31806 # of here documents, and old seds have small limits too (100 cmds).
31807 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31808 rm -f conftest.tail
31809 while grep . conftest.undefs >/dev/null
31810 do
31811   # Write a limited-size here document to $tmp/undefs.sed.
31812   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31813   # Speed up: don't consider the non `#undef'
31814   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31815   # Work around the forget-to-reset-the-flag bug.
31816   echo 't clr' >>$CONFIG_STATUS
31817   echo ': clr' >>$CONFIG_STATUS
31818   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31819   echo 'CEOF
31820   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31821   rm -f $tmp/in
31822   mv $tmp/out $tmp/in
31823 ' >>$CONFIG_STATUS
31824   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31825   rm -f conftest.undefs
31826   mv conftest.tail conftest.undefs
31827 done
31828 rm -f conftest.undefs
31829
31830 cat >>$CONFIG_STATUS <<\_ACEOF
31831   # Let's still pretend it is `configure' which instantiates (i.e., don't
31832   # use $as_me), people would be surprised to read:
31833   #    /* config.h.  Generated by config.status.  */
31834   if test x"$ac_file" = x-; then
31835     echo "/* Generated by configure.  */" >$tmp/config.h
31836   else
31837     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31838   fi
31839   cat $tmp/in >>$tmp/config.h
31840   rm -f $tmp/in
31841   if test x"$ac_file" != x-; then
31842     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31843       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31844 echo "$as_me: $ac_file is unchanged" >&6;}
31845     else
31846       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31848          X"$ac_file" : 'X\(//\)[^/]' \| \
31849          X"$ac_file" : 'X\(//\)$' \| \
31850          X"$ac_file" : 'X\(/\)' \| \
31851          .     : '\(.\)' 2>/dev/null ||
31852 echo X"$ac_file" |
31853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31855           /^X\(\/\/\)$/{ s//\1/; q; }
31856           /^X\(\/\).*/{ s//\1/; q; }
31857           s/.*/./; q'`
31858       { if $as_mkdir_p; then
31859     mkdir -p "$ac_dir"
31860   else
31861     as_dir="$ac_dir"
31862     as_dirs=
31863     while test ! -d "$as_dir"; do
31864       as_dirs="$as_dir $as_dirs"
31865       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31867          X"$as_dir" : 'X\(//\)[^/]' \| \
31868          X"$as_dir" : 'X\(//\)$' \| \
31869          X"$as_dir" : 'X\(/\)' \| \
31870          .     : '\(.\)' 2>/dev/null ||
31871 echo X"$as_dir" |
31872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31874           /^X\(\/\/\)$/{ s//\1/; q; }
31875           /^X\(\/\).*/{ s//\1/; q; }
31876           s/.*/./; q'`
31877     done
31878     test ! -n "$as_dirs" || mkdir $as_dirs
31879   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31881    { (exit 1); exit 1; }; }; }
31882
31883       rm -f $ac_file
31884       mv $tmp/config.h $ac_file
31885     fi
31886   else
31887     cat $tmp/config.h
31888     rm -f $tmp/config.h
31889   fi
31890 done
31891 _ACEOF
31892 cat >>$CONFIG_STATUS <<\_ACEOF
31893
31894 #
31895 # CONFIG_COMMANDS section.
31896 #
31897 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31898   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31899   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31900   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31901 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31902          X"$ac_dest" : 'X\(//\)[^/]' \| \
31903          X"$ac_dest" : 'X\(//\)$' \| \
31904          X"$ac_dest" : 'X\(/\)' \| \
31905          .     : '\(.\)' 2>/dev/null ||
31906 echo X"$ac_dest" |
31907     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31908           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31909           /^X\(\/\/\)$/{ s//\1/; q; }
31910           /^X\(\/\).*/{ s//\1/; q; }
31911           s/.*/./; q'`
31912   { if $as_mkdir_p; then
31913     mkdir -p "$ac_dir"
31914   else
31915     as_dir="$ac_dir"
31916     as_dirs=
31917     while test ! -d "$as_dir"; do
31918       as_dirs="$as_dir $as_dirs"
31919       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31921          X"$as_dir" : 'X\(//\)[^/]' \| \
31922          X"$as_dir" : 'X\(//\)$' \| \
31923          X"$as_dir" : 'X\(/\)' \| \
31924          .     : '\(.\)' 2>/dev/null ||
31925 echo X"$as_dir" |
31926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31927           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31928           /^X\(\/\/\)$/{ s//\1/; q; }
31929           /^X\(\/\).*/{ s//\1/; q; }
31930           s/.*/./; q'`
31931     done
31932     test ! -n "$as_dirs" || mkdir $as_dirs
31933   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31935    { (exit 1); exit 1; }; }; }
31936
31937   ac_builddir=.
31938
31939 if test "$ac_dir" != .; then
31940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31941   # A "../" for each directory in $ac_dir_suffix.
31942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31943 else
31944   ac_dir_suffix= ac_top_builddir=
31945 fi
31946
31947 case $srcdir in
31948   .)  # No --srcdir option.  We are building in place.
31949     ac_srcdir=.
31950     if test -z "$ac_top_builddir"; then
31951        ac_top_srcdir=.
31952     else
31953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31954     fi ;;
31955   [\\/]* | ?:[\\/]* )  # Absolute path.
31956     ac_srcdir=$srcdir$ac_dir_suffix;
31957     ac_top_srcdir=$srcdir ;;
31958   *) # Relative path.
31959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31961 esac
31962
31963 # Do not use `cd foo && pwd` to compute absolute paths, because
31964 # the directories may not exist.
31965 case `pwd` in
31966 .) ac_abs_builddir="$ac_dir";;
31967 *)
31968   case "$ac_dir" in
31969   .) ac_abs_builddir=`pwd`;;
31970   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31971   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31972   esac;;
31973 esac
31974 case $ac_abs_builddir in
31975 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31976 *)
31977   case ${ac_top_builddir}. in
31978   .) ac_abs_top_builddir=$ac_abs_builddir;;
31979   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31980   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31981   esac;;
31982 esac
31983 case $ac_abs_builddir in
31984 .) ac_abs_srcdir=$ac_srcdir;;
31985 *)
31986   case $ac_srcdir in
31987   .) ac_abs_srcdir=$ac_abs_builddir;;
31988   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31989   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31990   esac;;
31991 esac
31992 case $ac_abs_builddir in
31993 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31994 *)
31995   case $ac_top_srcdir in
31996   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31997   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31998   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31999   esac;;
32000 esac
32001
32002
32003   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32004 echo "$as_me: executing $ac_dest commands" >&6;}
32005   case $ac_dest in
32006     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32007    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32008     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32009    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32010     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32011    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32012     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32013    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32014     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32015    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32016     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32017    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32018     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32019    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32020     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32021    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32022     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32023    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32024     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32025    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32026   esac
32027 done
32028 _ACEOF
32029
32030 cat >>$CONFIG_STATUS <<\_ACEOF
32031
32032 { (exit 0); exit 0; }
32033 _ACEOF
32034 chmod +x $CONFIG_STATUS
32035 ac_clean_files=$ac_clean_files_save
32036
32037
32038 # configure is writing to config.log, and then calls config.status.
32039 # config.status does its own redirection, appending to config.log.
32040 # Unfortunately, on DOS this fails, as config.log is still kept open
32041 # by configure, so config.status won't be able to write to it; its
32042 # output is simply discarded.  So we exec the FD to /dev/null,
32043 # effectively closing config.log, so it can be properly (re)opened and
32044 # appended to by config.status.  When coming back to configure, we
32045 # need to make the FD available again.
32046 if test "$no_create" != yes; then
32047   ac_cs_success=:
32048   ac_config_status_args=
32049   test "$silent" = yes &&
32050     ac_config_status_args="$ac_config_status_args --quiet"
32051   exec 5>/dev/null
32052   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32053   exec 5>>config.log
32054   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32055   # would make configure fail if this is the last instruction.
32056   $ac_cs_success || { (exit 1); exit 1; }
32057 fi
32058
32059 #
32060 # CONFIG_SUBDIRS section.
32061 #
32062 if test "$no_recursion" != yes; then
32063
32064   # Remove --cache-file and --srcdir arguments so they do not pile up.
32065   ac_sub_configure_args=
32066   ac_prev=
32067   for ac_arg in $ac_configure_args; do
32068     if test -n "$ac_prev"; then
32069       ac_prev=
32070       continue
32071     fi
32072     case $ac_arg in
32073     -cache-file | --cache-file | --cache-fil | --cache-fi \
32074     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32075       ac_prev=cache_file ;;
32076     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32077     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32078     | --c=*)
32079       ;;
32080     --config-cache | -C)
32081       ;;
32082     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32083       ac_prev=srcdir ;;
32084     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32085       ;;
32086     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32087       ac_prev=prefix ;;
32088     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32089       ;;
32090     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32091     esac
32092   done
32093
32094   # Always prepend --prefix to ensure using the same prefix
32095   # in subdir configurations.
32096   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32097
32098   ac_popdir=`pwd`
32099   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32100
32101     # Do not complain, so a configure script can configure whichever
32102     # parts of a large source tree are present.
32103     test -d $srcdir/$ac_dir || continue
32104
32105     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32106 echo "$as_me: configuring in $ac_dir" >&6;}
32107     { if $as_mkdir_p; then
32108     mkdir -p "$ac_dir"
32109   else
32110     as_dir="$ac_dir"
32111     as_dirs=
32112     while test ! -d "$as_dir"; do
32113       as_dirs="$as_dir $as_dirs"
32114       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32116          X"$as_dir" : 'X\(//\)[^/]' \| \
32117          X"$as_dir" : 'X\(//\)$' \| \
32118          X"$as_dir" : 'X\(/\)' \| \
32119          .     : '\(.\)' 2>/dev/null ||
32120 echo X"$as_dir" |
32121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32122           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32123           /^X\(\/\/\)$/{ s//\1/; q; }
32124           /^X\(\/\).*/{ s//\1/; q; }
32125           s/.*/./; q'`
32126     done
32127     test ! -n "$as_dirs" || mkdir $as_dirs
32128   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32130    { (exit 1); exit 1; }; }; }
32131
32132     ac_builddir=.
32133
32134 if test "$ac_dir" != .; then
32135   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32136   # A "../" for each directory in $ac_dir_suffix.
32137   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32138 else
32139   ac_dir_suffix= ac_top_builddir=
32140 fi
32141
32142 case $srcdir in
32143   .)  # No --srcdir option.  We are building in place.
32144     ac_srcdir=.
32145     if test -z "$ac_top_builddir"; then
32146        ac_top_srcdir=.
32147     else
32148        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32149     fi ;;
32150   [\\/]* | ?:[\\/]* )  # Absolute path.
32151     ac_srcdir=$srcdir$ac_dir_suffix;
32152     ac_top_srcdir=$srcdir ;;
32153   *) # Relative path.
32154     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32155     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32156 esac
32157
32158 # Do not use `cd foo && pwd` to compute absolute paths, because
32159 # the directories may not exist.
32160 case `pwd` in
32161 .) ac_abs_builddir="$ac_dir";;
32162 *)
32163   case "$ac_dir" in
32164   .) ac_abs_builddir=`pwd`;;
32165   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32166   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32167   esac;;
32168 esac
32169 case $ac_abs_builddir in
32170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32171 *)
32172   case ${ac_top_builddir}. in
32173   .) ac_abs_top_builddir=$ac_abs_builddir;;
32174   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32175   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32176   esac;;
32177 esac
32178 case $ac_abs_builddir in
32179 .) ac_abs_srcdir=$ac_srcdir;;
32180 *)
32181   case $ac_srcdir in
32182   .) ac_abs_srcdir=$ac_abs_builddir;;
32183   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32184   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32185   esac;;
32186 esac
32187 case $ac_abs_builddir in
32188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32189 *)
32190   case $ac_top_srcdir in
32191   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32192   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32193   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32194   esac;;
32195 esac
32196
32197
32198     cd $ac_dir
32199
32200     # Check for guested configure; otherwise get Cygnus style configure.
32201     if test -f $ac_srcdir/configure.gnu; then
32202       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32203     elif test -f $ac_srcdir/configure; then
32204       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32205     elif test -f $ac_srcdir/configure.in; then
32206       ac_sub_configure=$ac_configure
32207     else
32208       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32209 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32210       ac_sub_configure=
32211     fi
32212
32213     # The recursion is here.
32214     if test -n "$ac_sub_configure"; then
32215       # Make the cache file name correct relative to the subdirectory.
32216       case $cache_file in
32217       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32218       *) # Relative path.
32219         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32220       esac
32221
32222       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32223 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32224       # The eval makes quoting arguments work.
32225       eval $ac_sub_configure $ac_sub_configure_args \
32226            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32227         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32228 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32229    { (exit 1); exit 1; }; }
32230     fi
32231
32232     cd $ac_popdir
32233   done
32234 fi
32235
32236
32237 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32238  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32239 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32240  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32241 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32242  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32243 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32244  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32245 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32246  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32247 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32248 fi