For PR351:
[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.4.
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 # $LLVM_COPYRIGHT
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.4'
429 PACKAGE_STRING='llvm 1.4'
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/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 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 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR 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'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.4:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039   --enable-doxygen        Build doxygen documentation (default is NO)
1040   --enable-ltdl-install   install libltdl
1041   --enable-shared[=PKGS]
1042                           build shared libraries [default=yes]
1043   --enable-static[=PKGS]
1044                           build static libraries [default=yes]
1045   --enable-fast-install[=PKGS]
1046                           optimize for fast installation [default=yes]
1047   --disable-libtool-lock  avoid locking (might break parallel builds)
1048
1049 Optional Packages:
1050   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1053                           searches PATH)
1054   --with-tclinclude       directory where tcl headers are
1055   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1056   --with-pic              try to use only PIC/non-PIC objects [default=use
1057                           both]
1058   --with-tags[=TAGS]
1059                           include additional configurations [automatic]
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072   F77         Fortran 77 compiler command
1073   FFLAGS      Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to <llvmbugs@cs.uiuc.edu>.
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd $ac_popdir
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174 llvm configure 1.4
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180
1181 $LLVM_COPYRIGHT
1182 _ACEOF
1183   exit 0
1184 fi
1185 exec 5>config.log
1186 cat >&5 <<_ACEOF
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1189
1190 It was created by llvm $as_me 1.4, which was
1191 generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193   $ $0 $@
1194
1195 _ACEOF
1196 {
1197 cat <<_ASUNAME
1198 ## --------- ##
1199 ## Platform. ##
1200 ## --------- ##
1201
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219 _ASUNAME
1220
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 for as_dir in $PATH
1223 do
1224   IFS=$as_save_IFS
1225   test -z "$as_dir" && as_dir=.
1226   echo "PATH: $as_dir"
1227 done
1228
1229 } >&5
1230
1231 cat >&5 <<_ACEOF
1232
1233
1234 ## ----------- ##
1235 ## Core tests. ##
1236 ## ----------- ##
1237
1238 _ACEOF
1239
1240
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_configure_args=
1247 ac_configure_args0=
1248 ac_configure_args1=
1249 ac_sep=
1250 ac_must_keep_next=false
1251 for ac_pass in 1 2
1252 do
1253   for ac_arg
1254   do
1255     case $ac_arg in
1256     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258     | -silent | --silent | --silen | --sile | --sil)
1259       continue ;;
1260     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262     esac
1263     case $ac_pass in
1264     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265     2)
1266       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267       if test $ac_must_keep_next = true; then
1268         ac_must_keep_next=false # Got value, back to normal.
1269       else
1270         case $ac_arg in
1271           *=* | --config-cache | -C | -disable-* | --disable-* \
1272           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274           | -with-* | --with-* | -without-* | --without-* | --x)
1275             case "$ac_configure_args0 " in
1276               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277             esac
1278             ;;
1279           -* ) ac_must_keep_next=true ;;
1280         esac
1281       fi
1282       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283       # Get rid of the leading space.
1284       ac_sep=" "
1285       ;;
1286     esac
1287   done
1288 done
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log.  We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298   # Save into config.log some information that might help in debugging.
1299   {
1300     echo
1301
1302     cat <<\_ASBOX
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1306 _ASBOX
1307     echo
1308     # The following way of writing the cache mishandles newlines in values,
1309 {
1310   (set) 2>&1 |
1311     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312     *ac_space=\ *)
1313       sed -n \
1314         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316       ;;
1317     *)
1318       sed -n \
1319         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320       ;;
1321     esac;
1322 }
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1329 _ASBOX
1330     echo
1331     for ac_var in $ac_subst_vars
1332     do
1333       eval ac_val=$`echo $ac_var`
1334       echo "$ac_var='"'"'$ac_val'"'"'"
1335     done | sort
1336     echo
1337
1338     if test -n "$ac_subst_files"; then
1339       cat <<\_ASBOX
1340 ## ------------- ##
1341 ## Output files. ##
1342 ## ------------- ##
1343 _ASBOX
1344       echo
1345       for ac_var in $ac_subst_files
1346       do
1347         eval ac_val=$`echo $ac_var`
1348         echo "$ac_var='"'"'$ac_val'"'"'"
1349       done | sort
1350       echo
1351     fi
1352
1353     if test -s confdefs.h; then
1354       cat <<\_ASBOX
1355 ## ----------- ##
1356 ## confdefs.h. ##
1357 ## ----------- ##
1358 _ASBOX
1359       echo
1360       sed "/^$/d" confdefs.h | sort
1361       echo
1362     fi
1363     test "$ac_signal" != 0 &&
1364       echo "$as_me: caught signal $ac_signal"
1365     echo "$as_me: exit $exit_status"
1366   } >&5
1367   rm -f core *.core &&
1368   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369     exit $exit_status
1370      ' 0
1371 for ac_signal in 1 2 13 15; do
1372   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 done
1374 ac_signal=0
1375
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 echo >confdefs.h
1380
1381 # Predefined preprocessor variables.
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 _ACEOF
1406
1407
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411   if test "x$prefix" != xNONE; then
1412     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413   else
1414     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415   fi
1416 fi
1417 for ac_site_file in $CONFIG_SITE; do
1418   if test -r "$ac_site_file"; then
1419     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421     sed 's/^/| /' "$ac_site_file" >&5
1422     . "$ac_site_file"
1423   fi
1424 done
1425
1426 if test -r "$cache_file"; then
1427   # Some versions of bash will fail to source /dev/null (special
1428   # files actually), so we avoid doing that.
1429   if test -f "$cache_file"; then
1430     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1432     case $cache_file in
1433       [\\/]* | ?:[\\/]* ) . $cache_file;;
1434       *)                      . ./$cache_file;;
1435     esac
1436   fi
1437 else
1438   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1440   >$cache_file
1441 fi
1442
1443 # Check that the precious variables saved in the cache have kept the same
1444 # value.
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449   eval ac_new_set=\$ac_env_${ac_var}_set
1450   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451   eval ac_new_val="\$ac_env_${ac_var}_value"
1452   case $ac_old_set,$ac_new_set in
1453     set,)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,set)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,);;
1462     *)
1463       if test "x$ac_old_val" != "x$ac_new_val"; then
1464         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467 echo "$as_me:   former value:  $ac_old_val" >&2;}
1468         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469 echo "$as_me:   current value: $ac_new_val" >&2;}
1470         ac_cache_corrupted=:
1471       fi;;
1472   esac
1473   # Pass precious variables to config.status.
1474   if test "$ac_new_set" = set; then
1475     case $ac_new_val in
1476     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478     *) ac_arg=$ac_var=$ac_new_val ;;
1479     esac
1480     case " $ac_configure_args " in
1481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483     esac
1484   fi
1485 done
1486 if $ac_cache_corrupted; then
1487   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493
1494 ac_ext=c
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
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 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
1535 ac_aux_dir=
1536 for ac_dir in autoconf $srcdir/autoconf; do
1537   if test -f $ac_dir/install-sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install-sh -c"
1540     break
1541   elif test -f $ac_dir/install.sh; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/install.sh -c"
1544     break
1545   elif test -f $ac_dir/shtool; then
1546     ac_aux_dir=$ac_dir
1547     ac_install_sh="$ac_aux_dir/shtool install -c"
1548     break
1549   fi
1550 done
1551 if test -z "$ac_aux_dir"; then
1552   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554    { (exit 1); exit 1; }; }
1555 fi
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560
1561 if test ${srcdir} != "." ; then
1562   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565    { (exit 1); exit 1; }; }
1566   fi
1567 fi
1568
1569 for i in `ls ${srcdir}/projects`
1570 do
1571   if test -d ${srcdir}/projects/${i} ; then
1572     case ${i} in
1573       "CVS") ;;
1574       "sample")
1575
1576 subdirs="$subdirs projects/sample"
1577     ;;
1578       "Stacker")
1579
1580 subdirs="$subdirs projects/Stacker"
1581    ;;
1582       "llvm-test")
1583
1584 subdirs="$subdirs projects/llvm-test"
1585  ;;
1586       "llvm-reopt")
1587
1588 subdirs="$subdirs projects/llvm-reopt"
1589 ;;
1590       "llvm-gcc")
1591
1592 subdirs="$subdirs projects/llvm-gcc"
1593   ;;
1594       "Java")
1595
1596 subdirs="$subdirs projects/Java"
1597       ;;
1598       "llvm-tv")
1599
1600 subdirs="$subdirs projects/llvm-tv"
1601    ;;
1602       "llvm-fefw")
1603
1604 subdirs="$subdirs projects/llvm-fefw"
1605  ;;
1606       "poolalloc")
1607
1608 subdirs="$subdirs projects/poolalloc"
1609  ;;
1610       *)
1611         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1613         ;;
1614     esac
1615   fi
1616 done
1617
1618
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623    { (exit 1); exit 1; }; }
1624
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632   ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636    { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640    { (exit 1); exit 1; }; }
1641
1642 fi
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1645 build=$ac_cv_build
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658   ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662    { (exit 1); exit 1; }; }
1663
1664 fi
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1667 host=$ac_cv_host
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680   ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684    { (exit 1); exit 1; }; }
1685
1686 fi
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698   test "$program_prefix$program_suffix$program_transform_name" = \
1699     NONENONEs,x,x, &&
1700   program_prefix=${target_alias}-
1701
1702 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704 if test "${llvm_cv_os_type+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   case $build in
1708   *-*-aix*)
1709     llvm_cv_os_type="AIX"
1710     llvm_cv_platform_type="Unix" ;;
1711   *-*-cygwin*)
1712     llvm_cv_os_type="Cygwin"
1713     llvm_cv_platform_type="Unix" ;;
1714   *-*-darwin*)
1715     llvm_cv_os_type="Darwin"
1716     llvm_cv_platform_type="Unix" ;;
1717   *-*-freebsd*)
1718     llvm_cv_os_type="FreeBSD"
1719     llvm_cv_platform_type="Unix" ;;
1720   *-*-interix*)
1721     llvm_cv_os_type="Interix"
1722     llvm_cv_platform_type="Unix" ;;
1723   *-*-linux*)
1724     llvm_cv_os_type="Linux"
1725     llvm_cv_platform_type="Unix" ;;
1726   *-*-solaris*)
1727     llvm_cv_os_type="SunOS"
1728     llvm_cv_platform_type="Unix" ;;
1729   *-*-win32*)
1730     llvm_cv_os_type="Win32"
1731     llvm_cv_platform_type="Win32" ;;
1732   *-*-mingw*)
1733     llvm_cv_os_type="MingW"
1734     llvm_cv_platform_type="Win32" ;;
1735   *)
1736     llvm_cv_os_type="Unknown"
1737     llvm_cv_platform_type="Unknown" ;;
1738 esac
1739 fi
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1742
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746    { (exit 1); exit 1; }; }
1747 fi
1748
1749 OS=$llvm_cv_os_type
1750
1751
1752 case $llvm_cv_platform_type in
1753   Unix)
1754
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1757 _ACEOF
1758
1759     ;;
1760   Win32)
1761
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_WIN32 1
1764 _ACEOF
1765
1766     ;;
1767 esac
1768
1769           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_os_type"
1770
1771
1772 case $target in
1773   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
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="AMD64" ;;
1786   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1787   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1788   *)                      llvm_cv_target_arch="Unknown" ;;
1789 esac
1790 fi
1791 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1792 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1793
1794 if test "$llvm_cv_target_arch" = "Unknown" ; then
1795   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1796 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1797 fi
1798
1799 ARCH=$llvm_cv_target_arch
1800
1801
1802 ac_ext=c
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807 if test -n "$ac_tool_prefix"; then
1808   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_CC+set}" = set; then
1813   echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815   if test -n "$CC"; then
1816   ac_cv_prog_CC="$CC" # Let the user override the test.
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821   IFS=$as_save_IFS
1822   test -z "$as_dir" && as_dir=.
1823   for ac_exec_ext in '' $ac_executable_extensions; do
1824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827     break 2
1828   fi
1829 done
1830 done
1831
1832 fi
1833 fi
1834 CC=$ac_cv_prog_CC
1835 if test -n "$CC"; then
1836   echo "$as_me:$LINENO: result: $CC" >&5
1837 echo "${ECHO_T}$CC" >&6
1838 else
1839   echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1841 fi
1842
1843 fi
1844 if test -z "$ac_cv_prog_CC"; then
1845   ac_ct_CC=$CC
1846   # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1851   echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853   if test -n "$ac_ct_CC"; then
1854   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859   IFS=$as_save_IFS
1860   test -z "$as_dir" && as_dir=.
1861   for ac_exec_ext in '' $ac_executable_extensions; do
1862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863     ac_cv_prog_ac_ct_CC="gcc"
1864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865     break 2
1866   fi
1867 done
1868 done
1869
1870 fi
1871 fi
1872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1873 if test -n "$ac_ct_CC"; then
1874   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1875 echo "${ECHO_T}$ac_ct_CC" >&6
1876 else
1877   echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1879 fi
1880
1881   CC=$ac_ct_CC
1882 else
1883   CC="$ac_cv_prog_CC"
1884 fi
1885
1886 if test -z "$CC"; then
1887   if test -n "$ac_tool_prefix"; then
1888   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1889 set dummy ${ac_tool_prefix}cc; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_CC+set}" = set; then
1893   echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895   if test -n "$CC"; then
1896   ac_cv_prog_CC="$CC" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1900 do
1901   IFS=$as_save_IFS
1902   test -z "$as_dir" && as_dir=.
1903   for ac_exec_ext in '' $ac_executable_extensions; do
1904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905     ac_cv_prog_CC="${ac_tool_prefix}cc"
1906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907     break 2
1908   fi
1909 done
1910 done
1911
1912 fi
1913 fi
1914 CC=$ac_cv_prog_CC
1915 if test -n "$CC"; then
1916   echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6
1918 else
1919   echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923 fi
1924 if test -z "$ac_cv_prog_CC"; then
1925   ac_ct_CC=$CC
1926   # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931   echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933   if test -n "$ac_ct_CC"; then
1934   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1935 else
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939   IFS=$as_save_IFS
1940   test -z "$as_dir" && as_dir=.
1941   for ac_exec_ext in '' $ac_executable_extensions; do
1942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943     ac_cv_prog_ac_ct_CC="cc"
1944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945     break 2
1946   fi
1947 done
1948 done
1949
1950 fi
1951 fi
1952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1953 if test -n "$ac_ct_CC"; then
1954   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1955 echo "${ECHO_T}$ac_ct_CC" >&6
1956 else
1957   echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1959 fi
1960
1961   CC=$ac_ct_CC
1962 else
1963   CC="$ac_cv_prog_CC"
1964 fi
1965
1966 fi
1967 if test -z "$CC"; then
1968   # Extract the first word of "cc", so it can be a program name with args.
1969 set dummy cc; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   if test -n "$CC"; then
1976   ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978   ac_prog_rejected=no
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   for ac_exec_ext in '' $ac_executable_extensions; do
1985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1987        ac_prog_rejected=yes
1988        continue
1989      fi
1990     ac_cv_prog_CC="cc"
1991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992     break 2
1993   fi
1994 done
1995 done
1996
1997 if test $ac_prog_rejected = yes; then
1998   # We found a bogon in the path, so make sure we never use it.
1999   set dummy $ac_cv_prog_CC
2000   shift
2001   if test $# != 0; then
2002     # We chose a different compiler from the bogus one.
2003     # However, it has the same basename, so the bogon will be chosen
2004     # first if we set CC to just the basename; use the full file name.
2005     shift
2006     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2007   fi
2008 fi
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2015 else
2016   echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2018 fi
2019
2020 fi
2021 if test -z "$CC"; then
2022   if test -n "$ac_tool_prefix"; then
2023   for ac_prog in cl
2024   do
2025     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_CC+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   if test -n "$CC"; then
2033   ac_cv_prog_CC="$CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040   for ac_exec_ext in '' $ac_executable_extensions; do
2041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044     break 2
2045   fi
2046 done
2047 done
2048
2049 fi
2050 fi
2051 CC=$ac_cv_prog_CC
2052 if test -n "$CC"; then
2053   echo "$as_me:$LINENO: result: $CC" >&5
2054 echo "${ECHO_T}$CC" >&6
2055 else
2056   echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2058 fi
2059
2060     test -n "$CC" && break
2061   done
2062 fi
2063 if test -z "$CC"; then
2064   ac_ct_CC=$CC
2065   for ac_prog in cl
2066 do
2067   # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$ac_ct_CC"; then
2075   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084     ac_cv_prog_ac_ct_CC="$ac_prog"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090
2091 fi
2092 fi
2093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094 if test -n "$ac_ct_CC"; then
2095   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096 echo "${ECHO_T}$ac_ct_CC" >&6
2097 else
2098   echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2100 fi
2101
2102   test -n "$ac_ct_CC" && break
2103 done
2104
2105   CC=$ac_ct_CC
2106 fi
2107
2108 fi
2109
2110
2111 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&2;}
2115    { (exit 1); exit 1; }; }
2116
2117 # Provide some information about the compiler.
2118 echo "$as_me:$LINENO:" \
2119      "checking for C compiler version" >&5
2120 ac_compiler=`set X $ac_compile; echo $2`
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2122   (eval $ac_compiler --version </dev/null >&5) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2127   (eval $ac_compiler -v </dev/null >&5) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2132   (eval $ac_compiler -V </dev/null >&5) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }
2136
2137 cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h.  */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h.  */
2143
2144 int
2145 main ()
2146 {
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 ac_clean_files_save=$ac_clean_files
2153 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2154 # Try to create an executable without -o first, disregard a.out.
2155 # It will help us diagnose broken compilers, and finding out an intuition
2156 # of exeext.
2157 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2158 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2159 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2161   (eval $ac_link_default) 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }; then
2165   # Find the output, starting from the most likely.  This scheme is
2166 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167 # resort.
2168
2169 # Be careful to initialize this variable, since it used to be cached.
2170 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2171 ac_cv_exeext=
2172 # b.out is created by i960 compilers.
2173 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2174 do
2175   test -f "$ac_file" || continue
2176   case $ac_file in
2177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178         ;;
2179     conftest.$ac_ext )
2180         # This is the source file.
2181         ;;
2182     [ab].out )
2183         # We found the default executable, but exeext='' is most
2184         # certainly right.
2185         break;;
2186     *.* )
2187         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188         # FIXME: I believe we export ac_cv_exeext for Libtool,
2189         # but it would be cool to find out if it's true.  Does anybody
2190         # maintain Libtool? --akim.
2191         export ac_cv_exeext
2192         break;;
2193     * )
2194         break;;
2195   esac
2196 done
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&2;}
2205    { (exit 77); exit 77; }; }
2206 fi
2207
2208 ac_exeext=$ac_cv_exeext
2209 echo "$as_me:$LINENO: result: $ac_file" >&5
2210 echo "${ECHO_T}$ac_file" >&6
2211
2212 # Check the compiler produces executables we can run.  If not, either
2213 # the compiler is broken, or we cross compile.
2214 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2216 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217 # If not cross compiling, check that we can run a simple program.
2218 if test "$cross_compiling" != yes; then
2219   if { ac_try='./$ac_file'
2220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221   (eval $ac_try) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; }; then
2225     cross_compiling=no
2226   else
2227     if test "$cross_compiling" = maybe; then
2228         cross_compiling=yes
2229     else
2230         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236    { (exit 1); exit 1; }; }
2237     fi
2238   fi
2239 fi
2240 echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6
2242
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check the compiler produces executables we can run.  If not, either
2246 # the compiler is broken, or we cross compile.
2247 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2249 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6
2251
2252 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2255   (eval $ac_link) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; then
2259   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2262 # `rm'.
2263 for ac_file in conftest.exe conftest conftest.*; do
2264   test -f "$ac_file" || continue
2265   case $ac_file in
2266     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2267     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268           export ac_cv_exeext
2269           break;;
2270     * ) break;;
2271   esac
2272 done
2273 else
2274   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2277 See \`config.log' for more details." >&2;}
2278    { (exit 1); exit 1; }; }
2279 fi
2280
2281 rm -f conftest$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2283 echo "${ECHO_T}$ac_cv_exeext" >&6
2284
2285 rm -f conftest.$ac_ext
2286 EXEEXT=$ac_cv_exeext
2287 ac_exeext=$EXEEXT
2288 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2289 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2290 if test "${ac_cv_objext+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h.  */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h.  */
2299
2300 int
2301 main ()
2302 {
2303
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 rm -f conftest.o conftest.obj
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310   (eval $ac_compile) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; then
2314   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2315   case $ac_file in
2316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2317     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318        break;;
2319   esac
2320 done
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2326 See \`config.log' for more details." >&5
2327 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&2;}
2329    { (exit 1); exit 1; }; }
2330 fi
2331
2332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333 fi
2334 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2335 echo "${ECHO_T}$ac_cv_objext" >&6
2336 OBJEXT=$ac_cv_objext
2337 ac_objext=$OBJEXT
2338 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   cat >conftest.$ac_ext <<_ACEOF
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349
2350 int
2351 main ()
2352 {
2353 #ifndef __GNUC__
2354        choke me
2355 #endif
2356
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363   (eval $ac_compile) 2>conftest.er1
2364   ac_status=$?
2365   grep -v '^ *+' conftest.er1 >conftest.err
2366   rm -f conftest.er1
2367   cat conftest.err >&5
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); } &&
2370          { ac_try='test -z "$ac_c_werror_flag"
2371                          || test ! -s conftest.err'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; } &&
2377          { ac_try='test -s conftest.$ac_objext'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; }; then
2383   ac_compiler_gnu=yes
2384 else
2385   echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 ac_compiler_gnu=no
2389 fi
2390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2392
2393 fi
2394 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2395 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2396 GCC=`test $ac_compiler_gnu = yes && echo yes`
2397 ac_test_CFLAGS=${CFLAGS+set}
2398 ac_save_CFLAGS=$CFLAGS
2399 CFLAGS="-g"
2400 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2401 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2402 if test "${ac_cv_prog_cc_g+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h.  */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h.  */
2411
2412 int
2413 main ()
2414 {
2415
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422   (eval $ac_compile) 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag"
2430                          || test ! -s conftest.err'
2431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432   (eval $ac_try) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; } &&
2436          { ac_try='test -s conftest.$ac_objext'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; }; then
2442   ac_cv_prog_cc_g=yes
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 ac_cv_prog_cc_g=no
2448 fi
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 fi
2451 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2453 if test "$ac_test_CFLAGS" = set; then
2454   CFLAGS=$ac_save_CFLAGS
2455 elif test $ac_cv_prog_cc_g = yes; then
2456   if test "$GCC" = yes; then
2457     CFLAGS="-g -O2"
2458   else
2459     CFLAGS="-g"
2460   fi
2461 else
2462   if test "$GCC" = yes; then
2463     CFLAGS="-O2"
2464   else
2465     CFLAGS=
2466   fi
2467 fi
2468 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2469 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2470 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   ac_cv_prog_cc_stdc=no
2474 ac_save_CC=$CC
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481 #include <stdarg.h>
2482 #include <stdio.h>
2483 #include <sys/types.h>
2484 #include <sys/stat.h>
2485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2486 struct buf { int x; };
2487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2488 static char *e (p, i)
2489      char **p;
2490      int i;
2491 {
2492   return p[i];
2493 }
2494 static char *f (char * (*g) (char **, int), char **p, ...)
2495 {
2496   char *s;
2497   va_list v;
2498   va_start (v,p);
2499   s = g (p, va_arg (v,int));
2500   va_end (v);
2501   return s;
2502 }
2503
2504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2505    function prototypes and stuff, but not '\xHH' hex character constants.
2506    These don't provoke an error unfortunately, instead are silently treated
2507    as 'x'.  The following induces an error, until -std1 is added to get
2508    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2509    array size at least.  It's necessary to write '\x00'==0 to get something
2510    that's true only with -std1.  */
2511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2512
2513 int test (int i, double x);
2514 struct s1 {int (*f) (int a);};
2515 struct s2 {int (*f) (double a);};
2516 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2517 int argc;
2518 char **argv;
2519 int
2520 main ()
2521 {
2522 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 # Don't try gcc -ansi; that turns off useful extensions and
2528 # breaks some systems' header files.
2529 # AIX                   -qlanglvl=ansi
2530 # Ultrix and OSF/1      -std1
2531 # HP-UX 10.20 and later -Ae
2532 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2533 # SVR4                  -Xc -D__EXTENSIONS__
2534 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2535 do
2536   CC="$ac_save_CC $ac_arg"
2537   rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>conftest.er1
2540   ac_status=$?
2541   grep -v '^ *+' conftest.er1 >conftest.err
2542   rm -f conftest.er1
2543   cat conftest.err >&5
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -z "$ac_c_werror_flag"
2547                          || test ! -s conftest.err'
2548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; } &&
2553          { ac_try='test -s conftest.$ac_objext'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   ac_cv_prog_cc_stdc=$ac_arg
2560 break
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565 fi
2566 rm -f conftest.err conftest.$ac_objext
2567 done
2568 rm -f conftest.$ac_ext conftest.$ac_objext
2569 CC=$ac_save_CC
2570
2571 fi
2572
2573 case "x$ac_cv_prog_cc_stdc" in
2574   x|xno)
2575     echo "$as_me:$LINENO: result: none needed" >&5
2576 echo "${ECHO_T}none needed" >&6 ;;
2577   *)
2578     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2579 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2580     CC="$CC $ac_cv_prog_cc_stdc" ;;
2581 esac
2582
2583 # Some people use a C++ compiler to compile C.  Since we use `exit',
2584 # in C++ we need to declare it.  In case someone uses the same compiler
2585 # for both compiling C and C++ we need to have the C++ compiler decide
2586 # the declaration of exit, since it's the most demanding environment.
2587 cat >conftest.$ac_ext <<_ACEOF
2588 #ifndef __cplusplus
2589   choke me
2590 #endif
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594   (eval $ac_compile) 2>conftest.er1
2595   ac_status=$?
2596   grep -v '^ *+' conftest.er1 >conftest.err
2597   rm -f conftest.er1
2598   cat conftest.err >&5
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); } &&
2601          { ac_try='test -z "$ac_c_werror_flag"
2602                          || test ! -s conftest.err'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; } &&
2608          { ac_try='test -s conftest.$ac_objext'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; }; then
2614   for ac_declaration in \
2615    '' \
2616    'extern "C" void std::exit (int) throw (); using std::exit;' \
2617    'extern "C" void std::exit (int); using std::exit;' \
2618    'extern "C" void exit (int) throw ();' \
2619    'extern "C" void exit (int);' \
2620    'void exit (int);'
2621 do
2622   cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 $ac_declaration
2629 #include <stdlib.h>
2630 int
2631 main ()
2632 {
2633 exit (42);
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640   (eval $ac_compile) 2>conftest.er1
2641   ac_status=$?
2642   grep -v '^ *+' conftest.er1 >conftest.err
2643   rm -f conftest.er1
2644   cat conftest.err >&5
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -z "$ac_c_werror_flag"
2648                          || test ! -s conftest.err'
2649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650   (eval $ac_try) 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }; } &&
2654          { ac_try='test -s conftest.$ac_objext'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; }; then
2660   :
2661 else
2662   echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 continue
2666 fi
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668   cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 $ac_declaration
2675 int
2676 main ()
2677 {
2678 exit (42);
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 rm -f conftest.$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685   (eval $ac_compile) 2>conftest.er1
2686   ac_status=$?
2687   grep -v '^ *+' conftest.er1 >conftest.err
2688   rm -f conftest.er1
2689   cat conftest.err >&5
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } &&
2692          { ac_try='test -z "$ac_c_werror_flag"
2693                          || test ! -s conftest.err'
2694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; } &&
2699          { ac_try='test -s conftest.$ac_objext'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; }; then
2705   break
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 fi
2711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712 done
2713 rm -f conftest*
2714 if test -n "$ac_declaration"; then
2715   echo '#ifdef __cplusplus' >>confdefs.h
2716   echo $ac_declaration      >>confdefs.h
2717   echo '#endif'             >>confdefs.h
2718 fi
2719
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 fi
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732
2733 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2734 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2735 if test "${ac_cv_c_bigendian+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   # See if sys/param.h defines the BYTE_ORDER macro.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745 #include <sys/types.h>
2746 #include <sys/param.h>
2747
2748 int
2749 main ()
2750 {
2751 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2752  bogus endian macros
2753 #endif
2754
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761   (eval $ac_compile) 2>conftest.er1
2762   ac_status=$?
2763   grep -v '^ *+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          { ac_try='test -z "$ac_c_werror_flag"
2769                          || test ! -s conftest.err'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; } &&
2775          { ac_try='test -s conftest.$ac_objext'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; }; then
2781   # It does; now see whether it defined to BIG_ENDIAN or not.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h.  */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h.  */
2788 #include <sys/types.h>
2789 #include <sys/param.h>
2790
2791 int
2792 main ()
2793 {
2794 #if BYTE_ORDER != BIG_ENDIAN
2795  not big endian
2796 #endif
2797
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804   (eval $ac_compile) 2>conftest.er1
2805   ac_status=$?
2806   grep -v '^ *+' conftest.er1 >conftest.err
2807   rm -f conftest.er1
2808   cat conftest.err >&5
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); } &&
2811          { ac_try='test -z "$ac_c_werror_flag"
2812                          || test ! -s conftest.err'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; } &&
2818          { ac_try='test -s conftest.$ac_objext'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; }; then
2824   ac_cv_c_bigendian=yes
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ac_cv_c_bigendian=no
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 # It does not; compile a test program.
2837 if test "$cross_compiling" = yes; then
2838   # try to guess the endianness by grepping values into an object file
2839   ac_cv_c_bigendian=unknown
2840   cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h.  */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h.  */
2846 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2847 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2848 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2849 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2850 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2851 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2852 int
2853 main ()
2854 {
2855  _ascii (); _ebcdic ();
2856   ;
2857   return 0;
2858 }
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862   (eval $ac_compile) 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } &&
2869          { ac_try='test -z "$ac_c_werror_flag"
2870                          || test ! -s conftest.err'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; } &&
2876          { ac_try='test -s conftest.$ac_objext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2883   ac_cv_c_bigendian=yes
2884 fi
2885 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2886   if test "$ac_cv_c_bigendian" = unknown; then
2887     ac_cv_c_bigendian=no
2888   else
2889     # finding both strings is unlikely to happen, but who knows?
2890     ac_cv_c_bigendian=unknown
2891   fi
2892 fi
2893 else
2894   echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 fi
2898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2899 else
2900   cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h.  */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h.  */
2906 int
2907 main ()
2908 {
2909   /* Are we little or big endian?  From Harbison&Steele.  */
2910   union
2911   {
2912     long l;
2913     char c[sizeof (long)];
2914   } u;
2915   u.l = 1;
2916   exit (u.c[sizeof (long) - 1] == 1);
2917 }
2918 _ACEOF
2919 rm -f conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921   (eval $ac_link) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926   (eval $ac_try) 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }; }; then
2930   ac_cv_c_bigendian=no
2931 else
2932   echo "$as_me: program exited with status $ac_status" >&5
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 ( exit $ac_status )
2937 ac_cv_c_bigendian=yes
2938 fi
2939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2940 fi
2941 fi
2942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943 fi
2944 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2945 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2946 case $ac_cv_c_bigendian in
2947   yes)
2948     ENDIAN=big
2949  ;;
2950   no)
2951     ENDIAN=little
2952  ;;
2953   *)
2954     { { echo "$as_me:$LINENO: error: unknown endianness
2955 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2956 echo "$as_me: error: unknown endianness
2957 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2958    { (exit 1); exit 1; }; } ;;
2959 esac
2960
2961
2962
2963 # Check whether --enable-optimized or --disable-optimized was given.
2964 if test "${enable_optimized+set}" = set; then
2965   enableval="$enable_optimized"
2966
2967 else
2968   enableval=no
2969 fi;
2970 if test ${enableval} = "no" ; then
2971   ENABLE_OPTIMIZED=
2972
2973 else
2974   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2975
2976 fi
2977
2978 # Check whether --enable-jit or --disable-jit was given.
2979 if test "${enable_jit+set}" = set; then
2980   enableval="$enable_jit"
2981
2982 else
2983   enableval=default
2984 fi;
2985 if test ${enableval} = "no"
2986 then
2987   JIT=
2988
2989 else
2990   case "$llvm_cv_target_arch" in
2991     x86)     JIT=TARGET_HAS_JIT=1
2992  ;;
2993     Sparc)   JIT=TARGET_HAS_JIT=1
2994  ;;
2995     PowerPC) JIT=TARGET_HAS_JIT=1
2996  ;;
2997     AMD64)   JIT=
2998  ;;
2999     *)       JIT=
3000  ;;
3001   esac
3002 fi
3003
3004 # Check whether --enable-doxygen or --disable-doxygen was given.
3005 if test "${enable_doxygen+set}" = set; then
3006   enableval="$enable_doxygen"
3007
3008 else
3009   enableval=default
3010 fi;
3011 case "$enableval" in
3012   yes) ENABLE_DOXYGEN=1
3013  ;;
3014   no)  ENABLE_DOXYGEN=0
3015  ;;
3016   default) ENABLE_DOXYGEN=0
3017  ;;
3018   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3019 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3020    { (exit 1); exit 1; }; } ;;
3021 esac
3022
3023
3024 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3025 if test "${with_llvmgccdir+set}" = set; then
3026   withval="$with_llvmgccdir"
3027
3028 else
3029   withval=default
3030 fi;
3031 case "$withval" in
3032   default) WITH_LLVMGCCDIR=default ;;
3033   /*)      WITH_LLVMGCCDIR=$withval ;;
3034   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3035 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3036    { (exit 1); exit 1; }; } ;;
3037 esac
3038
3039
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3047 # On Suns, sometimes $CPP names a directory.
3048 if test -n "$CPP" && test -d "$CPP"; then
3049   CPP=
3050 fi
3051 if test -z "$CPP"; then
3052   if test "${ac_cv_prog_CPP+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055       # Double quotes because CPP needs to be expanded
3056     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3057     do
3058       ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3060 do
3061   # Use a header file that comes with gcc, so configuring glibc
3062   # with a fresh cross-compiler works.
3063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064   # <limits.h> exists even on freestanding compilers.
3065   # On the NeXT, cc -E runs the code through the compiler's parser,
3066   # not just through cpp. "Syntax error" is here to catch this case.
3067   cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073 #ifdef __STDC__
3074 # include <limits.h>
3075 #else
3076 # include <assert.h>
3077 #endif
3078                      Syntax error
3079 _ACEOF
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } >/dev/null; then
3088   if test -s conftest.err; then
3089     ac_cpp_err=$ac_c_preproc_warn_flag
3090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3091   else
3092     ac_cpp_err=
3093   fi
3094 else
3095   ac_cpp_err=yes
3096 fi
3097 if test -z "$ac_cpp_err"; then
3098   :
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Broken: fails on valid input.
3104 continue
3105 fi
3106 rm -f conftest.err conftest.$ac_ext
3107
3108   # OK, works on sane cases.  Now check whether non-existent headers
3109   # can be detected and how.
3110   cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116 #include <ac_nonexistent.h>
3117 _ACEOF
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } >/dev/null; then
3126   if test -s conftest.err; then
3127     ac_cpp_err=$ac_c_preproc_warn_flag
3128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3129   else
3130     ac_cpp_err=
3131   fi
3132 else
3133   ac_cpp_err=yes
3134 fi
3135 if test -z "$ac_cpp_err"; then
3136   # Broken: success on invalid input.
3137 continue
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142   # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3145 fi
3146 rm -f conftest.err conftest.$ac_ext
3147
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3152   break
3153 fi
3154
3155     done
3156     ac_cv_prog_CPP=$CPP
3157
3158 fi
3159   CPP=$ac_cv_prog_CPP
3160 else
3161   ac_cv_prog_CPP=$CPP
3162 fi
3163 echo "$as_me:$LINENO: result: $CPP" >&5
3164 echo "${ECHO_T}$CPP" >&6
3165 ac_preproc_ok=false
3166 for ac_c_preproc_warn_flag in '' yes
3167 do
3168   # Use a header file that comes with gcc, so configuring glibc
3169   # with a fresh cross-compiler works.
3170   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3171   # <limits.h> exists even on freestanding compilers.
3172   # On the NeXT, cc -E runs the code through the compiler's parser,
3173   # not just through cpp. "Syntax error" is here to catch this case.
3174   cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 #ifdef __STDC__
3181 # include <limits.h>
3182 #else
3183 # include <assert.h>
3184 #endif
3185                      Syntax error
3186 _ACEOF
3187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3189   ac_status=$?
3190   grep -v '^ *+' conftest.er1 >conftest.err
3191   rm -f conftest.er1
3192   cat conftest.err >&5
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); } >/dev/null; then
3195   if test -s conftest.err; then
3196     ac_cpp_err=$ac_c_preproc_warn_flag
3197     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3198   else
3199     ac_cpp_err=
3200   fi
3201 else
3202   ac_cpp_err=yes
3203 fi
3204 if test -z "$ac_cpp_err"; then
3205   :
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210   # Broken: fails on valid input.
3211 continue
3212 fi
3213 rm -f conftest.err conftest.$ac_ext
3214
3215   # OK, works on sane cases.  Now check whether non-existent headers
3216   # can be detected and how.
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 #include <ac_nonexistent.h>
3224 _ACEOF
3225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3227   ac_status=$?
3228   grep -v '^ *+' conftest.er1 >conftest.err
3229   rm -f conftest.er1
3230   cat conftest.err >&5
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } >/dev/null; then
3233   if test -s conftest.err; then
3234     ac_cpp_err=$ac_c_preproc_warn_flag
3235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3236   else
3237     ac_cpp_err=
3238   fi
3239 else
3240   ac_cpp_err=yes
3241 fi
3242 if test -z "$ac_cpp_err"; then
3243   # Broken: success on invalid input.
3244 continue
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249   # Passes both tests.
3250 ac_preproc_ok=:
3251 break
3252 fi
3253 rm -f conftest.err conftest.$ac_ext
3254
3255 done
3256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3257 rm -f conftest.err conftest.$ac_ext
3258 if $ac_preproc_ok; then
3259   :
3260 else
3261   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3264 See \`config.log' for more details." >&2;}
3265    { (exit 1); exit 1; }; }
3266 fi
3267
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273
3274 ac_ext=c
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279 if test -n "$ac_tool_prefix"; then
3280   for ac_prog in gcc
3281   do
3282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_CC+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$CC"; then
3290   ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305
3306 fi
3307 fi
3308 CC=$ac_cv_prog_CC
3309 if test -n "$CC"; then
3310   echo "$as_me:$LINENO: result: $CC" >&5
3311 echo "${ECHO_T}$CC" >&6
3312 else
3313   echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3315 fi
3316
3317     test -n "$CC" && break
3318   done
3319 fi
3320 if test -z "$CC"; then
3321   ac_ct_CC=$CC
3322   for ac_prog in gcc
3323 do
3324   # Extract the first word of "$ac_prog", so it can be a program name with args.
3325 set dummy $ac_prog; ac_word=$2
3326 echo "$as_me:$LINENO: checking for $ac_word" >&5
3327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3329   echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331   if test -n "$ac_ct_CC"; then
3332   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337   IFS=$as_save_IFS
3338   test -z "$as_dir" && as_dir=.
3339   for ac_exec_ext in '' $ac_executable_extensions; do
3340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341     ac_cv_prog_ac_ct_CC="$ac_prog"
3342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343     break 2
3344   fi
3345 done
3346 done
3347
3348 fi
3349 fi
3350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3353 echo "${ECHO_T}$ac_ct_CC" >&6
3354 else
3355   echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6
3357 fi
3358
3359   test -n "$ac_ct_CC" && break
3360 done
3361
3362   CC=$ac_ct_CC
3363 fi
3364
3365
3366 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details." >&2;}
3370    { (exit 1); exit 1; }; }
3371
3372 # Provide some information about the compiler.
3373 echo "$as_me:$LINENO:" \
3374      "checking for C compiler version" >&5
3375 ac_compiler=`set X $ac_compile; echo $2`
3376 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3377   (eval $ac_compiler --version </dev/null >&5) 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }
3381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3382   (eval $ac_compiler -v </dev/null >&5) 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }
3386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3387   (eval $ac_compiler -V </dev/null >&5) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }
3391
3392 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403
3404 int
3405 main ()
3406 {
3407 #ifndef __GNUC__
3408        choke me
3409 #endif
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417   (eval $ac_compile) 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } &&
3424          { ac_try='test -z "$ac_c_werror_flag"
3425                          || test ! -s conftest.err'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; } &&
3431          { ac_try='test -s conftest.$ac_objext'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; }; then
3437   ac_compiler_gnu=yes
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 ac_compiler_gnu=no
3443 fi
3444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3446
3447 fi
3448 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3450 GCC=`test $ac_compiler_gnu = yes && echo yes`
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3453 CFLAGS="-g"
3454 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476   (eval $ac_compile) 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } &&
3483          { ac_try='test -z "$ac_c_werror_flag"
3484                          || test ! -s conftest.err'
3485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486   (eval $ac_try) 2>&5
3487   ac_status=$?
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); }; } &&
3490          { ac_try='test -s conftest.$ac_objext'
3491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492   (eval $ac_try) 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }; }; then
3496   ac_cv_prog_cc_g=yes
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 ac_cv_prog_cc_g=no
3502 fi
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504 fi
3505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3506 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3507 if test "$ac_test_CFLAGS" = set; then
3508   CFLAGS=$ac_save_CFLAGS
3509 elif test $ac_cv_prog_cc_g = yes; then
3510   if test "$GCC" = yes; then
3511     CFLAGS="-g -O2"
3512   else
3513     CFLAGS="-g"
3514   fi
3515 else
3516   if test "$GCC" = yes; then
3517     CFLAGS="-O2"
3518   else
3519     CFLAGS=
3520   fi
3521 fi
3522 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3523 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3524 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   ac_cv_prog_cc_stdc=no
3528 ac_save_CC=$CC
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535 #include <stdarg.h>
3536 #include <stdio.h>
3537 #include <sys/types.h>
3538 #include <sys/stat.h>
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3543      char **p;
3544      int i;
3545 {
3546   return p[i];
3547 }
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3549 {
3550   char *s;
3551   va_list v;
3552   va_start (v,p);
3553   s = g (p, va_arg (v,int));
3554   va_end (v);
3555   return s;
3556 }
3557
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3559    function prototypes and stuff, but not '\xHH' hex character constants.
3560    These don't provoke an error unfortunately, instead are silently treated
3561    as 'x'.  The following induces an error, until -std1 is added to get
3562    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3563    array size at least.  It's necessary to write '\x00'==0 to get something
3564    that's true only with -std1.  */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 int argc;
3572 char **argv;
3573 int
3574 main ()
3575 {
3576 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 # Don't try gcc -ansi; that turns off useful extensions and
3582 # breaks some systems' header files.
3583 # AIX                   -qlanglvl=ansi
3584 # Ultrix and OSF/1      -std1
3585 # HP-UX 10.20 and later -Ae
3586 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3587 # SVR4                  -Xc -D__EXTENSIONS__
3588 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3589 do
3590   CC="$ac_save_CC $ac_arg"
3591   rm -f conftest.$ac_objext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3593   (eval $ac_compile) 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -z "$ac_c_werror_flag"
3601                          || test ! -s conftest.err'
3602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603   (eval $ac_try) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; } &&
3607          { ac_try='test -s conftest.$ac_objext'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; }; then
3613   ac_cv_prog_cc_stdc=$ac_arg
3614 break
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 fi
3620 rm -f conftest.err conftest.$ac_objext
3621 done
3622 rm -f conftest.$ac_ext conftest.$ac_objext
3623 CC=$ac_save_CC
3624
3625 fi
3626
3627 case "x$ac_cv_prog_cc_stdc" in
3628   x|xno)
3629     echo "$as_me:$LINENO: result: none needed" >&5
3630 echo "${ECHO_T}none needed" >&6 ;;
3631   *)
3632     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3634     CC="$CC $ac_cv_prog_cc_stdc" ;;
3635 esac
3636
3637 # Some people use a C++ compiler to compile C.  Since we use `exit',
3638 # in C++ we need to declare it.  In case someone uses the same compiler
3639 # for both compiling C and C++ we need to have the C++ compiler decide
3640 # the declaration of exit, since it's the most demanding environment.
3641 cat >conftest.$ac_ext <<_ACEOF
3642 #ifndef __cplusplus
3643   choke me
3644 #endif
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648   (eval $ac_compile) 2>conftest.er1
3649   ac_status=$?
3650   grep -v '^ *+' conftest.er1 >conftest.err
3651   rm -f conftest.er1
3652   cat conftest.err >&5
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655          { ac_try='test -z "$ac_c_werror_flag"
3656                          || test ! -s conftest.err'
3657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658   (eval $ac_try) 2>&5
3659   ac_status=$?
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); }; } &&
3662          { ac_try='test -s conftest.$ac_objext'
3663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664   (eval $ac_try) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; }; then
3668   for ac_declaration in \
3669    '' \
3670    'extern "C" void std::exit (int) throw (); using std::exit;' \
3671    'extern "C" void std::exit (int); using std::exit;' \
3672    'extern "C" void exit (int) throw ();' \
3673    'extern "C" void exit (int);' \
3674    'void exit (int);'
3675 do
3676   cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682 $ac_declaration
3683 #include <stdlib.h>
3684 int
3685 main ()
3686 {
3687 exit (42);
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694   (eval $ac_compile) 2>conftest.er1
3695   ac_status=$?
3696   grep -v '^ *+' conftest.er1 >conftest.err
3697   rm -f conftest.er1
3698   cat conftest.err >&5
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); } &&
3701          { ac_try='test -z "$ac_c_werror_flag"
3702                          || test ! -s conftest.err'
3703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704   (eval $ac_try) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); }; } &&
3708          { ac_try='test -s conftest.$ac_objext'
3709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710   (eval $ac_try) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); }; }; then
3714   :
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 continue
3720 fi
3721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3722   cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h.  */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h.  */
3728 $ac_declaration
3729 int
3730 main ()
3731 {
3732 exit (42);
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739   (eval $ac_compile) 2>conftest.er1
3740   ac_status=$?
3741   grep -v '^ *+' conftest.er1 >conftest.err
3742   rm -f conftest.er1
3743   cat conftest.err >&5
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } &&
3746          { ac_try='test -z "$ac_c_werror_flag"
3747                          || test ! -s conftest.err'
3748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749   (eval $ac_try) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }; } &&
3753          { ac_try='test -s conftest.$ac_objext'
3754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }; }; then
3759   break
3760 else
3761   echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 fi
3765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3766 done
3767 rm -f conftest*
3768 if test -n "$ac_declaration"; then
3769   echo '#ifdef __cplusplus' >>confdefs.h
3770   echo $ac_declaration      >>confdefs.h
3771   echo '#endif'             >>confdefs.h
3772 fi
3773
3774 else
3775   echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778 fi
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786 ac_ext=cc
3787 ac_cpp='$CXXCPP $CPPFLAGS'
3788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3791 if test -n "$ac_tool_prefix"; then
3792   for ac_prog in $CCC g++
3793   do
3794     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_CXX+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if test -n "$CXX"; then
3802   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809   for ac_exec_ext in '' $ac_executable_extensions; do
3810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813     break 2
3814   fi
3815 done
3816 done
3817
3818 fi
3819 fi
3820 CXX=$ac_cv_prog_CXX
3821 if test -n "$CXX"; then
3822   echo "$as_me:$LINENO: result: $CXX" >&5
3823 echo "${ECHO_T}$CXX" >&6
3824 else
3825   echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829     test -n "$CXX" && break
3830   done
3831 fi
3832 if test -z "$CXX"; then
3833   ac_ct_CXX=$CXX
3834   for ac_prog in $CCC g++
3835 do
3836   # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   if test -n "$ac_ct_CXX"; then
3844   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851   for ac_exec_ext in '' $ac_executable_extensions; do
3852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_prog_ac_ct_CXX="$ac_prog"
3854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858 done
3859
3860 fi
3861 fi
3862 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3863 if test -n "$ac_ct_CXX"; then
3864   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3865 echo "${ECHO_T}$ac_ct_CXX" >&6
3866 else
3867   echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869 fi
3870
3871   test -n "$ac_ct_CXX" && break
3872 done
3873 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3874
3875   CXX=$ac_ct_CXX
3876 fi
3877
3878
3879 # Provide some information about the compiler.
3880 echo "$as_me:$LINENO:" \
3881      "checking for C++ compiler version" >&5
3882 ac_compiler=`set X $ac_compile; echo $2`
3883 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3884   (eval $ac_compiler --version </dev/null >&5) 2>&5
3885   ac_status=$?
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); }
3888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3889   (eval $ac_compiler -v </dev/null >&5) 2>&5
3890   ac_status=$?
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); }
3893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3894   (eval $ac_compiler -V </dev/null >&5) 2>&5
3895   ac_status=$?
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); }
3898
3899 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3900 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3901 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914 #ifndef __GNUC__
3915        choke me
3916 #endif
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924   (eval $ac_compile) 2>conftest.er1
3925   ac_status=$?
3926   grep -v '^ *+' conftest.er1 >conftest.err
3927   rm -f conftest.er1
3928   cat conftest.err >&5
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } &&
3931          { ac_try='test -z "$ac_cxx_werror_flag"
3932                          || test ! -s conftest.err'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; } &&
3938          { ac_try='test -s conftest.$ac_objext'
3939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940   (eval $ac_try) 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; }; then
3944   ac_compiler_gnu=yes
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 ac_compiler_gnu=no
3950 fi
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3953
3954 fi
3955 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3956 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3957 GXX=`test $ac_compiler_gnu = yes && echo yes`
3958 ac_test_CXXFLAGS=${CXXFLAGS+set}
3959 ac_save_CXXFLAGS=$CXXFLAGS
3960 CXXFLAGS="-g"
3961 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3962 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3963 if test "${ac_cv_prog_cxx_g+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972
3973 int
3974 main ()
3975 {
3976
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983   (eval $ac_compile) 2>conftest.er1
3984   ac_status=$?
3985   grep -v '^ *+' conftest.er1 >conftest.err
3986   rm -f conftest.er1
3987   cat conftest.err >&5
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); } &&
3990          { ac_try='test -z "$ac_cxx_werror_flag"
3991                          || test ! -s conftest.err'
3992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993   (eval $ac_try) 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); }; } &&
3997          { ac_try='test -s conftest.$ac_objext'
3998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999   (eval $ac_try) 2>&5
4000   ac_status=$?
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); }; }; then
4003   ac_cv_prog_cxx_g=yes
4004 else
4005   echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 ac_cv_prog_cxx_g=no
4009 fi
4010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011 fi
4012 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4013 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4014 if test "$ac_test_CXXFLAGS" = set; then
4015   CXXFLAGS=$ac_save_CXXFLAGS
4016 elif test $ac_cv_prog_cxx_g = yes; then
4017   if test "$GXX" = yes; then
4018     CXXFLAGS="-g -O2"
4019   else
4020     CXXFLAGS="-g"
4021   fi
4022 else
4023   if test "$GXX" = yes; then
4024     CXXFLAGS="-O2"
4025   else
4026     CXXFLAGS=
4027   fi
4028 fi
4029 for ac_declaration in \
4030    '' \
4031    'extern "C" void std::exit (int) throw (); using std::exit;' \
4032    'extern "C" void std::exit (int); using std::exit;' \
4033    'extern "C" void exit (int) throw ();' \
4034    'extern "C" void exit (int);' \
4035    'void exit (int);'
4036 do
4037   cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 $ac_declaration
4044 #include <stdlib.h>
4045 int
4046 main ()
4047 {
4048 exit (42);
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   :
4076 else
4077   echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 continue
4081 fi
4082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083   cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h.  */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h.  */
4089 $ac_declaration
4090 int
4091 main ()
4092 {
4093 exit (42);
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100   (eval $ac_compile) 2>conftest.er1
4101   ac_status=$?
4102   grep -v '^ *+' conftest.er1 >conftest.err
4103   rm -f conftest.er1
4104   cat conftest.err >&5
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); } &&
4107          { ac_try='test -z "$ac_cxx_werror_flag"
4108                          || test ! -s conftest.err'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; } &&
4114          { ac_try='test -s conftest.$ac_objext'
4115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116   (eval $ac_try) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; }; then
4120   break
4121 else
4122   echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 fi
4126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4127 done
4128 rm -f conftest*
4129 if test -n "$ac_declaration"; then
4130   echo '#ifdef __cplusplus' >>confdefs.h
4131   echo $ac_declaration      >>confdefs.h
4132   echo '#endif'             >>confdefs.h
4133 fi
4134
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141 echo "$as_me:$LINENO: checking " >&5
4142 echo $ECHO_N "checking ... $ECHO_C" >&6
4143 if test "${ac_cv_has_flex+set}" = set; then
4144   echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146   for ac_prog in flex lex
4147 do
4148   # Extract the first word of "$ac_prog", so it can be a program name with args.
4149 set dummy $ac_prog; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_prog_LEX+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   if test -n "$LEX"; then
4156   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161   IFS=$as_save_IFS
4162   test -z "$as_dir" && as_dir=.
4163   for ac_exec_ext in '' $ac_executable_extensions; do
4164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165     ac_cv_prog_LEX="$ac_prog"
4166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167     break 2
4168   fi
4169 done
4170 done
4171
4172 fi
4173 fi
4174 LEX=$ac_cv_prog_LEX
4175 if test -n "$LEX"; then
4176   echo "$as_me:$LINENO: result: $LEX" >&5
4177 echo "${ECHO_T}$LEX" >&6
4178 else
4179   echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 fi
4182
4183   test -n "$LEX" && break
4184 done
4185 test -n "$LEX" || LEX=":"
4186
4187 if test -z "$LEXLIB"
4188 then
4189   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4190 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4191 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4192   echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194   ac_check_lib_save_LIBS=$LIBS
4195 LIBS="-lfl  $LIBS"
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202
4203 /* Override any gcc2 internal prototype to avoid an error.  */
4204 #ifdef __cplusplus
4205 extern "C"
4206 #endif
4207 /* We use char because int might match the return type of a gcc2
4208    builtin and then its argument prototype would still apply.  */
4209 char yywrap ();
4210 int
4211 main ()
4212 {
4213 yywrap ();
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext conftest$ac_exeext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220   (eval $ac_link) 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } &&
4227          { ac_try='test -z "$ac_c_werror_flag"
4228                          || test ! -s conftest.err'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; } &&
4234          { ac_try='test -s conftest$ac_exeext'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   ac_cv_lib_fl_yywrap=yes
4241 else
4242   echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 ac_cv_lib_fl_yywrap=no
4246 fi
4247 rm -f conftest.err conftest.$ac_objext \
4248       conftest$ac_exeext conftest.$ac_ext
4249 LIBS=$ac_check_lib_save_LIBS
4250 fi
4251 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4252 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4253 if test $ac_cv_lib_fl_yywrap = yes; then
4254   LEXLIB="-lfl"
4255 else
4256   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4257 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4258 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4259   echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261   ac_check_lib_save_LIBS=$LIBS
4262 LIBS="-ll  $LIBS"
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269
4270 /* Override any gcc2 internal prototype to avoid an error.  */
4271 #ifdef __cplusplus
4272 extern "C"
4273 #endif
4274 /* We use char because int might match the return type of a gcc2
4275    builtin and then its argument prototype would still apply.  */
4276 char yywrap ();
4277 int
4278 main ()
4279 {
4280 yywrap ();
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest.$ac_objext conftest$ac_exeext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287   (eval $ac_link) 2>conftest.er1
4288   ac_status=$?
4289   grep -v '^ *+' conftest.er1 >conftest.err
4290   rm -f conftest.er1
4291   cat conftest.err >&5
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } &&
4294          { ac_try='test -z "$ac_c_werror_flag"
4295                          || test ! -s conftest.err'
4296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297   (eval $ac_try) 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; } &&
4301          { ac_try='test -s conftest$ac_exeext'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   ac_cv_lib_l_yywrap=yes
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 ac_cv_lib_l_yywrap=no
4313 fi
4314 rm -f conftest.err conftest.$ac_objext \
4315       conftest$ac_exeext conftest.$ac_ext
4316 LIBS=$ac_check_lib_save_LIBS
4317 fi
4318 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4319 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4320 if test $ac_cv_lib_l_yywrap = yes; then
4321   LEXLIB="-ll"
4322 fi
4323
4324 fi
4325
4326 fi
4327
4328 if test "x$LEX" != "x:"; then
4329   echo "$as_me:$LINENO: checking lex output file root" >&5
4330 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4331 if test "${ac_cv_prog_lex_root+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   # The minimal lex program is just a single line: %%.  But some broken lexes
4335 # (Solaris, I think it was) want two %% lines, so accommodate them.
4336 cat >conftest.l <<_ACEOF
4337 %%
4338 %%
4339 _ACEOF
4340 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4341   (eval $LEX conftest.l) 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); }
4345 if test -f lex.yy.c; then
4346   ac_cv_prog_lex_root=lex.yy
4347 elif test -f lexyy.c; then
4348   ac_cv_prog_lex_root=lexyy
4349 else
4350   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4351 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4352    { (exit 1); exit 1; }; }
4353 fi
4354 fi
4355 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4356 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4357 rm -f conftest.l
4358 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4359
4360 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4361 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4362 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   # POSIX says lex can declare yytext either as a pointer or an array; the
4366 # default is implementation-dependent. Figure out which it is, since
4367 # not all implementations provide the %pointer and %array declarations.
4368 ac_cv_prog_lex_yytext_pointer=no
4369 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4370 ac_save_LIBS=$LIBS
4371 LIBS="$LIBS $LEXLIB"
4372 cat >conftest.$ac_ext <<_ACEOF
4373 `cat $LEX_OUTPUT_ROOT.c`
4374 _ACEOF
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377   (eval $ac_link) 2>conftest.er1
4378   ac_status=$?
4379   grep -v '^ *+' conftest.er1 >conftest.err
4380   rm -f conftest.er1
4381   cat conftest.err >&5
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } &&
4384          { ac_try='test -z "$ac_c_werror_flag"
4385                          || test ! -s conftest.err'
4386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387   (eval $ac_try) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; } &&
4391          { ac_try='test -s conftest$ac_exeext'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; }; then
4397   ac_cv_prog_lex_yytext_pointer=yes
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 fi
4403 rm -f conftest.err conftest.$ac_objext \
4404       conftest$ac_exeext conftest.$ac_ext
4405 LIBS=$ac_save_LIBS
4406 rm -f "${LEX_OUTPUT_ROOT}.c"
4407
4408 fi
4409 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4410 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4411 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4412
4413 cat >>confdefs.h <<\_ACEOF
4414 #define YYTEXT_POINTER 1
4415 _ACEOF
4416
4417 fi
4418
4419 fi
4420
4421 fi
4422 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4423 echo "${ECHO_T}$ac_cv_has_flex" >&6
4424 if test "$LEX" != "flex"; then
4425   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4426 echo "$as_me: error: flex not found but required" >&2;}
4427    { (exit 1); exit 1; }; }
4428 else
4429   FLEX=flex
4430
4431 fi
4432
4433 echo "$as_me:$LINENO: checking " >&5
4434 echo $ECHO_N "checking ... $ECHO_C" >&6
4435 if test "${llvm_cv_has_bison+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   for ac_prog in 'bison -y' byacc
4439 do
4440   # Extract the first word of "$ac_prog", so it can be a program name with args.
4441 set dummy $ac_prog; ac_word=$2
4442 echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444 if test "${ac_cv_prog_YACC+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   if test -n "$YACC"; then
4448   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453   IFS=$as_save_IFS
4454   test -z "$as_dir" && as_dir=.
4455   for ac_exec_ext in '' $ac_executable_extensions; do
4456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457     ac_cv_prog_YACC="$ac_prog"
4458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459     break 2
4460   fi
4461 done
4462 done
4463
4464 fi
4465 fi
4466 YACC=$ac_cv_prog_YACC
4467 if test -n "$YACC"; then
4468   echo "$as_me:$LINENO: result: $YACC" >&5
4469 echo "${ECHO_T}$YACC" >&6
4470 else
4471   echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6
4473 fi
4474
4475   test -n "$YACC" && break
4476 done
4477 test -n "$YACC" || YACC="yacc"
4478
4479 fi
4480 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4481 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4482 if test "$YACC" != "bison -y"; then
4483   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4484 echo "$as_me: error: bison not found but required" >&2;}
4485    { (exit 1); exit 1; }; }
4486 else
4487   BISON=bison
4488
4489 fi
4490
4491 echo "$as_me:$LINENO: checking for GNU make" >&5
4492 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4493 if test "${llvm_cv_gnu_make_command+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   llvm_cv_gnu_make_command=''
4497  for a in "$MAKE" make gmake gnumake ; do
4498   if test -z "$a" ; then continue ; fi ;
4499   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4500   then
4501    llvm_cv_gnu_make_command=$a ;
4502    break;
4503   fi
4504  done
4505 fi
4506 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4507 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4508  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4509    ifGNUmake='' ;
4510  else
4511    ifGNUmake='#' ;
4512    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4513 echo "${ECHO_T}\"Not found\"" >&6;
4514  fi
4515
4516
4517 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4518 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4519 LN_S=$as_ln_s
4520 if test "$LN_S" = "ln -s"; then
4521   echo "$as_me:$LINENO: result: yes" >&5
4522 echo "${ECHO_T}yes" >&6
4523 else
4524   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4525 echo "${ECHO_T}no, using $LN_S" >&6
4526 fi
4527
4528 # Extract the first word of "cmp", so it can be a program name with args.
4529 set dummy cmp; ac_word=$2
4530 echo "$as_me:$LINENO: checking for $ac_word" >&5
4531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4532 if test "${ac_cv_path_CMP+set}" = set; then
4533   echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535   case $CMP in
4536   [\\/]* | ?:[\\/]*)
4537   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4538   ;;
4539   *)
4540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543   IFS=$as_save_IFS
4544   test -z "$as_dir" && as_dir=.
4545   for ac_exec_ext in '' $ac_executable_extensions; do
4546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549     break 2
4550   fi
4551 done
4552 done
4553
4554   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4555   ;;
4556 esac
4557 fi
4558 CMP=$ac_cv_path_CMP
4559
4560 if test -n "$CMP"; then
4561   echo "$as_me:$LINENO: result: $CMP" >&5
4562 echo "${ECHO_T}$CMP" >&6
4563 else
4564   echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4566 fi
4567
4568 # Extract the first word of "cp", so it can be a program name with args.
4569 set dummy cp; ac_word=$2
4570 echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572 if test "${ac_cv_path_CP+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   case $CP in
4576   [\\/]* | ?:[\\/]*)
4577   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4578   ;;
4579   *)
4580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593
4594   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4595   ;;
4596 esac
4597 fi
4598 CP=$ac_cv_path_CP
4599
4600 if test -n "$CP"; then
4601   echo "$as_me:$LINENO: result: $CP" >&5
4602 echo "${ECHO_T}$CP" >&6
4603 else
4604   echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6
4606 fi
4607
4608 # Extract the first word of "date", so it can be a program name with args.
4609 set dummy date; ac_word=$2
4610 echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612 if test "${ac_cv_path_DATE+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   case $DATE in
4616   [\\/]* | ?:[\\/]*)
4617   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4618   ;;
4619   *)
4620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633
4634   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4635   ;;
4636 esac
4637 fi
4638 DATE=$ac_cv_path_DATE
4639
4640 if test -n "$DATE"; then
4641   echo "$as_me:$LINENO: result: $DATE" >&5
4642 echo "${ECHO_T}$DATE" >&6
4643 else
4644   echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4646 fi
4647
4648 # Extract the first word of "find", so it can be a program name with args.
4649 set dummy find; ac_word=$2
4650 echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652 if test "${ac_cv_path_FIND+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   case $FIND in
4656   [\\/]* | ?:[\\/]*)
4657   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4658   ;;
4659   *)
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673
4674   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4675   ;;
4676 esac
4677 fi
4678 FIND=$ac_cv_path_FIND
4679
4680 if test -n "$FIND"; then
4681   echo "$as_me:$LINENO: result: $FIND" >&5
4682 echo "${ECHO_T}$FIND" >&6
4683 else
4684   echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6
4686 fi
4687
4688 # Extract the first word of "grep", so it can be a program name with args.
4689 set dummy grep; ac_word=$2
4690 echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692 if test "${ac_cv_path_GREP+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   case $GREP in
4696   [\\/]* | ?:[\\/]*)
4697   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4698   ;;
4699   *)
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705   for ac_exec_ext in '' $ac_executable_extensions; do
4706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712 done
4713
4714   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4715   ;;
4716 esac
4717 fi
4718 GREP=$ac_cv_path_GREP
4719
4720 if test -n "$GREP"; then
4721   echo "$as_me:$LINENO: result: $GREP" >&5
4722 echo "${ECHO_T}$GREP" >&6
4723 else
4724   echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6
4726 fi
4727
4728 # Extract the first word of "mkdir", so it can be a program name with args.
4729 set dummy mkdir; ac_word=$2
4730 echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732 if test "${ac_cv_path_MKDIR+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   case $MKDIR in
4736   [\\/]* | ?:[\\/]*)
4737   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4738   ;;
4739   *)
4740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743   IFS=$as_save_IFS
4744   test -z "$as_dir" && as_dir=.
4745   for ac_exec_ext in '' $ac_executable_extensions; do
4746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749     break 2
4750   fi
4751 done
4752 done
4753
4754   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4755   ;;
4756 esac
4757 fi
4758 MKDIR=$ac_cv_path_MKDIR
4759
4760 if test -n "$MKDIR"; then
4761   echo "$as_me:$LINENO: result: $MKDIR" >&5
4762 echo "${ECHO_T}$MKDIR" >&6
4763 else
4764   echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6
4766 fi
4767
4768 # Extract the first word of "mv", so it can be a program name with args.
4769 set dummy mv; ac_word=$2
4770 echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772 if test "${ac_cv_path_MV+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   case $MV in
4776   [\\/]* | ?:[\\/]*)
4777   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4778   ;;
4779   *)
4780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785   for ac_exec_ext in '' $ac_executable_extensions; do
4786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792 done
4793
4794   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4795   ;;
4796 esac
4797 fi
4798 MV=$ac_cv_path_MV
4799
4800 if test -n "$MV"; then
4801   echo "$as_me:$LINENO: result: $MV" >&5
4802 echo "${ECHO_T}$MV" >&6
4803 else
4804   echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4806 fi
4807
4808 # Extract the first word of "pax", so it can be a program name with args.
4809 set dummy pax; ac_word=$2
4810 echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812 if test "${ac_cv_path_PAX+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815   case $PAX in
4816   [\\/]* | ?:[\\/]*)
4817   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4818   ;;
4819   *)
4820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825   for ac_exec_ext in '' $ac_executable_extensions; do
4826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832 done
4833
4834   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4835   ;;
4836 esac
4837 fi
4838 PAX=$ac_cv_path_PAX
4839
4840 if test -n "$PAX"; then
4841   echo "$as_me:$LINENO: result: $PAX" >&5
4842 echo "${ECHO_T}$PAX" >&6
4843 else
4844   echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6
4846 fi
4847
4848 if test -n "$ac_tool_prefix"; then
4849   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_RANLIB+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test -n "$RANLIB"; then
4857   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_exec_ext in '' $ac_executable_extensions; do
4865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871 done
4872
4873 fi
4874 fi
4875 RANLIB=$ac_cv_prog_RANLIB
4876 if test -n "$RANLIB"; then
4877   echo "$as_me:$LINENO: result: $RANLIB" >&5
4878 echo "${ECHO_T}$RANLIB" >&6
4879 else
4880   echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4882 fi
4883
4884 fi
4885 if test -z "$ac_cv_prog_RANLIB"; then
4886   ac_ct_RANLIB=$RANLIB
4887   # Extract the first word of "ranlib", so it can be a program name with args.
4888 set dummy ranlib; ac_word=$2
4889 echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   if test -n "$ac_ct_RANLIB"; then
4895   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902   for ac_exec_ext in '' $ac_executable_extensions; do
4903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904     ac_cv_prog_ac_ct_RANLIB="ranlib"
4905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909 done
4910
4911   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4912 fi
4913 fi
4914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4915 if test -n "$ac_ct_RANLIB"; then
4916   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4917 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4918 else
4919   echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6
4921 fi
4922
4923   RANLIB=$ac_ct_RANLIB
4924 else
4925   RANLIB="$ac_cv_prog_RANLIB"
4926 fi
4927
4928 # Extract the first word of "rm", so it can be a program name with args.
4929 set dummy rm; ac_word=$2
4930 echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4932 if test "${ac_cv_path_RM+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   case $RM in
4936   [\\/]* | ?:[\\/]*)
4937   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4938   ;;
4939   *)
4940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945   for ac_exec_ext in '' $ac_executable_extensions; do
4946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952 done
4953
4954   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4955   ;;
4956 esac
4957 fi
4958 RM=$ac_cv_path_RM
4959
4960 if test -n "$RM"; then
4961   echo "$as_me:$LINENO: result: $RM" >&5
4962 echo "${ECHO_T}$RM" >&6
4963 else
4964   echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4966 fi
4967
4968 # Extract the first word of "sed", so it can be a program name with args.
4969 set dummy sed; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_path_SED+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   case $SED in
4976   [\\/]* | ?:[\\/]*)
4977   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4978   ;;
4979   *)
4980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985   for ac_exec_ext in '' $ac_executable_extensions; do
4986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992 done
4993
4994   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4995   ;;
4996 esac
4997 fi
4998 SED=$ac_cv_path_SED
4999
5000 if test -n "$SED"; then
5001   echo "$as_me:$LINENO: result: $SED" >&5
5002 echo "${ECHO_T}$SED" >&6
5003 else
5004   echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5006 fi
5007
5008 # Extract the first word of "tar", so it can be a program name with args.
5009 set dummy tar; ac_word=$2
5010 echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012 if test "${ac_cv_path_TAR+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   case $TAR in
5016   [\\/]* | ?:[\\/]*)
5017   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5018   ;;
5019   *)
5020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025   for ac_exec_ext in '' $ac_executable_extensions; do
5026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029     break 2
5030   fi
5031 done
5032 done
5033
5034   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5035   ;;
5036 esac
5037 fi
5038 TAR=$ac_cv_path_TAR
5039
5040 if test -n "$TAR"; then
5041   echo "$as_me:$LINENO: result: $TAR" >&5
5042 echo "${ECHO_T}$TAR" >&6
5043 else
5044   echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5046 fi
5047
5048
5049 # Find a good install program.  We prefer a C program (faster),
5050 # so one script is as good as another.  But avoid the broken or
5051 # incompatible versions:
5052 # SysV /etc/install, /usr/sbin/install
5053 # SunOS /usr/etc/install
5054 # IRIX /sbin/install
5055 # AIX /bin/install
5056 # AmigaOS /C/install, which installs bootblocks on floppy discs
5057 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5058 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5059 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5060 # OS/2's system install, which has a completely different semantic
5061 # ./install, which can be erroneously created by make from ./install.sh.
5062 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5063 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5064 if test -z "$INSTALL"; then
5065 if test "${ac_cv_path_install+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   # Account for people who put trailing slashes in PATH elements.
5074 case $as_dir/ in
5075   ./ | .// | /cC/* | \
5076   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5077   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5078   /usr/ucb/* ) ;;
5079   *)
5080     # OSF1 and SCO ODT 3.0 have their own names for install.
5081     # Don't use installbsd from OSF since it installs stuff as root
5082     # by default.
5083     for ac_prog in ginstall scoinst install; do
5084       for ac_exec_ext in '' $ac_executable_extensions; do
5085         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5086           if test $ac_prog = install &&
5087             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5088             # AIX install.  It has an incompatible calling convention.
5089             :
5090           elif test $ac_prog = install &&
5091             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5092             # program-specific install script used by HP pwplus--don't use.
5093             :
5094           else
5095             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5096             break 3
5097           fi
5098         fi
5099       done
5100     done
5101     ;;
5102 esac
5103 done
5104
5105
5106 fi
5107   if test "${ac_cv_path_install+set}" = set; then
5108     INSTALL=$ac_cv_path_install
5109   else
5110     # As a last resort, use the slow shell script.  We don't cache a
5111     # path for INSTALL within a source directory, because that will
5112     # break other packages using the cache if that directory is
5113     # removed, or if the path is relative.
5114     INSTALL=$ac_install_sh
5115   fi
5116 fi
5117 echo "$as_me:$LINENO: result: $INSTALL" >&5
5118 echo "${ECHO_T}$INSTALL" >&6
5119
5120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5121 # It thinks the first close brace ends the variable substitution.
5122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5123
5124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5125
5126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5127
5128
5129 # Extract the first word of "bzip2", so it can be a program name with args.
5130 set dummy bzip2; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_path_BZIP2+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   case $BZIP2 in
5137   [\\/]* | ?:[\\/]*)
5138   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5139   ;;
5140   *)
5141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146   for ac_exec_ext in '' $ac_executable_extensions; do
5147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153 done
5154
5155   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5156   ;;
5157 esac
5158 fi
5159 BZIP2=$ac_cv_path_BZIP2
5160
5161 if test -n "$BZIP2"; then
5162   echo "$as_me:$LINENO: result: $BZIP2" >&5
5163 echo "${ECHO_T}$BZIP2" >&6
5164 else
5165   echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5167 fi
5168
5169 # Extract the first word of "dot", so it can be a program name with args.
5170 set dummy dot; ac_word=$2
5171 echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173 if test "${ac_cv_path_DOT+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   case $DOT in
5177   [\\/]* | ?:[\\/]*)
5178   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5179   ;;
5180   *)
5181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186   for ac_exec_ext in '' $ac_executable_extensions; do
5187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193 done
5194
5195   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5196   ;;
5197 esac
5198 fi
5199 DOT=$ac_cv_path_DOT
5200
5201 if test -n "$DOT"; then
5202   echo "$as_me:$LINENO: result: $DOT" >&5
5203 echo "${ECHO_T}$DOT" >&6
5204 else
5205   echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6
5207 fi
5208
5209 # Extract the first word of "doxygen", so it can be a program name with args.
5210 set dummy doxygen; ac_word=$2
5211 echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216   case $DOXYGEN in
5217   [\\/]* | ?:[\\/]*)
5218   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5219   ;;
5220   *)
5221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for ac_exec_ext in '' $ac_executable_extensions; do
5227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233 done
5234
5235   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5236   ;;
5237 esac
5238 fi
5239 DOXYGEN=$ac_cv_path_DOXYGEN
5240
5241 if test -n "$DOXYGEN"; then
5242   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5243 echo "${ECHO_T}$DOXYGEN" >&6
5244 else
5245   echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5247 fi
5248
5249 # Extract the first word of "etags", so it can be a program name with args.
5250 set dummy etags; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_path_ETAGS+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   case $ETAGS in
5257   [\\/]* | ?:[\\/]*)
5258   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5259   ;;
5260   *)
5261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264   IFS=$as_save_IFS
5265   test -z "$as_dir" && as_dir=.
5266   for ac_exec_ext in '' $ac_executable_extensions; do
5267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270     break 2
5271   fi
5272 done
5273 done
5274
5275   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5276   ;;
5277 esac
5278 fi
5279 ETAGS=$ac_cv_path_ETAGS
5280
5281 if test -n "$ETAGS"; then
5282   echo "$as_me:$LINENO: result: $ETAGS" >&5
5283 echo "${ECHO_T}$ETAGS" >&6
5284 else
5285   echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287 fi
5288
5289 # Extract the first word of "groff", so it can be a program name with args.
5290 set dummy groff; ac_word=$2
5291 echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293 if test "${ac_cv_path_GROFF+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   case $GROFF in
5297   [\\/]* | ?:[\\/]*)
5298   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5299   ;;
5300   *)
5301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306   for ac_exec_ext in '' $ac_executable_extensions; do
5307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313 done
5314
5315   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5316   ;;
5317 esac
5318 fi
5319 GROFF=$ac_cv_path_GROFF
5320
5321 if test -n "$GROFF"; then
5322   echo "$as_me:$LINENO: result: $GROFF" >&5
5323 echo "${ECHO_T}$GROFF" >&6
5324 else
5325   echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5327 fi
5328
5329 # Extract the first word of "gzip", so it can be a program name with args.
5330 set dummy gzip; ac_word=$2
5331 echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333 if test "${ac_cv_path_GZIP+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   case $GZIP in
5337   [\\/]* | ?:[\\/]*)
5338   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5339   ;;
5340   *)
5341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346   for ac_exec_ext in '' $ac_executable_extensions; do
5347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350     break 2
5351   fi
5352 done
5353 done
5354
5355   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5356   ;;
5357 esac
5358 fi
5359 GZIP=$ac_cv_path_GZIP
5360
5361 if test -n "$GZIP"; then
5362   echo "$as_me:$LINENO: result: $GZIP" >&5
5363 echo "${ECHO_T}$GZIP" >&6
5364 else
5365   echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5367 fi
5368
5369 # Extract the first word of "pod2html", so it can be a program name with args.
5370 set dummy pod2html; ac_word=$2
5371 echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373 if test "${ac_cv_path_POD2HTML+set}" = set; then
5374   echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376   case $POD2HTML in
5377   [\\/]* | ?:[\\/]*)
5378   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5379   ;;
5380   *)
5381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384   IFS=$as_save_IFS
5385   test -z "$as_dir" && as_dir=.
5386   for ac_exec_ext in '' $ac_executable_extensions; do
5387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390     break 2
5391   fi
5392 done
5393 done
5394
5395   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5396   ;;
5397 esac
5398 fi
5399 POD2HTML=$ac_cv_path_POD2HTML
5400
5401 if test -n "$POD2HTML"; then
5402   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5403 echo "${ECHO_T}$POD2HTML" >&6
5404 else
5405   echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5407 fi
5408
5409 # Extract the first word of "pod2man", so it can be a program name with args.
5410 set dummy pod2man; ac_word=$2
5411 echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5413 if test "${ac_cv_path_POD2MAN+set}" = set; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   case $POD2MAN in
5417   [\\/]* | ?:[\\/]*)
5418   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5419   ;;
5420   *)
5421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426   for ac_exec_ext in '' $ac_executable_extensions; do
5427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433 done
5434
5435   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5436   ;;
5437 esac
5438 fi
5439 POD2MAN=$ac_cv_path_POD2MAN
5440
5441 if test -n "$POD2MAN"; then
5442   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5443 echo "${ECHO_T}$POD2MAN" >&6
5444 else
5445   echo "$as_me:$LINENO: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5447 fi
5448
5449 # Extract the first word of "runtest", so it can be a program name with args.
5450 set dummy runtest; ac_word=$2
5451 echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453 if test "${ac_cv_path_RUNTEST+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456   case $RUNTEST in
5457   [\\/]* | ?:[\\/]*)
5458   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5459   ;;
5460   *)
5461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464   IFS=$as_save_IFS
5465   test -z "$as_dir" && as_dir=.
5466   for ac_exec_ext in '' $ac_executable_extensions; do
5467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470     break 2
5471   fi
5472 done
5473 done
5474
5475   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5476   ;;
5477 esac
5478 fi
5479 RUNTEST=$ac_cv_path_RUNTEST
5480
5481 if test -n "$RUNTEST"; then
5482   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5483 echo "${ECHO_T}$RUNTEST" >&6
5484 else
5485   echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5487 fi
5488
5489
5490 no_itcl=true
5491 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5492 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5493
5494 # Check whether --with-tclinclude or --without-tclinclude was given.
5495 if test "${with_tclinclude+set}" = set; then
5496   withval="$with_tclinclude"
5497   with_tclinclude=${withval}
5498 else
5499   with_tclinclude=''
5500 fi;
5501 if test "${ac_cv_path_tclsh+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504
5505 if test x"${with_tclinclude}" != x ; then
5506   if test -f ${with_tclinclude}/tclsh ; then
5507     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5508   elif test -f ${with_tclinclude}/src/tclsh ; then
5509     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5510   else
5511     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5512 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5513    { (exit 1); exit 1; }; }
5514   fi
5515 fi
5516
5517 if test x"${ac_cv_path_tclsh}" = x ; then
5518   echo "$as_me:$LINENO: result: none" >&5
5519 echo "${ECHO_T}none" >&6
5520   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
5521 do
5522   # Extract the first word of "$ac_prog", so it can be a program name with args.
5523 set dummy $ac_prog; ac_word=$2
5524 echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526 if test "${ac_cv_path_TCLSH+set}" = set; then
5527   echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529   case $TCLSH in
5530   [\\/]* | ?:[\\/]*)
5531   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5532   ;;
5533   *)
5534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537   IFS=$as_save_IFS
5538   test -z "$as_dir" && as_dir=.
5539   for ac_exec_ext in '' $ac_executable_extensions; do
5540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543     break 2
5544   fi
5545 done
5546 done
5547
5548   ;;
5549 esac
5550 fi
5551 TCLSH=$ac_cv_path_TCLSH
5552
5553 if test -n "$TCLSH"; then
5554   echo "$as_me:$LINENO: result: $TCLSH" >&5
5555 echo "${ECHO_T}$TCLSH" >&6
5556 else
5557   echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5559 fi
5560
5561   test -n "$TCLSH" && break
5562 done
5563
5564   if test x"${TCLSH}" = x ; then
5565     ac_cv_path_tclsh='';
5566   else
5567     ac_cv_path_tclsh="${TCLSH}";
5568   fi
5569 else
5570   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5571 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5572   TCLSH="${ac_cv_path_tclsh}"
5573
5574 fi
5575
5576 fi
5577
5578 # Extract the first word of "zip", so it can be a program name with args.
5579 set dummy zip; ac_word=$2
5580 echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5582 if test "${ac_cv_path_ZIP+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   case $ZIP in
5586   [\\/]* | ?:[\\/]*)
5587   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5588   ;;
5589   *)
5590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595   for ac_exec_ext in '' $ac_executable_extensions; do
5596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599     break 2
5600   fi
5601 done
5602 done
5603
5604   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5605   ;;
5606 esac
5607 fi
5608 ZIP=$ac_cv_path_ZIP
5609
5610 if test -n "$ZIP"; then
5611   echo "$as_me:$LINENO: result: $ZIP" >&5
5612 echo "${ECHO_T}$ZIP" >&6
5613 else
5614   echo "$as_me:$LINENO: result: no" >&5
5615 echo "${ECHO_T}no" >&6
5616 fi
5617
5618
5619 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5620 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5621 if test "${llvm_cv_link_use_r+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624    ac_ext=c
5625 ac_cpp='$CPP $CPPFLAGS'
5626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629
5630   oldcflags="$CFLAGS"
5631   CFLAGS="$CFLAGS -Wl,-R."
5632   cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638
5639 int
5640 main ()
5641 {
5642 int main() { return 0; }
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649   (eval $ac_link) 2>conftest.er1
5650   ac_status=$?
5651   grep -v '^ *+' conftest.er1 >conftest.err
5652   rm -f conftest.er1
5653   cat conftest.err >&5
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); } &&
5656          { ac_try='test -z "$ac_c_werror_flag"
5657                          || test ! -s conftest.err'
5658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659   (eval $ac_try) 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); }; } &&
5663          { ac_try='test -s conftest$ac_exeext'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; }; then
5669   llvm_cv_link_use_r=yes
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674 llvm_cv_link_use_r=no
5675 fi
5676 rm -f conftest.err conftest.$ac_objext \
5677       conftest$ac_exeext conftest.$ac_ext
5678   CFLAGS="$oldcflags"
5679   ac_ext=c
5680 ac_cpp='$CPP $CPPFLAGS'
5681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684
5685
5686 fi
5687 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5688 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5689 if test "$llvm_cv_link_use_r" = yes ; then
5690
5691 cat >>confdefs.h <<\_ACEOF
5692 #define HAVE_LINK_R 1
5693 _ACEOF
5694
5695   fi
5696
5697
5698
5699
5700 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5701 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5702 if test "${ac_cv_c_const+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711
5712 int
5713 main ()
5714 {
5715 /* FIXME: Include the comments suggested by Paul. */
5716 #ifndef __cplusplus
5717   /* Ultrix mips cc rejects this.  */
5718   typedef int charset[2];
5719   const charset x;
5720   /* SunOS 4.1.1 cc rejects this.  */
5721   char const *const *ccp;
5722   char **p;
5723   /* NEC SVR4.0.2 mips cc rejects this.  */
5724   struct point {int x, y;};
5725   static struct point const zero = {0,0};
5726   /* AIX XL C 1.02.0.0 rejects this.
5727      It does not let you subtract one const X* pointer from another in
5728      an arm of an if-expression whose if-part is not a constant
5729      expression */
5730   const char *g = "string";
5731   ccp = &g + (g ? g-g : 0);
5732   /* HPUX 7.0 cc rejects these. */
5733   ++ccp;
5734   p = (char**) ccp;
5735   ccp = (char const *const *) p;
5736   { /* SCO 3.2v4 cc rejects this.  */
5737     char *t;
5738     char const *s = 0 ? (char *) 0 : (char const *) 0;
5739
5740     *t++ = 0;
5741   }
5742   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5743     int x[] = {25, 17};
5744     const int *foo = &x[0];
5745     ++foo;
5746   }
5747   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5748     typedef const int *iptr;
5749     iptr p = 0;
5750     ++p;
5751   }
5752   { /* AIX XL C 1.02.0.0 rejects this saying
5753        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5754     struct s { int j; const int *ap[3]; };
5755     struct s *b; b->j = 5;
5756   }
5757   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5758     const int foo = 10;
5759   }
5760 #endif
5761
5762   ;
5763   return 0;
5764 }
5765 _ACEOF
5766 rm -f conftest.$ac_objext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768   (eval $ac_compile) 2>conftest.er1
5769   ac_status=$?
5770   grep -v '^ *+' conftest.er1 >conftest.err
5771   rm -f conftest.er1
5772   cat conftest.err >&5
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } &&
5775          { ac_try='test -z "$ac_c_werror_flag"
5776                          || test ! -s conftest.err'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; } &&
5782          { ac_try='test -s conftest.$ac_objext'
5783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784   (eval $ac_try) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }; }; then
5788   ac_cv_c_const=yes
5789 else
5790   echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793 ac_cv_c_const=no
5794 fi
5795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796 fi
5797 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5798 echo "${ECHO_T}$ac_cv_c_const" >&6
5799 if test $ac_cv_c_const = no; then
5800
5801 cat >>confdefs.h <<\_ACEOF
5802 #define const
5803 _ACEOF
5804
5805 fi
5806
5807
5808 echo "$as_me:$LINENO: checking for egrep" >&5
5809 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5810 if test "${ac_cv_prog_egrep+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5814     then ac_cv_prog_egrep='grep -E'
5815     else ac_cv_prog_egrep='egrep'
5816     fi
5817 fi
5818 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5819 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5820  EGREP=$ac_cv_prog_egrep
5821
5822
5823 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5824 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5825 if test "${ac_cv_header_stdc+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h.  */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h.  */
5834 #include <stdlib.h>
5835 #include <stdarg.h>
5836 #include <string.h>
5837 #include <float.h>
5838
5839 int
5840 main ()
5841 {
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849   (eval $ac_compile) 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -z "$ac_c_werror_flag"
5857                          || test ! -s conftest.err'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; } &&
5863          { ac_try='test -s conftest.$ac_objext'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_cv_header_stdc=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_cv_header_stdc=no
5875 fi
5876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5877
5878 if test $ac_cv_header_stdc = yes; then
5879   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5880   cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886 #include <string.h>
5887
5888 _ACEOF
5889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890   $EGREP "memchr" >/dev/null 2>&1; then
5891   :
5892 else
5893   ac_cv_header_stdc=no
5894 fi
5895 rm -f conftest*
5896
5897 fi
5898
5899 if test $ac_cv_header_stdc = yes; then
5900   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5901   cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907 #include <stdlib.h>
5908
5909 _ACEOF
5910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5911   $EGREP "free" >/dev/null 2>&1; then
5912   :
5913 else
5914   ac_cv_header_stdc=no
5915 fi
5916 rm -f conftest*
5917
5918 fi
5919
5920 if test $ac_cv_header_stdc = yes; then
5921   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5922   if test "$cross_compiling" = yes; then
5923   :
5924 else
5925   cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 #include <ctype.h>
5932 #if ((' ' & 0x0FF) == 0x020)
5933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5935 #else
5936 # define ISLOWER(c) \
5937                    (('a' <= (c) && (c) <= 'i') \
5938                      || ('j' <= (c) && (c) <= 'r') \
5939                      || ('s' <= (c) && (c) <= 'z'))
5940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5941 #endif
5942
5943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5944 int
5945 main ()
5946 {
5947   int i;
5948   for (i = 0; i < 256; i++)
5949     if (XOR (islower (i), ISLOWER (i))
5950         || toupper (i) != TOUPPER (i))
5951       exit(2);
5952   exit (0);
5953 }
5954 _ACEOF
5955 rm -f conftest$ac_exeext
5956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957   (eval $ac_link) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962   (eval $ac_try) 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); }; }; then
5966   :
5967 else
5968   echo "$as_me: program exited with status $ac_status" >&5
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 ( exit $ac_status )
5973 ac_cv_header_stdc=no
5974 fi
5975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 fi
5978 fi
5979 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5980 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5981 if test $ac_cv_header_stdc = yes; then
5982
5983 cat >>confdefs.h <<\_ACEOF
5984 #define STDC_HEADERS 1
5985 _ACEOF
5986
5987 fi
5988
5989
5990
5991
5992
5993
5994 ac_header_dirent=no
5995 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5996   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5997 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5998 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008 #include <sys/types.h>
6009 #include <$ac_hdr>
6010
6011 int
6012 main ()
6013 {
6014 if ((DIR *) 0)
6015 return 0;
6016   ;
6017   return 0;
6018 }
6019 _ACEOF
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022   (eval $ac_compile) 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -z "$ac_c_werror_flag"
6030                          || test ! -s conftest.err'
6031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032   (eval $ac_try) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; } &&
6036          { ac_try='test -s conftest.$ac_objext'
6037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038   (eval $ac_try) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; }; then
6042   eval "$as_ac_Header=yes"
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047 eval "$as_ac_Header=no"
6048 fi
6049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050 fi
6051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6054   cat >>confdefs.h <<_ACEOF
6055 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6056 _ACEOF
6057
6058 ac_header_dirent=$ac_hdr; break
6059 fi
6060
6061 done
6062 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6063 if test $ac_header_dirent = dirent.h; then
6064   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6065 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6066 if test "${ac_cv_search_opendir+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   ac_func_search_save_LIBS=$LIBS
6070 ac_cv_search_opendir=no
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h.  */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h.  */
6077
6078 /* Override any gcc2 internal prototype to avoid an error.  */
6079 #ifdef __cplusplus
6080 extern "C"
6081 #endif
6082 /* We use char because int might match the return type of a gcc2
6083    builtin and then its argument prototype would still apply.  */
6084 char opendir ();
6085 int
6086 main ()
6087 {
6088 opendir ();
6089   ;
6090   return 0;
6091 }
6092 _ACEOF
6093 rm -f conftest.$ac_objext conftest$ac_exeext
6094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6095   (eval $ac_link) 2>conftest.er1
6096   ac_status=$?
6097   grep -v '^ *+' conftest.er1 >conftest.err
6098   rm -f conftest.er1
6099   cat conftest.err >&5
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); } &&
6102          { ac_try='test -z "$ac_c_werror_flag"
6103                          || test ! -s conftest.err'
6104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105   (eval $ac_try) 2>&5
6106   ac_status=$?
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); }; } &&
6109          { ac_try='test -s conftest$ac_exeext'
6110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111   (eval $ac_try) 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); }; }; then
6115   ac_cv_search_opendir="none required"
6116 else
6117   echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 fi
6121 rm -f conftest.err conftest.$ac_objext \
6122       conftest$ac_exeext conftest.$ac_ext
6123 if test "$ac_cv_search_opendir" = no; then
6124   for ac_lib in dir; do
6125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6126     cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132
6133 /* Override any gcc2 internal prototype to avoid an error.  */
6134 #ifdef __cplusplus
6135 extern "C"
6136 #endif
6137 /* We use char because int might match the return type of a gcc2
6138    builtin and then its argument prototype would still apply.  */
6139 char opendir ();
6140 int
6141 main ()
6142 {
6143 opendir ();
6144   ;
6145   return 0;
6146 }
6147 _ACEOF
6148 rm -f conftest.$ac_objext conftest$ac_exeext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150   (eval $ac_link) 2>conftest.er1
6151   ac_status=$?
6152   grep -v '^ *+' conftest.er1 >conftest.err
6153   rm -f conftest.er1
6154   cat conftest.err >&5
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); } &&
6157          { ac_try='test -z "$ac_c_werror_flag"
6158                          || test ! -s conftest.err'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; } &&
6164          { ac_try='test -s conftest$ac_exeext'
6165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166   (eval $ac_try) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; }; then
6170   ac_cv_search_opendir="-l$ac_lib"
6171 break
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 fi
6177 rm -f conftest.err conftest.$ac_objext \
6178       conftest$ac_exeext conftest.$ac_ext
6179   done
6180 fi
6181 LIBS=$ac_func_search_save_LIBS
6182 fi
6183 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6184 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6185 if test "$ac_cv_search_opendir" != no; then
6186   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6187
6188 fi
6189
6190 else
6191   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6193 if test "${ac_cv_search_opendir+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   ac_func_search_save_LIBS=$LIBS
6197 ac_cv_search_opendir=no
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h.  */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h.  */
6204
6205 /* Override any gcc2 internal prototype to avoid an error.  */
6206 #ifdef __cplusplus
6207 extern "C"
6208 #endif
6209 /* We use char because int might match the return type of a gcc2
6210    builtin and then its argument prototype would still apply.  */
6211 char opendir ();
6212 int
6213 main ()
6214 {
6215 opendir ();
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext conftest$ac_exeext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222   (eval $ac_link) 2>conftest.er1
6223   ac_status=$?
6224   grep -v '^ *+' conftest.er1 >conftest.err
6225   rm -f conftest.er1
6226   cat conftest.err >&5
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); } &&
6229          { ac_try='test -z "$ac_c_werror_flag"
6230                          || test ! -s conftest.err'
6231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232   (eval $ac_try) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; } &&
6236          { ac_try='test -s conftest$ac_exeext'
6237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238   (eval $ac_try) 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   ac_cv_search_opendir="none required"
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 fi
6248 rm -f conftest.err conftest.$ac_objext \
6249       conftest$ac_exeext conftest.$ac_ext
6250 if test "$ac_cv_search_opendir" = no; then
6251   for ac_lib in x; do
6252     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6253     cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h.  */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h.  */
6259
6260 /* Override any gcc2 internal prototype to avoid an error.  */
6261 #ifdef __cplusplus
6262 extern "C"
6263 #endif
6264 /* We use char because int might match the return type of a gcc2
6265    builtin and then its argument prototype would still apply.  */
6266 char opendir ();
6267 int
6268 main ()
6269 {
6270 opendir ();
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 rm -f conftest.$ac_objext conftest$ac_exeext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6277   (eval $ac_link) 2>conftest.er1
6278   ac_status=$?
6279   grep -v '^ *+' conftest.er1 >conftest.err
6280   rm -f conftest.er1
6281   cat conftest.err >&5
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); } &&
6284          { ac_try='test -z "$ac_c_werror_flag"
6285                          || test ! -s conftest.err'
6286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287   (eval $ac_try) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }; } &&
6291          { ac_try='test -s conftest$ac_exeext'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; }; then
6297   ac_cv_search_opendir="-l$ac_lib"
6298 break
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 fi
6304 rm -f conftest.err conftest.$ac_objext \
6305       conftest$ac_exeext conftest.$ac_ext
6306   done
6307 fi
6308 LIBS=$ac_func_search_save_LIBS
6309 fi
6310 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6311 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6312 if test "$ac_cv_search_opendir" != no; then
6313   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6314
6315 fi
6316
6317 fi
6318
6319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6330                   inttypes.h stdint.h unistd.h
6331 do
6332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333 echo "$as_me:$LINENO: checking for $ac_header" >&5
6334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336   echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338   cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h.  */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h.  */
6344 $ac_includes_default
6345
6346 #include <$ac_header>
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350   (eval $ac_compile) 2>conftest.er1
6351   ac_status=$?
6352   grep -v '^ *+' conftest.er1 >conftest.err
6353   rm -f conftest.er1
6354   cat conftest.err >&5
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } &&
6357          { ac_try='test -z "$ac_c_werror_flag"
6358                          || test ! -s conftest.err'
6359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360   (eval $ac_try) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; } &&
6364          { ac_try='test -s conftest.$ac_objext'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370   eval "$as_ac_Header=yes"
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 eval "$as_ac_Header=no"
6376 fi
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378 fi
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6382   cat >>confdefs.h <<_ACEOF
6383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6384 _ACEOF
6385
6386 fi
6387
6388 done
6389
6390
6391
6392 for ac_header in dlfcn.h
6393 do
6394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396   echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 fi
6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403 else
6404   # Is the header compilable?
6405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413 $ac_includes_default
6414 #include <$ac_header>
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418   (eval $ac_compile) 2>conftest.er1
6419   ac_status=$?
6420   grep -v '^ *+' conftest.er1 >conftest.err
6421   rm -f conftest.er1
6422   cat conftest.err >&5
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); } &&
6425          { ac_try='test -z "$ac_c_werror_flag"
6426                          || test ! -s conftest.err'
6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428   (eval $ac_try) 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }; } &&
6432          { ac_try='test -s conftest.$ac_objext'
6433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434   (eval $ac_try) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; }; then
6438   ac_header_compiler=yes
6439 else
6440   echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6442
6443 ac_header_compiler=no
6444 fi
6445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6447 echo "${ECHO_T}$ac_header_compiler" >&6
6448
6449 # Is the header present?
6450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 #include <$ac_header>
6459 _ACEOF
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6462   ac_status=$?
6463   grep -v '^ *+' conftest.er1 >conftest.err
6464   rm -f conftest.er1
6465   cat conftest.err >&5
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } >/dev/null; then
6468   if test -s conftest.err; then
6469     ac_cpp_err=$ac_c_preproc_warn_flag
6470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6471   else
6472     ac_cpp_err=
6473   fi
6474 else
6475   ac_cpp_err=yes
6476 fi
6477 if test -z "$ac_cpp_err"; then
6478   ac_header_preproc=yes
6479 else
6480   echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483   ac_header_preproc=no
6484 fi
6485 rm -f conftest.err conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6487 echo "${ECHO_T}$ac_header_preproc" >&6
6488
6489 # So?  What about this header?
6490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6491   yes:no: )
6492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6496     ac_header_preproc=yes
6497     ;;
6498   no:yes:* )
6499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6511     (
6512       cat <<\_ASBOX
6513 ## ----------------------------------- ##
6514 ## Report this to llvmbugs@cs.uiuc.edu ##
6515 ## ----------------------------------- ##
6516 _ASBOX
6517     ) |
6518       sed "s/^/$as_me: WARNING:     /" >&2
6519     ;;
6520 esac
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   eval "$as_ac_Header=\$ac_header_preproc"
6527 fi
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6530
6531 fi
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533   cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535 _ACEOF
6536
6537 fi
6538
6539 done
6540
6541 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6542 if test "${enable_ltdl_install+set}" = set; then
6543   enableval="$enable_ltdl_install"
6544
6545 fi;
6546
6547
6548
6549 if test x"${enable_ltdl_install-no}" != xno; then
6550   INSTALL_LTDL_TRUE=
6551   INSTALL_LTDL_FALSE='#'
6552 else
6553   INSTALL_LTDL_TRUE='#'
6554   INSTALL_LTDL_FALSE=
6555 fi
6556
6557
6558
6559 if test x"${enable_ltdl_convenience-no}" != xno; then
6560   CONVENIENCE_LTDL_TRUE=
6561   CONVENIENCE_LTDL_FALSE='#'
6562 else
6563   CONVENIENCE_LTDL_TRUE='#'
6564   CONVENIENCE_LTDL_FALSE=
6565 fi
6566
6567
6568 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6569 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6570 library_names_spec=
6571 libname_spec='lib$name'
6572 soname_spec=
6573 shrext_cmds=".so"
6574 postinstall_cmds=
6575 postuninstall_cmds=
6576 finish_cmds=
6577 finish_eval=
6578 shlibpath_var=
6579 shlibpath_overrides_runpath=unknown
6580 version_type=none
6581 dynamic_linker="$host_os ld.so"
6582 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6583 if test "$GCC" = yes; then
6584   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6585   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6586     # if the path contains ";" then we assume it to be the separator
6587     # otherwise default to the standard path separator (i.e. ":") - it is
6588     # assumed that no part of a normal pathname contains ";" but that should
6589     # okay in the real world where ";" in dirpaths is itself problematic.
6590     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6591   else
6592     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6593   fi
6594 else
6595   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6596 fi
6597 need_lib_prefix=unknown
6598 hardcode_into_libs=no
6599
6600 # when you set need_version to no, make sure it does not cause -set_version
6601 # flags to be left without arguments
6602 need_version=unknown
6603
6604 case $host_os in
6605 aix3*)
6606   version_type=linux
6607   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6608   shlibpath_var=LIBPATH
6609
6610   # AIX 3 has no versioning support, so we append a major version to the name.
6611   soname_spec='${libname}${release}${shared_ext}$major'
6612   ;;
6613
6614 aix4* | aix5*)
6615   version_type=linux
6616   need_lib_prefix=no
6617   need_version=no
6618   hardcode_into_libs=yes
6619   if test "$host_cpu" = ia64; then
6620     # AIX 5 supports IA64
6621     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6622     shlibpath_var=LD_LIBRARY_PATH
6623   else
6624     # With GCC up to 2.95.x, collect2 would create an import file
6625     # for dependence libraries.  The import file would start with
6626     # the line `#! .'.  This would cause the generated library to
6627     # depend on `.', always an invalid library.  This was fixed in
6628     # development snapshots of GCC prior to 3.0.
6629     case $host_os in
6630       aix4 | aix4.[01] | aix4.[01].*)
6631       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6632            echo ' yes '
6633            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6634         :
6635       else
6636         can_build_shared=no
6637       fi
6638       ;;
6639     esac
6640     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6641     # soname into executable. Probably we can add versioning support to
6642     # collect2, so additional links can be useful in future.
6643     if test "$aix_use_runtimelinking" = yes; then
6644       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6645       # instead of lib<name>.a to let people know that these are not
6646       # typical AIX shared libraries.
6647       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6648     else
6649       # We preserve .a as extension for shared libraries through AIX4.2
6650       # and later when we are not doing run time linking.
6651       library_names_spec='${libname}${release}.a $libname.a'
6652       soname_spec='${libname}${release}${shared_ext}$major'
6653     fi
6654     shlibpath_var=LIBPATH
6655   fi
6656   ;;
6657
6658 amigaos*)
6659   library_names_spec='$libname.ixlibrary $libname.a'
6660   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6661   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'
6662   ;;
6663
6664 beos*)
6665   library_names_spec='${libname}${shared_ext}'
6666   dynamic_linker="$host_os ld.so"
6667   shlibpath_var=LIBRARY_PATH
6668   ;;
6669
6670 bsdi[45]*)
6671   version_type=linux
6672   need_version=no
6673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6674   soname_spec='${libname}${release}${shared_ext}$major'
6675   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6676   shlibpath_var=LD_LIBRARY_PATH
6677   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6678   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6679   # the default ld.so.conf also contains /usr/contrib/lib and
6680   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6681   # libtool to hard-code these into programs
6682   ;;
6683
6684 cygwin* | mingw* | pw32*)
6685   version_type=windows
6686   shrext_cmds=".dll"
6687   need_version=no
6688   need_lib_prefix=no
6689
6690   case $GCC,$host_os in
6691   yes,cygwin* | yes,mingw* | yes,pw32*)
6692     library_names_spec='$libname.dll.a'
6693     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6694     postinstall_cmds='base_file=`basename \${file}`~
6695       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6696       dldir=$destdir/`dirname \$dlpath`~
6697       test -d \$dldir || mkdir -p \$dldir~
6698       $install_prog $dir/$dlname \$dldir/$dlname'
6699     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6700       dlpath=$dir/\$dldll~
6701        $rm \$dlpath'
6702     shlibpath_overrides_runpath=yes
6703
6704     case $host_os in
6705     cygwin*)
6706       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6707       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6708       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6709       ;;
6710     mingw*)
6711       # MinGW DLLs use traditional 'lib' prefix
6712       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6713       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6714       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6715         # It is most probably a Windows format PATH printed by
6716         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6717         # path with ; separators, and with drive letters. We can handle the
6718         # drive letters (cygwin fileutils understands them), so leave them,
6719         # especially as we might pass files found there to a mingw objdump,
6720         # which wouldn't understand a cygwinified path. Ahh.
6721         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6722       else
6723         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6724       fi
6725       ;;
6726     pw32*)
6727       # pw32 DLLs use 'pw' prefix rather than 'lib'
6728       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6729       ;;
6730     esac
6731     ;;
6732
6733   *)
6734     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6735     ;;
6736   esac
6737   dynamic_linker='Win32 ld.exe'
6738   # FIXME: first we should search . and the directory the executable is in
6739   shlibpath_var=PATH
6740   ;;
6741
6742 darwin* | rhapsody*)
6743   dynamic_linker="$host_os dyld"
6744   version_type=darwin
6745   need_lib_prefix=no
6746   need_version=no
6747   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6748   soname_spec='${libname}${release}${major}$shared_ext'
6749   shlibpath_overrides_runpath=yes
6750   shlibpath_var=DYLD_LIBRARY_PATH
6751   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6752   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6753   if test "$GCC" = yes; then
6754     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"`
6755   else
6756     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6757   fi
6758   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6759   ;;
6760
6761 dgux*)
6762   version_type=linux
6763   need_lib_prefix=no
6764   need_version=no
6765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6766   soname_spec='${libname}${release}${shared_ext}$major'
6767   shlibpath_var=LD_LIBRARY_PATH
6768   ;;
6769
6770 freebsd1*)
6771   dynamic_linker=no
6772   ;;
6773
6774 kfreebsd*-gnu)
6775   version_type=linux
6776   need_lib_prefix=no
6777   need_version=no
6778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6779   soname_spec='${libname}${release}${shared_ext}$major'
6780   shlibpath_var=LD_LIBRARY_PATH
6781   shlibpath_overrides_runpath=no
6782   hardcode_into_libs=yes
6783   dynamic_linker='GNU ld.so'
6784   ;;
6785
6786 freebsd*)
6787   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6788   version_type=freebsd-$objformat
6789   case $version_type in
6790     freebsd-elf*)
6791       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6792       need_version=no
6793       need_lib_prefix=no
6794       ;;
6795     freebsd-*)
6796       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6797       need_version=yes
6798       ;;
6799   esac
6800   shlibpath_var=LD_LIBRARY_PATH
6801   case $host_os in
6802   freebsd2*)
6803     shlibpath_overrides_runpath=yes
6804     ;;
6805   freebsd3.01* | freebsdelf3.01*)
6806     shlibpath_overrides_runpath=yes
6807     hardcode_into_libs=yes
6808     ;;
6809   *) # from 3.2 on
6810     shlibpath_overrides_runpath=no
6811     hardcode_into_libs=yes
6812     ;;
6813   esac
6814   ;;
6815
6816 gnu*)
6817   version_type=linux
6818   need_lib_prefix=no
6819   need_version=no
6820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6821   soname_spec='${libname}${release}${shared_ext}$major'
6822   shlibpath_var=LD_LIBRARY_PATH
6823   hardcode_into_libs=yes
6824   ;;
6825
6826 hpux9* | hpux10* | hpux11*)
6827   # Give a soname corresponding to the major version so that dld.sl refuses to
6828   # link against other versions.
6829   version_type=sunos
6830   need_lib_prefix=no
6831   need_version=no
6832   case "$host_cpu" in
6833   ia64*)
6834     shrext_cmds='.so'
6835     hardcode_into_libs=yes
6836     dynamic_linker="$host_os dld.so"
6837     shlibpath_var=LD_LIBRARY_PATH
6838     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6840     soname_spec='${libname}${release}${shared_ext}$major'
6841     if test "X$HPUX_IA64_MODE" = X32; then
6842       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6843     else
6844       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6845     fi
6846     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6847     ;;
6848    hppa*64*)
6849      shrext_cmds='.sl'
6850      hardcode_into_libs=yes
6851      dynamic_linker="$host_os dld.sl"
6852      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6853      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6854      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6855      soname_spec='${libname}${release}${shared_ext}$major'
6856      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6857      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6858      ;;
6859    *)
6860     shrext_cmds='.sl'
6861     dynamic_linker="$host_os dld.sl"
6862     shlibpath_var=SHLIB_PATH
6863     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6864     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6865     soname_spec='${libname}${release}${shared_ext}$major'
6866     ;;
6867   esac
6868   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6869   postinstall_cmds='chmod 555 $lib'
6870   ;;
6871
6872 irix5* | irix6* | nonstopux*)
6873   case $host_os in
6874     nonstopux*) version_type=nonstopux ;;
6875     *)
6876         if test "$lt_cv_prog_gnu_ld" = yes; then
6877                 version_type=linux
6878         else
6879                 version_type=irix
6880         fi ;;
6881   esac
6882   need_lib_prefix=no
6883   need_version=no
6884   soname_spec='${libname}${release}${shared_ext}$major'
6885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6886   case $host_os in
6887   irix5* | nonstopux*)
6888     libsuff= shlibsuff=
6889     ;;
6890   *)
6891     case $LD in # libtool.m4 will add one of these switches to LD
6892     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6893       libsuff= shlibsuff= libmagic=32-bit;;
6894     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6895       libsuff=32 shlibsuff=N32 libmagic=N32;;
6896     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6897       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6898     *) libsuff= shlibsuff= libmagic=never-match;;
6899     esac
6900     ;;
6901   esac
6902   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6903   shlibpath_overrides_runpath=no
6904   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6905   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6906   hardcode_into_libs=yes
6907   ;;
6908
6909 # No shared lib support for Linux oldld, aout, or coff.
6910 linux*oldld* | linux*aout* | linux*coff*)
6911   dynamic_linker=no
6912   ;;
6913
6914 # This must be Linux ELF.
6915 linux*)
6916   version_type=linux
6917   need_lib_prefix=no
6918   need_version=no
6919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6920   soname_spec='${libname}${release}${shared_ext}$major'
6921   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6922   shlibpath_var=LD_LIBRARY_PATH
6923   shlibpath_overrides_runpath=no
6924   # This implies no fast_install, which is unacceptable.
6925   # Some rework will be needed to allow for fast_install
6926   # before this can be enabled.
6927   hardcode_into_libs=yes
6928
6929   # Append ld.so.conf contents to the search path
6930   if test -f /etc/ld.so.conf; then
6931     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6932     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6933   fi
6934
6935   # We used to test for /lib/ld.so.1 and disable shared libraries on
6936   # powerpc, because MkLinux only supported shared libraries with the
6937   # GNU dynamic linker.  Since this was broken with cross compilers,
6938   # most powerpc-linux boxes support dynamic linking these days and
6939   # people can always --disable-shared, the test was removed, and we
6940   # assume the GNU/Linux dynamic linker is in use.
6941   dynamic_linker='GNU/Linux ld.so'
6942   ;;
6943
6944 knetbsd*-gnu)
6945   version_type=linux
6946   need_lib_prefix=no
6947   need_version=no
6948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6949   soname_spec='${libname}${release}${shared_ext}$major'
6950   shlibpath_var=LD_LIBRARY_PATH
6951   shlibpath_overrides_runpath=no
6952   hardcode_into_libs=yes
6953   dynamic_linker='GNU ld.so'
6954   ;;
6955
6956 netbsd*)
6957   version_type=sunos
6958   need_lib_prefix=no
6959   need_version=no
6960   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6962     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6963     dynamic_linker='NetBSD (a.out) ld.so'
6964   else
6965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6966     soname_spec='${libname}${release}${shared_ext}$major'
6967     dynamic_linker='NetBSD ld.elf_so'
6968   fi
6969   shlibpath_var=LD_LIBRARY_PATH
6970   shlibpath_overrides_runpath=yes
6971   hardcode_into_libs=yes
6972   ;;
6973
6974 newsos6)
6975   version_type=linux
6976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6977   shlibpath_var=LD_LIBRARY_PATH
6978   shlibpath_overrides_runpath=yes
6979   ;;
6980
6981 nto-qnx*)
6982   version_type=linux
6983   need_lib_prefix=no
6984   need_version=no
6985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6986   soname_spec='${libname}${release}${shared_ext}$major'
6987   shlibpath_var=LD_LIBRARY_PATH
6988   shlibpath_overrides_runpath=yes
6989   ;;
6990
6991 openbsd*)
6992   version_type=sunos
6993   need_lib_prefix=no
6994   need_version=no
6995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6996   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6997   shlibpath_var=LD_LIBRARY_PATH
6998   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6999     case $host_os in
7000       openbsd2.[89] | openbsd2.[89].*)
7001         shlibpath_overrides_runpath=no
7002         ;;
7003       *)
7004         shlibpath_overrides_runpath=yes
7005         ;;
7006       esac
7007   else
7008     shlibpath_overrides_runpath=yes
7009   fi
7010   ;;
7011
7012 os2*)
7013   libname_spec='$name'
7014   shrext_cmds=".dll"
7015   need_lib_prefix=no
7016   library_names_spec='$libname${shared_ext} $libname.a'
7017   dynamic_linker='OS/2 ld.exe'
7018   shlibpath_var=LIBPATH
7019   ;;
7020
7021 osf3* | osf4* | osf5*)
7022   version_type=osf
7023   need_lib_prefix=no
7024   need_version=no
7025   soname_spec='${libname}${release}${shared_ext}$major'
7026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7027   shlibpath_var=LD_LIBRARY_PATH
7028   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7029   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7030   ;;
7031
7032 sco3.2v5*)
7033   version_type=osf
7034   soname_spec='${libname}${release}${shared_ext}$major'
7035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036   shlibpath_var=LD_LIBRARY_PATH
7037   ;;
7038
7039 solaris*)
7040   version_type=linux
7041   need_lib_prefix=no
7042   need_version=no
7043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7044   soname_spec='${libname}${release}${shared_ext}$major'
7045   shlibpath_var=LD_LIBRARY_PATH
7046   shlibpath_overrides_runpath=yes
7047   hardcode_into_libs=yes
7048   # ldd complains unless libraries are executable
7049   postinstall_cmds='chmod +x $lib'
7050   ;;
7051
7052 sunos4*)
7053   version_type=sunos
7054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7055   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7056   shlibpath_var=LD_LIBRARY_PATH
7057   shlibpath_overrides_runpath=yes
7058   if test "$with_gnu_ld" = yes; then
7059     need_lib_prefix=no
7060   fi
7061   need_version=yes
7062   ;;
7063
7064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7065   version_type=linux
7066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7067   soname_spec='${libname}${release}${shared_ext}$major'
7068   shlibpath_var=LD_LIBRARY_PATH
7069   case $host_vendor in
7070     sni)
7071       shlibpath_overrides_runpath=no
7072       need_lib_prefix=no
7073       export_dynamic_flag_spec='${wl}-Blargedynsym'
7074       runpath_var=LD_RUN_PATH
7075       ;;
7076     siemens)
7077       need_lib_prefix=no
7078       ;;
7079     motorola)
7080       need_lib_prefix=no
7081       need_version=no
7082       shlibpath_overrides_runpath=no
7083       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7084       ;;
7085   esac
7086   ;;
7087
7088 sysv4*MP*)
7089   if test -d /usr/nec ;then
7090     version_type=linux
7091     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7092     soname_spec='$libname${shared_ext}.$major'
7093     shlibpath_var=LD_LIBRARY_PATH
7094   fi
7095   ;;
7096
7097 uts4*)
7098   version_type=linux
7099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100   soname_spec='${libname}${release}${shared_ext}$major'
7101   shlibpath_var=LD_LIBRARY_PATH
7102   ;;
7103
7104 *)
7105   dynamic_linker=no
7106   ;;
7107 esac
7108 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7109 echo "${ECHO_T}$dynamic_linker" >&6
7110 test "$dynamic_linker" = no && can_build_shared=no
7111
7112
7113 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7114 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7115 if test "${libltdl_cv_shlibext+set}" = set; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118
7119 module=yes
7120 eval libltdl_cv_shlibext=$shrext_cmds
7121
7122 fi
7123 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7124 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7125 if test -n "$libltdl_cv_shlibext"; then
7126
7127 cat >>confdefs.h <<_ACEOF
7128 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7129 _ACEOF
7130
7131 fi
7132
7133
7134 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7135 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7136 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   libltdl_cv_shlibpath_var="$shlibpath_var"
7140 fi
7141 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7142 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7143 if test -n "$libltdl_cv_shlibpath_var"; then
7144
7145 cat >>confdefs.h <<_ACEOF
7146 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7147 _ACEOF
7148
7149 fi
7150
7151
7152 echo "$as_me:$LINENO: checking for the default library search path" >&5
7153 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7154 if test "${libltdl_cv_sys_search_path+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7158 fi
7159 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7160 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7161 if test -n "$libltdl_cv_sys_search_path"; then
7162   sys_search_path=
7163   for dir in $libltdl_cv_sys_search_path; do
7164     if test -z "$sys_search_path"; then
7165       sys_search_path="$dir"
7166     else
7167       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7168     fi
7169   done
7170
7171 cat >>confdefs.h <<_ACEOF
7172 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7173 _ACEOF
7174
7175 fi
7176
7177 echo "$as_me:$LINENO: checking for objdir" >&5
7178 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7179 if test "${libltdl_cv_objdir+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   libltdl_cv_objdir="$objdir"
7183   if test -n "$objdir"; then
7184     :
7185   else
7186     rm -f .libs 2>/dev/null
7187     mkdir .libs 2>/dev/null
7188     if test -d .libs; then
7189       libltdl_cv_objdir=.libs
7190     else
7191       # MS-DOS does not allow filenames that begin with a dot.
7192       libltdl_cv_objdir=_libs
7193     fi
7194   rmdir .libs 2>/dev/null
7195   fi
7196
7197 fi
7198 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7199 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7200
7201 cat >>confdefs.h <<_ACEOF
7202 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7203 _ACEOF
7204
7205
7206 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7207 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7208 if test "${lt_cv_path_NM+set}" = set; then
7209   echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211   if test -n "$NM"; then
7212   # Let the user override the test.
7213   lt_cv_path_NM="$NM"
7214 else
7215   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7216   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7217     IFS="$lt_save_ifs"
7218     test -z "$ac_dir" && ac_dir=.
7219     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7220     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7221       # Check to see if the nm accepts a BSD-compat flag.
7222       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7223       #   nm: unknown option "B" ignored
7224       # Tru64's nm complains that /dev/null is an invalid object file
7225       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7226       */dev/null* | *'Invalid file or object type'*)
7227         lt_cv_path_NM="$tmp_nm -B"
7228         break
7229         ;;
7230       *)
7231         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7232         */dev/null*)
7233           lt_cv_path_NM="$tmp_nm -p"
7234           break
7235           ;;
7236         *)
7237           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7238           continue # so that we can try to find one that supports BSD flags
7239           ;;
7240         esac
7241       esac
7242     fi
7243   done
7244   IFS="$lt_save_ifs"
7245   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7246 fi
7247 fi
7248 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7249 echo "${ECHO_T}$lt_cv_path_NM" >&6
7250 NM="$lt_cv_path_NM"
7251
7252
7253
7254
7255
7256 # Check for command to grab the raw symbol name followed by C symbol from nm.
7257 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7258 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7259 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262
7263 # These are sane defaults that work on at least a few old systems.
7264 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7265
7266 # Character class describing NM global symbol codes.
7267 symcode='[BCDEGRST]'
7268
7269 # Regexp to match symbols that can be accessed directly from C.
7270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7271
7272 # Transform the above into a raw symbol and a C symbol.
7273 symxfrm='\1 \2\3 \3'
7274
7275 # Transform an extracted symbol line into a proper C declaration
7276 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7277
7278 # Transform an extracted symbol line into symbol name and symbol address
7279 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'"
7280
7281 # Define system-specific variables.
7282 case $host_os in
7283 aix*)
7284   symcode='[BCDT]'
7285   ;;
7286 cygwin* | mingw* | pw32*)
7287   symcode='[ABCDGISTW]'
7288   ;;
7289 hpux*) # Its linker distinguishes data from code symbols
7290   if test "$host_cpu" = ia64; then
7291     symcode='[ABCDEGRST]'
7292   fi
7293   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7294   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'"
7295   ;;
7296 linux*)
7297   if test "$host_cpu" = ia64; then
7298     symcode='[ABCDGIRSTW]'
7299     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7300     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'"
7301   fi
7302   ;;
7303 irix* | nonstopux*)
7304   symcode='[BCDEGRST]'
7305   ;;
7306 osf*)
7307   symcode='[BCDEGQRST]'
7308   ;;
7309 solaris* | sysv5*)
7310   symcode='[BDRT]'
7311   ;;
7312 sysv4)
7313   symcode='[DFNSTU]'
7314   ;;
7315 esac
7316
7317 # Handle CRLF in mingw tool chain
7318 opt_cr=
7319 case $build_os in
7320 mingw*)
7321   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7322   ;;
7323 esac
7324
7325 # If we're using GNU nm, then use its standard symbol codes.
7326 case `$NM -V 2>&1` in
7327 *GNU* | *'with BFD'*)
7328   symcode='[ABCDGIRSTW]' ;;
7329 esac
7330
7331 # Try without a prefix undercore, then with it.
7332 for ac_symprfx in "" "_"; do
7333
7334   # Write the raw and C identifiers.
7335   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7336
7337   # Check to see that the pipe works correctly.
7338   pipe_works=no
7339
7340   rm -f conftest*
7341   cat > conftest.$ac_ext <<EOF
7342 #ifdef __cplusplus
7343 extern "C" {
7344 #endif
7345 char nm_test_var;
7346 void nm_test_func(){}
7347 #ifdef __cplusplus
7348 }
7349 #endif
7350 int main(){nm_test_var='a';nm_test_func();return(0);}
7351 EOF
7352
7353   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7354   (eval $ac_compile) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }; then
7358     # Now try to grab the symbols.
7359     nlist=conftest.nm
7360     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7361   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } && test -s "$nlist"; then
7365       # Try sorting and uniquifying the output.
7366       if sort "$nlist" | uniq > "$nlist"T; then
7367         mv -f "$nlist"T "$nlist"
7368       else
7369         rm -f "$nlist"T
7370       fi
7371
7372       # Make sure that we snagged all the symbols we need.
7373       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7374         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7375           cat <<EOF > conftest.$ac_ext
7376 #ifdef __cplusplus
7377 extern "C" {
7378 #endif
7379
7380 EOF
7381           # Now generate the symbol file.
7382           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7383
7384           cat <<EOF >> conftest.$ac_ext
7385 #if defined (__STDC__) && __STDC__
7386 # define lt_ptr_t void *
7387 #else
7388 # define lt_ptr_t char *
7389 # define const
7390 #endif
7391
7392 /* The mapping between symbol names and symbols. */
7393 const struct {
7394   const char *name;
7395   lt_ptr_t address;
7396 }
7397 lt_preloaded_symbols[] =
7398 {
7399 EOF
7400           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7401           cat <<\EOF >> conftest.$ac_ext
7402   {0, (lt_ptr_t) 0}
7403 };
7404
7405 #ifdef __cplusplus
7406 }
7407 #endif
7408 EOF
7409           # Now try linking the two files.
7410           mv conftest.$ac_objext conftstm.$ac_objext
7411           lt_save_LIBS="$LIBS"
7412           lt_save_CFLAGS="$CFLAGS"
7413           LIBS="conftstm.$ac_objext"
7414           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7415           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416   (eval $ac_link) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7420             pipe_works=yes
7421           fi
7422           LIBS="$lt_save_LIBS"
7423           CFLAGS="$lt_save_CFLAGS"
7424         else
7425           echo "cannot find nm_test_func in $nlist" >&5
7426         fi
7427       else
7428         echo "cannot find nm_test_var in $nlist" >&5
7429       fi
7430     else
7431       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7432     fi
7433   else
7434     echo "$progname: failed program was:" >&5
7435     cat conftest.$ac_ext >&5
7436   fi
7437   rm -f conftest* conftst*
7438
7439   # Do not use the global_symbol_pipe unless it works.
7440   if test "$pipe_works" = yes; then
7441     break
7442   else
7443     lt_cv_sys_global_symbol_pipe=
7444   fi
7445 done
7446
7447 fi
7448
7449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7450   lt_cv_sys_global_symbol_to_cdecl=
7451 fi
7452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7453   echo "$as_me:$LINENO: result: failed" >&5
7454 echo "${ECHO_T}failed" >&6
7455 else
7456   echo "$as_me:$LINENO: result: ok" >&5
7457 echo "${ECHO_T}ok" >&6
7458 fi
7459
7460
7461 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7462 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7463 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7467     libltdl_cv_preloaded_symbols=yes
7468   else
7469     libltdl_cv_preloaded_symbols=no
7470   fi
7471
7472 fi
7473 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7474 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7475 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7476
7477 cat >>confdefs.h <<\_ACEOF
7478 #define HAVE_PRELOADED_SYMBOLS 1
7479 _ACEOF
7480
7481 fi
7482
7483 LIBADD_DL=
7484
7485 ac_ext=c
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491
7492 echo "$as_me:$LINENO: checking for shl_load" >&5
7493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7494 if test "${ac_cv_func_shl_load+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h.  */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h.  */
7503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7505 #define shl_load innocuous_shl_load
7506
7507 /* System header to define __stub macros and hopefully few prototypes,
7508     which can conflict with char shl_load (); below.
7509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7510     <limits.h> exists even on freestanding compilers.  */
7511
7512 #ifdef __STDC__
7513 # include <limits.h>
7514 #else
7515 # include <assert.h>
7516 #endif
7517
7518 #undef shl_load
7519
7520 /* Override any gcc2 internal prototype to avoid an error.  */
7521 #ifdef __cplusplus
7522 extern "C"
7523 {
7524 #endif
7525 /* We use char because int might match the return type of a gcc2
7526    builtin and then its argument prototype would still apply.  */
7527 char shl_load ();
7528 /* The GNU C library defines this for functions which it implements
7529     to always fail with ENOSYS.  Some functions are actually named
7530     something starting with __ and the normal name is an alias.  */
7531 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7532 choke me
7533 #else
7534 char (*f) () = shl_load;
7535 #endif
7536 #ifdef __cplusplus
7537 }
7538 #endif
7539
7540 int
7541 main ()
7542 {
7543 return f != shl_load;
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7550   (eval $ac_link) 2>conftest.er1
7551   ac_status=$?
7552   grep -v '^ *+' conftest.er1 >conftest.err
7553   rm -f conftest.er1
7554   cat conftest.err >&5
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } &&
7557          { ac_try='test -z "$ac_c_werror_flag"
7558                          || test ! -s conftest.err'
7559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560   (eval $ac_try) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; } &&
7564          { ac_try='test -s conftest$ac_exeext'
7565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566   (eval $ac_try) 2>&5
7567   ac_status=$?
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); }; }; then
7570   ac_cv_func_shl_load=yes
7571 else
7572   echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7574
7575 ac_cv_func_shl_load=no
7576 fi
7577 rm -f conftest.err conftest.$ac_objext \
7578       conftest$ac_exeext conftest.$ac_ext
7579 fi
7580 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7582 if test $ac_cv_func_shl_load = yes; then
7583
7584 cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_SHL_LOAD 1
7586 _ACEOF
7587
7588 else
7589   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7590 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7591 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594   ac_check_lib_save_LIBS=$LIBS
7595 LIBS="-ldld  $LIBS"
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h.  */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h.  */
7602
7603 /* Override any gcc2 internal prototype to avoid an error.  */
7604 #ifdef __cplusplus
7605 extern "C"
7606 #endif
7607 /* We use char because int might match the return type of a gcc2
7608    builtin and then its argument prototype would still apply.  */
7609 char shl_load ();
7610 int
7611 main ()
7612 {
7613 shl_load ();
7614   ;
7615   return 0;
7616 }
7617 _ACEOF
7618 rm -f conftest.$ac_objext conftest$ac_exeext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7620   (eval $ac_link) 2>conftest.er1
7621   ac_status=$?
7622   grep -v '^ *+' conftest.er1 >conftest.err
7623   rm -f conftest.er1
7624   cat conftest.err >&5
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); } &&
7627          { ac_try='test -z "$ac_c_werror_flag"
7628                          || test ! -s conftest.err'
7629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630   (eval $ac_try) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; } &&
7634          { ac_try='test -s conftest$ac_exeext'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; }; then
7640   ac_cv_lib_dld_shl_load=yes
7641 else
7642   echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645 ac_cv_lib_dld_shl_load=no
7646 fi
7647 rm -f conftest.err conftest.$ac_objext \
7648       conftest$ac_exeext conftest.$ac_ext
7649 LIBS=$ac_check_lib_save_LIBS
7650 fi
7651 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7652 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7653 if test $ac_cv_lib_dld_shl_load = yes; then
7654
7655 cat >>confdefs.h <<\_ACEOF
7656 #define HAVE_SHL_LOAD 1
7657 _ACEOF
7658
7659         LIBADD_DL="$LIBADD_DL -ldld"
7660 else
7661   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7662 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7663 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   ac_check_lib_save_LIBS=$LIBS
7667 LIBS="-ldl  $LIBS"
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674
7675 /* Override any gcc2 internal prototype to avoid an error.  */
7676 #ifdef __cplusplus
7677 extern "C"
7678 #endif
7679 /* We use char because int might match the return type of a gcc2
7680    builtin and then its argument prototype would still apply.  */
7681 char dlopen ();
7682 int
7683 main ()
7684 {
7685 dlopen ();
7686   ;
7687   return 0;
7688 }
7689 _ACEOF
7690 rm -f conftest.$ac_objext conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692   (eval $ac_link) 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } &&
7699          { ac_try='test -z "$ac_c_werror_flag"
7700                          || test ! -s conftest.err'
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); }; } &&
7706          { ac_try='test -s conftest$ac_exeext'
7707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708   (eval $ac_try) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; }; then
7712   ac_cv_lib_dl_dlopen=yes
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 ac_cv_lib_dl_dlopen=no
7718 fi
7719 rm -f conftest.err conftest.$ac_objext \
7720       conftest$ac_exeext conftest.$ac_ext
7721 LIBS=$ac_check_lib_save_LIBS
7722 fi
7723 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7725 if test $ac_cv_lib_dl_dlopen = yes; then
7726
7727 cat >>confdefs.h <<\_ACEOF
7728 #define HAVE_LIBDL 1
7729 _ACEOF
7730
7731                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7732 else
7733   cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739 #if HAVE_DLFCN_H
7740 #  include <dlfcn.h>
7741 #endif
7742
7743 int
7744 main ()
7745 {
7746 dlopen(0, 0);
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753   (eval $ac_link) 2>conftest.er1
7754   ac_status=$?
7755   grep -v '^ *+' conftest.er1 >conftest.err
7756   rm -f conftest.er1
7757   cat conftest.err >&5
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); } &&
7760          { ac_try='test -z "$ac_c_werror_flag"
7761                          || test ! -s conftest.err'
7762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763   (eval $ac_try) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); }; } &&
7767          { ac_try='test -s conftest$ac_exeext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773
7774 cat >>confdefs.h <<\_ACEOF
7775 #define HAVE_LIBDL 1
7776 _ACEOF
7777  libltdl_cv_func_dlopen="yes"
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7783 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7784 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   ac_check_lib_save_LIBS=$LIBS
7788 LIBS="-lsvld  $LIBS"
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795
7796 /* Override any gcc2 internal prototype to avoid an error.  */
7797 #ifdef __cplusplus
7798 extern "C"
7799 #endif
7800 /* We use char because int might match the return type of a gcc2
7801    builtin and then its argument prototype would still apply.  */
7802 char dlopen ();
7803 int
7804 main ()
7805 {
7806 dlopen ();
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813   (eval $ac_link) 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } &&
7820          { ac_try='test -z "$ac_c_werror_flag"
7821                          || test ! -s conftest.err'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; } &&
7827          { ac_try='test -s conftest$ac_exeext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   ac_cv_lib_svld_dlopen=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 ac_cv_lib_svld_dlopen=no
7839 fi
7840 rm -f conftest.err conftest.$ac_objext \
7841       conftest$ac_exeext conftest.$ac_ext
7842 LIBS=$ac_check_lib_save_LIBS
7843 fi
7844 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7845 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7846 if test $ac_cv_lib_svld_dlopen = yes; then
7847
7848 cat >>confdefs.h <<\_ACEOF
7849 #define HAVE_LIBDL 1
7850 _ACEOF
7851
7852                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7853 else
7854   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7855 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-ldld  $LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867
7868 /* Override any gcc2 internal prototype to avoid an error.  */
7869 #ifdef __cplusplus
7870 extern "C"
7871 #endif
7872 /* We use char because int might match the return type of a gcc2
7873    builtin and then its argument prototype would still apply.  */
7874 char dld_link ();
7875 int
7876 main ()
7877 {
7878 dld_link ();
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885   (eval $ac_link) 2>conftest.er1
7886   ac_status=$?
7887   grep -v '^ *+' conftest.er1 >conftest.err
7888   rm -f conftest.er1
7889   cat conftest.err >&5
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } &&
7892          { ac_try='test -z "$ac_c_werror_flag"
7893                          || test ! -s conftest.err'
7894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895   (eval $ac_try) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; } &&
7899          { ac_try='test -s conftest$ac_exeext'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905   ac_cv_lib_dld_dld_link=yes
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ac_cv_lib_dld_dld_link=no
7911 fi
7912 rm -f conftest.err conftest.$ac_objext \
7913       conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_lib_save_LIBS
7915 fi
7916 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7917 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7918 if test $ac_cv_lib_dld_dld_link = yes; then
7919
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_DLD 1
7922 _ACEOF
7923
7924                 LIBADD_DL="$LIBADD_DL -ldld"
7925 else
7926   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7927 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7928 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931   cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h.  */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h.  */
7937 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7939 #define _dyld_func_lookup innocuous__dyld_func_lookup
7940
7941 /* System header to define __stub macros and hopefully few prototypes,
7942     which can conflict with char _dyld_func_lookup (); below.
7943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7944     <limits.h> exists even on freestanding compilers.  */
7945
7946 #ifdef __STDC__
7947 # include <limits.h>
7948 #else
7949 # include <assert.h>
7950 #endif
7951
7952 #undef _dyld_func_lookup
7953
7954 /* Override any gcc2 internal prototype to avoid an error.  */
7955 #ifdef __cplusplus
7956 extern "C"
7957 {
7958 #endif
7959 /* We use char because int might match the return type of a gcc2
7960    builtin and then its argument prototype would still apply.  */
7961 char _dyld_func_lookup ();
7962 /* The GNU C library defines this for functions which it implements
7963     to always fail with ENOSYS.  Some functions are actually named
7964     something starting with __ and the normal name is an alias.  */
7965 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7966 choke me
7967 #else
7968 char (*f) () = _dyld_func_lookup;
7969 #endif
7970 #ifdef __cplusplus
7971 }
7972 #endif
7973
7974 int
7975 main ()
7976 {
7977 return f != _dyld_func_lookup;
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984   (eval $ac_link) 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } &&
7991          { ac_try='test -z "$ac_c_werror_flag"
7992                          || test ! -s conftest.err'
7993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994   (eval $ac_try) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; } &&
7998          { ac_try='test -s conftest$ac_exeext'
7999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000   (eval $ac_try) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); }; }; then
8004   ac_cv_func__dyld_func_lookup=yes
8005 else
8006   echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 ac_cv_func__dyld_func_lookup=no
8010 fi
8011 rm -f conftest.err conftest.$ac_objext \
8012       conftest$ac_exeext conftest.$ac_ext
8013 fi
8014 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8015 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8016 if test $ac_cv_func__dyld_func_lookup = yes; then
8017
8018 cat >>confdefs.h <<\_ACEOF
8019 #define HAVE_DYLD 1
8020 _ACEOF
8021
8022 fi
8023
8024
8025 fi
8026
8027
8028 fi
8029
8030
8031 fi
8032 rm -f conftest.err conftest.$ac_objext \
8033       conftest$ac_exeext conftest.$ac_ext
8034
8035 fi
8036
8037
8038 fi
8039
8040
8041 fi
8042
8043
8044 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8045 then
8046   lt_save_LIBS="$LIBS"
8047   LIBS="$LIBS $LIBADD_DL"
8048
8049 for ac_func in dlerror
8050 do
8051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8052 echo "$as_me:$LINENO: checking for $ac_func" >&5
8053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8054 if eval "test \"\${$as_ac_var+set}\" = set"; then
8055   echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057   cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8065 #define $ac_func innocuous_$ac_func
8066
8067 /* System header to define __stub macros and hopefully few prototypes,
8068     which can conflict with char $ac_func (); below.
8069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8070     <limits.h> exists even on freestanding compilers.  */
8071
8072 #ifdef __STDC__
8073 # include <limits.h>
8074 #else
8075 # include <assert.h>
8076 #endif
8077
8078 #undef $ac_func
8079
8080 /* Override any gcc2 internal prototype to avoid an error.  */
8081 #ifdef __cplusplus
8082 extern "C"
8083 {
8084 #endif
8085 /* We use char because int might match the return type of a gcc2
8086    builtin and then its argument prototype would still apply.  */
8087 char $ac_func ();
8088 /* The GNU C library defines this for functions which it implements
8089     to always fail with ENOSYS.  Some functions are actually named
8090     something starting with __ and the normal name is an alias.  */
8091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8092 choke me
8093 #else
8094 char (*f) () = $ac_func;
8095 #endif
8096 #ifdef __cplusplus
8097 }
8098 #endif
8099
8100 int
8101 main ()
8102 {
8103 return f != $ac_func;
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110   (eval $ac_link) 2>conftest.er1
8111   ac_status=$?
8112   grep -v '^ *+' conftest.er1 >conftest.err
8113   rm -f conftest.er1
8114   cat conftest.err >&5
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } &&
8117          { ac_try='test -z "$ac_c_werror_flag"
8118                          || test ! -s conftest.err'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; } &&
8124          { ac_try='test -s conftest$ac_exeext'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; }; then
8130   eval "$as_ac_var=yes"
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 eval "$as_ac_var=no"
8136 fi
8137 rm -f conftest.err conftest.$ac_objext \
8138       conftest$ac_exeext conftest.$ac_ext
8139 fi
8140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8142 if test `eval echo '${'$as_ac_var'}'` = yes; then
8143   cat >>confdefs.h <<_ACEOF
8144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8145 _ACEOF
8146
8147 fi
8148 done
8149
8150   LIBS="$lt_save_LIBS"
8151 fi
8152 ac_ext=c
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158
8159
8160 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8161 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8162 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   ac_cv_sys_symbol_underscore=no
8166   cat > conftest.$ac_ext <<EOF
8167 void nm_test_func(){}
8168 int main(){nm_test_func;return 0;}
8169 EOF
8170   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171   (eval $ac_compile) 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; then
8175     # Now try to grab the symbols.
8176     ac_nlist=conftest.nm
8177     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8178   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } && test -s "$ac_nlist"; then
8182       # See whether the symbols have a leading underscore.
8183       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8184         ac_cv_sys_symbol_underscore=yes
8185       else
8186         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8187           :
8188         else
8189           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8190         fi
8191       fi
8192     else
8193       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8194     fi
8195   else
8196     echo "configure: failed program was:" >&5
8197     cat conftest.c >&5
8198   fi
8199   rm -rf conftest*
8200
8201 fi
8202 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8203 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8204
8205
8206 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8207   if test x"$libltdl_cv_func_dlopen" = xyes ||
8208      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8209         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8210 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8211 if test "${libltdl_cv_need_uscore+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   libltdl_cv_need_uscore=unknown
8215           save_LIBS="$LIBS"
8216           LIBS="$LIBS $LIBADD_DL"
8217           if test "$cross_compiling" = yes; then :
8218   libltdl_cv_need_uscore=cross
8219 else
8220   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8221   lt_status=$lt_dlunknown
8222   cat > conftest.$ac_ext <<EOF
8223 #line 8223 "configure"
8224 #include "confdefs.h"
8225
8226 #if HAVE_DLFCN_H
8227 #include <dlfcn.h>
8228 #endif
8229
8230 #include <stdio.h>
8231
8232 #ifdef RTLD_GLOBAL
8233 #  define LT_DLGLOBAL           RTLD_GLOBAL
8234 #else
8235 #  ifdef DL_GLOBAL
8236 #    define LT_DLGLOBAL         DL_GLOBAL
8237 #  else
8238 #    define LT_DLGLOBAL         0
8239 #  endif
8240 #endif
8241
8242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8243    find out it does not work in some platform. */
8244 #ifndef LT_DLLAZY_OR_NOW
8245 #  ifdef RTLD_LAZY
8246 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8247 #  else
8248 #    ifdef DL_LAZY
8249 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8250 #    else
8251 #      ifdef RTLD_NOW
8252 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8253 #      else
8254 #        ifdef DL_NOW
8255 #          define LT_DLLAZY_OR_NOW      DL_NOW
8256 #        else
8257 #          define LT_DLLAZY_OR_NOW      0
8258 #        endif
8259 #      endif
8260 #    endif
8261 #  endif
8262 #endif
8263
8264 #ifdef __cplusplus
8265 extern "C" void exit (int);
8266 #endif
8267
8268 void fnord() { int i=42;}
8269 int main ()
8270 {
8271   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8272   int status = $lt_dlunknown;
8273
8274   if (self)
8275     {
8276       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8277       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8278       /* dlclose (self); */
8279     }
8280
8281     exit (status);
8282 }
8283 EOF
8284   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285   (eval $ac_link) 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8289     (./conftest; exit; ) 2>/dev/null
8290     lt_status=$?
8291     case x$lt_status in
8292       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8293       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8294       x$lt_unknown|x*)  ;;
8295     esac
8296   else :
8297     # compilation failed
8298
8299   fi
8300 fi
8301 rm -fr conftest*
8302
8303           LIBS="$save_LIBS"
8304
8305 fi
8306 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8307 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8308   fi
8309 fi
8310
8311 if test x"$libltdl_cv_need_uscore" = xyes; then
8312
8313 cat >>confdefs.h <<\_ACEOF
8314 #define NEED_USCORE 1
8315 _ACEOF
8316
8317 fi
8318
8319
8320 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8321 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8322 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   # PORTME does your system automatically load deplibs for dlopen?
8326   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8327   # For now, we just catch OSes we know something about -- in the
8328   # future, we'll try test this programmatically.
8329   libltdl_cv_sys_dlopen_deplibs=unknown
8330   case "$host_os" in
8331   aix3*|aix4.1.*|aix4.2.*)
8332     # Unknown whether this is true for these versions of AIX, but
8333     # we want this `case' here to explicitly catch those versions.
8334     libltdl_cv_sys_dlopen_deplibs=unknown
8335     ;;
8336   aix[45]*)
8337     libltdl_cv_sys_dlopen_deplibs=yes
8338     ;;
8339   darwin*)
8340     # Assuming the user has installed a libdl from somewhere, this is true
8341     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8342     libltdl_cv_sys_dlopen_deplibs=yes
8343     ;;
8344   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8345     # GNU and its variants, using gnu ld.so (Glibc)
8346     libltdl_cv_sys_dlopen_deplibs=yes
8347     ;;
8348   hpux10*|hpux11*)
8349     libltdl_cv_sys_dlopen_deplibs=yes
8350     ;;
8351   irix[12345]*|irix6.[01]*)
8352     # Catch all versions of IRIX before 6.2, and indicate that we don't
8353     # know how it worked for any of those versions.
8354     libltdl_cv_sys_dlopen_deplibs=unknown
8355     ;;
8356   irix*)
8357     # The case above catches anything before 6.2, and it's known that
8358     # at 6.2 and later dlopen does load deplibs.
8359     libltdl_cv_sys_dlopen_deplibs=yes
8360     ;;
8361   netbsd*)
8362     libltdl_cv_sys_dlopen_deplibs=yes
8363     ;;
8364   openbsd*)
8365     libltdl_cv_sys_dlopen_deplibs=yes
8366     ;;
8367   osf[1234]*)
8368     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8369     # it did *not* use an RPATH in a shared library to find objects the
8370     # library depends on, so we explictly say `no'.
8371     libltdl_cv_sys_dlopen_deplibs=no
8372     ;;
8373   osf5.0|osf5.0a|osf5.1)
8374     # dlopen *does* load deplibs and with the right loader patch applied
8375     # it even uses RPATH in a shared library to search for shared objects
8376     # that the library depends on, but there's no easy way to know if that
8377     # patch is installed.  Since this is the case, all we can really
8378     # say is unknown -- it depends on the patch being installed.  If
8379     # it is, this changes to `yes'.  Without it, it would be `no'.
8380     libltdl_cv_sys_dlopen_deplibs=unknown
8381     ;;
8382   osf*)
8383     # the two cases above should catch all versions of osf <= 5.1.  Read
8384     # the comments above for what we know about them.
8385     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8386     # is used to find them so we can finally say `yes'.
8387     libltdl_cv_sys_dlopen_deplibs=yes
8388     ;;
8389   solaris*)
8390     libltdl_cv_sys_dlopen_deplibs=yes
8391     ;;
8392   esac
8393
8394 fi
8395 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8396 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8397 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8398
8399 cat >>confdefs.h <<\_ACEOF
8400 #define LTDL_DLOPEN_DEPLIBS 1
8401 _ACEOF
8402
8403 fi
8404
8405
8406 for ac_header in argz.h
8407 do
8408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410   echo "$as_me:$LINENO: checking for $ac_header" >&5
8411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 fi
8415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8417 else
8418   # Is the header compilable?
8419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427 $ac_includes_default
8428 #include <$ac_header>
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432   (eval $ac_compile) 2>conftest.er1
8433   ac_status=$?
8434   grep -v '^ *+' conftest.er1 >conftest.err
8435   rm -f conftest.er1
8436   cat conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } &&
8439          { ac_try='test -z "$ac_c_werror_flag"
8440                          || test ! -s conftest.err'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; } &&
8446          { ac_try='test -s conftest.$ac_objext'
8447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448   (eval $ac_try) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452   ac_header_compiler=yes
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 ac_header_compiler=no
8458 fi
8459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8461 echo "${ECHO_T}$ac_header_compiler" >&6
8462
8463 # Is the header present?
8464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472 #include <$ac_header>
8473 _ACEOF
8474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } >/dev/null; then
8482   if test -s conftest.err; then
8483     ac_cpp_err=$ac_c_preproc_warn_flag
8484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8485   else
8486     ac_cpp_err=
8487   fi
8488 else
8489   ac_cpp_err=yes
8490 fi
8491 if test -z "$ac_cpp_err"; then
8492   ac_header_preproc=yes
8493 else
8494   echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497   ac_header_preproc=no
8498 fi
8499 rm -f conftest.err conftest.$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8501 echo "${ECHO_T}$ac_header_preproc" >&6
8502
8503 # So?  What about this header?
8504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8505   yes:no: )
8506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8510     ac_header_preproc=yes
8511     ;;
8512   no:yes:* )
8513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8525     (
8526       cat <<\_ASBOX
8527 ## ----------------------------------- ##
8528 ## Report this to llvmbugs@cs.uiuc.edu ##
8529 ## ----------------------------------- ##
8530 _ASBOX
8531     ) |
8532       sed "s/^/$as_me: WARNING:     /" >&2
8533     ;;
8534 esac
8535 echo "$as_me:$LINENO: checking for $ac_header" >&5
8536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8538   echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540   eval "$as_ac_Header=\$ac_header_preproc"
8541 fi
8542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8544
8545 fi
8546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8547   cat >>confdefs.h <<_ACEOF
8548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8549 _ACEOF
8550
8551 fi
8552
8553 done
8554
8555
8556 echo "$as_me:$LINENO: checking for error_t" >&5
8557 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8558 if test "${ac_cv_type_error_t+set}" = set; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561   cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567 #if HAVE_ARGZ_H
8568 #  include <argz.h>
8569 #endif
8570
8571 int
8572 main ()
8573 {
8574 if ((error_t *) 0)
8575   return 0;
8576 if (sizeof (error_t))
8577   return 0;
8578   ;
8579   return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584   (eval $ac_compile) 2>conftest.er1
8585   ac_status=$?
8586   grep -v '^ *+' conftest.er1 >conftest.err
8587   rm -f conftest.er1
8588   cat conftest.err >&5
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } &&
8591          { ac_try='test -z "$ac_c_werror_flag"
8592                          || test ! -s conftest.err'
8593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594   (eval $ac_try) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; } &&
8598          { ac_try='test -s conftest.$ac_objext'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; }; then
8604   ac_cv_type_error_t=yes
8605 else
8606   echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8608
8609 ac_cv_type_error_t=no
8610 fi
8611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 fi
8613 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8614 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8615 if test $ac_cv_type_error_t = yes; then
8616
8617 cat >>confdefs.h <<_ACEOF
8618 #define HAVE_ERROR_T 1
8619 _ACEOF
8620
8621
8622 else
8623
8624 cat >>confdefs.h <<\_ACEOF
8625 #define error_t int
8626 _ACEOF
8627
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8637 do
8638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8639 echo "$as_me:$LINENO: checking for $ac_func" >&5
8640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8641 if eval "test \"\${$as_ac_var+set}\" = set"; then
8642   echo $ECHO_N "(cached) $ECHO_C" >&6
8643 else
8644   cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8652 #define $ac_func innocuous_$ac_func
8653
8654 /* System header to define __stub macros and hopefully few prototypes,
8655     which can conflict with char $ac_func (); below.
8656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657     <limits.h> exists even on freestanding compilers.  */
8658
8659 #ifdef __STDC__
8660 # include <limits.h>
8661 #else
8662 # include <assert.h>
8663 #endif
8664
8665 #undef $ac_func
8666
8667 /* Override any gcc2 internal prototype to avoid an error.  */
8668 #ifdef __cplusplus
8669 extern "C"
8670 {
8671 #endif
8672 /* We use char because int might match the return type of a gcc2
8673    builtin and then its argument prototype would still apply.  */
8674 char $ac_func ();
8675 /* The GNU C library defines this for functions which it implements
8676     to always fail with ENOSYS.  Some functions are actually named
8677     something starting with __ and the normal name is an alias.  */
8678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8679 choke me
8680 #else
8681 char (*f) () = $ac_func;
8682 #endif
8683 #ifdef __cplusplus
8684 }
8685 #endif
8686
8687 int
8688 main ()
8689 {
8690 return f != $ac_func;
8691   ;
8692   return 0;
8693 }
8694 _ACEOF
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697   (eval $ac_link) 2>conftest.er1
8698   ac_status=$?
8699   grep -v '^ *+' conftest.er1 >conftest.err
8700   rm -f conftest.er1
8701   cat conftest.err >&5
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); } &&
8704          { ac_try='test -z "$ac_c_werror_flag"
8705                          || test ! -s conftest.err'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; } &&
8711          { ac_try='test -s conftest$ac_exeext'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   eval "$as_ac_var=yes"
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 eval "$as_ac_var=no"
8723 fi
8724 rm -f conftest.err conftest.$ac_objext \
8725       conftest$ac_exeext conftest.$ac_ext
8726 fi
8727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8729 if test `eval echo '${'$as_ac_var'}'` = yes; then
8730   cat >>confdefs.h <<_ACEOF
8731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8732 _ACEOF
8733
8734 fi
8735 done
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8765                   stdio.h unistd.h
8766 do
8767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769   echo "$as_me:$LINENO: checking for $ac_header" >&5
8770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772   echo $ECHO_N "(cached) $ECHO_C" >&6
8773 fi
8774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8776 else
8777   # Is the header compilable?
8778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
8787 #include <$ac_header>
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791   (eval $ac_compile) 2>conftest.er1
8792   ac_status=$?
8793   grep -v '^ *+' conftest.er1 >conftest.err
8794   rm -f conftest.er1
8795   cat conftest.err >&5
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); } &&
8798          { ac_try='test -z "$ac_c_werror_flag"
8799                          || test ! -s conftest.err'
8800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801   (eval $ac_try) 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }; } &&
8805          { ac_try='test -s conftest.$ac_objext'
8806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807   (eval $ac_try) 2>&5
8808   ac_status=$?
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); }; }; then
8811   ac_header_compiler=yes
8812 else
8813   echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8815
8816 ac_header_compiler=no
8817 fi
8818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8820 echo "${ECHO_T}$ac_header_compiler" >&6
8821
8822 # Is the header present?
8823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831 #include <$ac_header>
8832 _ACEOF
8833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8835   ac_status=$?
8836   grep -v '^ *+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } >/dev/null; then
8841   if test -s conftest.err; then
8842     ac_cpp_err=$ac_c_preproc_warn_flag
8843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8844   else
8845     ac_cpp_err=
8846   fi
8847 else
8848   ac_cpp_err=yes
8849 fi
8850 if test -z "$ac_cpp_err"; then
8851   ac_header_preproc=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856   ac_header_preproc=no
8857 fi
8858 rm -f conftest.err conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8860 echo "${ECHO_T}$ac_header_preproc" >&6
8861
8862 # So?  What about this header?
8863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8864   yes:no: )
8865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8869     ac_header_preproc=yes
8870     ;;
8871   no:yes:* )
8872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8884     (
8885       cat <<\_ASBOX
8886 ## ----------------------------------- ##
8887 ## Report this to llvmbugs@cs.uiuc.edu ##
8888 ## ----------------------------------- ##
8889 _ASBOX
8890     ) |
8891       sed "s/^/$as_me: WARNING:     /" >&2
8892     ;;
8893 esac
8894 echo "$as_me:$LINENO: checking for $ac_header" >&5
8895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   eval "$as_ac_Header=\$ac_header_preproc"
8900 fi
8901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903
8904 fi
8905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8906   cat >>confdefs.h <<_ACEOF
8907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8908 _ACEOF
8909
8910 fi
8911
8912 done
8913
8914
8915
8916
8917
8918 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8919 do
8920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922   echo "$as_me:$LINENO: checking for $ac_header" >&5
8923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8925   echo $ECHO_N "(cached) $ECHO_C" >&6
8926 fi
8927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8929 else
8930   # Is the header compilable?
8931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8933 cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939 $ac_includes_default
8940 #include <$ac_header>
8941 _ACEOF
8942 rm -f conftest.$ac_objext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8944   (eval $ac_compile) 2>conftest.er1
8945   ac_status=$?
8946   grep -v '^ *+' conftest.er1 >conftest.err
8947   rm -f conftest.er1
8948   cat conftest.err >&5
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); } &&
8951          { ac_try='test -z "$ac_c_werror_flag"
8952                          || test ! -s conftest.err'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; } &&
8958          { ac_try='test -s conftest.$ac_objext'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; }; then
8964   ac_header_compiler=yes
8965 else
8966   echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 ac_header_compiler=no
8970 fi
8971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8973 echo "${ECHO_T}$ac_header_compiler" >&6
8974
8975 # Is the header present?
8976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984 #include <$ac_header>
8985 _ACEOF
8986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8988   ac_status=$?
8989   grep -v '^ *+' conftest.er1 >conftest.err
8990   rm -f conftest.er1
8991   cat conftest.err >&5
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); } >/dev/null; then
8994   if test -s conftest.err; then
8995     ac_cpp_err=$ac_c_preproc_warn_flag
8996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8997   else
8998     ac_cpp_err=
8999   fi
9000 else
9001   ac_cpp_err=yes
9002 fi
9003 if test -z "$ac_cpp_err"; then
9004   ac_header_preproc=yes
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009   ac_header_preproc=no
9010 fi
9011 rm -f conftest.err conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9013 echo "${ECHO_T}$ac_header_preproc" >&6
9014
9015 # So?  What about this header?
9016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9017   yes:no: )
9018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9022     ac_header_preproc=yes
9023     ;;
9024   no:yes:* )
9025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9037     (
9038       cat <<\_ASBOX
9039 ## ----------------------------------- ##
9040 ## Report this to llvmbugs@cs.uiuc.edu ##
9041 ## ----------------------------------- ##
9042 _ASBOX
9043     ) |
9044       sed "s/^/$as_me: WARNING:     /" >&2
9045     ;;
9046 esac
9047 echo "$as_me:$LINENO: checking for $ac_header" >&5
9048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   eval "$as_ac_Header=\$ac_header_preproc"
9053 fi
9054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9056
9057 fi
9058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9059   cat >>confdefs.h <<_ACEOF
9060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9061 _ACEOF
9062
9063 fi
9064
9065 done
9066
9067
9068
9069 for ac_header in string.h strings.h
9070 do
9071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073   echo "$as_me:$LINENO: checking for $ac_header" >&5
9074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9076   echo $ECHO_N "(cached) $ECHO_C" >&6
9077 fi
9078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9080 else
9081   # Is the header compilable?
9082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9084 cat >conftest.$ac_ext <<_ACEOF
9085 /* confdefs.h.  */
9086 _ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h.  */
9090 $ac_includes_default
9091 #include <$ac_header>
9092 _ACEOF
9093 rm -f conftest.$ac_objext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9095   (eval $ac_compile) 2>conftest.er1
9096   ac_status=$?
9097   grep -v '^ *+' conftest.er1 >conftest.err
9098   rm -f conftest.er1
9099   cat conftest.err >&5
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); } &&
9102          { ac_try='test -z "$ac_c_werror_flag"
9103                          || test ! -s conftest.err'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; } &&
9109          { ac_try='test -s conftest.$ac_objext'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; }; then
9115   ac_header_compiler=yes
9116 else
9117   echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120 ac_header_compiler=no
9121 fi
9122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9124 echo "${ECHO_T}$ac_header_compiler" >&6
9125
9126 # Is the header present?
9127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h.  */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h.  */
9135 #include <$ac_header>
9136 _ACEOF
9137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9139   ac_status=$?
9140   grep -v '^ *+' conftest.er1 >conftest.err
9141   rm -f conftest.er1
9142   cat conftest.err >&5
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); } >/dev/null; then
9145   if test -s conftest.err; then
9146     ac_cpp_err=$ac_c_preproc_warn_flag
9147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9148   else
9149     ac_cpp_err=
9150   fi
9151 else
9152   ac_cpp_err=yes
9153 fi
9154 if test -z "$ac_cpp_err"; then
9155   ac_header_preproc=yes
9156 else
9157   echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160   ac_header_preproc=no
9161 fi
9162 rm -f conftest.err conftest.$ac_ext
9163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9164 echo "${ECHO_T}$ac_header_preproc" >&6
9165
9166 # So?  What about this header?
9167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9168   yes:no: )
9169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9173     ac_header_preproc=yes
9174     ;;
9175   no:yes:* )
9176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9188     (
9189       cat <<\_ASBOX
9190 ## ----------------------------------- ##
9191 ## Report this to llvmbugs@cs.uiuc.edu ##
9192 ## ----------------------------------- ##
9193 _ASBOX
9194     ) |
9195       sed "s/^/$as_me: WARNING:     /" >&2
9196     ;;
9197 esac
9198 echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   eval "$as_ac_Header=\$ac_header_preproc"
9204 fi
9205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9207
9208 fi
9209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9210   cat >>confdefs.h <<_ACEOF
9211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9212 _ACEOF
9213  break
9214 fi
9215
9216 done
9217
9218
9219
9220
9221 for ac_func in strchr index
9222 do
9223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9224 echo "$as_me:$LINENO: checking for $ac_func" >&5
9225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_var+set}\" = set"; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9237 #define $ac_func innocuous_$ac_func
9238
9239 /* System header to define __stub macros and hopefully few prototypes,
9240     which can conflict with char $ac_func (); below.
9241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242     <limits.h> exists even on freestanding compilers.  */
9243
9244 #ifdef __STDC__
9245 # include <limits.h>
9246 #else
9247 # include <assert.h>
9248 #endif
9249
9250 #undef $ac_func
9251
9252 /* Override any gcc2 internal prototype to avoid an error.  */
9253 #ifdef __cplusplus
9254 extern "C"
9255 {
9256 #endif
9257 /* We use char because int might match the return type of a gcc2
9258    builtin and then its argument prototype would still apply.  */
9259 char $ac_func ();
9260 /* The GNU C library defines this for functions which it implements
9261     to always fail with ENOSYS.  Some functions are actually named
9262     something starting with __ and the normal name is an alias.  */
9263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9264 choke me
9265 #else
9266 char (*f) () = $ac_func;
9267 #endif
9268 #ifdef __cplusplus
9269 }
9270 #endif
9271
9272 int
9273 main ()
9274 {
9275 return f != $ac_func;
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282   (eval $ac_link) 2>conftest.er1
9283   ac_status=$?
9284   grep -v '^ *+' conftest.er1 >conftest.err
9285   rm -f conftest.er1
9286   cat conftest.err >&5
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } &&
9289          { ac_try='test -z "$ac_c_werror_flag"
9290                          || test ! -s conftest.err'
9291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292   (eval $ac_try) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; } &&
9296          { ac_try='test -s conftest$ac_exeext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   eval "$as_ac_var=yes"
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 eval "$as_ac_var=no"
9308 fi
9309 rm -f conftest.err conftest.$ac_objext \
9310       conftest$ac_exeext conftest.$ac_ext
9311 fi
9312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9314 if test `eval echo '${'$as_ac_var'}'` = yes; then
9315   cat >>confdefs.h <<_ACEOF
9316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9317 _ACEOF
9318  break
9319 fi
9320 done
9321
9322
9323
9324 for ac_func in strrchr rindex
9325 do
9326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327 echo "$as_me:$LINENO: checking for $ac_func" >&5
9328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9329 if eval "test \"\${$as_ac_var+set}\" = set"; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332   cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9340 #define $ac_func innocuous_$ac_func
9341
9342 /* System header to define __stub macros and hopefully few prototypes,
9343     which can conflict with char $ac_func (); below.
9344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9345     <limits.h> exists even on freestanding compilers.  */
9346
9347 #ifdef __STDC__
9348 # include <limits.h>
9349 #else
9350 # include <assert.h>
9351 #endif
9352
9353 #undef $ac_func
9354
9355 /* Override any gcc2 internal prototype to avoid an error.  */
9356 #ifdef __cplusplus
9357 extern "C"
9358 {
9359 #endif
9360 /* We use char because int might match the return type of a gcc2
9361    builtin and then its argument prototype would still apply.  */
9362 char $ac_func ();
9363 /* The GNU C library defines this for functions which it implements
9364     to always fail with ENOSYS.  Some functions are actually named
9365     something starting with __ and the normal name is an alias.  */
9366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9367 choke me
9368 #else
9369 char (*f) () = $ac_func;
9370 #endif
9371 #ifdef __cplusplus
9372 }
9373 #endif
9374
9375 int
9376 main ()
9377 {
9378 return f != $ac_func;
9379   ;
9380   return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385   (eval $ac_link) 2>conftest.er1
9386   ac_status=$?
9387   grep -v '^ *+' conftest.er1 >conftest.err
9388   rm -f conftest.er1
9389   cat conftest.err >&5
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); } &&
9392          { ac_try='test -z "$ac_c_werror_flag"
9393                          || test ! -s conftest.err'
9394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395   (eval $ac_try) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); }; } &&
9399          { ac_try='test -s conftest$ac_exeext'
9400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401   (eval $ac_try) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; }; then
9405   eval "$as_ac_var=yes"
9406 else
9407   echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 eval "$as_ac_var=no"
9411 fi
9412 rm -f conftest.err conftest.$ac_objext \
9413       conftest$ac_exeext conftest.$ac_ext
9414 fi
9415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9417 if test `eval echo '${'$as_ac_var'}'` = yes; then
9418   cat >>confdefs.h <<_ACEOF
9419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9420 _ACEOF
9421  break
9422 fi
9423 done
9424
9425
9426
9427 for ac_func in memcpy bcopy
9428 do
9429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9430 echo "$as_me:$LINENO: checking for $ac_func" >&5
9431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9432 if eval "test \"\${$as_ac_var+set}\" = set"; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435   cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9443 #define $ac_func innocuous_$ac_func
9444
9445 /* System header to define __stub macros and hopefully few prototypes,
9446     which can conflict with char $ac_func (); below.
9447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9448     <limits.h> exists even on freestanding compilers.  */
9449
9450 #ifdef __STDC__
9451 # include <limits.h>
9452 #else
9453 # include <assert.h>
9454 #endif
9455
9456 #undef $ac_func
9457
9458 /* Override any gcc2 internal prototype to avoid an error.  */
9459 #ifdef __cplusplus
9460 extern "C"
9461 {
9462 #endif
9463 /* We use char because int might match the return type of a gcc2
9464    builtin and then its argument prototype would still apply.  */
9465 char $ac_func ();
9466 /* The GNU C library defines this for functions which it implements
9467     to always fail with ENOSYS.  Some functions are actually named
9468     something starting with __ and the normal name is an alias.  */
9469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9470 choke me
9471 #else
9472 char (*f) () = $ac_func;
9473 #endif
9474 #ifdef __cplusplus
9475 }
9476 #endif
9477
9478 int
9479 main ()
9480 {
9481 return f != $ac_func;
9482   ;
9483   return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488   (eval $ac_link) 2>conftest.er1
9489   ac_status=$?
9490   grep -v '^ *+' conftest.er1 >conftest.err
9491   rm -f conftest.er1
9492   cat conftest.err >&5
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } &&
9495          { ac_try='test -z "$ac_c_werror_flag"
9496                          || test ! -s conftest.err'
9497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498   (eval $ac_try) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; } &&
9502          { ac_try='test -s conftest$ac_exeext'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; }; then
9508   eval "$as_ac_var=yes"
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513 eval "$as_ac_var=no"
9514 fi
9515 rm -f conftest.err conftest.$ac_objext \
9516       conftest$ac_exeext conftest.$ac_ext
9517 fi
9518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9520 if test `eval echo '${'$as_ac_var'}'` = yes; then
9521   cat >>confdefs.h <<_ACEOF
9522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9523 _ACEOF
9524  break
9525 fi
9526 done
9527
9528
9529
9530 for ac_func in memmove strcmp
9531 do
9532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9533 echo "$as_me:$LINENO: checking for $ac_func" >&5
9534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9535 if eval "test \"\${$as_ac_var+set}\" = set"; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9546 #define $ac_func innocuous_$ac_func
9547
9548 /* System header to define __stub macros and hopefully few prototypes,
9549     which can conflict with char $ac_func (); below.
9550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551     <limits.h> exists even on freestanding compilers.  */
9552
9553 #ifdef __STDC__
9554 # include <limits.h>
9555 #else
9556 # include <assert.h>
9557 #endif
9558
9559 #undef $ac_func
9560
9561 /* Override any gcc2 internal prototype to avoid an error.  */
9562 #ifdef __cplusplus
9563 extern "C"
9564 {
9565 #endif
9566 /* We use char because int might match the return type of a gcc2
9567    builtin and then its argument prototype would still apply.  */
9568 char $ac_func ();
9569 /* The GNU C library defines this for functions which it implements
9570     to always fail with ENOSYS.  Some functions are actually named
9571     something starting with __ and the normal name is an alias.  */
9572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9573 choke me
9574 #else
9575 char (*f) () = $ac_func;
9576 #endif
9577 #ifdef __cplusplus
9578 }
9579 #endif
9580
9581 int
9582 main ()
9583 {
9584 return f != $ac_func;
9585   ;
9586   return 0;
9587 }
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591   (eval $ac_link) 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -z "$ac_c_werror_flag"
9599                          || test ! -s conftest.err'
9600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601   (eval $ac_try) 2>&5
9602   ac_status=$?
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); }; } &&
9605          { ac_try='test -s conftest$ac_exeext'
9606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607   (eval $ac_try) 2>&5
9608   ac_status=$?
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); }; }; then
9611   eval "$as_ac_var=yes"
9612 else
9613   echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 eval "$as_ac_var=no"
9617 fi
9618 rm -f conftest.err conftest.$ac_objext \
9619       conftest$ac_exeext conftest.$ac_ext
9620 fi
9621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9623 if test `eval echo '${'$as_ac_var'}'` = yes; then
9624   cat >>confdefs.h <<_ACEOF
9625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9626 _ACEOF
9627
9628 fi
9629 done
9630
9631
9632
9633
9634 for ac_func in closedir opendir readdir
9635 do
9636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9637 echo "$as_me:$LINENO: checking for $ac_func" >&5
9638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9639 if eval "test \"\${$as_ac_var+set}\" = set"; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9650 #define $ac_func innocuous_$ac_func
9651
9652 /* System header to define __stub macros and hopefully few prototypes,
9653     which can conflict with char $ac_func (); below.
9654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9655     <limits.h> exists even on freestanding compilers.  */
9656
9657 #ifdef __STDC__
9658 # include <limits.h>
9659 #else
9660 # include <assert.h>
9661 #endif
9662
9663 #undef $ac_func
9664
9665 /* Override any gcc2 internal prototype to avoid an error.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 {
9669 #endif
9670 /* We use char because int might match the return type of a gcc2
9671    builtin and then its argument prototype would still apply.  */
9672 char $ac_func ();
9673 /* The GNU C library defines this for functions which it implements
9674     to always fail with ENOSYS.  Some functions are actually named
9675     something starting with __ and the normal name is an alias.  */
9676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9677 choke me
9678 #else
9679 char (*f) () = $ac_func;
9680 #endif
9681 #ifdef __cplusplus
9682 }
9683 #endif
9684
9685 int
9686 main ()
9687 {
9688 return f != $ac_func;
9689   ;
9690   return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695   (eval $ac_link) 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -z "$ac_c_werror_flag"
9703                          || test ! -s conftest.err'
9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705   (eval $ac_try) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; } &&
9709          { ac_try='test -s conftest$ac_exeext'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715   eval "$as_ac_var=yes"
9716 else
9717   echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 eval "$as_ac_var=no"
9721 fi
9722 rm -f conftest.err conftest.$ac_objext \
9723       conftest$ac_exeext conftest.$ac_ext
9724 fi
9725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9727 if test `eval echo '${'$as_ac_var'}'` = yes; then
9728   cat >>confdefs.h <<_ACEOF
9729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9730 _ACEOF
9731
9732 fi
9733 done
9734
9735
9736 # Check whether --enable-shared or --disable-shared was given.
9737 if test "${enable_shared+set}" = set; then
9738   enableval="$enable_shared"
9739   p=${PACKAGE-default}
9740     case $enableval in
9741     yes) enable_shared=yes ;;
9742     no) enable_shared=no ;;
9743     *)
9744       enable_shared=no
9745       # Look at the argument we got.  We use all the common list separators.
9746       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9747       for pkg in $enableval; do
9748         IFS="$lt_save_ifs"
9749         if test "X$pkg" = "X$p"; then
9750           enable_shared=yes
9751         fi
9752       done
9753       IFS="$lt_save_ifs"
9754       ;;
9755     esac
9756 else
9757   enable_shared=yes
9758 fi;
9759
9760 # Check whether --enable-static or --disable-static was given.
9761 if test "${enable_static+set}" = set; then
9762   enableval="$enable_static"
9763   p=${PACKAGE-default}
9764     case $enableval in
9765     yes) enable_static=yes ;;
9766     no) enable_static=no ;;
9767     *)
9768      enable_static=no
9769       # Look at the argument we got.  We use all the common list separators.
9770       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9771       for pkg in $enableval; do
9772         IFS="$lt_save_ifs"
9773         if test "X$pkg" = "X$p"; then
9774           enable_static=yes
9775         fi
9776       done
9777       IFS="$lt_save_ifs"
9778       ;;
9779     esac
9780 else
9781   enable_static=yes
9782 fi;
9783
9784 # Check whether --enable-fast-install or --disable-fast-install was given.
9785 if test "${enable_fast_install+set}" = set; then
9786   enableval="$enable_fast_install"
9787   p=${PACKAGE-default}
9788     case $enableval in
9789     yes) enable_fast_install=yes ;;
9790     no) enable_fast_install=no ;;
9791     *)
9792       enable_fast_install=no
9793       # Look at the argument we got.  We use all the common list separators.
9794       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9795       for pkg in $enableval; do
9796         IFS="$lt_save_ifs"
9797         if test "X$pkg" = "X$p"; then
9798           enable_fast_install=yes
9799         fi
9800       done
9801       IFS="$lt_save_ifs"
9802       ;;
9803     esac
9804 else
9805   enable_fast_install=yes
9806 fi;
9807
9808 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9809 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9810 if test "${lt_cv_path_SED+set}" = set; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   # Loop through the user's path and test for sed and gsed.
9814 # Then use that list of sed's as ones to test for truncation.
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 for as_dir in $PATH
9817 do
9818   IFS=$as_save_IFS
9819   test -z "$as_dir" && as_dir=.
9820   for lt_ac_prog in sed gsed; do
9821     for ac_exec_ext in '' $ac_executable_extensions; do
9822       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9823         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9824       fi
9825     done
9826   done
9827 done
9828 lt_ac_max=0
9829 lt_ac_count=0
9830 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9831 # along with /bin/sed that truncates output.
9832 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9833   test ! -f $lt_ac_sed && break
9834   cat /dev/null > conftest.in
9835   lt_ac_count=0
9836   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9837   # Check for GNU sed and select it if it is found.
9838   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9839     lt_cv_path_SED=$lt_ac_sed
9840     break
9841   fi
9842   while true; do
9843     cat conftest.in conftest.in >conftest.tmp
9844     mv conftest.tmp conftest.in
9845     cp conftest.in conftest.nl
9846     echo >>conftest.nl
9847     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9848     cmp -s conftest.out conftest.nl || break
9849     # 10000 chars as input seems more than enough
9850     test $lt_ac_count -gt 10 && break
9851     lt_ac_count=`expr $lt_ac_count + 1`
9852     if test $lt_ac_count -gt $lt_ac_max; then
9853       lt_ac_max=$lt_ac_count
9854       lt_cv_path_SED=$lt_ac_sed
9855     fi
9856   done
9857 done
9858
9859 fi
9860
9861 SED=$lt_cv_path_SED
9862 echo "$as_me:$LINENO: result: $SED" >&5
9863 echo "${ECHO_T}$SED" >&6
9864
9865
9866 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9867 if test "${with_gnu_ld+set}" = set; then
9868   withval="$with_gnu_ld"
9869   test "$withval" = no || with_gnu_ld=yes
9870 else
9871   with_gnu_ld=no
9872 fi;
9873 ac_prog=ld
9874 if test "$GCC" = yes; then
9875   # Check if gcc -print-prog-name=ld gives a path.
9876   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9877 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9878   case $host in
9879   *-*-mingw*)
9880     # gcc leaves a trailing carriage return which upsets mingw
9881     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9882   *)
9883     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9884   esac
9885   case $ac_prog in
9886     # Accept absolute paths.
9887     [\\/]* | ?:[\\/]*)
9888       re_direlt='/[^/][^/]*/\.\./'
9889       # Canonicalize the pathname of ld
9890       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9891       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9892         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9893       done
9894       test -z "$LD" && LD="$ac_prog"
9895       ;;
9896   "")
9897     # If it fails, then pretend we aren't using GCC.
9898     ac_prog=ld
9899     ;;
9900   *)
9901     # If it is relative, then search for the first ld in PATH.
9902     with_gnu_ld=unknown
9903     ;;
9904   esac
9905 elif test "$with_gnu_ld" = yes; then
9906   echo "$as_me:$LINENO: checking for GNU ld" >&5
9907 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9908 else
9909   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9910 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9911 fi
9912 if test "${lt_cv_path_LD+set}" = set; then
9913   echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915   if test -z "$LD"; then
9916   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9917   for ac_dir in $PATH; do
9918     IFS="$lt_save_ifs"
9919     test -z "$ac_dir" && ac_dir=.
9920     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9921       lt_cv_path_LD="$ac_dir/$ac_prog"
9922       # Check to see if the program is GNU ld.  I'd rather use --version,
9923       # but apparently some GNU ld's only accept -v.
9924       # Break only if it was the GNU/non-GNU ld that we prefer.
9925       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9926       *GNU* | *'with BFD'*)
9927         test "$with_gnu_ld" != no && break
9928         ;;
9929       *)
9930         test "$with_gnu_ld" != yes && break
9931         ;;
9932       esac
9933     fi
9934   done
9935   IFS="$lt_save_ifs"
9936 else
9937   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9938 fi
9939 fi
9940
9941 LD="$lt_cv_path_LD"
9942 if test -n "$LD"; then
9943   echo "$as_me:$LINENO: result: $LD" >&5
9944 echo "${ECHO_T}$LD" >&6
9945 else
9946   echo "$as_me:$LINENO: result: no" >&5
9947 echo "${ECHO_T}no" >&6
9948 fi
9949 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9950 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9951    { (exit 1); exit 1; }; }
9952 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9953 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9954 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9958 case `$LD -v 2>&1 </dev/null` in
9959 *GNU* | *'with BFD'*)
9960   lt_cv_prog_gnu_ld=yes
9961   ;;
9962 *)
9963   lt_cv_prog_gnu_ld=no
9964   ;;
9965 esac
9966 fi
9967 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9968 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9969 with_gnu_ld=$lt_cv_prog_gnu_ld
9970
9971
9972 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9973 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9974 if test "${lt_cv_ld_reload_flag+set}" = set; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977   lt_cv_ld_reload_flag='-r'
9978 fi
9979 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9980 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9981 reload_flag=$lt_cv_ld_reload_flag
9982 case $reload_flag in
9983 "" | " "*) ;;
9984 *) reload_flag=" $reload_flag" ;;
9985 esac
9986 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9987 case $host_os in
9988   darwin*)
9989     if test "$GCC" = yes; then
9990       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9991     else
9992       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9993     fi
9994     ;;
9995 esac
9996
9997 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9998 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9999 if test "${lt_cv_deplibs_check_method+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002   lt_cv_file_magic_cmd='$MAGIC_CMD'
10003 lt_cv_file_magic_test_file=
10004 lt_cv_deplibs_check_method='unknown'
10005 # Need to set the preceding variable on all platforms that support
10006 # interlibrary dependencies.
10007 # 'none' -- dependencies not supported.
10008 # `unknown' -- same as none, but documents that we really don't know.
10009 # 'pass_all' -- all dependencies passed with no checks.
10010 # 'test_compile' -- check by making test program.
10011 # 'file_magic [[regex]]' -- check by looking for files in library path
10012 # which responds to the $file_magic_cmd with a given extended regex.
10013 # If you have `file' or equivalent on your system and you're not sure
10014 # whether `pass_all' will *always* work, you probably want this one.
10015
10016 case $host_os in
10017 aix4* | aix5*)
10018   lt_cv_deplibs_check_method=pass_all
10019   ;;
10020
10021 beos*)
10022   lt_cv_deplibs_check_method=pass_all
10023   ;;
10024
10025 bsdi[45]*)
10026   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10027   lt_cv_file_magic_cmd='/usr/bin/file -L'
10028   lt_cv_file_magic_test_file=/shlib/libc.so
10029   ;;
10030
10031 cygwin*)
10032   # func_win32_libid is a shell function defined in ltmain.sh
10033   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10034   lt_cv_file_magic_cmd='func_win32_libid'
10035   ;;
10036
10037 mingw* | pw32*)
10038   # Base MSYS/MinGW do not provide the 'file' command needed by
10039   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10040   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10041   lt_cv_file_magic_cmd='$OBJDUMP -f'
10042   ;;
10043
10044 darwin* | rhapsody*)
10045   lt_cv_deplibs_check_method=pass_all
10046   ;;
10047
10048 freebsd* | kfreebsd*-gnu)
10049   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10050     case $host_cpu in
10051     i*86 )
10052       # Not sure whether the presence of OpenBSD here was a mistake.
10053       # Let's accept both of them until this is cleared up.
10054       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10055       lt_cv_file_magic_cmd=/usr/bin/file
10056       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10057       ;;
10058     esac
10059   else
10060     lt_cv_deplibs_check_method=pass_all
10061   fi
10062   ;;
10063
10064 gnu*)
10065   lt_cv_deplibs_check_method=pass_all
10066   ;;
10067
10068 hpux10.20* | hpux11*)
10069   lt_cv_file_magic_cmd=/usr/bin/file
10070   case "$host_cpu" in
10071   ia64*)
10072     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10073     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10074     ;;
10075   hppa*64*)
10076     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]'
10077     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10078     ;;
10079   *)
10080     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10081     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10082     ;;
10083   esac
10084   ;;
10085
10086 irix5* | irix6* | nonstopux*)
10087   case $LD in
10088   *-32|*"-32 ") libmagic=32-bit;;
10089   *-n32|*"-n32 ") libmagic=N32;;
10090   *-64|*"-64 ") libmagic=64-bit;;
10091   *) libmagic=never-match;;
10092   esac
10093   lt_cv_deplibs_check_method=pass_all
10094   ;;
10095
10096 # This must be Linux ELF.
10097 linux*)
10098   lt_cv_deplibs_check_method=pass_all
10099   ;;
10100
10101 netbsd*)
10102   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10103     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10104   else
10105     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10106   fi
10107   ;;
10108
10109 newos6*)
10110   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10111   lt_cv_file_magic_cmd=/usr/bin/file
10112   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10113   ;;
10114
10115 nto-qnx*)
10116   lt_cv_deplibs_check_method=unknown
10117   ;;
10118
10119 openbsd*)
10120   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10121     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10122   else
10123     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10124   fi
10125   ;;
10126
10127 osf3* | osf4* | osf5*)
10128   lt_cv_deplibs_check_method=pass_all
10129   ;;
10130
10131 sco3.2v5*)
10132   lt_cv_deplibs_check_method=pass_all
10133   ;;
10134
10135 solaris*)
10136   lt_cv_deplibs_check_method=pass_all
10137   ;;
10138
10139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10140   case $host_vendor in
10141   motorola)
10142     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]'
10143     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10144     ;;
10145   ncr)
10146     lt_cv_deplibs_check_method=pass_all
10147     ;;
10148   sequent)
10149     lt_cv_file_magic_cmd='/bin/file'
10150     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10151     ;;
10152   sni)
10153     lt_cv_file_magic_cmd='/bin/file'
10154     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10155     lt_cv_file_magic_test_file=/lib/libc.so
10156     ;;
10157   siemens)
10158     lt_cv_deplibs_check_method=pass_all
10159     ;;
10160   esac
10161   ;;
10162
10163 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10164   lt_cv_deplibs_check_method=pass_all
10165   ;;
10166 esac
10167
10168 fi
10169 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10170 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10171 file_magic_cmd=$lt_cv_file_magic_cmd
10172 deplibs_check_method=$lt_cv_deplibs_check_method
10173 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10174
10175
10176
10177 # If no C compiler was specified, use CC.
10178 LTCC=${LTCC-"$CC"}
10179
10180 # Allow CC to be a program name with arguments.
10181 compiler=$CC
10182
10183 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10184 if test "${enable_libtool_lock+set}" = set; then
10185   enableval="$enable_libtool_lock"
10186
10187 fi;
10188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10189
10190 # Some flags need to be propagated to the compiler or linker for good
10191 # libtool support.
10192 case $host in
10193 ia64-*-hpux*)
10194   # Find out which ABI we are using.
10195   echo 'int i;' > conftest.$ac_ext
10196   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197   (eval $ac_compile) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; then
10201     case `/usr/bin/file conftest.$ac_objext` in
10202     *ELF-32*)
10203       HPUX_IA64_MODE="32"
10204       ;;
10205     *ELF-64*)
10206       HPUX_IA64_MODE="64"
10207       ;;
10208     esac
10209   fi
10210   rm -rf conftest*
10211   ;;
10212 *-*-irix6*)
10213   # Find out which ABI we are using.
10214   echo '#line 10214 "configure"' > conftest.$ac_ext
10215   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216   (eval $ac_compile) 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; then
10220    if test "$lt_cv_prog_gnu_ld" = yes; then
10221     case `/usr/bin/file conftest.$ac_objext` in
10222     *32-bit*)
10223       LD="${LD-ld} -melf32bsmip"
10224       ;;
10225     *N32*)
10226       LD="${LD-ld} -melf32bmipn32"
10227       ;;
10228     *64-bit*)
10229       LD="${LD-ld} -melf64bmip"
10230       ;;
10231     esac
10232    else
10233     case `/usr/bin/file conftest.$ac_objext` in
10234     *32-bit*)
10235       LD="${LD-ld} -32"
10236       ;;
10237     *N32*)
10238       LD="${LD-ld} -n32"
10239       ;;
10240     *64-bit*)
10241       LD="${LD-ld} -64"
10242       ;;
10243     esac
10244    fi
10245   fi
10246   rm -rf conftest*
10247   ;;
10248
10249 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10250   # Find out which ABI we are using.
10251   echo 'int i;' > conftest.$ac_ext
10252   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253   (eval $ac_compile) 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; then
10257     case "`/usr/bin/file conftest.o`" in
10258     *32-bit*)
10259       case $host in
10260         x86_64-*linux*)
10261           LD="${LD-ld} -m elf_i386"
10262           ;;
10263         ppc64-*linux*|powerpc64-*linux*)
10264           LD="${LD-ld} -m elf32ppclinux"
10265           ;;
10266         s390x-*linux*)
10267           LD="${LD-ld} -m elf_s390"
10268           ;;
10269         sparc64-*linux*)
10270           LD="${LD-ld} -m elf32_sparc"
10271           ;;
10272       esac
10273       ;;
10274     *64-bit*)
10275       case $host in
10276         x86_64-*linux*)
10277           LD="${LD-ld} -m elf_x86_64"
10278           ;;
10279         ppc*-*linux*|powerpc*-*linux*)
10280           LD="${LD-ld} -m elf64ppc"
10281           ;;
10282         s390*-*linux*)
10283           LD="${LD-ld} -m elf64_s390"
10284           ;;
10285         sparc*-*linux*)
10286           LD="${LD-ld} -m elf64_sparc"
10287           ;;
10288       esac
10289       ;;
10290     esac
10291   fi
10292   rm -rf conftest*
10293   ;;
10294
10295 *-*-sco3.2v5*)
10296   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10297   SAVE_CFLAGS="$CFLAGS"
10298   CFLAGS="$CFLAGS -belf"
10299   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10300 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10301 if test "${lt_cv_cc_needs_belf+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   ac_ext=c
10305 ac_cpp='$CPP $CPPFLAGS'
10306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10309
10310      cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h.  */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h.  */
10316
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320   (eval $ac_link) 2>conftest.er1
10321   ac_status=$?
10322   grep -v '^ *+' conftest.er1 >conftest.err
10323   rm -f conftest.er1
10324   cat conftest.err >&5
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } &&
10327          { ac_try='test -z "$ac_c_werror_flag"
10328                          || test ! -s conftest.err'
10329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330   (eval $ac_try) 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); }; } &&
10334          { ac_try='test -s conftest$ac_exeext'
10335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336   (eval $ac_try) 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); }; }; then
10340   lt_cv_cc_needs_belf=yes
10341 else
10342   echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 lt_cv_cc_needs_belf=no
10346 fi
10347 rm -f conftest.err conftest.$ac_objext \
10348       conftest$ac_exeext conftest.$ac_ext
10349      ac_ext=c
10350 ac_cpp='$CPP $CPPFLAGS'
10351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10354
10355 fi
10356 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10357 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10358   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10359     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10360     CFLAGS="$SAVE_CFLAGS"
10361   fi
10362   ;;
10363
10364 esac
10365
10366 need_locks="$enable_libtool_lock"
10367
10368
10369
10370
10371 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10372     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10373     (test "X$CXX" != "Xg++"))) ; then
10374   ac_ext=cc
10375 ac_cpp='$CXXCPP $CPPFLAGS'
10376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10379 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10380 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10381 if test -z "$CXXCPP"; then
10382   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385       # Double quotes because CXXCPP needs to be expanded
10386     for CXXCPP in "$CXX -E" "/lib/cpp"
10387     do
10388       ac_preproc_ok=false
10389 for ac_cxx_preproc_warn_flag in '' yes
10390 do
10391   # Use a header file that comes with gcc, so configuring glibc
10392   # with a fresh cross-compiler works.
10393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394   # <limits.h> exists even on freestanding compilers.
10395   # On the NeXT, cc -E runs the code through the compiler's parser,
10396   # not just through cpp. "Syntax error" is here to catch this case.
10397   cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h.  */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h.  */
10403 #ifdef __STDC__
10404 # include <limits.h>
10405 #else
10406 # include <assert.h>
10407 #endif
10408                      Syntax error
10409 _ACEOF
10410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10412   ac_status=$?
10413   grep -v '^ *+' conftest.er1 >conftest.err
10414   rm -f conftest.er1
10415   cat conftest.err >&5
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } >/dev/null; then
10418   if test -s conftest.err; then
10419     ac_cpp_err=$ac_cxx_preproc_warn_flag
10420     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10421   else
10422     ac_cpp_err=
10423   fi
10424 else
10425   ac_cpp_err=yes
10426 fi
10427 if test -z "$ac_cpp_err"; then
10428   :
10429 else
10430   echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10432
10433   # Broken: fails on valid input.
10434 continue
10435 fi
10436 rm -f conftest.err conftest.$ac_ext
10437
10438   # OK, works on sane cases.  Now check whether non-existent headers
10439   # can be detected and how.
10440   cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h.  */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h.  */
10446 #include <ac_nonexistent.h>
10447 _ACEOF
10448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } >/dev/null; then
10456   if test -s conftest.err; then
10457     ac_cpp_err=$ac_cxx_preproc_warn_flag
10458     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10459   else
10460     ac_cpp_err=
10461   fi
10462 else
10463   ac_cpp_err=yes
10464 fi
10465 if test -z "$ac_cpp_err"; then
10466   # Broken: success on invalid input.
10467 continue
10468 else
10469   echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472   # Passes both tests.
10473 ac_preproc_ok=:
10474 break
10475 fi
10476 rm -f conftest.err conftest.$ac_ext
10477
10478 done
10479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10480 rm -f conftest.err conftest.$ac_ext
10481 if $ac_preproc_ok; then
10482   break
10483 fi
10484
10485     done
10486     ac_cv_prog_CXXCPP=$CXXCPP
10487
10488 fi
10489   CXXCPP=$ac_cv_prog_CXXCPP
10490 else
10491   ac_cv_prog_CXXCPP=$CXXCPP
10492 fi
10493 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10494 echo "${ECHO_T}$CXXCPP" >&6
10495 ac_preproc_ok=false
10496 for ac_cxx_preproc_warn_flag in '' yes
10497 do
10498   # Use a header file that comes with gcc, so configuring glibc
10499   # with a fresh cross-compiler works.
10500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10501   # <limits.h> exists even on freestanding compilers.
10502   # On the NeXT, cc -E runs the code through the compiler's parser,
10503   # not just through cpp. "Syntax error" is here to catch this case.
10504   cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510 #ifdef __STDC__
10511 # include <limits.h>
10512 #else
10513 # include <assert.h>
10514 #endif
10515                      Syntax error
10516 _ACEOF
10517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } >/dev/null; then
10525   if test -s conftest.err; then
10526     ac_cpp_err=$ac_cxx_preproc_warn_flag
10527     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10528   else
10529     ac_cpp_err=
10530   fi
10531 else
10532   ac_cpp_err=yes
10533 fi
10534 if test -z "$ac_cpp_err"; then
10535   :
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540   # Broken: fails on valid input.
10541 continue
10542 fi
10543 rm -f conftest.err conftest.$ac_ext
10544
10545   # OK, works on sane cases.  Now check whether non-existent headers
10546   # can be detected and how.
10547   cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h.  */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h.  */
10553 #include <ac_nonexistent.h>
10554 _ACEOF
10555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10557   ac_status=$?
10558   grep -v '^ *+' conftest.er1 >conftest.err
10559   rm -f conftest.er1
10560   cat conftest.err >&5
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); } >/dev/null; then
10563   if test -s conftest.err; then
10564     ac_cpp_err=$ac_cxx_preproc_warn_flag
10565     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10566   else
10567     ac_cpp_err=
10568   fi
10569 else
10570   ac_cpp_err=yes
10571 fi
10572 if test -z "$ac_cpp_err"; then
10573   # Broken: success on invalid input.
10574 continue
10575 else
10576   echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10578
10579   # Passes both tests.
10580 ac_preproc_ok=:
10581 break
10582 fi
10583 rm -f conftest.err conftest.$ac_ext
10584
10585 done
10586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10587 rm -f conftest.err conftest.$ac_ext
10588 if $ac_preproc_ok; then
10589   :
10590 else
10591   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10592 See \`config.log' for more details." >&5
10593 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10594 See \`config.log' for more details." >&2;}
10595    { (exit 1); exit 1; }; }
10596 fi
10597
10598 ac_ext=cc
10599 ac_cpp='$CXXCPP $CPPFLAGS'
10600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10603
10604 fi
10605
10606
10607 ac_ext=f
10608 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10609 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10610 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10611 if test -n "$ac_tool_prefix"; then
10612   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10613   do
10614     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10616 echo "$as_me:$LINENO: checking for $ac_word" >&5
10617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10618 if test "${ac_cv_prog_F77+set}" = set; then
10619   echo $ECHO_N "(cached) $ECHO_C" >&6
10620 else
10621   if test -n "$F77"; then
10622   ac_cv_prog_F77="$F77" # Let the user override the test.
10623 else
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10626 do
10627   IFS=$as_save_IFS
10628   test -z "$as_dir" && as_dir=.
10629   for ac_exec_ext in '' $ac_executable_extensions; do
10630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10631     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10633     break 2
10634   fi
10635 done
10636 done
10637
10638 fi
10639 fi
10640 F77=$ac_cv_prog_F77
10641 if test -n "$F77"; then
10642   echo "$as_me:$LINENO: result: $F77" >&5
10643 echo "${ECHO_T}$F77" >&6
10644 else
10645   echo "$as_me:$LINENO: result: no" >&5
10646 echo "${ECHO_T}no" >&6
10647 fi
10648
10649     test -n "$F77" && break
10650   done
10651 fi
10652 if test -z "$F77"; then
10653   ac_ct_F77=$F77
10654   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10655 do
10656   # Extract the first word of "$ac_prog", so it can be a program name with args.
10657 set dummy $ac_prog; ac_word=$2
10658 echo "$as_me:$LINENO: checking for $ac_word" >&5
10659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   if test -n "$ac_ct_F77"; then
10664   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10665 else
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10668 do
10669   IFS=$as_save_IFS
10670   test -z "$as_dir" && as_dir=.
10671   for ac_exec_ext in '' $ac_executable_extensions; do
10672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673     ac_cv_prog_ac_ct_F77="$ac_prog"
10674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10675     break 2
10676   fi
10677 done
10678 done
10679
10680 fi
10681 fi
10682 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10683 if test -n "$ac_ct_F77"; then
10684   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10685 echo "${ECHO_T}$ac_ct_F77" >&6
10686 else
10687   echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6
10689 fi
10690
10691   test -n "$ac_ct_F77" && break
10692 done
10693
10694   F77=$ac_ct_F77
10695 fi
10696
10697
10698 # Provide some information about the compiler.
10699 echo "$as_me:10699:" \
10700      "checking for Fortran 77 compiler version" >&5
10701 ac_compiler=`set X $ac_compile; echo $2`
10702 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10703   (eval $ac_compiler --version </dev/null >&5) 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); }
10707 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10708   (eval $ac_compiler -v </dev/null >&5) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }
10712 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10713   (eval $ac_compiler -V </dev/null >&5) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }
10717 rm -f a.out
10718
10719 # If we don't use `.F' as extension, the preprocessor is not run on the
10720 # input file.  (Note that this only needs to work for GNU compilers.)
10721 ac_save_ext=$ac_ext
10722 ac_ext=F
10723 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10724 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10725 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10726   echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728   cat >conftest.$ac_ext <<_ACEOF
10729       program main
10730 #ifndef __GNUC__
10731        choke me
10732 #endif
10733
10734       end
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738   (eval $ac_compile) 2>conftest.er1
10739   ac_status=$?
10740   grep -v '^ *+' conftest.er1 >conftest.err
10741   rm -f conftest.er1
10742   cat conftest.err >&5
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); } &&
10745          { ac_try='test -z "$ac_f77_werror_flag"
10746                          || test ! -s conftest.err'
10747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748   (eval $ac_try) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); }; } &&
10752          { ac_try='test -s conftest.$ac_objext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   ac_compiler_gnu=yes
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 ac_compiler_gnu=no
10764 fi
10765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10766 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10767
10768 fi
10769 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10770 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10771 ac_ext=$ac_save_ext
10772 ac_test_FFLAGS=${FFLAGS+set}
10773 ac_save_FFLAGS=$FFLAGS
10774 FFLAGS=
10775 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10776 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10777 if test "${ac_cv_prog_f77_g+set}" = set; then
10778   echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780   FFLAGS=-g
10781 cat >conftest.$ac_ext <<_ACEOF
10782       program main
10783
10784       end
10785 _ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788   (eval $ac_compile) 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } &&
10795          { ac_try='test -z "$ac_f77_werror_flag"
10796                          || test ! -s conftest.err'
10797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798   (eval $ac_try) 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; } &&
10802          { ac_try='test -s conftest.$ac_objext'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ac_cv_prog_f77_g=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 ac_cv_prog_f77_g=no
10814 fi
10815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10816
10817 fi
10818 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10819 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10820 if test "$ac_test_FFLAGS" = set; then
10821   FFLAGS=$ac_save_FFLAGS
10822 elif test $ac_cv_prog_f77_g = yes; then
10823   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10824     FFLAGS="-g -O2"
10825   else
10826     FFLAGS="-g"
10827   fi
10828 else
10829   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10830     FFLAGS="-O2"
10831   else
10832     FFLAGS=
10833   fi
10834 fi
10835
10836 G77=`test $ac_compiler_gnu = yes && echo yes`
10837 ac_ext=c
10838 ac_cpp='$CPP $CPPFLAGS'
10839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10842
10843
10844
10845 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10846
10847 # find the maximum length of command line arguments
10848 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10849 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10850 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853     i=0
10854   teststring="ABCD"
10855
10856   case $build_os in
10857   msdosdjgpp*)
10858     # On DJGPP, this test can blow up pretty badly due to problems in libc
10859     # (any single argument exceeding 2000 bytes causes a buffer overrun
10860     # during glob expansion).  Even if it were fixed, the result of this
10861     # check would be larger than it should be.
10862     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10863     ;;
10864
10865   gnu*)
10866     # Under GNU Hurd, this test is not required because there is
10867     # no limit to the length of command line arguments.
10868     # Libtool will interpret -1 as no limit whatsoever
10869     lt_cv_sys_max_cmd_len=-1;
10870     ;;
10871
10872   cygwin* | mingw*)
10873     # On Win9x/ME, this test blows up -- it succeeds, but takes
10874     # about 5 minutes as the teststring grows exponentially.
10875     # Worse, since 9x/ME are not pre-emptively multitasking,
10876     # you end up with a "frozen" computer, even though with patience
10877     # the test eventually succeeds (with a max line length of 256k).
10878     # Instead, let's just punt: use the minimum linelength reported by
10879     # all of the supported platforms: 8192 (on NT/2K/XP).
10880     lt_cv_sys_max_cmd_len=8192;
10881     ;;
10882
10883   amigaos*)
10884     # On AmigaOS with pdksh, this test takes hours, literally.
10885     # So we just punt and use a minimum line length of 8192.
10886     lt_cv_sys_max_cmd_len=8192;
10887     ;;
10888
10889   netbsd* | freebsd* | openbsd* | darwin* )
10890     # This has been around since 386BSD, at least.  Likely further.
10891     if test -x /sbin/sysctl; then
10892       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10893     elif test -x /usr/sbin/sysctl; then
10894       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10895     else
10896       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10897     fi
10898     # And add a safety zone
10899     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10900     ;;
10901
10902  *)
10903     # If test is not a shell built-in, we'll probably end up computing a
10904     # maximum length that is only half of the actual maximum length, but
10905     # we can't tell.
10906     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10907     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10908                = "XX$teststring") >/dev/null 2>&1 &&
10909             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10910             lt_cv_sys_max_cmd_len=$new_result &&
10911             test $i != 17 # 1/2 MB should be enough
10912     do
10913       i=`expr $i + 1`
10914       teststring=$teststring$teststring
10915     done
10916     teststring=
10917     # Add a significant safety factor because C++ compilers can tack on massive
10918     # amounts of additional arguments before passing them to the linker.
10919     # It appears as though 1/2 is a usable value.
10920     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10921     ;;
10922   esac
10923
10924 fi
10925
10926 if test -n $lt_cv_sys_max_cmd_len ; then
10927   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10928 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10929 else
10930   echo "$as_me:$LINENO: result: none" >&5
10931 echo "${ECHO_T}none" >&6
10932 fi
10933
10934
10935
10936
10937 # Check for command to grab the raw symbol name followed by C symbol from nm.
10938 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10939 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10940 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943
10944 # These are sane defaults that work on at least a few old systems.
10945 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10946
10947 # Character class describing NM global symbol codes.
10948 symcode='[BCDEGRST]'
10949
10950 # Regexp to match symbols that can be accessed directly from C.
10951 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10952
10953 # Transform the above into a raw symbol and a C symbol.
10954 symxfrm='\1 \2\3 \3'
10955
10956 # Transform an extracted symbol line into a proper C declaration
10957 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10958
10959 # Transform an extracted symbol line into symbol name and symbol address
10960 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'"
10961
10962 # Define system-specific variables.
10963 case $host_os in
10964 aix*)
10965   symcode='[BCDT]'
10966   ;;
10967 cygwin* | mingw* | pw32*)
10968   symcode='[ABCDGISTW]'
10969   ;;
10970 hpux*) # Its linker distinguishes data from code symbols
10971   if test "$host_cpu" = ia64; then
10972     symcode='[ABCDEGRST]'
10973   fi
10974   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10975   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'"
10976   ;;
10977 linux*)
10978   if test "$host_cpu" = ia64; then
10979     symcode='[ABCDGIRSTW]'
10980     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10981     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'"
10982   fi
10983   ;;
10984 irix* | nonstopux*)
10985   symcode='[BCDEGRST]'
10986   ;;
10987 osf*)
10988   symcode='[BCDEGQRST]'
10989   ;;
10990 solaris* | sysv5*)
10991   symcode='[BDRT]'
10992   ;;
10993 sysv4)
10994   symcode='[DFNSTU]'
10995   ;;
10996 esac
10997
10998 # Handle CRLF in mingw tool chain
10999 opt_cr=
11000 case $build_os in
11001 mingw*)
11002   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11003   ;;
11004 esac
11005
11006 # If we're using GNU nm, then use its standard symbol codes.
11007 case `$NM -V 2>&1` in
11008 *GNU* | *'with BFD'*)
11009   symcode='[ABCDGIRSTW]' ;;
11010 esac
11011
11012 # Try without a prefix undercore, then with it.
11013 for ac_symprfx in "" "_"; do
11014
11015   # Write the raw and C identifiers.
11016   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11017
11018   # Check to see that the pipe works correctly.
11019   pipe_works=no
11020
11021   rm -f conftest*
11022   cat > conftest.$ac_ext <<EOF
11023 #ifdef __cplusplus
11024 extern "C" {
11025 #endif
11026 char nm_test_var;
11027 void nm_test_func(){}
11028 #ifdef __cplusplus
11029 }
11030 #endif
11031 int main(){nm_test_var='a';nm_test_func();return(0);}
11032 EOF
11033
11034   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035   (eval $ac_compile) 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; then
11039     # Now try to grab the symbols.
11040     nlist=conftest.nm
11041     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11042   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); } && test -s "$nlist"; then
11046       # Try sorting and uniquifying the output.
11047       if sort "$nlist" | uniq > "$nlist"T; then
11048         mv -f "$nlist"T "$nlist"
11049       else
11050         rm -f "$nlist"T
11051       fi
11052
11053       # Make sure that we snagged all the symbols we need.
11054       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11055         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11056           cat <<EOF > conftest.$ac_ext
11057 #ifdef __cplusplus
11058 extern "C" {
11059 #endif
11060
11061 EOF
11062           # Now generate the symbol file.
11063           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11064
11065           cat <<EOF >> conftest.$ac_ext
11066 #if defined (__STDC__) && __STDC__
11067 # define lt_ptr_t void *
11068 #else
11069 # define lt_ptr_t char *
11070 # define const
11071 #endif
11072
11073 /* The mapping between symbol names and symbols. */
11074 const struct {
11075   const char *name;
11076   lt_ptr_t address;
11077 }
11078 lt_preloaded_symbols[] =
11079 {
11080 EOF
11081           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11082           cat <<\EOF >> conftest.$ac_ext
11083   {0, (lt_ptr_t) 0}
11084 };
11085
11086 #ifdef __cplusplus
11087 }
11088 #endif
11089 EOF
11090           # Now try linking the two files.
11091           mv conftest.$ac_objext conftstm.$ac_objext
11092           lt_save_LIBS="$LIBS"
11093           lt_save_CFLAGS="$CFLAGS"
11094           LIBS="conftstm.$ac_objext"
11095           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11096           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097   (eval $ac_link) 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11101             pipe_works=yes
11102           fi
11103           LIBS="$lt_save_LIBS"
11104           CFLAGS="$lt_save_CFLAGS"
11105         else
11106           echo "cannot find nm_test_func in $nlist" >&5
11107         fi
11108       else
11109         echo "cannot find nm_test_var in $nlist" >&5
11110       fi
11111     else
11112       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11113     fi
11114   else
11115     echo "$progname: failed program was:" >&5
11116     cat conftest.$ac_ext >&5
11117   fi
11118   rm -f conftest* conftst*
11119
11120   # Do not use the global_symbol_pipe unless it works.
11121   if test "$pipe_works" = yes; then
11122     break
11123   else
11124     lt_cv_sys_global_symbol_pipe=
11125   fi
11126 done
11127
11128 fi
11129
11130 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11131   lt_cv_sys_global_symbol_to_cdecl=
11132 fi
11133 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11134   echo "$as_me:$LINENO: result: failed" >&5
11135 echo "${ECHO_T}failed" >&6
11136 else
11137   echo "$as_me:$LINENO: result: ok" >&5
11138 echo "${ECHO_T}ok" >&6
11139 fi
11140
11141 echo "$as_me:$LINENO: checking for objdir" >&5
11142 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11143 if test "${lt_cv_objdir+set}" = set; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   rm -f .libs 2>/dev/null
11147 mkdir .libs 2>/dev/null
11148 if test -d .libs; then
11149   lt_cv_objdir=.libs
11150 else
11151   # MS-DOS does not allow filenames that begin with a dot.
11152   lt_cv_objdir=_libs
11153 fi
11154 rmdir .libs 2>/dev/null
11155 fi
11156 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11157 echo "${ECHO_T}$lt_cv_objdir" >&6
11158 objdir=$lt_cv_objdir
11159
11160
11161
11162
11163
11164 case $host_os in
11165 aix3*)
11166   # AIX sometimes has problems with the GCC collect2 program.  For some
11167   # reason, if we set the COLLECT_NAMES environment variable, the problems
11168   # vanish in a puff of smoke.
11169   if test "X${COLLECT_NAMES+set}" != Xset; then
11170     COLLECT_NAMES=
11171     export COLLECT_NAMES
11172   fi
11173   ;;
11174 esac
11175
11176 # Sed substitution that helps us do robust quoting.  It backslashifies
11177 # metacharacters that are still active within double-quoted strings.
11178 Xsed='sed -e s/^X//'
11179 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11180
11181 # Same as above, but do not quote variable references.
11182 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11183
11184 # Sed substitution to delay expansion of an escaped shell variable in a
11185 # double_quote_subst'ed string.
11186 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11187
11188 # Sed substitution to avoid accidental globbing in evaled expressions
11189 no_glob_subst='s/\*/\\\*/g'
11190
11191 # Constants:
11192 rm="rm -f"
11193
11194 # Global variables:
11195 default_ofile=mklib
11196 can_build_shared=yes
11197
11198 # All known linkers require a `.a' archive for static linking (except M$VC,
11199 # which needs '.lib').
11200 libext=a
11201 ltmain="$ac_aux_dir/ltmain.sh"
11202 ofile="$default_ofile"
11203 with_gnu_ld="$lt_cv_prog_gnu_ld"
11204
11205 if test -n "$ac_tool_prefix"; then
11206   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11207 set dummy ${ac_tool_prefix}ar; ac_word=$2
11208 echo "$as_me:$LINENO: checking for $ac_word" >&5
11209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11210 if test "${ac_cv_prog_AR+set}" = set; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213   if test -n "$AR"; then
11214   ac_cv_prog_AR="$AR" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219   IFS=$as_save_IFS
11220   test -z "$as_dir" && as_dir=.
11221   for ac_exec_ext in '' $ac_executable_extensions; do
11222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223     ac_cv_prog_AR="${ac_tool_prefix}ar"
11224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225     break 2
11226   fi
11227 done
11228 done
11229
11230 fi
11231 fi
11232 AR=$ac_cv_prog_AR
11233 if test -n "$AR"; then
11234   echo "$as_me:$LINENO: result: $AR" >&5
11235 echo "${ECHO_T}$AR" >&6
11236 else
11237   echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11239 fi
11240
11241 fi
11242 if test -z "$ac_cv_prog_AR"; then
11243   ac_ct_AR=$AR
11244   # Extract the first word of "ar", so it can be a program name with args.
11245 set dummy ar; ac_word=$2
11246 echo "$as_me:$LINENO: checking for $ac_word" >&5
11247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11248 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11249   echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251   if test -n "$ac_ct_AR"; then
11252   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11253 else
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11256 do
11257   IFS=$as_save_IFS
11258   test -z "$as_dir" && as_dir=.
11259   for ac_exec_ext in '' $ac_executable_extensions; do
11260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261     ac_cv_prog_ac_ct_AR="ar"
11262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11263     break 2
11264   fi
11265 done
11266 done
11267
11268   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11269 fi
11270 fi
11271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11272 if test -n "$ac_ct_AR"; then
11273   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11274 echo "${ECHO_T}$ac_ct_AR" >&6
11275 else
11276   echo "$as_me:$LINENO: result: no" >&5
11277 echo "${ECHO_T}no" >&6
11278 fi
11279
11280   AR=$ac_ct_AR
11281 else
11282   AR="$ac_cv_prog_AR"
11283 fi
11284
11285 if test -n "$ac_tool_prefix"; then
11286   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11288 echo "$as_me:$LINENO: checking for $ac_word" >&5
11289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11290 if test "${ac_cv_prog_RANLIB+set}" = set; then
11291   echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293   if test -n "$RANLIB"; then
11294   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11295 else
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11298 do
11299   IFS=$as_save_IFS
11300   test -z "$as_dir" && as_dir=.
11301   for ac_exec_ext in '' $ac_executable_extensions; do
11302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11305     break 2
11306   fi
11307 done
11308 done
11309
11310 fi
11311 fi
11312 RANLIB=$ac_cv_prog_RANLIB
11313 if test -n "$RANLIB"; then
11314   echo "$as_me:$LINENO: result: $RANLIB" >&5
11315 echo "${ECHO_T}$RANLIB" >&6
11316 else
11317   echo "$as_me:$LINENO: result: no" >&5
11318 echo "${ECHO_T}no" >&6
11319 fi
11320
11321 fi
11322 if test -z "$ac_cv_prog_RANLIB"; then
11323   ac_ct_RANLIB=$RANLIB
11324   # Extract the first word of "ranlib", so it can be a program name with args.
11325 set dummy ranlib; ac_word=$2
11326 echo "$as_me:$LINENO: checking for $ac_word" >&5
11327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11328 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331   if test -n "$ac_ct_RANLIB"; then
11332   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11333 else
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11336 do
11337   IFS=$as_save_IFS
11338   test -z "$as_dir" && as_dir=.
11339   for ac_exec_ext in '' $ac_executable_extensions; do
11340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11341     ac_cv_prog_ac_ct_RANLIB="ranlib"
11342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11343     break 2
11344   fi
11345 done
11346 done
11347
11348   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11349 fi
11350 fi
11351 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11352 if test -n "$ac_ct_RANLIB"; then
11353   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11354 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11355 else
11356   echo "$as_me:$LINENO: result: no" >&5
11357 echo "${ECHO_T}no" >&6
11358 fi
11359
11360   RANLIB=$ac_ct_RANLIB
11361 else
11362   RANLIB="$ac_cv_prog_RANLIB"
11363 fi
11364
11365 if test -n "$ac_tool_prefix"; then
11366   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11367 set dummy ${ac_tool_prefix}strip; ac_word=$2
11368 echo "$as_me:$LINENO: checking for $ac_word" >&5
11369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11370 if test "${ac_cv_prog_STRIP+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   if test -n "$STRIP"; then
11374   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11375 else
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379   IFS=$as_save_IFS
11380   test -z "$as_dir" && as_dir=.
11381   for ac_exec_ext in '' $ac_executable_extensions; do
11382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11385     break 2
11386   fi
11387 done
11388 done
11389
11390 fi
11391 fi
11392 STRIP=$ac_cv_prog_STRIP
11393 if test -n "$STRIP"; then
11394   echo "$as_me:$LINENO: result: $STRIP" >&5
11395 echo "${ECHO_T}$STRIP" >&6
11396 else
11397   echo "$as_me:$LINENO: result: no" >&5
11398 echo "${ECHO_T}no" >&6
11399 fi
11400
11401 fi
11402 if test -z "$ac_cv_prog_STRIP"; then
11403   ac_ct_STRIP=$STRIP
11404   # Extract the first word of "strip", so it can be a program name with args.
11405 set dummy strip; ac_word=$2
11406 echo "$as_me:$LINENO: checking for $ac_word" >&5
11407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11408 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411   if test -n "$ac_ct_STRIP"; then
11412   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11413 else
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11416 do
11417   IFS=$as_save_IFS
11418   test -z "$as_dir" && as_dir=.
11419   for ac_exec_ext in '' $ac_executable_extensions; do
11420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421     ac_cv_prog_ac_ct_STRIP="strip"
11422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11423     break 2
11424   fi
11425 done
11426 done
11427
11428   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11429 fi
11430 fi
11431 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11432 if test -n "$ac_ct_STRIP"; then
11433   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11434 echo "${ECHO_T}$ac_ct_STRIP" >&6
11435 else
11436   echo "$as_me:$LINENO: result: no" >&5
11437 echo "${ECHO_T}no" >&6
11438 fi
11439
11440   STRIP=$ac_ct_STRIP
11441 else
11442   STRIP="$ac_cv_prog_STRIP"
11443 fi
11444
11445
11446 old_CC="$CC"
11447 old_CFLAGS="$CFLAGS"
11448
11449 # Set sane defaults for various variables
11450 test -z "$AR" && AR=ar
11451 test -z "$AR_FLAGS" && AR_FLAGS=cru
11452 test -z "$AS" && AS=as
11453 test -z "$CC" && CC=cc
11454 test -z "$LTCC" && LTCC=$CC
11455 test -z "$DLLTOOL" && DLLTOOL=dlltool
11456 test -z "$LD" && LD=ld
11457 test -z "$LN_S" && LN_S="ln -s"
11458 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11459 test -z "$NM" && NM=nm
11460 test -z "$SED" && SED=sed
11461 test -z "$OBJDUMP" && OBJDUMP=objdump
11462 test -z "$RANLIB" && RANLIB=:
11463 test -z "$STRIP" && STRIP=:
11464 test -z "$ac_objext" && ac_objext=o
11465
11466 # Determine commands to create old-style static archives.
11467 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11468 old_postinstall_cmds='chmod 644 $oldlib'
11469 old_postuninstall_cmds=
11470
11471 if test -n "$RANLIB"; then
11472   case $host_os in
11473   openbsd*)
11474     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11475     ;;
11476   *)
11477     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11478     ;;
11479   esac
11480   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11481 fi
11482
11483 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11484
11485 # Only perform the check for file, if the check method requires it
11486 case $deplibs_check_method in
11487 file_magic*)
11488   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11489     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11490 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494   case $MAGIC_CMD in
11495 [\\/*] |  ?:[\\/]*)
11496   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11497   ;;
11498 *)
11499   lt_save_MAGIC_CMD="$MAGIC_CMD"
11500   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11501   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11502   for ac_dir in $ac_dummy; do
11503     IFS="$lt_save_ifs"
11504     test -z "$ac_dir" && ac_dir=.
11505     if test -f $ac_dir/${ac_tool_prefix}file; then
11506       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11507       if test -n "$file_magic_test_file"; then
11508         case $deplibs_check_method in
11509         "file_magic "*)
11510           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11511           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11512           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11513             $EGREP "$file_magic_regex" > /dev/null; then
11514             :
11515           else
11516             cat <<EOF 1>&2
11517
11518 *** Warning: the command libtool uses to detect shared libraries,
11519 *** $file_magic_cmd, produces output that libtool cannot recognize.
11520 *** The result is that libtool may fail to recognize shared libraries
11521 *** as such.  This will affect the creation of libtool libraries that
11522 *** depend on shared libraries, but programs linked with such libtool
11523 *** libraries will work regardless of this problem.  Nevertheless, you
11524 *** may want to report the problem to your system manager and/or to
11525 *** bug-libtool@gnu.org
11526
11527 EOF
11528           fi ;;
11529         esac
11530       fi
11531       break
11532     fi
11533   done
11534   IFS="$lt_save_ifs"
11535   MAGIC_CMD="$lt_save_MAGIC_CMD"
11536   ;;
11537 esac
11538 fi
11539
11540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11541 if test -n "$MAGIC_CMD"; then
11542   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11543 echo "${ECHO_T}$MAGIC_CMD" >&6
11544 else
11545   echo "$as_me:$LINENO: result: no" >&5
11546 echo "${ECHO_T}no" >&6
11547 fi
11548
11549 if test -z "$lt_cv_path_MAGIC_CMD"; then
11550   if test -n "$ac_tool_prefix"; then
11551     echo "$as_me:$LINENO: checking for file" >&5
11552 echo $ECHO_N "checking for file... $ECHO_C" >&6
11553 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11554   echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556   case $MAGIC_CMD in
11557 [\\/*] |  ?:[\\/]*)
11558   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11559   ;;
11560 *)
11561   lt_save_MAGIC_CMD="$MAGIC_CMD"
11562   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11563   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11564   for ac_dir in $ac_dummy; do
11565     IFS="$lt_save_ifs"
11566     test -z "$ac_dir" && ac_dir=.
11567     if test -f $ac_dir/file; then
11568       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11569       if test -n "$file_magic_test_file"; then
11570         case $deplibs_check_method in
11571         "file_magic "*)
11572           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11573           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11574           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11575             $EGREP "$file_magic_regex" > /dev/null; then
11576             :
11577           else
11578             cat <<EOF 1>&2
11579
11580 *** Warning: the command libtool uses to detect shared libraries,
11581 *** $file_magic_cmd, produces output that libtool cannot recognize.
11582 *** The result is that libtool may fail to recognize shared libraries
11583 *** as such.  This will affect the creation of libtool libraries that
11584 *** depend on shared libraries, but programs linked with such libtool
11585 *** libraries will work regardless of this problem.  Nevertheless, you
11586 *** may want to report the problem to your system manager and/or to
11587 *** bug-libtool@gnu.org
11588
11589 EOF
11590           fi ;;
11591         esac
11592       fi
11593       break
11594     fi
11595   done
11596   IFS="$lt_save_ifs"
11597   MAGIC_CMD="$lt_save_MAGIC_CMD"
11598   ;;
11599 esac
11600 fi
11601
11602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11603 if test -n "$MAGIC_CMD"; then
11604   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11605 echo "${ECHO_T}$MAGIC_CMD" >&6
11606 else
11607   echo "$as_me:$LINENO: result: no" >&5
11608 echo "${ECHO_T}no" >&6
11609 fi
11610
11611   else
11612     MAGIC_CMD=:
11613   fi
11614 fi
11615
11616   fi
11617   ;;
11618 esac
11619
11620 enable_dlopen=yes
11621 enable_win32_dll=no
11622
11623 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11624 if test "${enable_libtool_lock+set}" = set; then
11625   enableval="$enable_libtool_lock"
11626
11627 fi;
11628 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11629
11630
11631 # Check whether --with-pic or --without-pic was given.
11632 if test "${with_pic+set}" = set; then
11633   withval="$with_pic"
11634   pic_mode="$withval"
11635 else
11636   pic_mode=default
11637 fi;
11638 test -z "$pic_mode" && pic_mode=default
11639
11640 # Use C for the default configuration in the libtool script
11641 tagname=
11642 lt_save_CC="$CC"
11643 ac_ext=c
11644 ac_cpp='$CPP $CPPFLAGS'
11645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11648
11649
11650 # Source file extension for C test sources.
11651 ac_ext=c
11652
11653 # Object file extension for compiled C test sources.
11654 objext=o
11655 objext=$objext
11656
11657 # Code to be used in simple compile tests
11658 lt_simple_compile_test_code="int some_variable = 0;\n"
11659
11660 # Code to be used in simple link tests
11661 lt_simple_link_test_code='int main(){return(0);}\n'
11662
11663
11664 # If no C compiler was specified, use CC.
11665 LTCC=${LTCC-"$CC"}
11666
11667 # Allow CC to be a program name with arguments.
11668 compiler=$CC
11669
11670
11671 #
11672 # Check for any special shared library compilation flags.
11673 #
11674 lt_prog_cc_shlib=
11675 if test "$GCC" = no; then
11676   case $host_os in
11677   sco3.2v5*)
11678     lt_prog_cc_shlib='-belf'
11679     ;;
11680   esac
11681 fi
11682 if test -n "$lt_prog_cc_shlib"; then
11683   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11684 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11685   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11686   else
11687     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11688 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11689     lt_cv_prog_cc_can_build_shared=no
11690   fi
11691 fi
11692
11693
11694 #
11695 # Check to make sure the static flag actually works.
11696 #
11697 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11698 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11699 if test "${lt_prog_compiler_static_works+set}" = set; then
11700   echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702   lt_prog_compiler_static_works=no
11703    save_LDFLAGS="$LDFLAGS"
11704    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11705    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11706    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11707      # The compiler can only warn and ignore the option if not recognized
11708      # So say no if there are warnings
11709      if test -s conftest.err; then
11710        # Append any errors to the config.log.
11711        cat conftest.err 1>&5
11712      else
11713        lt_prog_compiler_static_works=yes
11714      fi
11715    fi
11716    $rm conftest*
11717    LDFLAGS="$save_LDFLAGS"
11718
11719 fi
11720 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11721 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11722
11723 if test x"$lt_prog_compiler_static_works" = xyes; then
11724     :
11725 else
11726     lt_prog_compiler_static=
11727 fi
11728
11729
11730
11731
11732 lt_prog_compiler_no_builtin_flag=
11733
11734 if test "$GCC" = yes; then
11735   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11736
11737
11738 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11739 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11740 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743   lt_cv_prog_compiler_rtti_exceptions=no
11744   ac_outfile=conftest.$ac_objext
11745    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11746    lt_compiler_flag="-fno-rtti -fno-exceptions"
11747    # Insert the option either (1) after the last *FLAGS variable, or
11748    # (2) before a word containing "conftest.", or (3) at the end.
11749    # Note that $ac_compile itself does not contain backslashes and begins
11750    # with a dollar sign (not a hyphen), so the echo should work correctly.
11751    # The option is referenced via a variable to avoid confusing sed.
11752    lt_compile=`echo "$ac_compile" | $SED \
11753    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11754    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11755    -e 's:$: $lt_compiler_flag:'`
11756    (eval echo "\"\$as_me:11756: $lt_compile\"" >&5)
11757    (eval "$lt_compile" 2>conftest.err)
11758    ac_status=$?
11759    cat conftest.err >&5
11760    echo "$as_me:11760: \$? = $ac_status" >&5
11761    if (exit $ac_status) && test -s "$ac_outfile"; then
11762      # The compiler can only warn and ignore the option if not recognized
11763      # So say no if there are warnings
11764      if test ! -s conftest.err; then
11765        lt_cv_prog_compiler_rtti_exceptions=yes
11766      fi
11767    fi
11768    $rm conftest*
11769
11770 fi
11771 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11772 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11773
11774 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11775     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11776 else
11777     :
11778 fi
11779
11780 fi
11781
11782 lt_prog_compiler_wl=
11783 lt_prog_compiler_pic=
11784 lt_prog_compiler_static=
11785
11786 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11787 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11788
11789   if test "$GCC" = yes; then
11790     lt_prog_compiler_wl='-Wl,'
11791     lt_prog_compiler_static='-static'
11792
11793     case $host_os in
11794       aix*)
11795       # All AIX code is PIC.
11796       if test "$host_cpu" = ia64; then
11797         # AIX 5 now supports IA64 processor
11798         lt_prog_compiler_static='-Bstatic'
11799       fi
11800       ;;
11801
11802     amigaos*)
11803       # FIXME: we need at least 68020 code to build shared libraries, but
11804       # adding the `-m68020' flag to GCC prevents building anything better,
11805       # like `-m68040'.
11806       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11807       ;;
11808
11809     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11810       # PIC is the default for these OSes.
11811       ;;
11812
11813     mingw* | pw32* | os2*)
11814       # This hack is so that the source file can tell whether it is being
11815       # built for inclusion in a dll (and should export symbols for example).
11816       lt_prog_compiler_pic='-DDLL_EXPORT'
11817       ;;
11818
11819     darwin* | rhapsody*)
11820       # PIC is the default on this platform
11821       # Common symbols not allowed in MH_DYLIB files
11822       lt_prog_compiler_pic='-fno-common'
11823       ;;
11824
11825     msdosdjgpp*)
11826       # Just because we use GCC doesn't mean we suddenly get shared libraries
11827       # on systems that don't support them.
11828       lt_prog_compiler_can_build_shared=no
11829       enable_shared=no
11830       ;;
11831
11832     sysv4*MP*)
11833       if test -d /usr/nec; then
11834         lt_prog_compiler_pic=-Kconform_pic
11835       fi
11836       ;;
11837
11838     hpux*)
11839       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11840       # not for PA HP-UX.
11841       case "$host_cpu" in
11842       hppa*64*|ia64*)
11843         # +Z the default
11844         ;;
11845       *)
11846         lt_prog_compiler_pic='-fPIC'
11847         ;;
11848       esac
11849       ;;
11850
11851     *)
11852       lt_prog_compiler_pic='-fPIC'
11853       ;;
11854     esac
11855   else
11856     # PORTME Check for flag to pass linker flags through the system compiler.
11857     case $host_os in
11858     aix*)
11859       lt_prog_compiler_wl='-Wl,'
11860       if test "$host_cpu" = ia64; then
11861         # AIX 5 now supports IA64 processor
11862         lt_prog_compiler_static='-Bstatic'
11863       else
11864         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11865       fi
11866       ;;
11867       darwin*)
11868         # PIC is the default on this platform
11869         # Common symbols not allowed in MH_DYLIB files
11870        case "$cc_basename" in
11871          xlc*)
11872          lt_prog_compiler_pic='-qnocommon'
11873          lt_prog_compiler_wl='-Wl,'
11874          ;;
11875        esac
11876        ;;
11877
11878     mingw* | pw32* | os2*)
11879       # This hack is so that the source file can tell whether it is being
11880       # built for inclusion in a dll (and should export symbols for example).
11881       lt_prog_compiler_pic='-DDLL_EXPORT'
11882       ;;
11883
11884     hpux9* | hpux10* | hpux11*)
11885       lt_prog_compiler_wl='-Wl,'
11886       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11887       # not for PA HP-UX.
11888       case "$host_cpu" in
11889       hppa*64*|ia64*)
11890         # +Z the default
11891         ;;
11892       *)
11893         lt_prog_compiler_pic='+Z'
11894         ;;
11895       esac
11896       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11897       lt_prog_compiler_static='${wl}-a ${wl}archive'
11898       ;;
11899
11900     irix5* | irix6* | nonstopux*)
11901       lt_prog_compiler_wl='-Wl,'
11902       # PIC (with -KPIC) is the default.
11903       lt_prog_compiler_static='-non_shared'
11904       ;;
11905
11906     newsos6)
11907       lt_prog_compiler_pic='-KPIC'
11908       lt_prog_compiler_static='-Bstatic'
11909       ;;
11910
11911     linux*)
11912       case $CC in
11913       icc* | ecc*)
11914         lt_prog_compiler_wl='-Wl,'
11915         lt_prog_compiler_pic='-KPIC'
11916         lt_prog_compiler_static='-static'
11917         ;;
11918       ccc*)
11919         lt_prog_compiler_wl='-Wl,'
11920         # All Alpha code is PIC.
11921         lt_prog_compiler_static='-non_shared'
11922         ;;
11923       esac
11924       ;;
11925
11926     osf3* | osf4* | osf5*)
11927       lt_prog_compiler_wl='-Wl,'
11928       # All OSF/1 code is PIC.
11929       lt_prog_compiler_static='-non_shared'
11930       ;;
11931
11932     sco3.2v5*)
11933       lt_prog_compiler_pic='-Kpic'
11934       lt_prog_compiler_static='-dn'
11935       ;;
11936
11937     solaris*)
11938       lt_prog_compiler_wl='-Wl,'
11939       lt_prog_compiler_pic='-KPIC'
11940       lt_prog_compiler_static='-Bstatic'
11941       ;;
11942
11943     sunos4*)
11944       lt_prog_compiler_wl='-Qoption ld '
11945       lt_prog_compiler_pic='-PIC'
11946       lt_prog_compiler_static='-Bstatic'
11947       ;;
11948
11949     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11950       lt_prog_compiler_wl='-Wl,'
11951       lt_prog_compiler_pic='-KPIC'
11952       lt_prog_compiler_static='-Bstatic'
11953       ;;
11954
11955     sysv4*MP*)
11956       if test -d /usr/nec ;then
11957         lt_prog_compiler_pic='-Kconform_pic'
11958         lt_prog_compiler_static='-Bstatic'
11959       fi
11960       ;;
11961
11962     uts4*)
11963       lt_prog_compiler_pic='-pic'
11964       lt_prog_compiler_static='-Bstatic'
11965       ;;
11966
11967     *)
11968       lt_prog_compiler_can_build_shared=no
11969       ;;
11970     esac
11971   fi
11972
11973 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11974 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11975
11976 #
11977 # Check to make sure the PIC flag actually works.
11978 #
11979 if test -n "$lt_prog_compiler_pic"; then
11980
11981 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11982 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11983 if test "${lt_prog_compiler_pic_works+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   lt_prog_compiler_pic_works=no
11987   ac_outfile=conftest.$ac_objext
11988    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11989    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11990    # Insert the option either (1) after the last *FLAGS variable, or
11991    # (2) before a word containing "conftest.", or (3) at the end.
11992    # Note that $ac_compile itself does not contain backslashes and begins
11993    # with a dollar sign (not a hyphen), so the echo should work correctly.
11994    # The option is referenced via a variable to avoid confusing sed.
11995    lt_compile=`echo "$ac_compile" | $SED \
11996    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11998    -e 's:$: $lt_compiler_flag:'`
11999    (eval echo "\"\$as_me:11999: $lt_compile\"" >&5)
12000    (eval "$lt_compile" 2>conftest.err)
12001    ac_status=$?
12002    cat conftest.err >&5
12003    echo "$as_me:12003: \$? = $ac_status" >&5
12004    if (exit $ac_status) && test -s "$ac_outfile"; then
12005      # The compiler can only warn and ignore the option if not recognized
12006      # So say no if there are warnings
12007      if test ! -s conftest.err; then
12008        lt_prog_compiler_pic_works=yes
12009      fi
12010    fi
12011    $rm conftest*
12012
12013 fi
12014 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12015 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12016
12017 if test x"$lt_prog_compiler_pic_works" = xyes; then
12018     case $lt_prog_compiler_pic in
12019      "" | " "*) ;;
12020      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12021      esac
12022 else
12023     lt_prog_compiler_pic=
12024      lt_prog_compiler_can_build_shared=no
12025 fi
12026
12027 fi
12028 case "$host_os" in
12029   # For platforms which do not support PIC, -DPIC is meaningless:
12030   *djgpp*)
12031     lt_prog_compiler_pic=
12032     ;;
12033   *)
12034     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12035     ;;
12036 esac
12037
12038 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12040 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043   lt_cv_prog_compiler_c_o=no
12044    $rm -r conftest 2>/dev/null
12045    mkdir conftest
12046    cd conftest
12047    mkdir out
12048    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12049
12050    lt_compiler_flag="-o out/conftest2.$ac_objext"
12051    # Insert the option either (1) after the last *FLAGS variable, or
12052    # (2) before a word containing "conftest.", or (3) at the end.
12053    # Note that $ac_compile itself does not contain backslashes and begins
12054    # with a dollar sign (not a hyphen), so the echo should work correctly.
12055    lt_compile=`echo "$ac_compile" | $SED \
12056    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12058    -e 's:$: $lt_compiler_flag:'`
12059    (eval echo "\"\$as_me:12059: $lt_compile\"" >&5)
12060    (eval "$lt_compile" 2>out/conftest.err)
12061    ac_status=$?
12062    cat out/conftest.err >&5
12063    echo "$as_me:12063: \$? = $ac_status" >&5
12064    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12065    then
12066      # The compiler can only warn and ignore the option if not recognized
12067      # So say no if there are warnings
12068      if test ! -s out/conftest.err; then
12069        lt_cv_prog_compiler_c_o=yes
12070      fi
12071    fi
12072    chmod u+w .
12073    $rm conftest*
12074    # SGI C++ compiler will create directory out/ii_files/ for
12075    # template instantiation
12076    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12077    $rm out/* && rmdir out
12078    cd ..
12079    rmdir conftest
12080    $rm conftest*
12081
12082 fi
12083 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12085
12086
12087 hard_links="nottested"
12088 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12089   # do not overwrite the value of need_locks provided by the user
12090   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12092   hard_links=yes
12093   $rm conftest*
12094   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095   touch conftest.a
12096   ln conftest.a conftest.b 2>&5 || hard_links=no
12097   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098   echo "$as_me:$LINENO: result: $hard_links" >&5
12099 echo "${ECHO_T}$hard_links" >&6
12100   if test "$hard_links" = no; then
12101     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12103     need_locks=warn
12104   fi
12105 else
12106   need_locks=no
12107 fi
12108
12109 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12110 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12111
12112   runpath_var=
12113   allow_undefined_flag=
12114   enable_shared_with_static_runtimes=no
12115   archive_cmds=
12116   archive_expsym_cmds=
12117   old_archive_From_new_cmds=
12118   old_archive_from_expsyms_cmds=
12119   export_dynamic_flag_spec=
12120   whole_archive_flag_spec=
12121   thread_safe_flag_spec=
12122   hardcode_libdir_flag_spec=
12123   hardcode_libdir_flag_spec_ld=
12124   hardcode_libdir_separator=
12125   hardcode_direct=no
12126   hardcode_minus_L=no
12127   hardcode_shlibpath_var=unsupported
12128   link_all_deplibs=unknown
12129   hardcode_automatic=no
12130   module_cmds=
12131   module_expsym_cmds=
12132   always_export_symbols=no
12133   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12134   # include_expsyms should be a list of space-separated symbols to be *always*
12135   # included in the symbol list
12136   include_expsyms=
12137   # exclude_expsyms can be an extended regexp of symbols to exclude
12138   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12139   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12140   # as well as any symbol that contains `d'.
12141   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12142   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12143   # platforms (ab)use it in PIC code, but their linkers get confused if
12144   # the symbol is explicitly referenced.  Since portable code cannot
12145   # rely on this symbol name, it's probably fine to never include it in
12146   # preloaded symbol tables.
12147   extract_expsyms_cmds=
12148
12149   case $host_os in
12150   cygwin* | mingw* | pw32*)
12151     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12152     # When not using gcc, we currently assume that we are using
12153     # Microsoft Visual C++.
12154     if test "$GCC" != yes; then
12155       with_gnu_ld=no
12156     fi
12157     ;;
12158   openbsd*)
12159     with_gnu_ld=no
12160     ;;
12161   esac
12162
12163   ld_shlibs=yes
12164   if test "$with_gnu_ld" = yes; then
12165     # If archive_cmds runs LD, not CC, wlarc should be empty
12166     wlarc='${wl}'
12167
12168     # See if GNU ld supports shared libraries.
12169     case $host_os in
12170     aix3* | aix4* | aix5*)
12171       # On AIX/PPC, the GNU linker is very broken
12172       if test "$host_cpu" != ia64; then
12173         ld_shlibs=no
12174         cat <<EOF 1>&2
12175
12176 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12177 *** to be unable to reliably create shared libraries on AIX.
12178 *** Therefore, libtool is disabling shared libraries support.  If you
12179 *** really care for shared libraries, you may want to modify your PATH
12180 *** so that a non-GNU linker is found, and then restart.
12181
12182 EOF
12183       fi
12184       ;;
12185
12186     amigaos*)
12187       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)'
12188       hardcode_libdir_flag_spec='-L$libdir'
12189       hardcode_minus_L=yes
12190
12191       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12192       # that the semantics of dynamic libraries on AmigaOS, at least up
12193       # to version 4, is to share data among multiple programs linked
12194       # with the same dynamic library.  Since this doesn't match the
12195       # behavior of shared libraries on other platforms, we can't use
12196       # them.
12197       ld_shlibs=no
12198       ;;
12199
12200     beos*)
12201       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12202         allow_undefined_flag=unsupported
12203         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12204         # support --undefined.  This deserves some investigation.  FIXME
12205         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12206       else
12207         ld_shlibs=no
12208       fi
12209       ;;
12210
12211     cygwin* | mingw* | pw32*)
12212       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12213       # as there is no search path for DLLs.
12214       hardcode_libdir_flag_spec='-L$libdir'
12215       allow_undefined_flag=unsupported
12216       always_export_symbols=no
12217       enable_shared_with_static_runtimes=yes
12218       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12219
12220       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12221         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12222         # If the export-symbols file already is a .def file (1st line
12223         # is EXPORTS), use it as is; otherwise, prepend...
12224         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12225           cp $export_symbols $output_objdir/$soname.def;
12226         else
12227           echo EXPORTS > $output_objdir/$soname.def;
12228           cat $export_symbols >> $output_objdir/$soname.def;
12229         fi~
12230         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12231       else
12232         ld_shlibs=no
12233       fi
12234       ;;
12235
12236     netbsd*)
12237       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12238         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12239         wlarc=
12240       else
12241         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12243       fi
12244       ;;
12245
12246     solaris* | sysv5*)
12247       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12248         ld_shlibs=no
12249         cat <<EOF 1>&2
12250
12251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12252 *** create shared libraries on Solaris systems.  Therefore, libtool
12253 *** is disabling shared libraries support.  We urge you to upgrade GNU
12254 *** binutils to release 2.9.1 or newer.  Another option is to modify
12255 *** your PATH or compiler configuration so that the native linker is
12256 *** used, and then restart.
12257
12258 EOF
12259       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12262       else
12263         ld_shlibs=no
12264       fi
12265       ;;
12266
12267     sunos4*)
12268       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12269       wlarc=
12270       hardcode_direct=yes
12271       hardcode_shlibpath_var=no
12272       ;;
12273
12274   linux*)
12275     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12276         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277         archive_cmds="$tmp_archive_cmds"
12278       supports_anon_versioning=no
12279       case `$LD -v 2>/dev/null` in
12280         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12281         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12282         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12283         *\ 2.11.*) ;; # other 2.11 versions
12284         *) supports_anon_versioning=yes ;;
12285       esac
12286       if test $supports_anon_versioning = yes; then
12287         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12289 $echo "local: *; };" >> $output_objdir/$libname.ver~
12290         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12291       else
12292         archive_expsym_cmds="$tmp_archive_cmds"
12293       fi
12294     else
12295       ld_shlibs=no
12296     fi
12297     ;;
12298
12299     *)
12300       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12301         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12302         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12303       else
12304         ld_shlibs=no
12305       fi
12306       ;;
12307     esac
12308
12309     if test "$ld_shlibs" = yes; then
12310       runpath_var=LD_RUN_PATH
12311       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12312       export_dynamic_flag_spec='${wl}--export-dynamic'
12313       # ancient GNU ld didn't support --whole-archive et. al.
12314       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12315         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12316       else
12317         whole_archive_flag_spec=
12318       fi
12319     fi
12320   else
12321     # PORTME fill in a description of your system's linker (not GNU ld)
12322     case $host_os in
12323     aix3*)
12324       allow_undefined_flag=unsupported
12325       always_export_symbols=yes
12326       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'
12327       # Note: this linker hardcodes the directories in LIBPATH if there
12328       # are no directories specified by -L.
12329       hardcode_minus_L=yes
12330       if test "$GCC" = yes && test -z "$link_static_flag"; then
12331         # Neither direct hardcoding nor static linking is supported with a
12332         # broken collect2.
12333         hardcode_direct=unsupported
12334       fi
12335       ;;
12336
12337     aix4* | aix5*)
12338       if test "$host_cpu" = ia64; then
12339         # On IA64, the linker does run time linking by default, so we don't
12340         # have to do anything special.
12341         aix_use_runtimelinking=no
12342         exp_sym_flag='-Bexport'
12343         no_entry_flag=""
12344       else
12345         # If we're using GNU nm, then we don't want the "-C" option.
12346         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12347         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12348           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'
12349         else
12350           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'
12351         fi
12352         aix_use_runtimelinking=no
12353
12354         # Test if we are trying to use run time linking or normal
12355         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12356         # need to do runtime linking.
12357         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12358           for ld_flag in $LDFLAGS; do
12359           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12360             aix_use_runtimelinking=yes
12361             break
12362           fi
12363           done
12364         esac
12365
12366         exp_sym_flag='-bexport'
12367         no_entry_flag='-bnoentry'
12368       fi
12369
12370       # When large executables or shared objects are built, AIX ld can
12371       # have problems creating the table of contents.  If linking a library
12372       # or program results in "error TOC overflow" add -mminimal-toc to
12373       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12374       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12375
12376       archive_cmds=''
12377       hardcode_direct=yes
12378       hardcode_libdir_separator=':'
12379       link_all_deplibs=yes
12380
12381       if test "$GCC" = yes; then
12382         case $host_os in aix4.012|aix4.012.*)
12383         # We only want to do this on AIX 4.2 and lower, the check
12384         # below for broken collect2 doesn't work under 4.3+
12385           collect2name=`${CC} -print-prog-name=collect2`
12386           if test -f "$collect2name" && \
12387            strings "$collect2name" | grep resolve_lib_name >/dev/null
12388           then
12389           # We have reworked collect2
12390           hardcode_direct=yes
12391           else
12392           # We have old collect2
12393           hardcode_direct=unsupported
12394           # It fails to find uninstalled libraries when the uninstalled
12395           # path is not listed in the libpath.  Setting hardcode_minus_L
12396           # to unsupported forces relinking
12397           hardcode_minus_L=yes
12398           hardcode_libdir_flag_spec='-L$libdir'
12399           hardcode_libdir_separator=
12400           fi
12401         esac
12402         shared_flag='-shared'
12403       else
12404         # not using gcc
12405         if test "$host_cpu" = ia64; then
12406         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12407         # chokes on -Wl,-G. The following line is correct:
12408           shared_flag='-G'
12409         else
12410         if test "$aix_use_runtimelinking" = yes; then
12411             shared_flag='${wl}-G'
12412           else
12413             shared_flag='${wl}-bM:SRE'
12414         fi
12415         fi
12416       fi
12417
12418       # It seems that -bexpall does not export symbols beginning with
12419       # underscore (_), so it is better to generate a list of symbols to export.
12420       always_export_symbols=yes
12421       if test "$aix_use_runtimelinking" = yes; then
12422         # Warning - without using the other runtime loading flags (-brtl),
12423         # -berok will link without error, but may produce a broken library.
12424         allow_undefined_flag='-berok'
12425        # Determine the default libpath from the value encoded in an empty executable.
12426        cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h.  */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h.  */
12432
12433 int
12434 main ()
12435 {
12436
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443   (eval $ac_link) 2>conftest.er1
12444   ac_status=$?
12445   grep -v '^ *+' conftest.er1 >conftest.err
12446   rm -f conftest.er1
12447   cat conftest.err >&5
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); } &&
12450          { ac_try='test -z "$ac_c_werror_flag"
12451                          || test ! -s conftest.err'
12452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453   (eval $ac_try) 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; } &&
12457          { ac_try='test -s conftest$ac_exeext'
12458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459   (eval $ac_try) 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; }; then
12463
12464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12465 }'`
12466 # Check for a 64-bit object if we didn't find anything.
12467 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; }
12468 }'`; fi
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 fi
12474 rm -f conftest.err conftest.$ac_objext \
12475       conftest$ac_exeext conftest.$ac_ext
12476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12477
12478        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12479         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"
12480        else
12481         if test "$host_cpu" = ia64; then
12482           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12483           allow_undefined_flag="-z nodefs"
12484           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"
12485         else
12486          # Determine the default libpath from the value encoded in an empty executable.
12487          cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494 int
12495 main ()
12496 {
12497
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504   (eval $ac_link) 2>conftest.er1
12505   ac_status=$?
12506   grep -v '^ *+' conftest.er1 >conftest.err
12507   rm -f conftest.er1
12508   cat conftest.err >&5
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -z "$ac_c_werror_flag"
12512                          || test ! -s conftest.err'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; } &&
12518          { ac_try='test -s conftest$ac_exeext'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; }; then
12524
12525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12526 }'`
12527 # Check for a 64-bit object if we didn't find anything.
12528 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; }
12529 }'`; fi
12530 else
12531   echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 fi
12535 rm -f conftest.err conftest.$ac_objext \
12536       conftest$ac_exeext conftest.$ac_ext
12537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12538
12539          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12540           # Warning - without using the other run time loading flags,
12541           # -berok will link without error, but may produce a broken library.
12542           no_undefined_flag=' ${wl}-bernotok'
12543           allow_undefined_flag=' ${wl}-berok'
12544           # -bexpall does not export symbols beginning with underscore (_)
12545           always_export_symbols=yes
12546           # Exported symbols can be pulled into shared objects from archives
12547           whole_archive_flag_spec=' '
12548           archive_cmds_need_lc=yes
12549           # This is similar to how AIX traditionally builds it's shared libraries.
12550           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'
12551         fi
12552       fi
12553       ;;
12554
12555     amigaos*)
12556       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)'
12557       hardcode_libdir_flag_spec='-L$libdir'
12558       hardcode_minus_L=yes
12559       # see comment about different semantics on the GNU ld section
12560       ld_shlibs=no
12561       ;;
12562
12563     bsdi[45]*)
12564       export_dynamic_flag_spec=-rdynamic
12565       ;;
12566
12567     cygwin* | mingw* | pw32*)
12568       # When not using gcc, we currently assume that we are using
12569       # Microsoft Visual C++.
12570       # hardcode_libdir_flag_spec is actually meaningless, as there is
12571       # no search path for DLLs.
12572       hardcode_libdir_flag_spec=' '
12573       allow_undefined_flag=unsupported
12574       # Tell ltmain to make .lib files, not .a files.
12575       libext=lib
12576       # Tell ltmain to make .dll files, not .so files.
12577       shrext_cmds=".dll"
12578       # FIXME: Setting linknames here is a bad hack.
12579       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12580       # The linker will automatically build a .lib file if we build a DLL.
12581       old_archive_From_new_cmds='true'
12582       # FIXME: Should let the user specify the lib program.
12583       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12584       fix_srcfile_path='`cygpath -w "$srcfile"`'
12585       enable_shared_with_static_runtimes=yes
12586       ;;
12587
12588     darwin* | rhapsody*)
12589       case "$host_os" in
12590         rhapsody* | darwin1.[012])
12591          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12592          ;;
12593        *) # Darwin 1.3 on
12594          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12595            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12596          else
12597            case ${MACOSX_DEPLOYMENT_TARGET} in
12598              10.[012])
12599                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12600                ;;
12601              10.*)
12602                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12603                ;;
12604            esac
12605          fi
12606          ;;
12607       esac
12608       archive_cmds_need_lc=no
12609       hardcode_direct=no
12610       hardcode_automatic=yes
12611       hardcode_shlibpath_var=unsupported
12612       whole_archive_flag_spec=''
12613       link_all_deplibs=yes
12614     if test "$GCC" = yes ; then
12615         output_verbose_link_cmd='echo'
12616         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12617       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12618       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12619       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}'
12620       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}'
12621     else
12622       case "$cc_basename" in
12623         xlc*)
12624          output_verbose_link_cmd='echo'
12625          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12626          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12627           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12628          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}'
12629           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}'
12630           ;;
12631        *)
12632          ld_shlibs=no
12633           ;;
12634       esac
12635     fi
12636       ;;
12637
12638     dgux*)
12639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12640       hardcode_libdir_flag_spec='-L$libdir'
12641       hardcode_shlibpath_var=no
12642       ;;
12643
12644     freebsd1*)
12645       ld_shlibs=no
12646       ;;
12647
12648     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12649     # support.  Future versions do this automatically, but an explicit c++rt0.o
12650     # does not break anything, and helps significantly (at the cost of a little
12651     # extra space).
12652     freebsd2.2*)
12653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12654       hardcode_libdir_flag_spec='-R$libdir'
12655       hardcode_direct=yes
12656       hardcode_shlibpath_var=no
12657       ;;
12658
12659     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12660     freebsd2*)
12661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12662       hardcode_direct=yes
12663       hardcode_minus_L=yes
12664       hardcode_shlibpath_var=no
12665       ;;
12666
12667     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12668     freebsd* | kfreebsd*-gnu)
12669       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12670       hardcode_libdir_flag_spec='-R$libdir'
12671       hardcode_direct=yes
12672       hardcode_shlibpath_var=no
12673       ;;
12674
12675     hpux9*)
12676       if test "$GCC" = yes; then
12677         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'
12678       else
12679         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'
12680       fi
12681       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12682       hardcode_libdir_separator=:
12683       hardcode_direct=yes
12684
12685       # hardcode_minus_L: Not really in the search PATH,
12686       # but as the default location of the library.
12687       hardcode_minus_L=yes
12688       export_dynamic_flag_spec='${wl}-E'
12689       ;;
12690
12691     hpux10* | hpux11*)
12692       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12693         case "$host_cpu" in
12694         hppa*64*|ia64*)
12695           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12696           ;;
12697         *)
12698           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12699           ;;
12700         esac
12701       else
12702         case "$host_cpu" in
12703         hppa*64*|ia64*)
12704           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12705           ;;
12706         *)
12707           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12708           ;;
12709         esac
12710       fi
12711       if test "$with_gnu_ld" = no; then
12712         case "$host_cpu" in
12713         hppa*64*)
12714           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12715           hardcode_libdir_flag_spec_ld='+b $libdir'
12716           hardcode_libdir_separator=:
12717           hardcode_direct=no
12718           hardcode_shlibpath_var=no
12719           ;;
12720         ia64*)
12721           hardcode_libdir_flag_spec='-L$libdir'
12722           hardcode_direct=no
12723           hardcode_shlibpath_var=no
12724
12725           # hardcode_minus_L: Not really in the search PATH,
12726           # but as the default location of the library.
12727           hardcode_minus_L=yes
12728           ;;
12729         *)
12730           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12731           hardcode_libdir_separator=:
12732           hardcode_direct=yes
12733           export_dynamic_flag_spec='${wl}-E'
12734
12735           # hardcode_minus_L: Not really in the search PATH,
12736           # but as the default location of the library.
12737           hardcode_minus_L=yes
12738           ;;
12739         esac
12740       fi
12741       ;;
12742
12743     irix5* | irix6* | nonstopux*)
12744       if test "$GCC" = yes; then
12745         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'
12746       else
12747         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'
12748         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12749       fi
12750       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12751       hardcode_libdir_separator=:
12752       link_all_deplibs=yes
12753       ;;
12754
12755     netbsd*)
12756       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12757         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12758       else
12759         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12760       fi
12761       hardcode_libdir_flag_spec='-R$libdir'
12762       hardcode_direct=yes
12763       hardcode_shlibpath_var=no
12764       ;;
12765
12766     newsos6)
12767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12768       hardcode_direct=yes
12769       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12770       hardcode_libdir_separator=:
12771       hardcode_shlibpath_var=no
12772       ;;
12773
12774     openbsd*)
12775       hardcode_direct=yes
12776       hardcode_shlibpath_var=no
12777       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12778         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12779         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12780         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12781         export_dynamic_flag_spec='${wl}-E'
12782       else
12783        case $host_os in
12784          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12785            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12786            hardcode_libdir_flag_spec='-R$libdir'
12787            ;;
12788          *)
12789            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12790            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12791            ;;
12792        esac
12793       fi
12794       ;;
12795
12796     os2*)
12797       hardcode_libdir_flag_spec='-L$libdir'
12798       hardcode_minus_L=yes
12799       allow_undefined_flag=unsupported
12800       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'
12801       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12802       ;;
12803
12804     osf3*)
12805       if test "$GCC" = yes; then
12806         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12807         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'
12808       else
12809         allow_undefined_flag=' -expect_unresolved \*'
12810         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'
12811       fi
12812       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12813       hardcode_libdir_separator=:
12814       ;;
12815
12816     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12817       if test "$GCC" = yes; then
12818         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12819         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'
12820         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12821       else
12822         allow_undefined_flag=' -expect_unresolved \*'
12823         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'
12824         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12825         $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'
12826
12827         # Both c and cxx compiler support -rpath directly
12828         hardcode_libdir_flag_spec='-rpath $libdir'
12829       fi
12830       hardcode_libdir_separator=:
12831       ;;
12832
12833     sco3.2v5*)
12834       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12835       hardcode_shlibpath_var=no
12836       export_dynamic_flag_spec='${wl}-Bexport'
12837       runpath_var=LD_RUN_PATH
12838       hardcode_runpath_var=yes
12839       ;;
12840
12841     solaris*)
12842       no_undefined_flag=' -z text'
12843       if test "$GCC" = yes; then
12844         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12845         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12846           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12847       else
12848         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12849         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12850         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12851       fi
12852       hardcode_libdir_flag_spec='-R$libdir'
12853       hardcode_shlibpath_var=no
12854       case $host_os in
12855       solaris2.[0-5] | solaris2.[0-5].*) ;;
12856       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12857         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12858       esac
12859       link_all_deplibs=yes
12860       ;;
12861
12862     sunos4*)
12863       if test "x$host_vendor" = xsequent; then
12864         # Use $CC to link under sequent, because it throws in some extra .o
12865         # files that make .init and .fini sections work.
12866         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12867       else
12868         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12869       fi
12870       hardcode_libdir_flag_spec='-L$libdir'
12871       hardcode_direct=yes
12872       hardcode_minus_L=yes
12873       hardcode_shlibpath_var=no
12874       ;;
12875
12876     sysv4)
12877       case $host_vendor in
12878         sni)
12879           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12880           hardcode_direct=yes # is this really true???
12881         ;;
12882         siemens)
12883           ## LD is ld it makes a PLAMLIB
12884           ## CC just makes a GrossModule.
12885           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12886           reload_cmds='$CC -r -o $output$reload_objs'
12887           hardcode_direct=no
12888         ;;
12889         motorola)
12890           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12891           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12892         ;;
12893       esac
12894       runpath_var='LD_RUN_PATH'
12895       hardcode_shlibpath_var=no
12896       ;;
12897
12898     sysv4.3*)
12899       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900       hardcode_shlibpath_var=no
12901       export_dynamic_flag_spec='-Bexport'
12902       ;;
12903
12904     sysv4*MP*)
12905       if test -d /usr/nec; then
12906         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12907         hardcode_shlibpath_var=no
12908         runpath_var=LD_RUN_PATH
12909         hardcode_runpath_var=yes
12910         ld_shlibs=yes
12911       fi
12912       ;;
12913
12914     sysv4.2uw2*)
12915       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12916       hardcode_direct=yes
12917       hardcode_minus_L=no
12918       hardcode_shlibpath_var=no
12919       hardcode_runpath_var=yes
12920       runpath_var=LD_RUN_PATH
12921       ;;
12922
12923    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12924       no_undefined_flag='${wl}-z ${wl}text'
12925       if test "$GCC" = yes; then
12926         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12927       else
12928         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12929       fi
12930       runpath_var='LD_RUN_PATH'
12931       hardcode_shlibpath_var=no
12932       ;;
12933
12934     sysv5*)
12935       no_undefined_flag=' -z text'
12936       # $CC -shared without GNU ld will not create a library from C++
12937       # object files and a static libstdc++, better avoid it by now
12938       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12939       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12940                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12941       hardcode_libdir_flag_spec=
12942       hardcode_shlibpath_var=no
12943       runpath_var='LD_RUN_PATH'
12944       ;;
12945
12946     uts4*)
12947       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948       hardcode_libdir_flag_spec='-L$libdir'
12949       hardcode_shlibpath_var=no
12950       ;;
12951
12952     *)
12953       ld_shlibs=no
12954       ;;
12955     esac
12956   fi
12957
12958 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12959 echo "${ECHO_T}$ld_shlibs" >&6
12960 test "$ld_shlibs" = no && can_build_shared=no
12961
12962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12963 if test "$GCC" = yes; then
12964   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12965 fi
12966
12967 #
12968 # Do we need to explicitly link libc?
12969 #
12970 case "x$archive_cmds_need_lc" in
12971 x|xyes)
12972   # Assume -lc should be added
12973   archive_cmds_need_lc=yes
12974
12975   if test "$enable_shared" = yes && test "$GCC" = yes; then
12976     case $archive_cmds in
12977     *'~'*)
12978       # FIXME: we may have to deal with multi-command sequences.
12979       ;;
12980     '$CC '*)
12981       # Test whether the compiler implicitly links with -lc since on some
12982       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12983       # to ld, don't add -lc before -lgcc.
12984       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12986       $rm conftest*
12987       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12988
12989       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990   (eval $ac_compile) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } 2>conftest.err; then
12994         soname=conftest
12995         lib=conftest
12996         libobjs=conftest.$ac_objext
12997         deplibs=
12998         wl=$lt_prog_compiler_wl
12999         compiler_flags=-v
13000         linker_flags=-v
13001         verstring=
13002         output_objdir=.
13003         libname=conftest
13004         lt_save_allow_undefined_flag=$allow_undefined_flag
13005         allow_undefined_flag=
13006         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13007   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); }
13011         then
13012           archive_cmds_need_lc=no
13013         else
13014           archive_cmds_need_lc=yes
13015         fi
13016         allow_undefined_flag=$lt_save_allow_undefined_flag
13017       else
13018         cat conftest.err 1>&5
13019       fi
13020       $rm conftest*
13021       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13022 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13023       ;;
13024     esac
13025   fi
13026   ;;
13027 esac
13028
13029 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13030 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13031 library_names_spec=
13032 libname_spec='lib$name'
13033 soname_spec=
13034 shrext_cmds=".so"
13035 postinstall_cmds=
13036 postuninstall_cmds=
13037 finish_cmds=
13038 finish_eval=
13039 shlibpath_var=
13040 shlibpath_overrides_runpath=unknown
13041 version_type=none
13042 dynamic_linker="$host_os ld.so"
13043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13044 if test "$GCC" = yes; then
13045   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13046   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13047     # if the path contains ";" then we assume it to be the separator
13048     # otherwise default to the standard path separator (i.e. ":") - it is
13049     # assumed that no part of a normal pathname contains ";" but that should
13050     # okay in the real world where ";" in dirpaths is itself problematic.
13051     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13052   else
13053     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13054   fi
13055 else
13056   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13057 fi
13058 need_lib_prefix=unknown
13059 hardcode_into_libs=no
13060
13061 # when you set need_version to no, make sure it does not cause -set_version
13062 # flags to be left without arguments
13063 need_version=unknown
13064
13065 case $host_os in
13066 aix3*)
13067   version_type=linux
13068   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13069   shlibpath_var=LIBPATH
13070
13071   # AIX 3 has no versioning support, so we append a major version to the name.
13072   soname_spec='${libname}${release}${shared_ext}$major'
13073   ;;
13074
13075 aix4* | aix5*)
13076   version_type=linux
13077   need_lib_prefix=no
13078   need_version=no
13079   hardcode_into_libs=yes
13080   if test "$host_cpu" = ia64; then
13081     # AIX 5 supports IA64
13082     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13083     shlibpath_var=LD_LIBRARY_PATH
13084   else
13085     # With GCC up to 2.95.x, collect2 would create an import file
13086     # for dependence libraries.  The import file would start with
13087     # the line `#! .'.  This would cause the generated library to
13088     # depend on `.', always an invalid library.  This was fixed in
13089     # development snapshots of GCC prior to 3.0.
13090     case $host_os in
13091       aix4 | aix4.[01] | aix4.[01].*)
13092       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13093            echo ' yes '
13094            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13095         :
13096       else
13097         can_build_shared=no
13098       fi
13099       ;;
13100     esac
13101     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13102     # soname into executable. Probably we can add versioning support to
13103     # collect2, so additional links can be useful in future.
13104     if test "$aix_use_runtimelinking" = yes; then
13105       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13106       # instead of lib<name>.a to let people know that these are not
13107       # typical AIX shared libraries.
13108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109     else
13110       # We preserve .a as extension for shared libraries through AIX4.2
13111       # and later when we are not doing run time linking.
13112       library_names_spec='${libname}${release}.a $libname.a'
13113       soname_spec='${libname}${release}${shared_ext}$major'
13114     fi
13115     shlibpath_var=LIBPATH
13116   fi
13117   ;;
13118
13119 amigaos*)
13120   library_names_spec='$libname.ixlibrary $libname.a'
13121   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13122   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'
13123   ;;
13124
13125 beos*)
13126   library_names_spec='${libname}${shared_ext}'
13127   dynamic_linker="$host_os ld.so"
13128   shlibpath_var=LIBRARY_PATH
13129   ;;
13130
13131 bsdi[45]*)
13132   version_type=linux
13133   need_version=no
13134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135   soname_spec='${libname}${release}${shared_ext}$major'
13136   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13137   shlibpath_var=LD_LIBRARY_PATH
13138   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13139   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13140   # the default ld.so.conf also contains /usr/contrib/lib and
13141   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13142   # libtool to hard-code these into programs
13143   ;;
13144
13145 cygwin* | mingw* | pw32*)
13146   version_type=windows
13147   shrext_cmds=".dll"
13148   need_version=no
13149   need_lib_prefix=no
13150
13151   case $GCC,$host_os in
13152   yes,cygwin* | yes,mingw* | yes,pw32*)
13153     library_names_spec='$libname.dll.a'
13154     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13155     postinstall_cmds='base_file=`basename \${file}`~
13156       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13157       dldir=$destdir/`dirname \$dlpath`~
13158       test -d \$dldir || mkdir -p \$dldir~
13159       $install_prog $dir/$dlname \$dldir/$dlname'
13160     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13161       dlpath=$dir/\$dldll~
13162        $rm \$dlpath'
13163     shlibpath_overrides_runpath=yes
13164
13165     case $host_os in
13166     cygwin*)
13167       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13168       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13169       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13170       ;;
13171     mingw*)
13172       # MinGW DLLs use traditional 'lib' prefix
13173       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13174       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13175       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13176         # It is most probably a Windows format PATH printed by
13177         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13178         # path with ; separators, and with drive letters. We can handle the
13179         # drive letters (cygwin fileutils understands them), so leave them,
13180         # especially as we might pass files found there to a mingw objdump,
13181         # which wouldn't understand a cygwinified path. Ahh.
13182         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13183       else
13184         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13185       fi
13186       ;;
13187     pw32*)
13188       # pw32 DLLs use 'pw' prefix rather than 'lib'
13189       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13190       ;;
13191     esac
13192     ;;
13193
13194   *)
13195     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13196     ;;
13197   esac
13198   dynamic_linker='Win32 ld.exe'
13199   # FIXME: first we should search . and the directory the executable is in
13200   shlibpath_var=PATH
13201   ;;
13202
13203 darwin* | rhapsody*)
13204   dynamic_linker="$host_os dyld"
13205   version_type=darwin
13206   need_lib_prefix=no
13207   need_version=no
13208   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13209   soname_spec='${libname}${release}${major}$shared_ext'
13210   shlibpath_overrides_runpath=yes
13211   shlibpath_var=DYLD_LIBRARY_PATH
13212   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13213   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13214   if test "$GCC" = yes; then
13215     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"`
13216   else
13217     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13218   fi
13219   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13220   ;;
13221
13222 dgux*)
13223   version_type=linux
13224   need_lib_prefix=no
13225   need_version=no
13226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13227   soname_spec='${libname}${release}${shared_ext}$major'
13228   shlibpath_var=LD_LIBRARY_PATH
13229   ;;
13230
13231 freebsd1*)
13232   dynamic_linker=no
13233   ;;
13234
13235 kfreebsd*-gnu)
13236   version_type=linux
13237   need_lib_prefix=no
13238   need_version=no
13239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13240   soname_spec='${libname}${release}${shared_ext}$major'
13241   shlibpath_var=LD_LIBRARY_PATH
13242   shlibpath_overrides_runpath=no
13243   hardcode_into_libs=yes
13244   dynamic_linker='GNU ld.so'
13245   ;;
13246
13247 freebsd*)
13248   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13249   version_type=freebsd-$objformat
13250   case $version_type in
13251     freebsd-elf*)
13252       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13253       need_version=no
13254       need_lib_prefix=no
13255       ;;
13256     freebsd-*)
13257       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13258       need_version=yes
13259       ;;
13260   esac
13261   shlibpath_var=LD_LIBRARY_PATH
13262   case $host_os in
13263   freebsd2*)
13264     shlibpath_overrides_runpath=yes
13265     ;;
13266   freebsd3.01* | freebsdelf3.01*)
13267     shlibpath_overrides_runpath=yes
13268     hardcode_into_libs=yes
13269     ;;
13270   *) # from 3.2 on
13271     shlibpath_overrides_runpath=no
13272     hardcode_into_libs=yes
13273     ;;
13274   esac
13275   ;;
13276
13277 gnu*)
13278   version_type=linux
13279   need_lib_prefix=no
13280   need_version=no
13281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13282   soname_spec='${libname}${release}${shared_ext}$major'
13283   shlibpath_var=LD_LIBRARY_PATH
13284   hardcode_into_libs=yes
13285   ;;
13286
13287 hpux9* | hpux10* | hpux11*)
13288   # Give a soname corresponding to the major version so that dld.sl refuses to
13289   # link against other versions.
13290   version_type=sunos
13291   need_lib_prefix=no
13292   need_version=no
13293   case "$host_cpu" in
13294   ia64*)
13295     shrext_cmds='.so'
13296     hardcode_into_libs=yes
13297     dynamic_linker="$host_os dld.so"
13298     shlibpath_var=LD_LIBRARY_PATH
13299     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13301     soname_spec='${libname}${release}${shared_ext}$major'
13302     if test "X$HPUX_IA64_MODE" = X32; then
13303       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13304     else
13305       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13306     fi
13307     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13308     ;;
13309    hppa*64*)
13310      shrext_cmds='.sl'
13311      hardcode_into_libs=yes
13312      dynamic_linker="$host_os dld.sl"
13313      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13314      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13315      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316      soname_spec='${libname}${release}${shared_ext}$major'
13317      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13318      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13319      ;;
13320    *)
13321     shrext_cmds='.sl'
13322     dynamic_linker="$host_os dld.sl"
13323     shlibpath_var=SHLIB_PATH
13324     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326     soname_spec='${libname}${release}${shared_ext}$major'
13327     ;;
13328   esac
13329   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13330   postinstall_cmds='chmod 555 $lib'
13331   ;;
13332
13333 irix5* | irix6* | nonstopux*)
13334   case $host_os in
13335     nonstopux*) version_type=nonstopux ;;
13336     *)
13337         if test "$lt_cv_prog_gnu_ld" = yes; then
13338                 version_type=linux
13339         else
13340                 version_type=irix
13341         fi ;;
13342   esac
13343   need_lib_prefix=no
13344   need_version=no
13345   soname_spec='${libname}${release}${shared_ext}$major'
13346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13347   case $host_os in
13348   irix5* | nonstopux*)
13349     libsuff= shlibsuff=
13350     ;;
13351   *)
13352     case $LD in # libtool.m4 will add one of these switches to LD
13353     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13354       libsuff= shlibsuff= libmagic=32-bit;;
13355     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13356       libsuff=32 shlibsuff=N32 libmagic=N32;;
13357     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13358       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13359     *) libsuff= shlibsuff= libmagic=never-match;;
13360     esac
13361     ;;
13362   esac
13363   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13364   shlibpath_overrides_runpath=no
13365   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13366   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13367   hardcode_into_libs=yes
13368   ;;
13369
13370 # No shared lib support for Linux oldld, aout, or coff.
13371 linux*oldld* | linux*aout* | linux*coff*)
13372   dynamic_linker=no
13373   ;;
13374
13375 # This must be Linux ELF.
13376 linux*)
13377   version_type=linux
13378   need_lib_prefix=no
13379   need_version=no
13380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381   soname_spec='${libname}${release}${shared_ext}$major'
13382   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13383   shlibpath_var=LD_LIBRARY_PATH
13384   shlibpath_overrides_runpath=no
13385   # This implies no fast_install, which is unacceptable.
13386   # Some rework will be needed to allow for fast_install
13387   # before this can be enabled.
13388   hardcode_into_libs=yes
13389
13390   # Append ld.so.conf contents to the search path
13391   if test -f /etc/ld.so.conf; then
13392     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13393     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13394   fi
13395
13396   # We used to test for /lib/ld.so.1 and disable shared libraries on
13397   # powerpc, because MkLinux only supported shared libraries with the
13398   # GNU dynamic linker.  Since this was broken with cross compilers,
13399   # most powerpc-linux boxes support dynamic linking these days and
13400   # people can always --disable-shared, the test was removed, and we
13401   # assume the GNU/Linux dynamic linker is in use.
13402   dynamic_linker='GNU/Linux ld.so'
13403   ;;
13404
13405 knetbsd*-gnu)
13406   version_type=linux
13407   need_lib_prefix=no
13408   need_version=no
13409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13410   soname_spec='${libname}${release}${shared_ext}$major'
13411   shlibpath_var=LD_LIBRARY_PATH
13412   shlibpath_overrides_runpath=no
13413   hardcode_into_libs=yes
13414   dynamic_linker='GNU ld.so'
13415   ;;
13416
13417 netbsd*)
13418   version_type=sunos
13419   need_lib_prefix=no
13420   need_version=no
13421   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13423     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13424     dynamic_linker='NetBSD (a.out) ld.so'
13425   else
13426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13427     soname_spec='${libname}${release}${shared_ext}$major'
13428     dynamic_linker='NetBSD ld.elf_so'
13429   fi
13430   shlibpath_var=LD_LIBRARY_PATH
13431   shlibpath_overrides_runpath=yes
13432   hardcode_into_libs=yes
13433   ;;
13434
13435 newsos6)
13436   version_type=linux
13437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438   shlibpath_var=LD_LIBRARY_PATH
13439   shlibpath_overrides_runpath=yes
13440   ;;
13441
13442 nto-qnx*)
13443   version_type=linux
13444   need_lib_prefix=no
13445   need_version=no
13446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447   soname_spec='${libname}${release}${shared_ext}$major'
13448   shlibpath_var=LD_LIBRARY_PATH
13449   shlibpath_overrides_runpath=yes
13450   ;;
13451
13452 openbsd*)
13453   version_type=sunos
13454   need_lib_prefix=no
13455   need_version=no
13456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13457   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13458   shlibpath_var=LD_LIBRARY_PATH
13459   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13460     case $host_os in
13461       openbsd2.[89] | openbsd2.[89].*)
13462         shlibpath_overrides_runpath=no
13463         ;;
13464       *)
13465         shlibpath_overrides_runpath=yes
13466         ;;
13467       esac
13468   else
13469     shlibpath_overrides_runpath=yes
13470   fi
13471   ;;
13472
13473 os2*)
13474   libname_spec='$name'
13475   shrext_cmds=".dll"
13476   need_lib_prefix=no
13477   library_names_spec='$libname${shared_ext} $libname.a'
13478   dynamic_linker='OS/2 ld.exe'
13479   shlibpath_var=LIBPATH
13480   ;;
13481
13482 osf3* | osf4* | osf5*)
13483   version_type=osf
13484   need_lib_prefix=no
13485   need_version=no
13486   soname_spec='${libname}${release}${shared_ext}$major'
13487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13488   shlibpath_var=LD_LIBRARY_PATH
13489   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13490   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13491   ;;
13492
13493 sco3.2v5*)
13494   version_type=osf
13495   soname_spec='${libname}${release}${shared_ext}$major'
13496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497   shlibpath_var=LD_LIBRARY_PATH
13498   ;;
13499
13500 solaris*)
13501   version_type=linux
13502   need_lib_prefix=no
13503   need_version=no
13504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505   soname_spec='${libname}${release}${shared_ext}$major'
13506   shlibpath_var=LD_LIBRARY_PATH
13507   shlibpath_overrides_runpath=yes
13508   hardcode_into_libs=yes
13509   # ldd complains unless libraries are executable
13510   postinstall_cmds='chmod +x $lib'
13511   ;;
13512
13513 sunos4*)
13514   version_type=sunos
13515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13516   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13517   shlibpath_var=LD_LIBRARY_PATH
13518   shlibpath_overrides_runpath=yes
13519   if test "$with_gnu_ld" = yes; then
13520     need_lib_prefix=no
13521   fi
13522   need_version=yes
13523   ;;
13524
13525 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13526   version_type=linux
13527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528   soname_spec='${libname}${release}${shared_ext}$major'
13529   shlibpath_var=LD_LIBRARY_PATH
13530   case $host_vendor in
13531     sni)
13532       shlibpath_overrides_runpath=no
13533       need_lib_prefix=no
13534       export_dynamic_flag_spec='${wl}-Blargedynsym'
13535       runpath_var=LD_RUN_PATH
13536       ;;
13537     siemens)
13538       need_lib_prefix=no
13539       ;;
13540     motorola)
13541       need_lib_prefix=no
13542       need_version=no
13543       shlibpath_overrides_runpath=no
13544       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13545       ;;
13546   esac
13547   ;;
13548
13549 sysv4*MP*)
13550   if test -d /usr/nec ;then
13551     version_type=linux
13552     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13553     soname_spec='$libname${shared_ext}.$major'
13554     shlibpath_var=LD_LIBRARY_PATH
13555   fi
13556   ;;
13557
13558 uts4*)
13559   version_type=linux
13560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561   soname_spec='${libname}${release}${shared_ext}$major'
13562   shlibpath_var=LD_LIBRARY_PATH
13563   ;;
13564
13565 *)
13566   dynamic_linker=no
13567   ;;
13568 esac
13569 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13570 echo "${ECHO_T}$dynamic_linker" >&6
13571 test "$dynamic_linker" = no && can_build_shared=no
13572
13573 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13574 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13575 hardcode_action=
13576 if test -n "$hardcode_libdir_flag_spec" || \
13577    test -n "$runpath_var" || \
13578    test "X$hardcode_automatic" = "Xyes" ; then
13579
13580   # We can hardcode non-existant directories.
13581   if test "$hardcode_direct" != no &&
13582      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13583      # have to relink, otherwise we might link with an installed library
13584      # when we should be linking with a yet-to-be-installed one
13585      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13586      test "$hardcode_minus_L" != no; then
13587     # Linking always hardcodes the temporary library directory.
13588     hardcode_action=relink
13589   else
13590     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13591     hardcode_action=immediate
13592   fi
13593 else
13594   # We cannot hardcode anything, or else we can only hardcode existing
13595   # directories.
13596   hardcode_action=unsupported
13597 fi
13598 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13599 echo "${ECHO_T}$hardcode_action" >&6
13600
13601 if test "$hardcode_action" = relink; then
13602   # Fast installation is not supported
13603   enable_fast_install=no
13604 elif test "$shlibpath_overrides_runpath" = yes ||
13605      test "$enable_shared" = no; then
13606   # Fast installation is not necessary
13607   enable_fast_install=needless
13608 fi
13609
13610 striplib=
13611 old_striplib=
13612 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13613 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13614 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13615   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13616   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13617   echo "$as_me:$LINENO: result: yes" >&5
13618 echo "${ECHO_T}yes" >&6
13619 else
13620 # FIXME - insert some real tests, host_os isn't really good enough
13621   case $host_os in
13622    darwin*)
13623        if test -n "$STRIP" ; then
13624          striplib="$STRIP -x"
13625          echo "$as_me:$LINENO: result: yes" >&5
13626 echo "${ECHO_T}yes" >&6
13627        else
13628   echo "$as_me:$LINENO: result: no" >&5
13629 echo "${ECHO_T}no" >&6
13630 fi
13631        ;;
13632    *)
13633   echo "$as_me:$LINENO: result: no" >&5
13634 echo "${ECHO_T}no" >&6
13635     ;;
13636   esac
13637 fi
13638
13639 if test "x$enable_dlopen" != xyes; then
13640   enable_dlopen=unknown
13641   enable_dlopen_self=unknown
13642   enable_dlopen_self_static=unknown
13643 else
13644   lt_cv_dlopen=no
13645   lt_cv_dlopen_libs=
13646
13647   case $host_os in
13648   beos*)
13649     lt_cv_dlopen="load_add_on"
13650     lt_cv_dlopen_libs=
13651     lt_cv_dlopen_self=yes
13652     ;;
13653
13654   mingw* | pw32*)
13655     lt_cv_dlopen="LoadLibrary"
13656     lt_cv_dlopen_libs=
13657    ;;
13658
13659   cygwin*)
13660     lt_cv_dlopen="dlopen"
13661     lt_cv_dlopen_libs=
13662    ;;
13663
13664   darwin*)
13665   # if libdl is installed we need to link against it
13666     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13667 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13669   echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671   ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-ldl  $LIBS"
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679
13680 /* Override any gcc2 internal prototype to avoid an error.  */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 /* We use char because int might match the return type of a gcc2
13685    builtin and then its argument prototype would still apply.  */
13686 char dlopen ();
13687 int
13688 main ()
13689 {
13690 dlopen ();
13691   ;
13692   return 0;
13693 }
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697   (eval $ac_link) 2>conftest.er1
13698   ac_status=$?
13699   grep -v '^ *+' conftest.er1 >conftest.err
13700   rm -f conftest.er1
13701   cat conftest.err >&5
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } &&
13704          { ac_try='test -z "$ac_c_werror_flag"
13705                          || test ! -s conftest.err'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; } &&
13711          { ac_try='test -s conftest$ac_exeext'
13712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713   (eval $ac_try) 2>&5
13714   ac_status=$?
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); }; }; then
13717   ac_cv_lib_dl_dlopen=yes
13718 else
13719   echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13721
13722 ac_cv_lib_dl_dlopen=no
13723 fi
13724 rm -f conftest.err conftest.$ac_objext \
13725       conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13727 fi
13728 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13729 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13730 if test $ac_cv_lib_dl_dlopen = yes; then
13731   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13732 else
13733
13734     lt_cv_dlopen="dyld"
13735     lt_cv_dlopen_libs=
13736     lt_cv_dlopen_self=yes
13737
13738 fi
13739
13740    ;;
13741
13742   *)
13743     echo "$as_me:$LINENO: checking for shl_load" >&5
13744 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13745 if test "${ac_cv_func_shl_load+set}" = set; then
13746   echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748   cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h.  */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h.  */
13754 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13756 #define shl_load innocuous_shl_load
13757
13758 /* System header to define __stub macros and hopefully few prototypes,
13759     which can conflict with char shl_load (); below.
13760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13761     <limits.h> exists even on freestanding compilers.  */
13762
13763 #ifdef __STDC__
13764 # include <limits.h>
13765 #else
13766 # include <assert.h>
13767 #endif
13768
13769 #undef shl_load
13770
13771 /* Override any gcc2 internal prototype to avoid an error.  */
13772 #ifdef __cplusplus
13773 extern "C"
13774 {
13775 #endif
13776 /* We use char because int might match the return type of a gcc2
13777    builtin and then its argument prototype would still apply.  */
13778 char shl_load ();
13779 /* The GNU C library defines this for functions which it implements
13780     to always fail with ENOSYS.  Some functions are actually named
13781     something starting with __ and the normal name is an alias.  */
13782 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13783 choke me
13784 #else
13785 char (*f) () = shl_load;
13786 #endif
13787 #ifdef __cplusplus
13788 }
13789 #endif
13790
13791 int
13792 main ()
13793 {
13794 return f != shl_load;
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext conftest$ac_exeext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801   (eval $ac_link) 2>conftest.er1
13802   ac_status=$?
13803   grep -v '^ *+' conftest.er1 >conftest.err
13804   rm -f conftest.er1
13805   cat conftest.err >&5
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); } &&
13808          { ac_try='test -z "$ac_c_werror_flag"
13809                          || test ! -s conftest.err'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; } &&
13815          { ac_try='test -s conftest$ac_exeext'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; }; then
13821   ac_cv_func_shl_load=yes
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826 ac_cv_func_shl_load=no
13827 fi
13828 rm -f conftest.err conftest.$ac_objext \
13829       conftest$ac_exeext conftest.$ac_ext
13830 fi
13831 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13832 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13833 if test $ac_cv_func_shl_load = yes; then
13834   lt_cv_dlopen="shl_load"
13835 else
13836   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13837 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13838 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13839   echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841   ac_check_lib_save_LIBS=$LIBS
13842 LIBS="-ldld  $LIBS"
13843 cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h.  */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h.  */
13849
13850 /* Override any gcc2 internal prototype to avoid an error.  */
13851 #ifdef __cplusplus
13852 extern "C"
13853 #endif
13854 /* We use char because int might match the return type of a gcc2
13855    builtin and then its argument prototype would still apply.  */
13856 char shl_load ();
13857 int
13858 main ()
13859 {
13860 shl_load ();
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867   (eval $ac_link) 2>conftest.er1
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
13871   cat conftest.err >&5
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -z "$ac_c_werror_flag"
13875                          || test ! -s conftest.err'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; } &&
13881          { ac_try='test -s conftest$ac_exeext'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; }; then
13887   ac_cv_lib_dld_shl_load=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13891
13892 ac_cv_lib_dld_shl_load=no
13893 fi
13894 rm -f conftest.err conftest.$ac_objext \
13895       conftest$ac_exeext conftest.$ac_ext
13896 LIBS=$ac_check_lib_save_LIBS
13897 fi
13898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13900 if test $ac_cv_lib_dld_shl_load = yes; then
13901   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13902 else
13903   echo "$as_me:$LINENO: checking for dlopen" >&5
13904 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13905 if test "${ac_cv_func_dlopen+set}" = set; then
13906   echo $ECHO_N "(cached) $ECHO_C" >&6
13907 else
13908   cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13916 #define dlopen innocuous_dlopen
13917
13918 /* System header to define __stub macros and hopefully few prototypes,
13919     which can conflict with char dlopen (); below.
13920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13921     <limits.h> exists even on freestanding compilers.  */
13922
13923 #ifdef __STDC__
13924 # include <limits.h>
13925 #else
13926 # include <assert.h>
13927 #endif
13928
13929 #undef dlopen
13930
13931 /* Override any gcc2 internal prototype to avoid an error.  */
13932 #ifdef __cplusplus
13933 extern "C"
13934 {
13935 #endif
13936 /* We use char because int might match the return type of a gcc2
13937    builtin and then its argument prototype would still apply.  */
13938 char dlopen ();
13939 /* The GNU C library defines this for functions which it implements
13940     to always fail with ENOSYS.  Some functions are actually named
13941     something starting with __ and the normal name is an alias.  */
13942 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13943 choke me
13944 #else
13945 char (*f) () = dlopen;
13946 #endif
13947 #ifdef __cplusplus
13948 }
13949 #endif
13950
13951 int
13952 main ()
13953 {
13954 return f != dlopen;
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961   (eval $ac_link) 2>conftest.er1
13962   ac_status=$?
13963   grep -v '^ *+' conftest.er1 >conftest.err
13964   rm -f conftest.er1
13965   cat conftest.err >&5
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } &&
13968          { ac_try='test -z "$ac_c_werror_flag"
13969                          || test ! -s conftest.err'
13970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971   (eval $ac_try) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; } &&
13975          { ac_try='test -s conftest$ac_exeext'
13976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977   (eval $ac_try) 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }; }; then
13981   ac_cv_func_dlopen=yes
13982 else
13983   echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13985
13986 ac_cv_func_dlopen=no
13987 fi
13988 rm -f conftest.err conftest.$ac_objext \
13989       conftest$ac_exeext conftest.$ac_ext
13990 fi
13991 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13992 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13993 if test $ac_cv_func_dlopen = yes; then
13994   lt_cv_dlopen="dlopen"
13995 else
13996   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13997 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13999   echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001   ac_check_lib_save_LIBS=$LIBS
14002 LIBS="-ldl  $LIBS"
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009
14010 /* Override any gcc2 internal prototype to avoid an error.  */
14011 #ifdef __cplusplus
14012 extern "C"
14013 #endif
14014 /* We use char because int might match the return type of a gcc2
14015    builtin and then its argument prototype would still apply.  */
14016 char dlopen ();
14017 int
14018 main ()
14019 {
14020 dlopen ();
14021   ;
14022   return 0;
14023 }
14024 _ACEOF
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027   (eval $ac_link) 2>conftest.er1
14028   ac_status=$?
14029   grep -v '^ *+' conftest.er1 >conftest.err
14030   rm -f conftest.er1
14031   cat conftest.err >&5
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } &&
14034          { ac_try='test -z "$ac_c_werror_flag"
14035                          || test ! -s conftest.err'
14036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037   (eval $ac_try) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; } &&
14041          { ac_try='test -s conftest$ac_exeext'
14042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043   (eval $ac_try) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; }; then
14047   ac_cv_lib_dl_dlopen=yes
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_cv_lib_dl_dlopen=no
14053 fi
14054 rm -f conftest.err conftest.$ac_objext \
14055       conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14057 fi
14058 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14060 if test $ac_cv_lib_dl_dlopen = yes; then
14061   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14062 else
14063   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14064 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14065 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14066   echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068   ac_check_lib_save_LIBS=$LIBS
14069 LIBS="-lsvld  $LIBS"
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076
14077 /* Override any gcc2 internal prototype to avoid an error.  */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 /* We use char because int might match the return type of a gcc2
14082    builtin and then its argument prototype would still apply.  */
14083 char dlopen ();
14084 int
14085 main ()
14086 {
14087 dlopen ();
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094   (eval $ac_link) 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -z "$ac_c_werror_flag"
14102                          || test ! -s conftest.err'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; } &&
14108          { ac_try='test -s conftest$ac_exeext'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; }; then
14114   ac_cv_lib_svld_dlopen=yes
14115 else
14116   echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14118
14119 ac_cv_lib_svld_dlopen=no
14120 fi
14121 rm -f conftest.err conftest.$ac_objext \
14122       conftest$ac_exeext conftest.$ac_ext
14123 LIBS=$ac_check_lib_save_LIBS
14124 fi
14125 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14126 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14127 if test $ac_cv_lib_svld_dlopen = yes; then
14128   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14129 else
14130   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14131 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14132 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14133   echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135   ac_check_lib_save_LIBS=$LIBS
14136 LIBS="-ldld  $LIBS"
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h.  */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h.  */
14143
14144 /* Override any gcc2 internal prototype to avoid an error.  */
14145 #ifdef __cplusplus
14146 extern "C"
14147 #endif
14148 /* We use char because int might match the return type of a gcc2
14149    builtin and then its argument prototype would still apply.  */
14150 char dld_link ();
14151 int
14152 main ()
14153 {
14154 dld_link ();
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext conftest$ac_exeext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14161   (eval $ac_link) 2>conftest.er1
14162   ac_status=$?
14163   grep -v '^ *+' conftest.er1 >conftest.err
14164   rm -f conftest.er1
14165   cat conftest.err >&5
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } &&
14168          { ac_try='test -z "$ac_c_werror_flag"
14169                          || test ! -s conftest.err'
14170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171   (eval $ac_try) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; } &&
14175          { ac_try='test -s conftest$ac_exeext'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; }; then
14181   ac_cv_lib_dld_dld_link=yes
14182 else
14183   echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14185
14186 ac_cv_lib_dld_dld_link=no
14187 fi
14188 rm -f conftest.err conftest.$ac_objext \
14189       conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14191 fi
14192 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14193 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14194 if test $ac_cv_lib_dld_dld_link = yes; then
14195   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14196 fi
14197
14198
14199 fi
14200
14201
14202 fi
14203
14204
14205 fi
14206
14207
14208 fi
14209
14210
14211 fi
14212
14213     ;;
14214   esac
14215
14216   if test "x$lt_cv_dlopen" != xno; then
14217     enable_dlopen=yes
14218   else
14219     enable_dlopen=no
14220   fi
14221
14222   case $lt_cv_dlopen in
14223   dlopen)
14224     save_CPPFLAGS="$CPPFLAGS"
14225     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14226
14227     save_LDFLAGS="$LDFLAGS"
14228     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14229
14230     save_LIBS="$LIBS"
14231     LIBS="$lt_cv_dlopen_libs $LIBS"
14232
14233     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14234 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14235 if test "${lt_cv_dlopen_self+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238           if test "$cross_compiling" = yes; then :
14239   lt_cv_dlopen_self=cross
14240 else
14241   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14242   lt_status=$lt_dlunknown
14243   cat > conftest.$ac_ext <<EOF
14244 #line 14244 "configure"
14245 #include "confdefs.h"
14246
14247 #if HAVE_DLFCN_H
14248 #include <dlfcn.h>
14249 #endif
14250
14251 #include <stdio.h>
14252
14253 #ifdef RTLD_GLOBAL
14254 #  define LT_DLGLOBAL           RTLD_GLOBAL
14255 #else
14256 #  ifdef DL_GLOBAL
14257 #    define LT_DLGLOBAL         DL_GLOBAL
14258 #  else
14259 #    define LT_DLGLOBAL         0
14260 #  endif
14261 #endif
14262
14263 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14264    find out it does not work in some platform. */
14265 #ifndef LT_DLLAZY_OR_NOW
14266 #  ifdef RTLD_LAZY
14267 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14268 #  else
14269 #    ifdef DL_LAZY
14270 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14271 #    else
14272 #      ifdef RTLD_NOW
14273 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14274 #      else
14275 #        ifdef DL_NOW
14276 #          define LT_DLLAZY_OR_NOW      DL_NOW
14277 #        else
14278 #          define LT_DLLAZY_OR_NOW      0
14279 #        endif
14280 #      endif
14281 #    endif
14282 #  endif
14283 #endif
14284
14285 #ifdef __cplusplus
14286 extern "C" void exit (int);
14287 #endif
14288
14289 void fnord() { int i=42;}
14290 int main ()
14291 {
14292   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14293   int status = $lt_dlunknown;
14294
14295   if (self)
14296     {
14297       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14298       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14299       /* dlclose (self); */
14300     }
14301
14302     exit (status);
14303 }
14304 EOF
14305   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14306   (eval $ac_link) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14310     (./conftest; exit; ) 2>/dev/null
14311     lt_status=$?
14312     case x$lt_status in
14313       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14314       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14315       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14316     esac
14317   else :
14318     # compilation failed
14319     lt_cv_dlopen_self=no
14320   fi
14321 fi
14322 rm -fr conftest*
14323
14324
14325 fi
14326 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14327 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14328
14329     if test "x$lt_cv_dlopen_self" = xyes; then
14330       LDFLAGS="$LDFLAGS $link_static_flag"
14331       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14332 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14333 if test "${lt_cv_dlopen_self_static+set}" = set; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336           if test "$cross_compiling" = yes; then :
14337   lt_cv_dlopen_self_static=cross
14338 else
14339   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14340   lt_status=$lt_dlunknown
14341   cat > conftest.$ac_ext <<EOF
14342 #line 14342 "configure"
14343 #include "confdefs.h"
14344
14345 #if HAVE_DLFCN_H
14346 #include <dlfcn.h>
14347 #endif
14348
14349 #include <stdio.h>
14350
14351 #ifdef RTLD_GLOBAL
14352 #  define LT_DLGLOBAL           RTLD_GLOBAL
14353 #else
14354 #  ifdef DL_GLOBAL
14355 #    define LT_DLGLOBAL         DL_GLOBAL
14356 #  else
14357 #    define LT_DLGLOBAL         0
14358 #  endif
14359 #endif
14360
14361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14362    find out it does not work in some platform. */
14363 #ifndef LT_DLLAZY_OR_NOW
14364 #  ifdef RTLD_LAZY
14365 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14366 #  else
14367 #    ifdef DL_LAZY
14368 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14369 #    else
14370 #      ifdef RTLD_NOW
14371 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14372 #      else
14373 #        ifdef DL_NOW
14374 #          define LT_DLLAZY_OR_NOW      DL_NOW
14375 #        else
14376 #          define LT_DLLAZY_OR_NOW      0
14377 #        endif
14378 #      endif
14379 #    endif
14380 #  endif
14381 #endif
14382
14383 #ifdef __cplusplus
14384 extern "C" void exit (int);
14385 #endif
14386
14387 void fnord() { int i=42;}
14388 int main ()
14389 {
14390   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14391   int status = $lt_dlunknown;
14392
14393   if (self)
14394     {
14395       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14396       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14397       /* dlclose (self); */
14398     }
14399
14400     exit (status);
14401 }
14402 EOF
14403   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404   (eval $ac_link) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14408     (./conftest; exit; ) 2>/dev/null
14409     lt_status=$?
14410     case x$lt_status in
14411       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14412       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14413       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14414     esac
14415   else :
14416     # compilation failed
14417     lt_cv_dlopen_self_static=no
14418   fi
14419 fi
14420 rm -fr conftest*
14421
14422
14423 fi
14424 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14425 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14426     fi
14427
14428     CPPFLAGS="$save_CPPFLAGS"
14429     LDFLAGS="$save_LDFLAGS"
14430     LIBS="$save_LIBS"
14431     ;;
14432   esac
14433
14434   case $lt_cv_dlopen_self in
14435   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14436   *) enable_dlopen_self=unknown ;;
14437   esac
14438
14439   case $lt_cv_dlopen_self_static in
14440   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14441   *) enable_dlopen_self_static=unknown ;;
14442   esac
14443 fi
14444
14445
14446 # Report which librarie types wil actually be built
14447 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14448 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14449 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14450 echo "${ECHO_T}$can_build_shared" >&6
14451
14452 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14453 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14454 test "$can_build_shared" = "no" && enable_shared=no
14455
14456 # On AIX, shared libraries and static libraries use the same namespace, and
14457 # are all built from PIC.
14458 case "$host_os" in
14459 aix3*)
14460   test "$enable_shared" = yes && enable_static=no
14461   if test -n "$RANLIB"; then
14462     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14463     postinstall_cmds='$RANLIB $lib'
14464   fi
14465   ;;
14466
14467 aix4* | aix5*)
14468   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14469     test "$enable_shared" = yes && enable_static=no
14470   fi
14471     ;;
14472 esac
14473 echo "$as_me:$LINENO: result: $enable_shared" >&5
14474 echo "${ECHO_T}$enable_shared" >&6
14475
14476 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14477 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14478 # Make sure either enable_shared or enable_static is yes.
14479 test "$enable_shared" = yes || enable_static=yes
14480 echo "$as_me:$LINENO: result: $enable_static" >&5
14481 echo "${ECHO_T}$enable_static" >&6
14482
14483 # The else clause should only fire when bootstrapping the
14484 # libtool distribution, otherwise you forgot to ship ltmain.sh
14485 # with your package, and you will get complaints that there are
14486 # no rules to generate ltmain.sh.
14487 if test -f "$ltmain"; then
14488   # See if we are running on zsh, and set the options which allow our commands through
14489   # without removal of \ escapes.
14490   if test -n "${ZSH_VERSION+set}" ; then
14491     setopt NO_GLOB_SUBST
14492   fi
14493   # Now quote all the things that may contain metacharacters while being
14494   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14495   # variables and quote the copies for generation of the libtool script.
14496   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14497     SED SHELL STRIP \
14498     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14499     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14500     deplibs_check_method reload_flag reload_cmds need_locks \
14501     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14502     lt_cv_sys_global_symbol_to_c_name_address \
14503     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14504     old_postinstall_cmds old_postuninstall_cmds \
14505     compiler \
14506     CC \
14507     LD \
14508     lt_prog_compiler_wl \
14509     lt_prog_compiler_pic \
14510     lt_prog_compiler_static \
14511     lt_prog_compiler_no_builtin_flag \
14512     export_dynamic_flag_spec \
14513     thread_safe_flag_spec \
14514     whole_archive_flag_spec \
14515     enable_shared_with_static_runtimes \
14516     old_archive_cmds \
14517     old_archive_from_new_cmds \
14518     predep_objects \
14519     postdep_objects \
14520     predeps \
14521     postdeps \
14522     compiler_lib_search_path \
14523     archive_cmds \
14524     archive_expsym_cmds \
14525     postinstall_cmds \
14526     postuninstall_cmds \
14527     old_archive_from_expsyms_cmds \
14528     allow_undefined_flag \
14529     no_undefined_flag \
14530     export_symbols_cmds \
14531     hardcode_libdir_flag_spec \
14532     hardcode_libdir_flag_spec_ld \
14533     hardcode_libdir_separator \
14534     hardcode_automatic \
14535     module_cmds \
14536     module_expsym_cmds \
14537     lt_cv_prog_compiler_c_o \
14538     exclude_expsyms \
14539     include_expsyms; do
14540
14541     case $var in
14542     old_archive_cmds | \
14543     old_archive_from_new_cmds | \
14544     archive_cmds | \
14545     archive_expsym_cmds | \
14546     module_cmds | \
14547     module_expsym_cmds | \
14548     old_archive_from_expsyms_cmds | \
14549     export_symbols_cmds | \
14550     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14551     postinstall_cmds | postuninstall_cmds | \
14552     old_postinstall_cmds | old_postuninstall_cmds | \
14553     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14554       # Double-quote double-evaled strings.
14555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14556       ;;
14557     *)
14558       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14559       ;;
14560     esac
14561   done
14562
14563   case $lt_echo in
14564   *'\$0 --fallback-echo"')
14565     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14566     ;;
14567   esac
14568
14569 cfgfile="${ofile}T"
14570   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14571   $rm -f "$cfgfile"
14572   { echo "$as_me:$LINENO: creating $ofile" >&5
14573 echo "$as_me: creating $ofile" >&6;}
14574
14575   cat <<__EOF__ >> "$cfgfile"
14576 #! $SHELL
14577
14578 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14579 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14581 #
14582 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14583 # Free Software Foundation, Inc.
14584 #
14585 # This file is part of GNU Libtool:
14586 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14587 #
14588 # This program is free software; you can redistribute it and/or modify
14589 # it under the terms of the GNU General Public License as published by
14590 # the Free Software Foundation; either version 2 of the License, or
14591 # (at your option) any later version.
14592 #
14593 # This program is distributed in the hope that it will be useful, but
14594 # WITHOUT ANY WARRANTY; without even the implied warranty of
14595 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14596 # General Public License for more details.
14597 #
14598 # You should have received a copy of the GNU General Public License
14599 # along with this program; if not, write to the Free Software
14600 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14601 #
14602 # As a special exception to the GNU General Public License, if you
14603 # distribute this file as part of a program that contains a
14604 # configuration script generated by Autoconf, you may include it under
14605 # the same distribution terms that you use for the rest of that program.
14606
14607 # A sed program that does not truncate output.
14608 SED=$lt_SED
14609
14610 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14611 Xsed="$SED -e s/^X//"
14612
14613 # The HP-UX ksh and POSIX shell print the target directory to stdout
14614 # if CDPATH is set.
14615 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14616
14617 # The names of the tagged configurations supported by this script.
14618 available_tags=
14619
14620 # ### BEGIN LIBTOOL CONFIG
14621
14622 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14623
14624 # Shell to use when invoking shell scripts.
14625 SHELL=$lt_SHELL
14626
14627 # Whether or not to build shared libraries.
14628 build_libtool_libs=$enable_shared
14629
14630 # Whether or not to build static libraries.
14631 build_old_libs=$enable_static
14632
14633 # Whether or not to add -lc for building shared libraries.
14634 build_libtool_need_lc=$archive_cmds_need_lc
14635
14636 # Whether or not to disallow shared libs when runtime libs are static
14637 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14638
14639 # Whether or not to optimize for fast installation.
14640 fast_install=$enable_fast_install
14641
14642 # The host system.
14643 host_alias=$host_alias
14644 host=$host
14645
14646 # An echo program that does not interpret backslashes.
14647 echo=$lt_echo
14648
14649 # The archiver.
14650 AR=$lt_AR
14651 AR_FLAGS=$lt_AR_FLAGS
14652
14653 # A C compiler.
14654 LTCC=$lt_LTCC
14655
14656 # A language-specific compiler.
14657 CC=$lt_compiler
14658
14659 # Is the compiler the GNU C compiler?
14660 with_gcc=$GCC
14661
14662 # An ERE matcher.
14663 EGREP=$lt_EGREP
14664
14665 # The linker used to build libraries.
14666 LD=$lt_LD
14667
14668 # Whether we need hard or soft links.
14669 LN_S=$lt_LN_S
14670
14671 # A BSD-compatible nm program.
14672 NM=$lt_NM
14673
14674 # A symbol stripping program
14675 STRIP=$lt_STRIP
14676
14677 # Used to examine libraries when file_magic_cmd begins "file"
14678 MAGIC_CMD=$MAGIC_CMD
14679
14680 # Used on cygwin: DLL creation program.
14681 DLLTOOL="$DLLTOOL"
14682
14683 # Used on cygwin: object dumper.
14684 OBJDUMP="$OBJDUMP"
14685
14686 # Used on cygwin: assembler.
14687 AS="$AS"
14688
14689 # The name of the directory that contains temporary libtool files.
14690 objdir=$objdir
14691
14692 # How to create reloadable object files.
14693 reload_flag=$lt_reload_flag
14694 reload_cmds=$lt_reload_cmds
14695
14696 # How to pass a linker flag through the compiler.
14697 wl=$lt_lt_prog_compiler_wl
14698
14699 # Object file suffix (normally "o").
14700 objext="$ac_objext"
14701
14702 # Old archive suffix (normally "a").
14703 libext="$libext"
14704
14705 # Shared library suffix (normally ".so").
14706 shrext_cmds='$shrext_cmds'
14707
14708 # Executable file suffix (normally "").
14709 exeext="$exeext"
14710
14711 # Additional compiler flags for building library objects.
14712 pic_flag=$lt_lt_prog_compiler_pic
14713 pic_mode=$pic_mode
14714
14715 # What is the maximum length of a command?
14716 max_cmd_len=$lt_cv_sys_max_cmd_len
14717
14718 # Does compiler simultaneously support -c and -o options?
14719 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14720
14721 # Must we lock files when doing compilation ?
14722 need_locks=$lt_need_locks
14723
14724 # Do we need the lib prefix for modules?
14725 need_lib_prefix=$need_lib_prefix
14726
14727 # Do we need a version for libraries?
14728 need_version=$need_version
14729
14730 # Whether dlopen is supported.
14731 dlopen_support=$enable_dlopen
14732
14733 # Whether dlopen of programs is supported.
14734 dlopen_self=$enable_dlopen_self
14735
14736 # Whether dlopen of statically linked programs is supported.
14737 dlopen_self_static=$enable_dlopen_self_static
14738
14739 # Compiler flag to prevent dynamic linking.
14740 link_static_flag=$lt_lt_prog_compiler_static
14741
14742 # Compiler flag to turn off builtin functions.
14743 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14744
14745 # Compiler flag to allow reflexive dlopens.
14746 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14747
14748 # Compiler flag to generate shared objects directly from archives.
14749 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14750
14751 # Compiler flag to generate thread-safe objects.
14752 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14753
14754 # Library versioning type.
14755 version_type=$version_type
14756
14757 # Format of library name prefix.
14758 libname_spec=$lt_libname_spec
14759
14760 # List of archive names.  First name is the real one, the rest are links.
14761 # The last name is the one that the linker finds with -lNAME.
14762 library_names_spec=$lt_library_names_spec
14763
14764 # The coded name of the library, if different from the real name.
14765 soname_spec=$lt_soname_spec
14766
14767 # Commands used to build and install an old-style archive.
14768 RANLIB=$lt_RANLIB
14769 old_archive_cmds=$lt_old_archive_cmds
14770 old_postinstall_cmds=$lt_old_postinstall_cmds
14771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14772
14773 # Create an old-style archive from a shared archive.
14774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14775
14776 # Create a temporary old-style archive to link instead of a shared archive.
14777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14778
14779 # Commands used to build and install a shared archive.
14780 archive_cmds=$lt_archive_cmds
14781 archive_expsym_cmds=$lt_archive_expsym_cmds
14782 postinstall_cmds=$lt_postinstall_cmds
14783 postuninstall_cmds=$lt_postuninstall_cmds
14784
14785 # Commands used to build a loadable module (assumed same as above if empty)
14786 module_cmds=$lt_module_cmds
14787 module_expsym_cmds=$lt_module_expsym_cmds
14788
14789 # Commands to strip libraries.
14790 old_striplib=$lt_old_striplib
14791 striplib=$lt_striplib
14792
14793 # Dependencies to place before the objects being linked to create a
14794 # shared library.
14795 predep_objects=$lt_predep_objects
14796
14797 # Dependencies to place after the objects being linked to create a
14798 # shared library.
14799 postdep_objects=$lt_postdep_objects
14800
14801 # Dependencies to place before the objects being linked to create a
14802 # shared library.
14803 predeps=$lt_predeps
14804
14805 # Dependencies to place after the objects being linked to create a
14806 # shared library.
14807 postdeps=$lt_postdeps
14808
14809 # The library search path used internally by the compiler when linking
14810 # a shared library.
14811 compiler_lib_search_path=$lt_compiler_lib_search_path
14812
14813 # Method to check whether dependent libraries are shared objects.
14814 deplibs_check_method=$lt_deplibs_check_method
14815
14816 # Command to use when deplibs_check_method == file_magic.
14817 file_magic_cmd=$lt_file_magic_cmd
14818
14819 # Flag that allows shared libraries with undefined symbols to be built.
14820 allow_undefined_flag=$lt_allow_undefined_flag
14821
14822 # Flag that forces no undefined symbols.
14823 no_undefined_flag=$lt_no_undefined_flag
14824
14825 # Commands used to finish a libtool library installation in a directory.
14826 finish_cmds=$lt_finish_cmds
14827
14828 # Same as above, but a single script fragment to be evaled but not shown.
14829 finish_eval=$lt_finish_eval
14830
14831 # Take the output of nm and produce a listing of raw symbols and C names.
14832 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14833
14834 # Transform the output of nm in a proper C declaration
14835 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14836
14837 # Transform the output of nm in a C name address pair
14838 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14839
14840 # This is the shared library runtime path variable.
14841 runpath_var=$runpath_var
14842
14843 # This is the shared library path variable.
14844 shlibpath_var=$shlibpath_var
14845
14846 # Is shlibpath searched before the hard-coded library search path?
14847 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14848
14849 # How to hardcode a shared library path into an executable.
14850 hardcode_action=$hardcode_action
14851
14852 # Whether we should hardcode library paths into libraries.
14853 hardcode_into_libs=$hardcode_into_libs
14854
14855 # Flag to hardcode \$libdir into a binary during linking.
14856 # This must work even if \$libdir does not exist.
14857 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14858
14859 # If ld is used when linking, flag to hardcode \$libdir into
14860 # a binary during linking. This must work even if \$libdir does
14861 # not exist.
14862 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14863
14864 # Whether we need a single -rpath flag with a separated argument.
14865 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14866
14867 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14868 # resulting binary.
14869 hardcode_direct=$hardcode_direct
14870
14871 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14872 # resulting binary.
14873 hardcode_minus_L=$hardcode_minus_L
14874
14875 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14876 # the resulting binary.
14877 hardcode_shlibpath_var=$hardcode_shlibpath_var
14878
14879 # Set to yes if building a shared library automatically hardcodes DIR into the library
14880 # and all subsequent libraries and executables linked against it.
14881 hardcode_automatic=$hardcode_automatic
14882
14883 # Variables whose values should be saved in libtool wrapper scripts and
14884 # restored at relink time.
14885 variables_saved_for_relink="$variables_saved_for_relink"
14886
14887 # Whether libtool must link a program against all its dependency libraries.
14888 link_all_deplibs=$link_all_deplibs
14889
14890 # Compile-time system search path for libraries
14891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14892
14893 # Run-time system search path for libraries
14894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14895
14896 # Fix the shell variable \$srcfile for the compiler.
14897 fix_srcfile_path="$fix_srcfile_path"
14898
14899 # Set to yes if exported symbols are required.
14900 always_export_symbols=$always_export_symbols
14901
14902 # The commands to list exported symbols.
14903 export_symbols_cmds=$lt_export_symbols_cmds
14904
14905 # The commands to extract the exported symbol list from a shared archive.
14906 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14907
14908 # Symbols that should not be listed in the preloaded symbols.
14909 exclude_expsyms=$lt_exclude_expsyms
14910
14911 # Symbols that must always be exported.
14912 include_expsyms=$lt_include_expsyms
14913
14914 # ### END LIBTOOL CONFIG
14915
14916 __EOF__
14917
14918
14919   case $host_os in
14920   aix3*)
14921     cat <<\EOF >> "$cfgfile"
14922
14923 # AIX sometimes has problems with the GCC collect2 program.  For some
14924 # reason, if we set the COLLECT_NAMES environment variable, the problems
14925 # vanish in a puff of smoke.
14926 if test "X${COLLECT_NAMES+set}" != Xset; then
14927   COLLECT_NAMES=
14928   export COLLECT_NAMES
14929 fi
14930 EOF
14931     ;;
14932   esac
14933
14934   # We use sed instead of cat because bash on DJGPP gets confused if
14935   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14936   # text mode, it properly converts lines to CR/LF.  This bash problem
14937   # is reportedly fixed, but why not run on old versions too?
14938   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14939
14940   mv -f "$cfgfile" "$ofile" || \
14941     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14942   chmod +x "$ofile"
14943
14944 else
14945   # If there is no Makefile yet, we rely on a make rule to execute
14946   # `config.status --recheck' to rerun these tests and create the
14947   # libtool script then.
14948   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14949   if test -f "$ltmain_in"; then
14950     test -f Makefile && make "$ltmain"
14951   fi
14952 fi
14953
14954
14955 ac_ext=c
14956 ac_cpp='$CPP $CPPFLAGS'
14957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14960
14961 CC="$lt_save_CC"
14962
14963
14964 # Check whether --with-tags or --without-tags was given.
14965 if test "${with_tags+set}" = set; then
14966   withval="$with_tags"
14967   tagnames="$withval"
14968 fi;
14969
14970 if test -f "$ltmain" && test -n "$tagnames"; then
14971   if test ! -f "${ofile}"; then
14972     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14973 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14974   fi
14975
14976   if test -z "$LTCC"; then
14977     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14978     if test -z "$LTCC"; then
14979       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14980 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14981     else
14982       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14983 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14984     fi
14985   fi
14986
14987   # Extract list of available tagged configurations in $ofile.
14988   # Note that this assumes the entire list is on one line.
14989   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14990
14991   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14992   for tagname in $tagnames; do
14993     IFS="$lt_save_ifs"
14994     # Check whether tagname contains only valid characters
14995     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14996     "") ;;
14997     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14998 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14999    { (exit 1); exit 1; }; }
15000         ;;
15001     esac
15002
15003     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15004     then
15005       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15006 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15007    { (exit 1); exit 1; }; }
15008     fi
15009
15010     # Update the list of available tags.
15011     if test -n "$tagname"; then
15012       echo appending configuration tag "$tagname" to $ofile
15013
15014       case $tagname in
15015       CXX)
15016         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15017             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15018             (test "X$CXX" != "Xg++"))) ; then
15019           ac_ext=cc
15020 ac_cpp='$CXXCPP $CPPFLAGS'
15021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15024
15025
15026
15027
15028 archive_cmds_need_lc_CXX=no
15029 allow_undefined_flag_CXX=
15030 always_export_symbols_CXX=no
15031 archive_expsym_cmds_CXX=
15032 export_dynamic_flag_spec_CXX=
15033 hardcode_direct_CXX=no
15034 hardcode_libdir_flag_spec_CXX=
15035 hardcode_libdir_flag_spec_ld_CXX=
15036 hardcode_libdir_separator_CXX=
15037 hardcode_minus_L_CXX=no
15038 hardcode_automatic_CXX=no
15039 module_cmds_CXX=
15040 module_expsym_cmds_CXX=
15041 link_all_deplibs_CXX=unknown
15042 old_archive_cmds_CXX=$old_archive_cmds
15043 no_undefined_flag_CXX=
15044 whole_archive_flag_spec_CXX=
15045 enable_shared_with_static_runtimes_CXX=no
15046
15047 # Dependencies to place before and after the object being linked:
15048 predep_objects_CXX=
15049 postdep_objects_CXX=
15050 predeps_CXX=
15051 postdeps_CXX=
15052 compiler_lib_search_path_CXX=
15053
15054 # Source file extension for C++ test sources.
15055 ac_ext=cc
15056
15057 # Object file extension for compiled C++ test sources.
15058 objext=o
15059 objext_CXX=$objext
15060
15061 # Code to be used in simple compile tests
15062 lt_simple_compile_test_code="int some_variable = 0;\n"
15063
15064 # Code to be used in simple link tests
15065 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15066
15067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15068
15069 # If no C compiler was specified, use CC.
15070 LTCC=${LTCC-"$CC"}
15071
15072 # Allow CC to be a program name with arguments.
15073 compiler=$CC
15074
15075
15076 # Allow CC to be a program name with arguments.
15077 lt_save_CC=$CC
15078 lt_save_LD=$LD
15079 lt_save_GCC=$GCC
15080 GCC=$GXX
15081 lt_save_with_gnu_ld=$with_gnu_ld
15082 lt_save_path_LD=$lt_cv_path_LD
15083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15084   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15085 else
15086   unset lt_cv_prog_gnu_ld
15087 fi
15088 if test -n "${lt_cv_path_LDCXX+set}"; then
15089   lt_cv_path_LD=$lt_cv_path_LDCXX
15090 else
15091   unset lt_cv_path_LD
15092 fi
15093 test -z "${LDCXX+set}" || LD=$LDCXX
15094 CC=${CXX-"c++"}
15095 compiler=$CC
15096 compiler_CXX=$CC
15097 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15098
15099 # We don't want -fno-exception wen compiling C++ code, so set the
15100 # no_builtin_flag separately
15101 if test "$GXX" = yes; then
15102   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15103 else
15104   lt_prog_compiler_no_builtin_flag_CXX=
15105 fi
15106
15107 if test "$GXX" = yes; then
15108   # Set up default GNU C++ configuration
15109
15110
15111 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15112 if test "${with_gnu_ld+set}" = set; then
15113   withval="$with_gnu_ld"
15114   test "$withval" = no || with_gnu_ld=yes
15115 else
15116   with_gnu_ld=no
15117 fi;
15118 ac_prog=ld
15119 if test "$GCC" = yes; then
15120   # Check if gcc -print-prog-name=ld gives a path.
15121   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15123   case $host in
15124   *-*-mingw*)
15125     # gcc leaves a trailing carriage return which upsets mingw
15126     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15127   *)
15128     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15129   esac
15130   case $ac_prog in
15131     # Accept absolute paths.
15132     [\\/]* | ?:[\\/]*)
15133       re_direlt='/[^/][^/]*/\.\./'
15134       # Canonicalize the pathname of ld
15135       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15136       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15137         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15138       done
15139       test -z "$LD" && LD="$ac_prog"
15140       ;;
15141   "")
15142     # If it fails, then pretend we aren't using GCC.
15143     ac_prog=ld
15144     ;;
15145   *)
15146     # If it is relative, then search for the first ld in PATH.
15147     with_gnu_ld=unknown
15148     ;;
15149   esac
15150 elif test "$with_gnu_ld" = yes; then
15151   echo "$as_me:$LINENO: checking for GNU ld" >&5
15152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15153 else
15154   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15156 fi
15157 if test "${lt_cv_path_LD+set}" = set; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160   if test -z "$LD"; then
15161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15162   for ac_dir in $PATH; do
15163     IFS="$lt_save_ifs"
15164     test -z "$ac_dir" && ac_dir=.
15165     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15166       lt_cv_path_LD="$ac_dir/$ac_prog"
15167       # Check to see if the program is GNU ld.  I'd rather use --version,
15168       # but apparently some GNU ld's only accept -v.
15169       # Break only if it was the GNU/non-GNU ld that we prefer.
15170       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15171       *GNU* | *'with BFD'*)
15172         test "$with_gnu_ld" != no && break
15173         ;;
15174       *)
15175         test "$with_gnu_ld" != yes && break
15176         ;;
15177       esac
15178     fi
15179   done
15180   IFS="$lt_save_ifs"
15181 else
15182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15183 fi
15184 fi
15185
15186 LD="$lt_cv_path_LD"
15187 if test -n "$LD"; then
15188   echo "$as_me:$LINENO: result: $LD" >&5
15189 echo "${ECHO_T}$LD" >&6
15190 else
15191   echo "$as_me:$LINENO: result: no" >&5
15192 echo "${ECHO_T}no" >&6
15193 fi
15194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15196    { (exit 1); exit 1; }; }
15197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15203 case `$LD -v 2>&1 </dev/null` in
15204 *GNU* | *'with BFD'*)
15205   lt_cv_prog_gnu_ld=yes
15206   ;;
15207 *)
15208   lt_cv_prog_gnu_ld=no
15209   ;;
15210 esac
15211 fi
15212 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15214 with_gnu_ld=$lt_cv_prog_gnu_ld
15215
15216
15217
15218   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15219   # archiving commands below assume that GNU ld is being used.
15220   if test "$with_gnu_ld" = yes; then
15221     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222     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'
15223
15224     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15225     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15226
15227     # If archive_cmds runs LD, not CC, wlarc should be empty
15228     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15229     #     investigate it a little bit more. (MM)
15230     wlarc='${wl}'
15231
15232     # ancient GNU ld didn't support --whole-archive et. al.
15233     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15234         grep 'no-whole-archive' > /dev/null; then
15235       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15236     else
15237       whole_archive_flag_spec_CXX=
15238     fi
15239   else
15240     with_gnu_ld=no
15241     wlarc=
15242
15243     # A generic and very simple default shared library creation
15244     # command for GNU C++ for the case where it uses the native
15245     # linker, instead of GNU ld.  If possible, this setting should
15246     # overridden to take advantage of the native linker features on
15247     # the platform it is being used on.
15248     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15249   fi
15250
15251   # Commands to make compiler produce verbose output that lists
15252   # what "hidden" libraries, object files and flags are used when
15253   # linking a shared library.
15254   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15255
15256 else
15257   GXX=no
15258   with_gnu_ld=no
15259   wlarc=
15260 fi
15261
15262 # PORTME: fill in a description of your system's C++ link characteristics
15263 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15264 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15265 ld_shlibs_CXX=yes
15266 case $host_os in
15267   aix3*)
15268     # FIXME: insert proper C++ library support
15269     ld_shlibs_CXX=no
15270     ;;
15271   aix4* | aix5*)
15272     if test "$host_cpu" = ia64; then
15273       # On IA64, the linker does run time linking by default, so we don't
15274       # have to do anything special.
15275       aix_use_runtimelinking=no
15276       exp_sym_flag='-Bexport'
15277       no_entry_flag=""
15278     else
15279       aix_use_runtimelinking=no
15280
15281       # Test if we are trying to use run time linking or normal
15282       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15283       # need to do runtime linking.
15284       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15285         for ld_flag in $LDFLAGS; do
15286           case $ld_flag in
15287           *-brtl*)
15288             aix_use_runtimelinking=yes
15289             break
15290             ;;
15291           esac
15292         done
15293       esac
15294
15295       exp_sym_flag='-bexport'
15296       no_entry_flag='-bnoentry'
15297     fi
15298
15299     # When large executables or shared objects are built, AIX ld can
15300     # have problems creating the table of contents.  If linking a library
15301     # or program results in "error TOC overflow" add -mminimal-toc to
15302     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15303     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15304
15305     archive_cmds_CXX=''
15306     hardcode_direct_CXX=yes
15307     hardcode_libdir_separator_CXX=':'
15308     link_all_deplibs_CXX=yes
15309
15310     if test "$GXX" = yes; then
15311       case $host_os in aix4.012|aix4.012.*)
15312       # We only want to do this on AIX 4.2 and lower, the check
15313       # below for broken collect2 doesn't work under 4.3+
15314         collect2name=`${CC} -print-prog-name=collect2`
15315         if test -f "$collect2name" && \
15316            strings "$collect2name" | grep resolve_lib_name >/dev/null
15317         then
15318           # We have reworked collect2
15319           hardcode_direct_CXX=yes
15320         else
15321           # We have old collect2
15322           hardcode_direct_CXX=unsupported
15323           # It fails to find uninstalled libraries when the uninstalled
15324           # path is not listed in the libpath.  Setting hardcode_minus_L
15325           # to unsupported forces relinking
15326           hardcode_minus_L_CXX=yes
15327           hardcode_libdir_flag_spec_CXX='-L$libdir'
15328           hardcode_libdir_separator_CXX=
15329         fi
15330       esac
15331       shared_flag='-shared'
15332     else
15333       # not using gcc
15334       if test "$host_cpu" = ia64; then
15335         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15336         # chokes on -Wl,-G. The following line is correct:
15337         shared_flag='-G'
15338       else
15339         if test "$aix_use_runtimelinking" = yes; then
15340           shared_flag='${wl}-G'
15341         else
15342           shared_flag='${wl}-bM:SRE'
15343         fi
15344       fi
15345     fi
15346
15347     # It seems that -bexpall does not export symbols beginning with
15348     # underscore (_), so it is better to generate a list of symbols to export.
15349     always_export_symbols_CXX=yes
15350     if test "$aix_use_runtimelinking" = yes; then
15351       # Warning - without using the other runtime loading flags (-brtl),
15352       # -berok will link without error, but may produce a broken library.
15353       allow_undefined_flag_CXX='-berok'
15354       # Determine the default libpath from the value encoded in an empty executable.
15355       cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361
15362 int
15363 main ()
15364 {
15365
15366   ;
15367   return 0;
15368 }
15369 _ACEOF
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15372   (eval $ac_link) 2>conftest.er1
15373   ac_status=$?
15374   grep -v '^ *+' conftest.er1 >conftest.err
15375   rm -f conftest.er1
15376   cat conftest.err >&5
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } &&
15379          { ac_try='test -z "$ac_cxx_werror_flag"
15380                          || test ! -s conftest.err'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; } &&
15386          { ac_try='test -s conftest$ac_exeext'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; }; then
15392
15393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15394 }'`
15395 # Check for a 64-bit object if we didn't find anything.
15396 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; }
15397 }'`; fi
15398 else
15399   echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402 fi
15403 rm -f conftest.err conftest.$ac_objext \
15404       conftest$ac_exeext conftest.$ac_ext
15405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15406
15407       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15408
15409       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"
15410      else
15411       if test "$host_cpu" = ia64; then
15412         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15413         allow_undefined_flag_CXX="-z nodefs"
15414         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"
15415       else
15416         # Determine the default libpath from the value encoded in an empty executable.
15417         cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423
15424 int
15425 main ()
15426 {
15427
15428   ;
15429   return 0;
15430 }
15431 _ACEOF
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15434   (eval $ac_link) 2>conftest.er1
15435   ac_status=$?
15436   grep -v '^ *+' conftest.er1 >conftest.err
15437   rm -f conftest.er1
15438   cat conftest.err >&5
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } &&
15441          { ac_try='test -z "$ac_cxx_werror_flag"
15442                          || test ! -s conftest.err'
15443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444   (eval $ac_try) 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; } &&
15448          { ac_try='test -s conftest$ac_exeext'
15449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450   (eval $ac_try) 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; }; then
15454
15455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15456 }'`
15457 # Check for a 64-bit object if we didn't find anything.
15458 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; }
15459 }'`; fi
15460 else
15461   echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464 fi
15465 rm -f conftest.err conftest.$ac_objext \
15466       conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15468
15469         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15470         # Warning - without using the other run time loading flags,
15471         # -berok will link without error, but may produce a broken library.
15472         no_undefined_flag_CXX=' ${wl}-bernotok'
15473         allow_undefined_flag_CXX=' ${wl}-berok'
15474         # -bexpall does not export symbols beginning with underscore (_)
15475         always_export_symbols_CXX=yes
15476         # Exported symbols can be pulled into shared objects from archives
15477         whole_archive_flag_spec_CXX=' '
15478         archive_cmds_need_lc_CXX=yes
15479         # This is similar to how AIX traditionally builds it's shared libraries.
15480         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'
15481       fi
15482     fi
15483     ;;
15484   chorus*)
15485     case $cc_basename in
15486       *)
15487         # FIXME: insert proper C++ library support
15488         ld_shlibs_CXX=no
15489         ;;
15490     esac
15491     ;;
15492
15493
15494   cygwin* | mingw* | pw32*)
15495     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15496     # as there is no search path for DLLs.
15497     hardcode_libdir_flag_spec_CXX='-L$libdir'
15498     allow_undefined_flag_CXX=unsupported
15499     always_export_symbols_CXX=no
15500     enable_shared_with_static_runtimes_CXX=yes
15501
15502     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15503       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'
15504       # If the export-symbols file already is a .def file (1st line
15505       # is EXPORTS), use it as is; otherwise, prepend...
15506       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15507         cp $export_symbols $output_objdir/$soname.def;
15508       else
15509         echo EXPORTS > $output_objdir/$soname.def;
15510         cat $export_symbols >> $output_objdir/$soname.def;
15511       fi~
15512       $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'
15513     else
15514       ld_shlibs_CXX=no
15515     fi
15516   ;;
15517       darwin* | rhapsody*)
15518         case "$host_os" in
15519         rhapsody* | darwin1.[012])
15520          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15521          ;;
15522        *) # Darwin 1.3 on
15523          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15524            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15525          else
15526            case ${MACOSX_DEPLOYMENT_TARGET} in
15527              10.[012])
15528                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15529                ;;
15530              10.*)
15531                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15532                ;;
15533            esac
15534          fi
15535          ;;
15536         esac
15537       archive_cmds_need_lc_CXX=no
15538       hardcode_direct_CXX=no
15539       hardcode_automatic_CXX=yes
15540       hardcode_shlibpath_var_CXX=unsupported
15541       whole_archive_flag_spec_CXX=''
15542       link_all_deplibs_CXX=yes
15543
15544     if test "$GXX" = yes ; then
15545       lt_int_apple_cc_single_mod=no
15546       output_verbose_link_cmd='echo'
15547       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15548        lt_int_apple_cc_single_mod=yes
15549       fi
15550       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15551        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15552       else
15553           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'
15554         fi
15555         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15556         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15557           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15558             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}'
15559           else
15560             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}'
15561           fi
15562             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}'
15563       else
15564       case "$cc_basename" in
15565         xlc*)
15566          output_verbose_link_cmd='echo'
15567           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'
15568           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15569           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15570           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}'
15571           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}'
15572           ;;
15573        *)
15574          ld_shlibs_CXX=no
15575           ;;
15576       esac
15577       fi
15578         ;;
15579
15580   dgux*)
15581     case $cc_basename in
15582       ec++)
15583         # FIXME: insert proper C++ library support
15584         ld_shlibs_CXX=no
15585         ;;
15586       ghcx)
15587         # Green Hills C++ Compiler
15588         # FIXME: insert proper C++ library support
15589         ld_shlibs_CXX=no
15590         ;;
15591       *)
15592         # FIXME: insert proper C++ library support
15593         ld_shlibs_CXX=no
15594         ;;
15595     esac
15596     ;;
15597   freebsd12*)
15598     # C++ shared libraries reported to be fairly broken before switch to ELF
15599     ld_shlibs_CXX=no
15600     ;;
15601   freebsd-elf*)
15602     archive_cmds_need_lc_CXX=no
15603     ;;
15604   freebsd* | kfreebsd*-gnu)
15605     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15606     # conventions
15607     ld_shlibs_CXX=yes
15608     ;;
15609   gnu*)
15610     ;;
15611   hpux9*)
15612     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15613     hardcode_libdir_separator_CXX=:
15614     export_dynamic_flag_spec_CXX='${wl}-E'
15615     hardcode_direct_CXX=yes
15616     hardcode_minus_L_CXX=yes # Not in the search PATH,
15617                                 # but as the default
15618                                 # location of the library.
15619
15620     case $cc_basename in
15621     CC)
15622       # FIXME: insert proper C++ library support
15623       ld_shlibs_CXX=no
15624       ;;
15625     aCC)
15626       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'
15627       # Commands to make compiler produce verbose output that lists
15628       # what "hidden" libraries, object files and flags are used when
15629       # linking a shared library.
15630       #
15631       # There doesn't appear to be a way to prevent this compiler from
15632       # explicitly linking system object files so we need to strip them
15633       # from the output so that they don't get included in the library
15634       # dependencies.
15635       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'
15636       ;;
15637     *)
15638       if test "$GXX" = yes; then
15639         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'
15640       else
15641         # FIXME: insert proper C++ library support
15642         ld_shlibs_CXX=no
15643       fi
15644       ;;
15645     esac
15646     ;;
15647   hpux10*|hpux11*)
15648     if test $with_gnu_ld = no; then
15649       case "$host_cpu" in
15650       hppa*64*)
15651         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15652         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15653         hardcode_libdir_separator_CXX=:
15654         ;;
15655       ia64*)
15656         hardcode_libdir_flag_spec_CXX='-L$libdir'
15657         ;;
15658       *)
15659         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15660         hardcode_libdir_separator_CXX=:
15661         export_dynamic_flag_spec_CXX='${wl}-E'
15662         ;;
15663       esac
15664     fi
15665     case "$host_cpu" in
15666     hppa*64*)
15667       hardcode_direct_CXX=no
15668       hardcode_shlibpath_var_CXX=no
15669       ;;
15670     ia64*)
15671       hardcode_direct_CXX=no
15672       hardcode_shlibpath_var_CXX=no
15673       hardcode_minus_L_CXX=yes # Not in the search PATH,
15674                                               # but as the default
15675                                               # location of the library.
15676       ;;
15677     *)
15678       hardcode_direct_CXX=yes
15679       hardcode_minus_L_CXX=yes # Not in the search PATH,
15680                                               # but as the default
15681                                               # location of the library.
15682       ;;
15683     esac
15684
15685     case $cc_basename in
15686       CC)
15687         # FIXME: insert proper C++ library support
15688         ld_shlibs_CXX=no
15689         ;;
15690       aCC)
15691         case "$host_cpu" in
15692         hppa*64*|ia64*)
15693           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15694           ;;
15695         *)
15696           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15697           ;;
15698         esac
15699         # Commands to make compiler produce verbose output that lists
15700         # what "hidden" libraries, object files and flags are used when
15701         # linking a shared library.
15702         #
15703         # There doesn't appear to be a way to prevent this compiler from
15704         # explicitly linking system object files so we need to strip them
15705         # from the output so that they don't get included in the library
15706         # dependencies.
15707         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'
15708         ;;
15709       *)
15710         if test "$GXX" = yes; then
15711           if test $with_gnu_ld = no; then
15712             case "$host_cpu" in
15713             ia64*|hppa*64*)
15714               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15715               ;;
15716             *)
15717               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'
15718               ;;
15719             esac
15720           fi
15721         else
15722           # FIXME: insert proper C++ library support
15723           ld_shlibs_CXX=no
15724         fi
15725         ;;
15726     esac
15727     ;;
15728   irix5* | irix6*)
15729     case $cc_basename in
15730       CC)
15731         # SGI C++
15732         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'
15733
15734         # Archives containing C++ object files must be created using
15735         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15736         # necessary to make sure instantiated templates are included
15737         # in the archive.
15738         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15739         ;;
15740       *)
15741         if test "$GXX" = yes; then
15742           if test "$with_gnu_ld" = no; then
15743             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'
15744           else
15745             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'
15746           fi
15747         fi
15748         link_all_deplibs_CXX=yes
15749         ;;
15750     esac
15751     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15752     hardcode_libdir_separator_CXX=:
15753     ;;
15754   linux*)
15755     case $cc_basename in
15756       KCC)
15757         # Kuck and Associates, Inc. (KAI) C++ Compiler
15758
15759         # KCC will only create a shared library if the output file
15760         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15761         # to its proper name (with version) after linking.
15762         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'
15763         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'
15764         # Commands to make compiler produce verbose output that lists
15765         # what "hidden" libraries, object files and flags are used when
15766         # linking a shared library.
15767         #
15768         # There doesn't appear to be a way to prevent this compiler from
15769         # explicitly linking system object files so we need to strip them
15770         # from the output so that they don't get included in the library
15771         # dependencies.
15772         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'
15773
15774         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15775         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15776
15777         # Archives containing C++ object files must be created using
15778         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15779         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15780         ;;
15781       icpc)
15782         # Intel C++
15783         with_gnu_ld=yes
15784         # version 8.0 and above of icpc choke on multiply defined symbols
15785         # if we add $predep_objects and $postdep_objects, however 7.1 and
15786         # earlier do not add the objects themselves.
15787         case `$CC -V 2>&1` in
15788         *"Version 7."*)
15789           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15790           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'
15791           ;;
15792         *)  # Version 8.0 or newer
15793           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15794         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15795           ;;
15796         esac
15797         archive_cmds_need_lc_CXX=no
15798         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15799         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15800         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15801         ;;
15802       cxx)
15803         # Compaq C++
15804         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805         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'
15806
15807         runpath_var=LD_RUN_PATH
15808         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15809         hardcode_libdir_separator_CXX=:
15810
15811         # Commands to make compiler produce verbose output that lists
15812         # what "hidden" libraries, object files and flags are used when
15813         # linking a shared library.
15814         #
15815         # There doesn't appear to be a way to prevent this compiler from
15816         # explicitly linking system object files so we need to strip them
15817         # from the output so that they don't get included in the library
15818         # dependencies.
15819         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'
15820         ;;
15821     esac
15822     ;;
15823   lynxos*)
15824     # FIXME: insert proper C++ library support
15825     ld_shlibs_CXX=no
15826     ;;
15827   m88k*)
15828     # FIXME: insert proper C++ library support
15829     ld_shlibs_CXX=no
15830     ;;
15831   mvs*)
15832     case $cc_basename in
15833       cxx)
15834         # FIXME: insert proper C++ library support
15835         ld_shlibs_CXX=no
15836         ;;
15837       *)
15838         # FIXME: insert proper C++ library support
15839         ld_shlibs_CXX=no
15840         ;;
15841     esac
15842     ;;
15843   netbsd*)
15844     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15845       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15846       wlarc=
15847       hardcode_libdir_flag_spec_CXX='-R$libdir'
15848       hardcode_direct_CXX=yes
15849       hardcode_shlibpath_var_CXX=no
15850     fi
15851     # Workaround some broken pre-1.5 toolchains
15852     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15853     ;;
15854   openbsd2*)
15855     # C++ shared libraries are fairly broken
15856     ld_shlibs_CXX=no
15857     ;;
15858   openbsd*)
15859     hardcode_direct_CXX=yes
15860     hardcode_shlibpath_var_CXX=no
15861     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15862     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15863     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15864       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15865       export_dynamic_flag_spec_CXX='${wl}-E'
15866       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15867     fi
15868     output_verbose_link_cmd='echo'
15869     ;;
15870   osf3*)
15871     case $cc_basename in
15872       KCC)
15873         # Kuck and Associates, Inc. (KAI) C++ Compiler
15874
15875         # KCC will only create a shared library if the output file
15876         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15877         # to its proper name (with version) after linking.
15878         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'
15879
15880         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15881         hardcode_libdir_separator_CXX=:
15882
15883         # Archives containing C++ object files must be created using
15884         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15885         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15886
15887         ;;
15888       RCC)
15889         # Rational C++ 2.4.1
15890         # FIXME: insert proper C++ library support
15891         ld_shlibs_CXX=no
15892         ;;
15893       cxx)
15894         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15895         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'
15896
15897         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15898         hardcode_libdir_separator_CXX=:
15899
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 -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'
15909         ;;
15910       *)
15911         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15912           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15913           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'
15914
15915           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15916           hardcode_libdir_separator_CXX=:
15917
15918           # Commands to make compiler produce verbose output that lists
15919           # what "hidden" libraries, object files and flags are used when
15920           # linking a shared library.
15921           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15922
15923         else
15924           # FIXME: insert proper C++ library support
15925           ld_shlibs_CXX=no
15926         fi
15927         ;;
15928     esac
15929     ;;
15930   osf4* | osf5*)
15931     case $cc_basename in
15932       KCC)
15933         # Kuck and Associates, Inc. (KAI) C++ Compiler
15934
15935         # KCC will only create a shared library if the output file
15936         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15937         # to its proper name (with version) after linking.
15938         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'
15939
15940         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15941         hardcode_libdir_separator_CXX=:
15942
15943         # Archives containing C++ object files must be created using
15944         # the KAI C++ compiler.
15945         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15946         ;;
15947       RCC)
15948         # Rational C++ 2.4.1
15949         # FIXME: insert proper C++ library support
15950         ld_shlibs_CXX=no
15951         ;;
15952       cxx)
15953         allow_undefined_flag_CXX=' -expect_unresolved \*'
15954         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'
15955         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15956           echo "-hidden">> $lib.exp~
15957           $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~
15958           $rm $lib.exp'
15959
15960         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15961         hardcode_libdir_separator_CXX=:
15962
15963         # Commands to make compiler produce verbose output that lists
15964         # what "hidden" libraries, object files and flags are used when
15965         # linking a shared library.
15966         #
15967         # There doesn't appear to be a way to prevent this compiler from
15968         # explicitly linking system object files so we need to strip them
15969         # from the output so that they don't get included in the library
15970         # dependencies.
15971         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'
15972         ;;
15973       *)
15974         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15975           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15976          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'
15977
15978           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15979           hardcode_libdir_separator_CXX=:
15980
15981           # Commands to make compiler produce verbose output that lists
15982           # what "hidden" libraries, object files and flags are used when
15983           # linking a shared library.
15984           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15985
15986         else
15987           # FIXME: insert proper C++ library support
15988           ld_shlibs_CXX=no
15989         fi
15990         ;;
15991     esac
15992     ;;
15993   psos*)
15994     # FIXME: insert proper C++ library support
15995     ld_shlibs_CXX=no
15996     ;;
15997   sco*)
15998     archive_cmds_need_lc_CXX=no
15999     case $cc_basename in
16000       CC)
16001         # FIXME: insert proper C++ library support
16002         ld_shlibs_CXX=no
16003         ;;
16004       *)
16005         # FIXME: insert proper C++ library support
16006         ld_shlibs_CXX=no
16007         ;;
16008     esac
16009     ;;
16010   sunos4*)
16011     case $cc_basename in
16012       CC)
16013         # Sun C++ 4.x
16014         # FIXME: insert proper C++ library support
16015         ld_shlibs_CXX=no
16016         ;;
16017       lcc)
16018         # Lucid
16019         # FIXME: insert proper C++ library support
16020         ld_shlibs_CXX=no
16021         ;;
16022       *)
16023         # FIXME: insert proper C++ library support
16024         ld_shlibs_CXX=no
16025         ;;
16026     esac
16027     ;;
16028   solaris*)
16029     case $cc_basename in
16030       CC)
16031         # Sun C++ 4.2, 5.x and Centerline C++
16032         no_undefined_flag_CXX=' -zdefs'
16033         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16034         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16035         $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'
16036
16037         hardcode_libdir_flag_spec_CXX='-R$libdir'
16038         hardcode_shlibpath_var_CXX=no
16039         case $host_os in
16040           solaris2.0-5 | solaris2.0-5.*) ;;
16041           *)
16042             # The C++ compiler is used as linker so we must use $wl
16043             # flag to pass the commands to the underlying system
16044             # linker.
16045             # Supported since Solaris 2.6 (maybe 2.5.1?)
16046             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16047             ;;
16048         esac
16049         link_all_deplibs_CXX=yes
16050
16051         # Commands to make compiler produce verbose output that lists
16052         # what "hidden" libraries, object files and flags are used when
16053         # linking a shared library.
16054         #
16055         # There doesn't appear to be a way to prevent this compiler from
16056         # explicitly linking system object files so we need to strip them
16057         # from the output so that they don't get included in the library
16058         # dependencies.
16059         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'
16060
16061         # Archives containing C++ object files must be created using
16062         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16063         # necessary to make sure instantiated templates are included
16064         # in the archive.
16065         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16066         ;;
16067       gcx)
16068         # Green Hills C++ Compiler
16069         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16070
16071         # The C++ compiler must be used to create the archive.
16072         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16073         ;;
16074       *)
16075         # GNU C++ compiler with Solaris linker
16076         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16077           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16078           if $CC --version | grep -v '^2\.7' > /dev/null; then
16079             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16080             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16082
16083             # Commands to make compiler produce verbose output that lists
16084             # what "hidden" libraries, object files and flags are used when
16085             # linking a shared library.
16086             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16087           else
16088             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16089             # platform.
16090             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16091             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16092                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16093
16094             # Commands to make compiler produce verbose output that lists
16095             # what "hidden" libraries, object files and flags are used when
16096             # linking a shared library.
16097             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16098           fi
16099
16100           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16101         fi
16102         ;;
16103     esac
16104     ;;
16105   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16106     archive_cmds_need_lc_CXX=no
16107     ;;
16108   tandem*)
16109     case $cc_basename in
16110       NCC)
16111         # NonStop-UX NCC 3.20
16112         # FIXME: insert proper C++ library support
16113         ld_shlibs_CXX=no
16114         ;;
16115       *)
16116         # FIXME: insert proper C++ library support
16117         ld_shlibs_CXX=no
16118         ;;
16119     esac
16120     ;;
16121   vxworks*)
16122     # FIXME: insert proper C++ library support
16123     ld_shlibs_CXX=no
16124     ;;
16125   *)
16126     # FIXME: insert proper C++ library support
16127     ld_shlibs_CXX=no
16128     ;;
16129 esac
16130 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16131 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16132 test "$ld_shlibs_CXX" = no && can_build_shared=no
16133
16134 GCC_CXX="$GXX"
16135 LD_CXX="$LD"
16136
16137
16138 cat > conftest.$ac_ext <<EOF
16139 class Foo
16140 {
16141 public:
16142   Foo (void) { a = 0; }
16143 private:
16144   int a;
16145 };
16146 EOF
16147
16148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16149   (eval $ac_compile) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); }; then
16153   # Parse the compiler output and extract the necessary
16154   # objects, libraries and library flags.
16155
16156   # Sentinel used to keep track of whether or not we are before
16157   # the conftest object file.
16158   pre_test_object_deps_done=no
16159
16160   # The `*' in the case matches for architectures that use `case' in
16161   # $output_verbose_cmd can trigger glob expansion during the loop
16162   # eval without this substitution.
16163   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16164
16165   for p in `eval $output_verbose_link_cmd`; do
16166     case $p in
16167
16168     -L* | -R* | -l*)
16169        # Some compilers place space between "-{L,R}" and the path.
16170        # Remove the space.
16171        if test $p = "-L" \
16172           || test $p = "-R"; then
16173          prev=$p
16174          continue
16175        else
16176          prev=
16177        fi
16178
16179        if test "$pre_test_object_deps_done" = no; then
16180          case $p in
16181          -L* | -R*)
16182            # Internal compiler library paths should come after those
16183            # provided the user.  The postdeps already come after the
16184            # user supplied libs so there is no need to process them.
16185            if test -z "$compiler_lib_search_path_CXX"; then
16186              compiler_lib_search_path_CXX="${prev}${p}"
16187            else
16188              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16189            fi
16190            ;;
16191          # The "-l" case would never come before the object being
16192          # linked, so don't bother handling this case.
16193          esac
16194        else
16195          if test -z "$postdeps_CXX"; then
16196            postdeps_CXX="${prev}${p}"
16197          else
16198            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16199          fi
16200        fi
16201        ;;
16202
16203     *.$objext)
16204        # This assumes that the test object file only shows up
16205        # once in the compiler output.
16206        if test "$p" = "conftest.$objext"; then
16207          pre_test_object_deps_done=yes
16208          continue
16209        fi
16210
16211        if test "$pre_test_object_deps_done" = no; then
16212          if test -z "$predep_objects_CXX"; then
16213            predep_objects_CXX="$p"
16214          else
16215            predep_objects_CXX="$predep_objects_CXX $p"
16216          fi
16217        else
16218          if test -z "$postdep_objects_CXX"; then
16219            postdep_objects_CXX="$p"
16220          else
16221            postdep_objects_CXX="$postdep_objects_CXX $p"
16222          fi
16223        fi
16224        ;;
16225
16226     *) ;; # Ignore the rest.
16227
16228     esac
16229   done
16230
16231   # Clean up.
16232   rm -f a.out a.exe
16233 else
16234   echo "libtool.m4: error: problem compiling CXX test program"
16235 fi
16236
16237 $rm -f confest.$objext
16238
16239 case " $postdeps_CXX " in
16240 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16241 esac
16242
16243 lt_prog_compiler_wl_CXX=
16244 lt_prog_compiler_pic_CXX=
16245 lt_prog_compiler_static_CXX=
16246
16247 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16248 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16249
16250   # C++ specific cases for pic, static, wl, etc.
16251   if test "$GXX" = yes; then
16252     lt_prog_compiler_wl_CXX='-Wl,'
16253     lt_prog_compiler_static_CXX='-static'
16254
16255     case $host_os in
16256     aix*)
16257       # All AIX code is PIC.
16258       if test "$host_cpu" = ia64; then
16259         # AIX 5 now supports IA64 processor
16260         lt_prog_compiler_static_CXX='-Bstatic'
16261       fi
16262       ;;
16263     amigaos*)
16264       # FIXME: we need at least 68020 code to build shared libraries, but
16265       # adding the `-m68020' flag to GCC prevents building anything better,
16266       # like `-m68040'.
16267       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16268       ;;
16269     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16270       # PIC is the default for these OSes.
16271       ;;
16272     mingw* | os2* | pw32*)
16273       # This hack is so that the source file can tell whether it is being
16274       # built for inclusion in a dll (and should export symbols for example).
16275       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16276       ;;
16277     darwin* | rhapsody*)
16278       # PIC is the default on this platform
16279       # Common symbols not allowed in MH_DYLIB files
16280       lt_prog_compiler_pic_CXX='-fno-common'
16281       ;;
16282     *djgpp*)
16283       # DJGPP does not support shared libraries at all
16284       lt_prog_compiler_pic_CXX=
16285       ;;
16286     sysv4*MP*)
16287       if test -d /usr/nec; then
16288         lt_prog_compiler_pic_CXX=-Kconform_pic
16289       fi
16290       ;;
16291     hpux*)
16292       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16293       # not for PA HP-UX.
16294       case "$host_cpu" in
16295       hppa*64*|ia64*)
16296         ;;
16297       *)
16298         lt_prog_compiler_pic_CXX='-fPIC'
16299         ;;
16300       esac
16301       ;;
16302     *)
16303       lt_prog_compiler_pic_CXX='-fPIC'
16304       ;;
16305     esac
16306   else
16307     case $host_os in
16308       aix4* | aix5*)
16309         # All AIX code is PIC.
16310         if test "$host_cpu" = ia64; then
16311           # AIX 5 now supports IA64 processor
16312           lt_prog_compiler_static_CXX='-Bstatic'
16313         else
16314           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16315         fi
16316         ;;
16317       chorus*)
16318         case $cc_basename in
16319         cxch68)
16320           # Green Hills C++ Compiler
16321           # _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"
16322           ;;
16323         esac
16324         ;;
16325        darwin*)
16326          # PIC is the default on this platform
16327          # Common symbols not allowed in MH_DYLIB files
16328          case "$cc_basename" in
16329            xlc*)
16330            lt_prog_compiler_pic_CXX='-qnocommon'
16331            lt_prog_compiler_wl_CXX='-Wl,'
16332            ;;
16333          esac
16334        ;;
16335       dgux*)
16336         case $cc_basename in
16337           ec++)
16338             lt_prog_compiler_pic_CXX='-KPIC'
16339             ;;
16340           ghcx)
16341             # Green Hills C++ Compiler
16342             lt_prog_compiler_pic_CXX='-pic'
16343             ;;
16344           *)
16345             ;;
16346         esac
16347         ;;
16348       freebsd* | kfreebsd*-gnu)
16349         # FreeBSD uses GNU C++
16350         ;;
16351       hpux9* | hpux10* | hpux11*)
16352         case $cc_basename in
16353           CC)
16354             lt_prog_compiler_wl_CXX='-Wl,'
16355             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16356             if test "$host_cpu" != ia64; then
16357               lt_prog_compiler_pic_CXX='+Z'
16358             fi
16359             ;;
16360           aCC)
16361             lt_prog_compiler_wl_CXX='-Wl,'
16362             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16363             case "$host_cpu" in
16364             hppa*64*|ia64*)
16365               # +Z the default
16366               ;;
16367             *)
16368               lt_prog_compiler_pic_CXX='+Z'
16369               ;;
16370             esac
16371             ;;
16372           *)
16373             ;;
16374         esac
16375         ;;
16376       irix5* | irix6* | nonstopux*)
16377         case $cc_basename in
16378           CC)
16379             lt_prog_compiler_wl_CXX='-Wl,'
16380             lt_prog_compiler_static_CXX='-non_shared'
16381             # CC pic flag -KPIC is the default.
16382             ;;
16383           *)
16384             ;;
16385         esac
16386         ;;
16387       linux*)
16388         case $cc_basename in
16389           KCC)
16390             # KAI C++ Compiler
16391             lt_prog_compiler_wl_CXX='--backend -Wl,'
16392             lt_prog_compiler_pic_CXX='-fPIC'
16393             ;;
16394           icpc)
16395             # Intel C++
16396             lt_prog_compiler_wl_CXX='-Wl,'
16397             lt_prog_compiler_pic_CXX='-KPIC'
16398             lt_prog_compiler_static_CXX='-static'
16399             ;;
16400           cxx)
16401             # Compaq C++
16402             # Make sure the PIC flag is empty.  It appears that all Alpha
16403             # Linux and Compaq Tru64 Unix objects are PIC.
16404             lt_prog_compiler_pic_CXX=
16405             lt_prog_compiler_static_CXX='-non_shared'
16406             ;;
16407           *)
16408             ;;
16409         esac
16410         ;;
16411       lynxos*)
16412         ;;
16413       m88k*)
16414         ;;
16415       mvs*)
16416         case $cc_basename in
16417           cxx)
16418             lt_prog_compiler_pic_CXX='-W c,exportall'
16419             ;;
16420           *)
16421             ;;
16422         esac
16423         ;;
16424       netbsd*)
16425         ;;
16426       osf3* | osf4* | osf5*)
16427         case $cc_basename in
16428           KCC)
16429             lt_prog_compiler_wl_CXX='--backend -Wl,'
16430             ;;
16431           RCC)
16432             # Rational C++ 2.4.1
16433             lt_prog_compiler_pic_CXX='-pic'
16434             ;;
16435           cxx)
16436             # Digital/Compaq C++
16437             lt_prog_compiler_wl_CXX='-Wl,'
16438             # Make sure the PIC flag is empty.  It appears that all Alpha
16439             # Linux and Compaq Tru64 Unix objects are PIC.
16440             lt_prog_compiler_pic_CXX=
16441             lt_prog_compiler_static_CXX='-non_shared'
16442             ;;
16443           *)
16444             ;;
16445         esac
16446         ;;
16447       psos*)
16448         ;;
16449       sco*)
16450         case $cc_basename in
16451           CC)
16452             lt_prog_compiler_pic_CXX='-fPIC'
16453             ;;
16454           *)
16455             ;;
16456         esac
16457         ;;
16458       solaris*)
16459         case $cc_basename in
16460           CC)
16461             # Sun C++ 4.2, 5.x and Centerline C++
16462             lt_prog_compiler_pic_CXX='-KPIC'
16463             lt_prog_compiler_static_CXX='-Bstatic'
16464             lt_prog_compiler_wl_CXX='-Qoption ld '
16465             ;;
16466           gcx)
16467             # Green Hills C++ Compiler
16468             lt_prog_compiler_pic_CXX='-PIC'
16469             ;;
16470           *)
16471             ;;
16472         esac
16473         ;;
16474       sunos4*)
16475         case $cc_basename in
16476           CC)
16477             # Sun C++ 4.x
16478             lt_prog_compiler_pic_CXX='-pic'
16479             lt_prog_compiler_static_CXX='-Bstatic'
16480             ;;
16481           lcc)
16482             # Lucid
16483             lt_prog_compiler_pic_CXX='-pic'
16484             ;;
16485           *)
16486             ;;
16487         esac
16488         ;;
16489       tandem*)
16490         case $cc_basename in
16491           NCC)
16492             # NonStop-UX NCC 3.20
16493             lt_prog_compiler_pic_CXX='-KPIC'
16494             ;;
16495           *)
16496             ;;
16497         esac
16498         ;;
16499       unixware*)
16500         ;;
16501       vxworks*)
16502         ;;
16503       *)
16504         lt_prog_compiler_can_build_shared_CXX=no
16505         ;;
16506     esac
16507   fi
16508
16509 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16510 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16511
16512 #
16513 # Check to make sure the PIC flag actually works.
16514 #
16515 if test -n "$lt_prog_compiler_pic_CXX"; then
16516
16517 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16518 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16519 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16520   echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522   lt_prog_compiler_pic_works_CXX=no
16523   ac_outfile=conftest.$ac_objext
16524    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16525    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16526    # Insert the option either (1) after the last *FLAGS variable, or
16527    # (2) before a word containing "conftest.", or (3) at the end.
16528    # Note that $ac_compile itself does not contain backslashes and begins
16529    # with a dollar sign (not a hyphen), so the echo should work correctly.
16530    # The option is referenced via a variable to avoid confusing sed.
16531    lt_compile=`echo "$ac_compile" | $SED \
16532    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16534    -e 's:$: $lt_compiler_flag:'`
16535    (eval echo "\"\$as_me:16535: $lt_compile\"" >&5)
16536    (eval "$lt_compile" 2>conftest.err)
16537    ac_status=$?
16538    cat conftest.err >&5
16539    echo "$as_me:16539: \$? = $ac_status" >&5
16540    if (exit $ac_status) && test -s "$ac_outfile"; then
16541      # The compiler can only warn and ignore the option if not recognized
16542      # So say no if there are warnings
16543      if test ! -s conftest.err; then
16544        lt_prog_compiler_pic_works_CXX=yes
16545      fi
16546    fi
16547    $rm conftest*
16548
16549 fi
16550 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16551 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16552
16553 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16554     case $lt_prog_compiler_pic_CXX in
16555      "" | " "*) ;;
16556      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16557      esac
16558 else
16559     lt_prog_compiler_pic_CXX=
16560      lt_prog_compiler_can_build_shared_CXX=no
16561 fi
16562
16563 fi
16564 case "$host_os" in
16565   # For platforms which do not support PIC, -DPIC is meaningless:
16566   *djgpp*)
16567     lt_prog_compiler_pic_CXX=
16568     ;;
16569   *)
16570     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16571     ;;
16572 esac
16573
16574 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16576 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16577   echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579   lt_cv_prog_compiler_c_o_CXX=no
16580    $rm -r conftest 2>/dev/null
16581    mkdir conftest
16582    cd conftest
16583    mkdir out
16584    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16585
16586    lt_compiler_flag="-o out/conftest2.$ac_objext"
16587    # Insert the option either (1) after the last *FLAGS variable, or
16588    # (2) before a word containing "conftest.", or (3) at the end.
16589    # Note that $ac_compile itself does not contain backslashes and begins
16590    # with a dollar sign (not a hyphen), so the echo should work correctly.
16591    lt_compile=`echo "$ac_compile" | $SED \
16592    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16594    -e 's:$: $lt_compiler_flag:'`
16595    (eval echo "\"\$as_me:16595: $lt_compile\"" >&5)
16596    (eval "$lt_compile" 2>out/conftest.err)
16597    ac_status=$?
16598    cat out/conftest.err >&5
16599    echo "$as_me:16599: \$? = $ac_status" >&5
16600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16601    then
16602      # The compiler can only warn and ignore the option if not recognized
16603      # So say no if there are warnings
16604      if test ! -s out/conftest.err; then
16605        lt_cv_prog_compiler_c_o_CXX=yes
16606      fi
16607    fi
16608    chmod u+w .
16609    $rm conftest*
16610    # SGI C++ compiler will create directory out/ii_files/ for
16611    # template instantiation
16612    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16613    $rm out/* && rmdir out
16614    cd ..
16615    rmdir conftest
16616    $rm conftest*
16617
16618 fi
16619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16620 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16621
16622
16623 hard_links="nottested"
16624 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16625   # do not overwrite the value of need_locks provided by the user
16626   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16627 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16628   hard_links=yes
16629   $rm conftest*
16630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631   touch conftest.a
16632   ln conftest.a conftest.b 2>&5 || hard_links=no
16633   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16634   echo "$as_me:$LINENO: result: $hard_links" >&5
16635 echo "${ECHO_T}$hard_links" >&6
16636   if test "$hard_links" = no; then
16637     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16638 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16639     need_locks=warn
16640   fi
16641 else
16642   need_locks=no
16643 fi
16644
16645 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16646 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16647
16648   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16649   case $host_os in
16650   aix4* | aix5*)
16651     # If we're using GNU nm, then we don't want the "-C" option.
16652     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16653     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16654       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'
16655     else
16656       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'
16657     fi
16658     ;;
16659   pw32*)
16660     export_symbols_cmds_CXX="$ltdll_cmds"
16661   ;;
16662   cygwin* | mingw*)
16663     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16664   ;;
16665   *)
16666     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16667   ;;
16668   esac
16669
16670 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16671 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16672 test "$ld_shlibs_CXX" = no && can_build_shared=no
16673
16674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16675 if test "$GCC" = yes; then
16676   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16677 fi
16678
16679 #
16680 # Do we need to explicitly link libc?
16681 #
16682 case "x$archive_cmds_need_lc_CXX" in
16683 x|xyes)
16684   # Assume -lc should be added
16685   archive_cmds_need_lc_CXX=yes
16686
16687   if test "$enable_shared" = yes && test "$GCC" = yes; then
16688     case $archive_cmds_CXX in
16689     *'~'*)
16690       # FIXME: we may have to deal with multi-command sequences.
16691       ;;
16692     '$CC '*)
16693       # Test whether the compiler implicitly links with -lc since on some
16694       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16695       # to ld, don't add -lc before -lgcc.
16696       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16697 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16698       $rm conftest*
16699       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16700
16701       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702   (eval $ac_compile) 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } 2>conftest.err; then
16706         soname=conftest
16707         lib=conftest
16708         libobjs=conftest.$ac_objext
16709         deplibs=
16710         wl=$lt_prog_compiler_wl_CXX
16711         compiler_flags=-v
16712         linker_flags=-v
16713         verstring=
16714         output_objdir=.
16715         libname=conftest
16716         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16717         allow_undefined_flag_CXX=
16718         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16719   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }
16723         then
16724           archive_cmds_need_lc_CXX=no
16725         else
16726           archive_cmds_need_lc_CXX=yes
16727         fi
16728         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16729       else
16730         cat conftest.err 1>&5
16731       fi
16732       $rm conftest*
16733       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16734 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16735       ;;
16736     esac
16737   fi
16738   ;;
16739 esac
16740
16741 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16742 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16743 library_names_spec=
16744 libname_spec='lib$name'
16745 soname_spec=
16746 shrext_cmds=".so"
16747 postinstall_cmds=
16748 postuninstall_cmds=
16749 finish_cmds=
16750 finish_eval=
16751 shlibpath_var=
16752 shlibpath_overrides_runpath=unknown
16753 version_type=none
16754 dynamic_linker="$host_os ld.so"
16755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16756 if test "$GCC" = yes; then
16757   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16758   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16759     # if the path contains ";" then we assume it to be the separator
16760     # otherwise default to the standard path separator (i.e. ":") - it is
16761     # assumed that no part of a normal pathname contains ";" but that should
16762     # okay in the real world where ";" in dirpaths is itself problematic.
16763     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16764   else
16765     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16766   fi
16767 else
16768   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16769 fi
16770 need_lib_prefix=unknown
16771 hardcode_into_libs=no
16772
16773 # when you set need_version to no, make sure it does not cause -set_version
16774 # flags to be left without arguments
16775 need_version=unknown
16776
16777 case $host_os in
16778 aix3*)
16779   version_type=linux
16780   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16781   shlibpath_var=LIBPATH
16782
16783   # AIX 3 has no versioning support, so we append a major version to the name.
16784   soname_spec='${libname}${release}${shared_ext}$major'
16785   ;;
16786
16787 aix4* | aix5*)
16788   version_type=linux
16789   need_lib_prefix=no
16790   need_version=no
16791   hardcode_into_libs=yes
16792   if test "$host_cpu" = ia64; then
16793     # AIX 5 supports IA64
16794     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16795     shlibpath_var=LD_LIBRARY_PATH
16796   else
16797     # With GCC up to 2.95.x, collect2 would create an import file
16798     # for dependence libraries.  The import file would start with
16799     # the line `#! .'.  This would cause the generated library to
16800     # depend on `.', always an invalid library.  This was fixed in
16801     # development snapshots of GCC prior to 3.0.
16802     case $host_os in
16803       aix4 | aix4.[01] | aix4.[01].*)
16804       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16805            echo ' yes '
16806            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16807         :
16808       else
16809         can_build_shared=no
16810       fi
16811       ;;
16812     esac
16813     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16814     # soname into executable. Probably we can add versioning support to
16815     # collect2, so additional links can be useful in future.
16816     if test "$aix_use_runtimelinking" = yes; then
16817       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16818       # instead of lib<name>.a to let people know that these are not
16819       # typical AIX shared libraries.
16820       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821     else
16822       # We preserve .a as extension for shared libraries through AIX4.2
16823       # and later when we are not doing run time linking.
16824       library_names_spec='${libname}${release}.a $libname.a'
16825       soname_spec='${libname}${release}${shared_ext}$major'
16826     fi
16827     shlibpath_var=LIBPATH
16828   fi
16829   ;;
16830
16831 amigaos*)
16832   library_names_spec='$libname.ixlibrary $libname.a'
16833   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16834   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'
16835   ;;
16836
16837 beos*)
16838   library_names_spec='${libname}${shared_ext}'
16839   dynamic_linker="$host_os ld.so"
16840   shlibpath_var=LIBRARY_PATH
16841   ;;
16842
16843 bsdi[45]*)
16844   version_type=linux
16845   need_version=no
16846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847   soname_spec='${libname}${release}${shared_ext}$major'
16848   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16849   shlibpath_var=LD_LIBRARY_PATH
16850   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16851   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16852   # the default ld.so.conf also contains /usr/contrib/lib and
16853   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16854   # libtool to hard-code these into programs
16855   ;;
16856
16857 cygwin* | mingw* | pw32*)
16858   version_type=windows
16859   shrext_cmds=".dll"
16860   need_version=no
16861   need_lib_prefix=no
16862
16863   case $GCC,$host_os in
16864   yes,cygwin* | yes,mingw* | yes,pw32*)
16865     library_names_spec='$libname.dll.a'
16866     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16867     postinstall_cmds='base_file=`basename \${file}`~
16868       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16869       dldir=$destdir/`dirname \$dlpath`~
16870       test -d \$dldir || mkdir -p \$dldir~
16871       $install_prog $dir/$dlname \$dldir/$dlname'
16872     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16873       dlpath=$dir/\$dldll~
16874        $rm \$dlpath'
16875     shlibpath_overrides_runpath=yes
16876
16877     case $host_os in
16878     cygwin*)
16879       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16880       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16881       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16882       ;;
16883     mingw*)
16884       # MinGW DLLs use traditional 'lib' prefix
16885       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16886       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16887       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16888         # It is most probably a Windows format PATH printed by
16889         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16890         # path with ; separators, and with drive letters. We can handle the
16891         # drive letters (cygwin fileutils understands them), so leave them,
16892         # especially as we might pass files found there to a mingw objdump,
16893         # which wouldn't understand a cygwinified path. Ahh.
16894         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16895       else
16896         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16897       fi
16898       ;;
16899     pw32*)
16900       # pw32 DLLs use 'pw' prefix rather than 'lib'
16901       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16902       ;;
16903     esac
16904     ;;
16905
16906   *)
16907     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16908     ;;
16909   esac
16910   dynamic_linker='Win32 ld.exe'
16911   # FIXME: first we should search . and the directory the executable is in
16912   shlibpath_var=PATH
16913   ;;
16914
16915 darwin* | rhapsody*)
16916   dynamic_linker="$host_os dyld"
16917   version_type=darwin
16918   need_lib_prefix=no
16919   need_version=no
16920   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16921   soname_spec='${libname}${release}${major}$shared_ext'
16922   shlibpath_overrides_runpath=yes
16923   shlibpath_var=DYLD_LIBRARY_PATH
16924   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16925   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16926   if test "$GCC" = yes; then
16927     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"`
16928   else
16929     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16930   fi
16931   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16932   ;;
16933
16934 dgux*)
16935   version_type=linux
16936   need_lib_prefix=no
16937   need_version=no
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16939   soname_spec='${libname}${release}${shared_ext}$major'
16940   shlibpath_var=LD_LIBRARY_PATH
16941   ;;
16942
16943 freebsd1*)
16944   dynamic_linker=no
16945   ;;
16946
16947 kfreebsd*-gnu)
16948   version_type=linux
16949   need_lib_prefix=no
16950   need_version=no
16951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16952   soname_spec='${libname}${release}${shared_ext}$major'
16953   shlibpath_var=LD_LIBRARY_PATH
16954   shlibpath_overrides_runpath=no
16955   hardcode_into_libs=yes
16956   dynamic_linker='GNU ld.so'
16957   ;;
16958
16959 freebsd*)
16960   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16961   version_type=freebsd-$objformat
16962   case $version_type in
16963     freebsd-elf*)
16964       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16965       need_version=no
16966       need_lib_prefix=no
16967       ;;
16968     freebsd-*)
16969       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16970       need_version=yes
16971       ;;
16972   esac
16973   shlibpath_var=LD_LIBRARY_PATH
16974   case $host_os in
16975   freebsd2*)
16976     shlibpath_overrides_runpath=yes
16977     ;;
16978   freebsd3.01* | freebsdelf3.01*)
16979     shlibpath_overrides_runpath=yes
16980     hardcode_into_libs=yes
16981     ;;
16982   *) # from 3.2 on
16983     shlibpath_overrides_runpath=no
16984     hardcode_into_libs=yes
16985     ;;
16986   esac
16987   ;;
16988
16989 gnu*)
16990   version_type=linux
16991   need_lib_prefix=no
16992   need_version=no
16993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16994   soname_spec='${libname}${release}${shared_ext}$major'
16995   shlibpath_var=LD_LIBRARY_PATH
16996   hardcode_into_libs=yes
16997   ;;
16998
16999 hpux9* | hpux10* | hpux11*)
17000   # Give a soname corresponding to the major version so that dld.sl refuses to
17001   # link against other versions.
17002   version_type=sunos
17003   need_lib_prefix=no
17004   need_version=no
17005   case "$host_cpu" in
17006   ia64*)
17007     shrext_cmds='.so'
17008     hardcode_into_libs=yes
17009     dynamic_linker="$host_os dld.so"
17010     shlibpath_var=LD_LIBRARY_PATH
17011     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013     soname_spec='${libname}${release}${shared_ext}$major'
17014     if test "X$HPUX_IA64_MODE" = X32; then
17015       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17016     else
17017       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17018     fi
17019     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17020     ;;
17021    hppa*64*)
17022      shrext_cmds='.sl'
17023      hardcode_into_libs=yes
17024      dynamic_linker="$host_os dld.sl"
17025      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17026      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17027      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028      soname_spec='${libname}${release}${shared_ext}$major'
17029      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17030      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17031      ;;
17032    *)
17033     shrext_cmds='.sl'
17034     dynamic_linker="$host_os dld.sl"
17035     shlibpath_var=SHLIB_PATH
17036     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038     soname_spec='${libname}${release}${shared_ext}$major'
17039     ;;
17040   esac
17041   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17042   postinstall_cmds='chmod 555 $lib'
17043   ;;
17044
17045 irix5* | irix6* | nonstopux*)
17046   case $host_os in
17047     nonstopux*) version_type=nonstopux ;;
17048     *)
17049         if test "$lt_cv_prog_gnu_ld" = yes; then
17050                 version_type=linux
17051         else
17052                 version_type=irix
17053         fi ;;
17054   esac
17055   need_lib_prefix=no
17056   need_version=no
17057   soname_spec='${libname}${release}${shared_ext}$major'
17058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17059   case $host_os in
17060   irix5* | nonstopux*)
17061     libsuff= shlibsuff=
17062     ;;
17063   *)
17064     case $LD in # libtool.m4 will add one of these switches to LD
17065     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17066       libsuff= shlibsuff= libmagic=32-bit;;
17067     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17068       libsuff=32 shlibsuff=N32 libmagic=N32;;
17069     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17070       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17071     *) libsuff= shlibsuff= libmagic=never-match;;
17072     esac
17073     ;;
17074   esac
17075   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17076   shlibpath_overrides_runpath=no
17077   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17078   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17079   hardcode_into_libs=yes
17080   ;;
17081
17082 # No shared lib support for Linux oldld, aout, or coff.
17083 linux*oldld* | linux*aout* | linux*coff*)
17084   dynamic_linker=no
17085   ;;
17086
17087 # This must be Linux ELF.
17088 linux*)
17089   version_type=linux
17090   need_lib_prefix=no
17091   need_version=no
17092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093   soname_spec='${libname}${release}${shared_ext}$major'
17094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17095   shlibpath_var=LD_LIBRARY_PATH
17096   shlibpath_overrides_runpath=no
17097   # This implies no fast_install, which is unacceptable.
17098   # Some rework will be needed to allow for fast_install
17099   # before this can be enabled.
17100   hardcode_into_libs=yes
17101
17102   # Append ld.so.conf contents to the search path
17103   if test -f /etc/ld.so.conf; then
17104     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17105     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17106   fi
17107
17108   # We used to test for /lib/ld.so.1 and disable shared libraries on
17109   # powerpc, because MkLinux only supported shared libraries with the
17110   # GNU dynamic linker.  Since this was broken with cross compilers,
17111   # most powerpc-linux boxes support dynamic linking these days and
17112   # people can always --disable-shared, the test was removed, and we
17113   # assume the GNU/Linux dynamic linker is in use.
17114   dynamic_linker='GNU/Linux ld.so'
17115   ;;
17116
17117 knetbsd*-gnu)
17118   version_type=linux
17119   need_lib_prefix=no
17120   need_version=no
17121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17122   soname_spec='${libname}${release}${shared_ext}$major'
17123   shlibpath_var=LD_LIBRARY_PATH
17124   shlibpath_overrides_runpath=no
17125   hardcode_into_libs=yes
17126   dynamic_linker='GNU ld.so'
17127   ;;
17128
17129 netbsd*)
17130   version_type=sunos
17131   need_lib_prefix=no
17132   need_version=no
17133   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17135     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17136     dynamic_linker='NetBSD (a.out) ld.so'
17137   else
17138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17139     soname_spec='${libname}${release}${shared_ext}$major'
17140     dynamic_linker='NetBSD ld.elf_so'
17141   fi
17142   shlibpath_var=LD_LIBRARY_PATH
17143   shlibpath_overrides_runpath=yes
17144   hardcode_into_libs=yes
17145   ;;
17146
17147 newsos6)
17148   version_type=linux
17149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150   shlibpath_var=LD_LIBRARY_PATH
17151   shlibpath_overrides_runpath=yes
17152   ;;
17153
17154 nto-qnx*)
17155   version_type=linux
17156   need_lib_prefix=no
17157   need_version=no
17158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159   soname_spec='${libname}${release}${shared_ext}$major'
17160   shlibpath_var=LD_LIBRARY_PATH
17161   shlibpath_overrides_runpath=yes
17162   ;;
17163
17164 openbsd*)
17165   version_type=sunos
17166   need_lib_prefix=no
17167   need_version=no
17168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17169   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17170   shlibpath_var=LD_LIBRARY_PATH
17171   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17172     case $host_os in
17173       openbsd2.[89] | openbsd2.[89].*)
17174         shlibpath_overrides_runpath=no
17175         ;;
17176       *)
17177         shlibpath_overrides_runpath=yes
17178         ;;
17179       esac
17180   else
17181     shlibpath_overrides_runpath=yes
17182   fi
17183   ;;
17184
17185 os2*)
17186   libname_spec='$name'
17187   shrext_cmds=".dll"
17188   need_lib_prefix=no
17189   library_names_spec='$libname${shared_ext} $libname.a'
17190   dynamic_linker='OS/2 ld.exe'
17191   shlibpath_var=LIBPATH
17192   ;;
17193
17194 osf3* | osf4* | osf5*)
17195   version_type=osf
17196   need_lib_prefix=no
17197   need_version=no
17198   soname_spec='${libname}${release}${shared_ext}$major'
17199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200   shlibpath_var=LD_LIBRARY_PATH
17201   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17202   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17203   ;;
17204
17205 sco3.2v5*)
17206   version_type=osf
17207   soname_spec='${libname}${release}${shared_ext}$major'
17208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209   shlibpath_var=LD_LIBRARY_PATH
17210   ;;
17211
17212 solaris*)
17213   version_type=linux
17214   need_lib_prefix=no
17215   need_version=no
17216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217   soname_spec='${libname}${release}${shared_ext}$major'
17218   shlibpath_var=LD_LIBRARY_PATH
17219   shlibpath_overrides_runpath=yes
17220   hardcode_into_libs=yes
17221   # ldd complains unless libraries are executable
17222   postinstall_cmds='chmod +x $lib'
17223   ;;
17224
17225 sunos4*)
17226   version_type=sunos
17227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17228   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17229   shlibpath_var=LD_LIBRARY_PATH
17230   shlibpath_overrides_runpath=yes
17231   if test "$with_gnu_ld" = yes; then
17232     need_lib_prefix=no
17233   fi
17234   need_version=yes
17235   ;;
17236
17237 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17238   version_type=linux
17239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240   soname_spec='${libname}${release}${shared_ext}$major'
17241   shlibpath_var=LD_LIBRARY_PATH
17242   case $host_vendor in
17243     sni)
17244       shlibpath_overrides_runpath=no
17245       need_lib_prefix=no
17246       export_dynamic_flag_spec='${wl}-Blargedynsym'
17247       runpath_var=LD_RUN_PATH
17248       ;;
17249     siemens)
17250       need_lib_prefix=no
17251       ;;
17252     motorola)
17253       need_lib_prefix=no
17254       need_version=no
17255       shlibpath_overrides_runpath=no
17256       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17257       ;;
17258   esac
17259   ;;
17260
17261 sysv4*MP*)
17262   if test -d /usr/nec ;then
17263     version_type=linux
17264     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17265     soname_spec='$libname${shared_ext}.$major'
17266     shlibpath_var=LD_LIBRARY_PATH
17267   fi
17268   ;;
17269
17270 uts4*)
17271   version_type=linux
17272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273   soname_spec='${libname}${release}${shared_ext}$major'
17274   shlibpath_var=LD_LIBRARY_PATH
17275   ;;
17276
17277 *)
17278   dynamic_linker=no
17279   ;;
17280 esac
17281 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17282 echo "${ECHO_T}$dynamic_linker" >&6
17283 test "$dynamic_linker" = no && can_build_shared=no
17284
17285 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17286 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17287 hardcode_action_CXX=
17288 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17289    test -n "$runpath_var_CXX" || \
17290    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17291
17292   # We can hardcode non-existant directories.
17293   if test "$hardcode_direct_CXX" != no &&
17294      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17295      # have to relink, otherwise we might link with an installed library
17296      # when we should be linking with a yet-to-be-installed one
17297      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17298      test "$hardcode_minus_L_CXX" != no; then
17299     # Linking always hardcodes the temporary library directory.
17300     hardcode_action_CXX=relink
17301   else
17302     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17303     hardcode_action_CXX=immediate
17304   fi
17305 else
17306   # We cannot hardcode anything, or else we can only hardcode existing
17307   # directories.
17308   hardcode_action_CXX=unsupported
17309 fi
17310 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17311 echo "${ECHO_T}$hardcode_action_CXX" >&6
17312
17313 if test "$hardcode_action_CXX" = relink; then
17314   # Fast installation is not supported
17315   enable_fast_install=no
17316 elif test "$shlibpath_overrides_runpath" = yes ||
17317      test "$enable_shared" = no; then
17318   # Fast installation is not necessary
17319   enable_fast_install=needless
17320 fi
17321
17322 striplib=
17323 old_striplib=
17324 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17325 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17326 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17327   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17328   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17329   echo "$as_me:$LINENO: result: yes" >&5
17330 echo "${ECHO_T}yes" >&6
17331 else
17332 # FIXME - insert some real tests, host_os isn't really good enough
17333   case $host_os in
17334    darwin*)
17335        if test -n "$STRIP" ; then
17336          striplib="$STRIP -x"
17337          echo "$as_me:$LINENO: result: yes" >&5
17338 echo "${ECHO_T}yes" >&6
17339        else
17340   echo "$as_me:$LINENO: result: no" >&5
17341 echo "${ECHO_T}no" >&6
17342 fi
17343        ;;
17344    *)
17345   echo "$as_me:$LINENO: result: no" >&5
17346 echo "${ECHO_T}no" >&6
17347     ;;
17348   esac
17349 fi
17350
17351 if test "x$enable_dlopen" != xyes; then
17352   enable_dlopen=unknown
17353   enable_dlopen_self=unknown
17354   enable_dlopen_self_static=unknown
17355 else
17356   lt_cv_dlopen=no
17357   lt_cv_dlopen_libs=
17358
17359   case $host_os in
17360   beos*)
17361     lt_cv_dlopen="load_add_on"
17362     lt_cv_dlopen_libs=
17363     lt_cv_dlopen_self=yes
17364     ;;
17365
17366   mingw* | pw32*)
17367     lt_cv_dlopen="LoadLibrary"
17368     lt_cv_dlopen_libs=
17369    ;;
17370
17371   cygwin*)
17372     lt_cv_dlopen="dlopen"
17373     lt_cv_dlopen_libs=
17374    ;;
17375
17376   darwin*)
17377   # if libdl is installed we need to link against it
17378     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17379 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17381   echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383   ac_check_lib_save_LIBS=$LIBS
17384 LIBS="-ldl  $LIBS"
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391
17392 /* Override any gcc2 internal prototype to avoid an error.  */
17393 #ifdef __cplusplus
17394 extern "C"
17395 #endif
17396 /* We use char because int might match the return type of a gcc2
17397    builtin and then its argument prototype would still apply.  */
17398 char dlopen ();
17399 int
17400 main ()
17401 {
17402 dlopen ();
17403   ;
17404   return 0;
17405 }
17406 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409   (eval $ac_link) 2>conftest.er1
17410   ac_status=$?
17411   grep -v '^ *+' conftest.er1 >conftest.err
17412   rm -f conftest.er1
17413   cat conftest.err >&5
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); } &&
17416          { ac_try='test -z "$ac_cxx_werror_flag"
17417                          || test ! -s conftest.err'
17418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419   (eval $ac_try) 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); }; } &&
17423          { ac_try='test -s conftest$ac_exeext'
17424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425   (eval $ac_try) 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); }; }; then
17429   ac_cv_lib_dl_dlopen=yes
17430 else
17431   echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17433
17434 ac_cv_lib_dl_dlopen=no
17435 fi
17436 rm -f conftest.err conftest.$ac_objext \
17437       conftest$ac_exeext conftest.$ac_ext
17438 LIBS=$ac_check_lib_save_LIBS
17439 fi
17440 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17441 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17442 if test $ac_cv_lib_dl_dlopen = yes; then
17443   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17444 else
17445
17446     lt_cv_dlopen="dyld"
17447     lt_cv_dlopen_libs=
17448     lt_cv_dlopen_self=yes
17449
17450 fi
17451
17452    ;;
17453
17454   *)
17455     echo "$as_me:$LINENO: checking for shl_load" >&5
17456 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17457 if test "${ac_cv_func_shl_load+set}" = set; then
17458   echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460   cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h.  */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h.  */
17466 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17468 #define shl_load innocuous_shl_load
17469
17470 /* System header to define __stub macros and hopefully few prototypes,
17471     which can conflict with char shl_load (); below.
17472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473     <limits.h> exists even on freestanding compilers.  */
17474
17475 #ifdef __STDC__
17476 # include <limits.h>
17477 #else
17478 # include <assert.h>
17479 #endif
17480
17481 #undef shl_load
17482
17483 /* Override any gcc2 internal prototype to avoid an error.  */
17484 #ifdef __cplusplus
17485 extern "C"
17486 {
17487 #endif
17488 /* We use char because int might match the return type of a gcc2
17489    builtin and then its argument prototype would still apply.  */
17490 char shl_load ();
17491 /* The GNU C library defines this for functions which it implements
17492     to always fail with ENOSYS.  Some functions are actually named
17493     something starting with __ and the normal name is an alias.  */
17494 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17495 choke me
17496 #else
17497 char (*f) () = shl_load;
17498 #endif
17499 #ifdef __cplusplus
17500 }
17501 #endif
17502
17503 int
17504 main ()
17505 {
17506 return f != shl_load;
17507   ;
17508   return 0;
17509 }
17510 _ACEOF
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513   (eval $ac_link) 2>conftest.er1
17514   ac_status=$?
17515   grep -v '^ *+' conftest.er1 >conftest.err
17516   rm -f conftest.er1
17517   cat conftest.err >&5
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); } &&
17520          { ac_try='test -z "$ac_cxx_werror_flag"
17521                          || test ! -s conftest.err'
17522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523   (eval $ac_try) 2>&5
17524   ac_status=$?
17525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526   (exit $ac_status); }; } &&
17527          { ac_try='test -s conftest$ac_exeext'
17528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529   (eval $ac_try) 2>&5
17530   ac_status=$?
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); }; }; then
17533   ac_cv_func_shl_load=yes
17534 else
17535   echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17537
17538 ac_cv_func_shl_load=no
17539 fi
17540 rm -f conftest.err conftest.$ac_objext \
17541       conftest$ac_exeext conftest.$ac_ext
17542 fi
17543 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17544 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17545 if test $ac_cv_func_shl_load = yes; then
17546   lt_cv_dlopen="shl_load"
17547 else
17548   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17549 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17551   echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553   ac_check_lib_save_LIBS=$LIBS
17554 LIBS="-ldld  $LIBS"
17555 cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h.  */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h.  */
17561
17562 /* Override any gcc2 internal prototype to avoid an error.  */
17563 #ifdef __cplusplus
17564 extern "C"
17565 #endif
17566 /* We use char because int might match the return type of a gcc2
17567    builtin and then its argument prototype would still apply.  */
17568 char shl_load ();
17569 int
17570 main ()
17571 {
17572 shl_load ();
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17579   (eval $ac_link) 2>conftest.er1
17580   ac_status=$?
17581   grep -v '^ *+' conftest.er1 >conftest.err
17582   rm -f conftest.er1
17583   cat conftest.err >&5
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); } &&
17586          { ac_try='test -z "$ac_cxx_werror_flag"
17587                          || test ! -s conftest.err'
17588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; } &&
17593          { ac_try='test -s conftest$ac_exeext'
17594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595   (eval $ac_try) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; }; then
17599   ac_cv_lib_dld_shl_load=yes
17600 else
17601   echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17603
17604 ac_cv_lib_dld_shl_load=no
17605 fi
17606 rm -f conftest.err conftest.$ac_objext \
17607       conftest$ac_exeext conftest.$ac_ext
17608 LIBS=$ac_check_lib_save_LIBS
17609 fi
17610 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17611 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17612 if test $ac_cv_lib_dld_shl_load = yes; then
17613   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17614 else
17615   echo "$as_me:$LINENO: checking for dlopen" >&5
17616 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17617 if test "${ac_cv_func_dlopen+set}" = set; then
17618   echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620   cat >conftest.$ac_ext <<_ACEOF
17621 /* confdefs.h.  */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h.  */
17626 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17628 #define dlopen innocuous_dlopen
17629
17630 /* System header to define __stub macros and hopefully few prototypes,
17631     which can conflict with char dlopen (); below.
17632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17633     <limits.h> exists even on freestanding compilers.  */
17634
17635 #ifdef __STDC__
17636 # include <limits.h>
17637 #else
17638 # include <assert.h>
17639 #endif
17640
17641 #undef dlopen
17642
17643 /* Override any gcc2 internal prototype to avoid an error.  */
17644 #ifdef __cplusplus
17645 extern "C"
17646 {
17647 #endif
17648 /* We use char because int might match the return type of a gcc2
17649    builtin and then its argument prototype would still apply.  */
17650 char dlopen ();
17651 /* The GNU C library defines this for functions which it implements
17652     to always fail with ENOSYS.  Some functions are actually named
17653     something starting with __ and the normal name is an alias.  */
17654 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17655 choke me
17656 #else
17657 char (*f) () = dlopen;
17658 #endif
17659 #ifdef __cplusplus
17660 }
17661 #endif
17662
17663 int
17664 main ()
17665 {
17666 return f != dlopen;
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest.$ac_objext conftest$ac_exeext
17672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17673   (eval $ac_link) 2>conftest.er1
17674   ac_status=$?
17675   grep -v '^ *+' conftest.er1 >conftest.err
17676   rm -f conftest.er1
17677   cat conftest.err >&5
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); } &&
17680          { ac_try='test -z "$ac_cxx_werror_flag"
17681                          || test ! -s conftest.err'
17682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683   (eval $ac_try) 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); }; } &&
17687          { ac_try='test -s conftest$ac_exeext'
17688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689   (eval $ac_try) 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; }; then
17693   ac_cv_func_dlopen=yes
17694 else
17695   echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17697
17698 ac_cv_func_dlopen=no
17699 fi
17700 rm -f conftest.err conftest.$ac_objext \
17701       conftest$ac_exeext conftest.$ac_ext
17702 fi
17703 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17704 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17705 if test $ac_cv_func_dlopen = yes; then
17706   lt_cv_dlopen="dlopen"
17707 else
17708   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17711   echo $ECHO_N "(cached) $ECHO_C" >&6
17712 else
17713   ac_check_lib_save_LIBS=$LIBS
17714 LIBS="-ldl  $LIBS"
17715 cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721
17722 /* Override any gcc2 internal prototype to avoid an error.  */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 /* We use char because int might match the return type of a gcc2
17727    builtin and then its argument prototype would still apply.  */
17728 char dlopen ();
17729 int
17730 main ()
17731 {
17732 dlopen ();
17733   ;
17734   return 0;
17735 }
17736 _ACEOF
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17739   (eval $ac_link) 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } &&
17746          { ac_try='test -z "$ac_cxx_werror_flag"
17747                          || test ! -s conftest.err'
17748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749   (eval $ac_try) 2>&5
17750   ac_status=$?
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); }; } &&
17753          { ac_try='test -s conftest$ac_exeext'
17754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755   (eval $ac_try) 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); }; }; then
17759   ac_cv_lib_dl_dlopen=yes
17760 else
17761   echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ac_cv_lib_dl_dlopen=no
17765 fi
17766 rm -f conftest.err conftest.$ac_objext \
17767       conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17769 fi
17770 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17772 if test $ac_cv_lib_dl_dlopen = yes; then
17773   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17774 else
17775   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17776 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17778   echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780   ac_check_lib_save_LIBS=$LIBS
17781 LIBS="-lsvld  $LIBS"
17782 cat >conftest.$ac_ext <<_ACEOF
17783 /* confdefs.h.  */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h.  */
17788
17789 /* Override any gcc2 internal prototype to avoid an error.  */
17790 #ifdef __cplusplus
17791 extern "C"
17792 #endif
17793 /* We use char because int might match the return type of a gcc2
17794    builtin and then its argument prototype would still apply.  */
17795 char dlopen ();
17796 int
17797 main ()
17798 {
17799 dlopen ();
17800   ;
17801   return 0;
17802 }
17803 _ACEOF
17804 rm -f conftest.$ac_objext conftest$ac_exeext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806   (eval $ac_link) 2>conftest.er1
17807   ac_status=$?
17808   grep -v '^ *+' conftest.er1 >conftest.err
17809   rm -f conftest.er1
17810   cat conftest.err >&5
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); } &&
17813          { ac_try='test -z "$ac_cxx_werror_flag"
17814                          || test ! -s conftest.err'
17815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816   (eval $ac_try) 2>&5
17817   ac_status=$?
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); }; } &&
17820          { ac_try='test -s conftest$ac_exeext'
17821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822   (eval $ac_try) 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); }; }; then
17826   ac_cv_lib_svld_dlopen=yes
17827 else
17828   echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17830
17831 ac_cv_lib_svld_dlopen=no
17832 fi
17833 rm -f conftest.err conftest.$ac_objext \
17834       conftest$ac_exeext conftest.$ac_ext
17835 LIBS=$ac_check_lib_save_LIBS
17836 fi
17837 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17838 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17839 if test $ac_cv_lib_svld_dlopen = yes; then
17840   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17841 else
17842   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17843 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17844 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   ac_check_lib_save_LIBS=$LIBS
17848 LIBS="-ldld  $LIBS"
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855
17856 /* Override any gcc2 internal prototype to avoid an error.  */
17857 #ifdef __cplusplus
17858 extern "C"
17859 #endif
17860 /* We use char because int might match the return type of a gcc2
17861    builtin and then its argument prototype would still apply.  */
17862 char dld_link ();
17863 int
17864 main ()
17865 {
17866 dld_link ();
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873   (eval $ac_link) 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } &&
17880          { ac_try='test -z "$ac_cxx_werror_flag"
17881                          || test ! -s conftest.err'
17882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883   (eval $ac_try) 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }; } &&
17887          { ac_try='test -s conftest$ac_exeext'
17888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889   (eval $ac_try) 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; }; then
17893   ac_cv_lib_dld_dld_link=yes
17894 else
17895   echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898 ac_cv_lib_dld_dld_link=no
17899 fi
17900 rm -f conftest.err conftest.$ac_objext \
17901       conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17903 fi
17904 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17905 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17906 if test $ac_cv_lib_dld_dld_link = yes; then
17907   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17908 fi
17909
17910
17911 fi
17912
17913
17914 fi
17915
17916
17917 fi
17918
17919
17920 fi
17921
17922
17923 fi
17924
17925     ;;
17926   esac
17927
17928   if test "x$lt_cv_dlopen" != xno; then
17929     enable_dlopen=yes
17930   else
17931     enable_dlopen=no
17932   fi
17933
17934   case $lt_cv_dlopen in
17935   dlopen)
17936     save_CPPFLAGS="$CPPFLAGS"
17937     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17938
17939     save_LDFLAGS="$LDFLAGS"
17940     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17941
17942     save_LIBS="$LIBS"
17943     LIBS="$lt_cv_dlopen_libs $LIBS"
17944
17945     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17946 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17947 if test "${lt_cv_dlopen_self+set}" = set; then
17948   echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950           if test "$cross_compiling" = yes; then :
17951   lt_cv_dlopen_self=cross
17952 else
17953   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17954   lt_status=$lt_dlunknown
17955   cat > conftest.$ac_ext <<EOF
17956 #line 17956 "configure"
17957 #include "confdefs.h"
17958
17959 #if HAVE_DLFCN_H
17960 #include <dlfcn.h>
17961 #endif
17962
17963 #include <stdio.h>
17964
17965 #ifdef RTLD_GLOBAL
17966 #  define LT_DLGLOBAL           RTLD_GLOBAL
17967 #else
17968 #  ifdef DL_GLOBAL
17969 #    define LT_DLGLOBAL         DL_GLOBAL
17970 #  else
17971 #    define LT_DLGLOBAL         0
17972 #  endif
17973 #endif
17974
17975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17976    find out it does not work in some platform. */
17977 #ifndef LT_DLLAZY_OR_NOW
17978 #  ifdef RTLD_LAZY
17979 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17980 #  else
17981 #    ifdef DL_LAZY
17982 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17983 #    else
17984 #      ifdef RTLD_NOW
17985 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17986 #      else
17987 #        ifdef DL_NOW
17988 #          define LT_DLLAZY_OR_NOW      DL_NOW
17989 #        else
17990 #          define LT_DLLAZY_OR_NOW      0
17991 #        endif
17992 #      endif
17993 #    endif
17994 #  endif
17995 #endif
17996
17997 #ifdef __cplusplus
17998 extern "C" void exit (int);
17999 #endif
18000
18001 void fnord() { int i=42;}
18002 int main ()
18003 {
18004   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18005   int status = $lt_dlunknown;
18006
18007   if (self)
18008     {
18009       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18010       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18011       /* dlclose (self); */
18012     }
18013
18014     exit (status);
18015 }
18016 EOF
18017   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18018   (eval $ac_link) 2>&5
18019   ac_status=$?
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18022     (./conftest; exit; ) 2>/dev/null
18023     lt_status=$?
18024     case x$lt_status in
18025       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18026       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18027       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18028     esac
18029   else :
18030     # compilation failed
18031     lt_cv_dlopen_self=no
18032   fi
18033 fi
18034 rm -fr conftest*
18035
18036
18037 fi
18038 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18039 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18040
18041     if test "x$lt_cv_dlopen_self" = xyes; then
18042       LDFLAGS="$LDFLAGS $link_static_flag"
18043       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18044 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18045 if test "${lt_cv_dlopen_self_static+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048           if test "$cross_compiling" = yes; then :
18049   lt_cv_dlopen_self_static=cross
18050 else
18051   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18052   lt_status=$lt_dlunknown
18053   cat > conftest.$ac_ext <<EOF
18054 #line 18054 "configure"
18055 #include "confdefs.h"
18056
18057 #if HAVE_DLFCN_H
18058 #include <dlfcn.h>
18059 #endif
18060
18061 #include <stdio.h>
18062
18063 #ifdef RTLD_GLOBAL
18064 #  define LT_DLGLOBAL           RTLD_GLOBAL
18065 #else
18066 #  ifdef DL_GLOBAL
18067 #    define LT_DLGLOBAL         DL_GLOBAL
18068 #  else
18069 #    define LT_DLGLOBAL         0
18070 #  endif
18071 #endif
18072
18073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18074    find out it does not work in some platform. */
18075 #ifndef LT_DLLAZY_OR_NOW
18076 #  ifdef RTLD_LAZY
18077 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18078 #  else
18079 #    ifdef DL_LAZY
18080 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18081 #    else
18082 #      ifdef RTLD_NOW
18083 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18084 #      else
18085 #        ifdef DL_NOW
18086 #          define LT_DLLAZY_OR_NOW      DL_NOW
18087 #        else
18088 #          define LT_DLLAZY_OR_NOW      0
18089 #        endif
18090 #      endif
18091 #    endif
18092 #  endif
18093 #endif
18094
18095 #ifdef __cplusplus
18096 extern "C" void exit (int);
18097 #endif
18098
18099 void fnord() { int i=42;}
18100 int main ()
18101 {
18102   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18103   int status = $lt_dlunknown;
18104
18105   if (self)
18106     {
18107       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18108       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18109       /* dlclose (self); */
18110     }
18111
18112     exit (status);
18113 }
18114 EOF
18115   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18116   (eval $ac_link) 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18120     (./conftest; exit; ) 2>/dev/null
18121     lt_status=$?
18122     case x$lt_status in
18123       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18124       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18125       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18126     esac
18127   else :
18128     # compilation failed
18129     lt_cv_dlopen_self_static=no
18130   fi
18131 fi
18132 rm -fr conftest*
18133
18134
18135 fi
18136 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18137 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18138     fi
18139
18140     CPPFLAGS="$save_CPPFLAGS"
18141     LDFLAGS="$save_LDFLAGS"
18142     LIBS="$save_LIBS"
18143     ;;
18144   esac
18145
18146   case $lt_cv_dlopen_self in
18147   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18148   *) enable_dlopen_self=unknown ;;
18149   esac
18150
18151   case $lt_cv_dlopen_self_static in
18152   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18153   *) enable_dlopen_self_static=unknown ;;
18154   esac
18155 fi
18156
18157
18158 # The else clause should only fire when bootstrapping the
18159 # libtool distribution, otherwise you forgot to ship ltmain.sh
18160 # with your package, and you will get complaints that there are
18161 # no rules to generate ltmain.sh.
18162 if test -f "$ltmain"; then
18163   # See if we are running on zsh, and set the options which allow our commands through
18164   # without removal of \ escapes.
18165   if test -n "${ZSH_VERSION+set}" ; then
18166     setopt NO_GLOB_SUBST
18167   fi
18168   # Now quote all the things that may contain metacharacters while being
18169   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18170   # variables and quote the copies for generation of the libtool script.
18171   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18172     SED SHELL STRIP \
18173     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18174     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18175     deplibs_check_method reload_flag reload_cmds need_locks \
18176     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18177     lt_cv_sys_global_symbol_to_c_name_address \
18178     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18179     old_postinstall_cmds old_postuninstall_cmds \
18180     compiler_CXX \
18181     CC_CXX \
18182     LD_CXX \
18183     lt_prog_compiler_wl_CXX \
18184     lt_prog_compiler_pic_CXX \
18185     lt_prog_compiler_static_CXX \
18186     lt_prog_compiler_no_builtin_flag_CXX \
18187     export_dynamic_flag_spec_CXX \
18188     thread_safe_flag_spec_CXX \
18189     whole_archive_flag_spec_CXX \
18190     enable_shared_with_static_runtimes_CXX \
18191     old_archive_cmds_CXX \
18192     old_archive_from_new_cmds_CXX \
18193     predep_objects_CXX \
18194     postdep_objects_CXX \
18195     predeps_CXX \
18196     postdeps_CXX \
18197     compiler_lib_search_path_CXX \
18198     archive_cmds_CXX \
18199     archive_expsym_cmds_CXX \
18200     postinstall_cmds_CXX \
18201     postuninstall_cmds_CXX \
18202     old_archive_from_expsyms_cmds_CXX \
18203     allow_undefined_flag_CXX \
18204     no_undefined_flag_CXX \
18205     export_symbols_cmds_CXX \
18206     hardcode_libdir_flag_spec_CXX \
18207     hardcode_libdir_flag_spec_ld_CXX \
18208     hardcode_libdir_separator_CXX \
18209     hardcode_automatic_CXX \
18210     module_cmds_CXX \
18211     module_expsym_cmds_CXX \
18212     lt_cv_prog_compiler_c_o_CXX \
18213     exclude_expsyms_CXX \
18214     include_expsyms_CXX; do
18215
18216     case $var in
18217     old_archive_cmds_CXX | \
18218     old_archive_from_new_cmds_CXX | \
18219     archive_cmds_CXX | \
18220     archive_expsym_cmds_CXX | \
18221     module_cmds_CXX | \
18222     module_expsym_cmds_CXX | \
18223     old_archive_from_expsyms_cmds_CXX | \
18224     export_symbols_cmds_CXX | \
18225     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18226     postinstall_cmds | postuninstall_cmds | \
18227     old_postinstall_cmds | old_postuninstall_cmds | \
18228     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18229       # Double-quote double-evaled strings.
18230       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18231       ;;
18232     *)
18233       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18234       ;;
18235     esac
18236   done
18237
18238   case $lt_echo in
18239   *'\$0 --fallback-echo"')
18240     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18241     ;;
18242   esac
18243
18244 cfgfile="$ofile"
18245
18246   cat <<__EOF__ >> "$cfgfile"
18247 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18248
18249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18250
18251 # Shell to use when invoking shell scripts.
18252 SHELL=$lt_SHELL
18253
18254 # Whether or not to build shared libraries.
18255 build_libtool_libs=$enable_shared
18256
18257 # Whether or not to build static libraries.
18258 build_old_libs=$enable_static
18259
18260 # Whether or not to add -lc for building shared libraries.
18261 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18262
18263 # Whether or not to disallow shared libs when runtime libs are static
18264 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18265
18266 # Whether or not to optimize for fast installation.
18267 fast_install=$enable_fast_install
18268
18269 # The host system.
18270 host_alias=$host_alias
18271 host=$host
18272
18273 # An echo program that does not interpret backslashes.
18274 echo=$lt_echo
18275
18276 # The archiver.
18277 AR=$lt_AR
18278 AR_FLAGS=$lt_AR_FLAGS
18279
18280 # A C compiler.
18281 LTCC=$lt_LTCC
18282
18283 # A language-specific compiler.
18284 CC=$lt_compiler_CXX
18285
18286 # Is the compiler the GNU C compiler?
18287 with_gcc=$GCC_CXX
18288
18289 # An ERE matcher.
18290 EGREP=$lt_EGREP
18291
18292 # The linker used to build libraries.
18293 LD=$lt_LD_CXX
18294
18295 # Whether we need hard or soft links.
18296 LN_S=$lt_LN_S
18297
18298 # A BSD-compatible nm program.
18299 NM=$lt_NM
18300
18301 # A symbol stripping program
18302 STRIP=$lt_STRIP
18303
18304 # Used to examine libraries when file_magic_cmd begins "file"
18305 MAGIC_CMD=$MAGIC_CMD
18306
18307 # Used on cygwin: DLL creation program.
18308 DLLTOOL="$DLLTOOL"
18309
18310 # Used on cygwin: object dumper.
18311 OBJDUMP="$OBJDUMP"
18312
18313 # Used on cygwin: assembler.
18314 AS="$AS"
18315
18316 # The name of the directory that contains temporary libtool files.
18317 objdir=$objdir
18318
18319 # How to create reloadable object files.
18320 reload_flag=$lt_reload_flag
18321 reload_cmds=$lt_reload_cmds
18322
18323 # How to pass a linker flag through the compiler.
18324 wl=$lt_lt_prog_compiler_wl_CXX
18325
18326 # Object file suffix (normally "o").
18327 objext="$ac_objext"
18328
18329 # Old archive suffix (normally "a").
18330 libext="$libext"
18331
18332 # Shared library suffix (normally ".so").
18333 shrext_cmds='$shrext_cmds'
18334
18335 # Executable file suffix (normally "").
18336 exeext="$exeext"
18337
18338 # Additional compiler flags for building library objects.
18339 pic_flag=$lt_lt_prog_compiler_pic_CXX
18340 pic_mode=$pic_mode
18341
18342 # What is the maximum length of a command?
18343 max_cmd_len=$lt_cv_sys_max_cmd_len
18344
18345 # Does compiler simultaneously support -c and -o options?
18346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18347
18348 # Must we lock files when doing compilation ?
18349 need_locks=$lt_need_locks
18350
18351 # Do we need the lib prefix for modules?
18352 need_lib_prefix=$need_lib_prefix
18353
18354 # Do we need a version for libraries?
18355 need_version=$need_version
18356
18357 # Whether dlopen is supported.
18358 dlopen_support=$enable_dlopen
18359
18360 # Whether dlopen of programs is supported.
18361 dlopen_self=$enable_dlopen_self
18362
18363 # Whether dlopen of statically linked programs is supported.
18364 dlopen_self_static=$enable_dlopen_self_static
18365
18366 # Compiler flag to prevent dynamic linking.
18367 link_static_flag=$lt_lt_prog_compiler_static_CXX
18368
18369 # Compiler flag to turn off builtin functions.
18370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18371
18372 # Compiler flag to allow reflexive dlopens.
18373 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18374
18375 # Compiler flag to generate shared objects directly from archives.
18376 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18377
18378 # Compiler flag to generate thread-safe objects.
18379 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18380
18381 # Library versioning type.
18382 version_type=$version_type
18383
18384 # Format of library name prefix.
18385 libname_spec=$lt_libname_spec
18386
18387 # List of archive names.  First name is the real one, the rest are links.
18388 # The last name is the one that the linker finds with -lNAME.
18389 library_names_spec=$lt_library_names_spec
18390
18391 # The coded name of the library, if different from the real name.
18392 soname_spec=$lt_soname_spec
18393
18394 # Commands used to build and install an old-style archive.
18395 RANLIB=$lt_RANLIB
18396 old_archive_cmds=$lt_old_archive_cmds_CXX
18397 old_postinstall_cmds=$lt_old_postinstall_cmds
18398 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18399
18400 # Create an old-style archive from a shared archive.
18401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18402
18403 # Create a temporary old-style archive to link instead of a shared archive.
18404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18405
18406 # Commands used to build and install a shared archive.
18407 archive_cmds=$lt_archive_cmds_CXX
18408 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18409 postinstall_cmds=$lt_postinstall_cmds
18410 postuninstall_cmds=$lt_postuninstall_cmds
18411
18412 # Commands used to build a loadable module (assumed same as above if empty)
18413 module_cmds=$lt_module_cmds_CXX
18414 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18415
18416 # Commands to strip libraries.
18417 old_striplib=$lt_old_striplib
18418 striplib=$lt_striplib
18419
18420 # Dependencies to place before the objects being linked to create a
18421 # shared library.
18422 predep_objects=$lt_predep_objects_CXX
18423
18424 # Dependencies to place after the objects being linked to create a
18425 # shared library.
18426 postdep_objects=$lt_postdep_objects_CXX
18427
18428 # Dependencies to place before the objects being linked to create a
18429 # shared library.
18430 predeps=$lt_predeps_CXX
18431
18432 # Dependencies to place after the objects being linked to create a
18433 # shared library.
18434 postdeps=$lt_postdeps_CXX
18435
18436 # The library search path used internally by the compiler when linking
18437 # a shared library.
18438 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18439
18440 # Method to check whether dependent libraries are shared objects.
18441 deplibs_check_method=$lt_deplibs_check_method
18442
18443 # Command to use when deplibs_check_method == file_magic.
18444 file_magic_cmd=$lt_file_magic_cmd
18445
18446 # Flag that allows shared libraries with undefined symbols to be built.
18447 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18448
18449 # Flag that forces no undefined symbols.
18450 no_undefined_flag=$lt_no_undefined_flag_CXX
18451
18452 # Commands used to finish a libtool library installation in a directory.
18453 finish_cmds=$lt_finish_cmds
18454
18455 # Same as above, but a single script fragment to be evaled but not shown.
18456 finish_eval=$lt_finish_eval
18457
18458 # Take the output of nm and produce a listing of raw symbols and C names.
18459 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18460
18461 # Transform the output of nm in a proper C declaration
18462 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18463
18464 # Transform the output of nm in a C name address pair
18465 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18466
18467 # This is the shared library runtime path variable.
18468 runpath_var=$runpath_var
18469
18470 # This is the shared library path variable.
18471 shlibpath_var=$shlibpath_var
18472
18473 # Is shlibpath searched before the hard-coded library search path?
18474 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18475
18476 # How to hardcode a shared library path into an executable.
18477 hardcode_action=$hardcode_action_CXX
18478
18479 # Whether we should hardcode library paths into libraries.
18480 hardcode_into_libs=$hardcode_into_libs
18481
18482 # Flag to hardcode \$libdir into a binary during linking.
18483 # This must work even if \$libdir does not exist.
18484 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18485
18486 # If ld is used when linking, flag to hardcode \$libdir into
18487 # a binary during linking. This must work even if \$libdir does
18488 # not exist.
18489 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18490
18491 # Whether we need a single -rpath flag with a separated argument.
18492 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18493
18494 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18495 # resulting binary.
18496 hardcode_direct=$hardcode_direct_CXX
18497
18498 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18499 # resulting binary.
18500 hardcode_minus_L=$hardcode_minus_L_CXX
18501
18502 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18503 # the resulting binary.
18504 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18505
18506 # Set to yes if building a shared library automatically hardcodes DIR into the library
18507 # and all subsequent libraries and executables linked against it.
18508 hardcode_automatic=$hardcode_automatic_CXX
18509
18510 # Variables whose values should be saved in libtool wrapper scripts and
18511 # restored at relink time.
18512 variables_saved_for_relink="$variables_saved_for_relink"
18513
18514 # Whether libtool must link a program against all its dependency libraries.
18515 link_all_deplibs=$link_all_deplibs_CXX
18516
18517 # Compile-time system search path for libraries
18518 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18519
18520 # Run-time system search path for libraries
18521 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18522
18523 # Fix the shell variable \$srcfile for the compiler.
18524 fix_srcfile_path="$fix_srcfile_path_CXX"
18525
18526 # Set to yes if exported symbols are required.
18527 always_export_symbols=$always_export_symbols_CXX
18528
18529 # The commands to list exported symbols.
18530 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18531
18532 # The commands to extract the exported symbol list from a shared archive.
18533 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18534
18535 # Symbols that should not be listed in the preloaded symbols.
18536 exclude_expsyms=$lt_exclude_expsyms_CXX
18537
18538 # Symbols that must always be exported.
18539 include_expsyms=$lt_include_expsyms_CXX
18540
18541 # ### END LIBTOOL TAG CONFIG: $tagname
18542
18543 __EOF__
18544
18545
18546 else
18547   # If there is no Makefile yet, we rely on a make rule to execute
18548   # `config.status --recheck' to rerun these tests and create the
18549   # libtool script then.
18550   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18551   if test -f "$ltmain_in"; then
18552     test -f Makefile && make "$ltmain"
18553   fi
18554 fi
18555
18556
18557 ac_ext=c
18558 ac_cpp='$CPP $CPPFLAGS'
18559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18562
18563 CC=$lt_save_CC
18564 LDCXX=$LD
18565 LD=$lt_save_LD
18566 GCC=$lt_save_GCC
18567 with_gnu_ldcxx=$with_gnu_ld
18568 with_gnu_ld=$lt_save_with_gnu_ld
18569 lt_cv_path_LDCXX=$lt_cv_path_LD
18570 lt_cv_path_LD=$lt_save_path_LD
18571 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18572 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18573
18574         else
18575           tagname=""
18576         fi
18577         ;;
18578
18579       F77)
18580         if test -n "$F77" && test "X$F77" != "Xno"; then
18581
18582 ac_ext=f
18583 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18584 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18586
18587
18588 archive_cmds_need_lc_F77=no
18589 allow_undefined_flag_F77=
18590 always_export_symbols_F77=no
18591 archive_expsym_cmds_F77=
18592 export_dynamic_flag_spec_F77=
18593 hardcode_direct_F77=no
18594 hardcode_libdir_flag_spec_F77=
18595 hardcode_libdir_flag_spec_ld_F77=
18596 hardcode_libdir_separator_F77=
18597 hardcode_minus_L_F77=no
18598 hardcode_automatic_F77=no
18599 module_cmds_F77=
18600 module_expsym_cmds_F77=
18601 link_all_deplibs_F77=unknown
18602 old_archive_cmds_F77=$old_archive_cmds
18603 no_undefined_flag_F77=
18604 whole_archive_flag_spec_F77=
18605 enable_shared_with_static_runtimes_F77=no
18606
18607 # Source file extension for f77 test sources.
18608 ac_ext=f
18609
18610 # Object file extension for compiled f77 test sources.
18611 objext=o
18612 objext_F77=$objext
18613
18614 # Code to be used in simple compile tests
18615 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18616
18617 # Code to be used in simple link tests
18618 lt_simple_link_test_code="      program t\n      end\n"
18619
18620 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18621
18622 # If no C compiler was specified, use CC.
18623 LTCC=${LTCC-"$CC"}
18624
18625 # Allow CC to be a program name with arguments.
18626 compiler=$CC
18627
18628
18629 # Allow CC to be a program name with arguments.
18630 lt_save_CC="$CC"
18631 CC=${F77-"f77"}
18632 compiler=$CC
18633 compiler_F77=$CC
18634 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18635
18636 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18637 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18638 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18639 echo "${ECHO_T}$can_build_shared" >&6
18640
18641 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18642 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18643 test "$can_build_shared" = "no" && enable_shared=no
18644
18645 # On AIX, shared libraries and static libraries use the same namespace, and
18646 # are all built from PIC.
18647 case "$host_os" in
18648 aix3*)
18649   test "$enable_shared" = yes && enable_static=no
18650   if test -n "$RANLIB"; then
18651     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18652     postinstall_cmds='$RANLIB $lib'
18653   fi
18654   ;;
18655 aix4* | aix5*)
18656   test "$enable_shared" = yes && enable_static=no
18657   ;;
18658 esac
18659 echo "$as_me:$LINENO: result: $enable_shared" >&5
18660 echo "${ECHO_T}$enable_shared" >&6
18661
18662 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18663 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18664 # Make sure either enable_shared or enable_static is yes.
18665 test "$enable_shared" = yes || enable_static=yes
18666 echo "$as_me:$LINENO: result: $enable_static" >&5
18667 echo "${ECHO_T}$enable_static" >&6
18668
18669 test "$ld_shlibs_F77" = no && can_build_shared=no
18670
18671 GCC_F77="$G77"
18672 LD_F77="$LD"
18673
18674 lt_prog_compiler_wl_F77=
18675 lt_prog_compiler_pic_F77=
18676 lt_prog_compiler_static_F77=
18677
18678 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18679 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18680
18681   if test "$GCC" = yes; then
18682     lt_prog_compiler_wl_F77='-Wl,'
18683     lt_prog_compiler_static_F77='-static'
18684
18685     case $host_os in
18686       aix*)
18687       # All AIX code is PIC.
18688       if test "$host_cpu" = ia64; then
18689         # AIX 5 now supports IA64 processor
18690         lt_prog_compiler_static_F77='-Bstatic'
18691       fi
18692       ;;
18693
18694     amigaos*)
18695       # FIXME: we need at least 68020 code to build shared libraries, but
18696       # adding the `-m68020' flag to GCC prevents building anything better,
18697       # like `-m68040'.
18698       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18699       ;;
18700
18701     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18702       # PIC is the default for these OSes.
18703       ;;
18704
18705     mingw* | pw32* | os2*)
18706       # This hack is so that the source file can tell whether it is being
18707       # built for inclusion in a dll (and should export symbols for example).
18708       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18709       ;;
18710
18711     darwin* | rhapsody*)
18712       # PIC is the default on this platform
18713       # Common symbols not allowed in MH_DYLIB files
18714       lt_prog_compiler_pic_F77='-fno-common'
18715       ;;
18716
18717     msdosdjgpp*)
18718       # Just because we use GCC doesn't mean we suddenly get shared libraries
18719       # on systems that don't support them.
18720       lt_prog_compiler_can_build_shared_F77=no
18721       enable_shared=no
18722       ;;
18723
18724     sysv4*MP*)
18725       if test -d /usr/nec; then
18726         lt_prog_compiler_pic_F77=-Kconform_pic
18727       fi
18728       ;;
18729
18730     hpux*)
18731       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18732       # not for PA HP-UX.
18733       case "$host_cpu" in
18734       hppa*64*|ia64*)
18735         # +Z the default
18736         ;;
18737       *)
18738         lt_prog_compiler_pic_F77='-fPIC'
18739         ;;
18740       esac
18741       ;;
18742
18743     *)
18744       lt_prog_compiler_pic_F77='-fPIC'
18745       ;;
18746     esac
18747   else
18748     # PORTME Check for flag to pass linker flags through the system compiler.
18749     case $host_os in
18750     aix*)
18751       lt_prog_compiler_wl_F77='-Wl,'
18752       if test "$host_cpu" = ia64; then
18753         # AIX 5 now supports IA64 processor
18754         lt_prog_compiler_static_F77='-Bstatic'
18755       else
18756         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18757       fi
18758       ;;
18759       darwin*)
18760         # PIC is the default on this platform
18761         # Common symbols not allowed in MH_DYLIB files
18762        case "$cc_basename" in
18763          xlc*)
18764          lt_prog_compiler_pic_F77='-qnocommon'
18765          lt_prog_compiler_wl_F77='-Wl,'
18766          ;;
18767        esac
18768        ;;
18769
18770     mingw* | pw32* | os2*)
18771       # This hack is so that the source file can tell whether it is being
18772       # built for inclusion in a dll (and should export symbols for example).
18773       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18774       ;;
18775
18776     hpux9* | hpux10* | hpux11*)
18777       lt_prog_compiler_wl_F77='-Wl,'
18778       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18779       # not for PA HP-UX.
18780       case "$host_cpu" in
18781       hppa*64*|ia64*)
18782         # +Z the default
18783         ;;
18784       *)
18785         lt_prog_compiler_pic_F77='+Z'
18786         ;;
18787       esac
18788       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18789       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18790       ;;
18791
18792     irix5* | irix6* | nonstopux*)
18793       lt_prog_compiler_wl_F77='-Wl,'
18794       # PIC (with -KPIC) is the default.
18795       lt_prog_compiler_static_F77='-non_shared'
18796       ;;
18797
18798     newsos6)
18799       lt_prog_compiler_pic_F77='-KPIC'
18800       lt_prog_compiler_static_F77='-Bstatic'
18801       ;;
18802
18803     linux*)
18804       case $CC in
18805       icc* | ecc*)
18806         lt_prog_compiler_wl_F77='-Wl,'
18807         lt_prog_compiler_pic_F77='-KPIC'
18808         lt_prog_compiler_static_F77='-static'
18809         ;;
18810       ccc*)
18811         lt_prog_compiler_wl_F77='-Wl,'
18812         # All Alpha code is PIC.
18813         lt_prog_compiler_static_F77='-non_shared'
18814         ;;
18815       esac
18816       ;;
18817
18818     osf3* | osf4* | osf5*)
18819       lt_prog_compiler_wl_F77='-Wl,'
18820       # All OSF/1 code is PIC.
18821       lt_prog_compiler_static_F77='-non_shared'
18822       ;;
18823
18824     sco3.2v5*)
18825       lt_prog_compiler_pic_F77='-Kpic'
18826       lt_prog_compiler_static_F77='-dn'
18827       ;;
18828
18829     solaris*)
18830       lt_prog_compiler_wl_F77='-Wl,'
18831       lt_prog_compiler_pic_F77='-KPIC'
18832       lt_prog_compiler_static_F77='-Bstatic'
18833       ;;
18834
18835     sunos4*)
18836       lt_prog_compiler_wl_F77='-Qoption ld '
18837       lt_prog_compiler_pic_F77='-PIC'
18838       lt_prog_compiler_static_F77='-Bstatic'
18839       ;;
18840
18841     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18842       lt_prog_compiler_wl_F77='-Wl,'
18843       lt_prog_compiler_pic_F77='-KPIC'
18844       lt_prog_compiler_static_F77='-Bstatic'
18845       ;;
18846
18847     sysv4*MP*)
18848       if test -d /usr/nec ;then
18849         lt_prog_compiler_pic_F77='-Kconform_pic'
18850         lt_prog_compiler_static_F77='-Bstatic'
18851       fi
18852       ;;
18853
18854     uts4*)
18855       lt_prog_compiler_pic_F77='-pic'
18856       lt_prog_compiler_static_F77='-Bstatic'
18857       ;;
18858
18859     *)
18860       lt_prog_compiler_can_build_shared_F77=no
18861       ;;
18862     esac
18863   fi
18864
18865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18866 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18867
18868 #
18869 # Check to make sure the PIC flag actually works.
18870 #
18871 if test -n "$lt_prog_compiler_pic_F77"; then
18872
18873 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18874 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18875 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   lt_prog_compiler_pic_works_F77=no
18879   ac_outfile=conftest.$ac_objext
18880    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18881    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18882    # Insert the option either (1) after the last *FLAGS variable, or
18883    # (2) before a word containing "conftest.", or (3) at the end.
18884    # Note that $ac_compile itself does not contain backslashes and begins
18885    # with a dollar sign (not a hyphen), so the echo should work correctly.
18886    # The option is referenced via a variable to avoid confusing sed.
18887    lt_compile=`echo "$ac_compile" | $SED \
18888    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18890    -e 's:$: $lt_compiler_flag:'`
18891    (eval echo "\"\$as_me:18891: $lt_compile\"" >&5)
18892    (eval "$lt_compile" 2>conftest.err)
18893    ac_status=$?
18894    cat conftest.err >&5
18895    echo "$as_me:18895: \$? = $ac_status" >&5
18896    if (exit $ac_status) && test -s "$ac_outfile"; then
18897      # The compiler can only warn and ignore the option if not recognized
18898      # So say no if there are warnings
18899      if test ! -s conftest.err; then
18900        lt_prog_compiler_pic_works_F77=yes
18901      fi
18902    fi
18903    $rm conftest*
18904
18905 fi
18906 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18907 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18908
18909 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18910     case $lt_prog_compiler_pic_F77 in
18911      "" | " "*) ;;
18912      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18913      esac
18914 else
18915     lt_prog_compiler_pic_F77=
18916      lt_prog_compiler_can_build_shared_F77=no
18917 fi
18918
18919 fi
18920 case "$host_os" in
18921   # For platforms which do not support PIC, -DPIC is meaningless:
18922   *djgpp*)
18923     lt_prog_compiler_pic_F77=
18924     ;;
18925   *)
18926     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18927     ;;
18928 esac
18929
18930 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18932 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935   lt_cv_prog_compiler_c_o_F77=no
18936    $rm -r conftest 2>/dev/null
18937    mkdir conftest
18938    cd conftest
18939    mkdir out
18940    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18941
18942    lt_compiler_flag="-o out/conftest2.$ac_objext"
18943    # Insert the option either (1) after the last *FLAGS variable, or
18944    # (2) before a word containing "conftest.", or (3) at the end.
18945    # Note that $ac_compile itself does not contain backslashes and begins
18946    # with a dollar sign (not a hyphen), so the echo should work correctly.
18947    lt_compile=`echo "$ac_compile" | $SED \
18948    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18949    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18950    -e 's:$: $lt_compiler_flag:'`
18951    (eval echo "\"\$as_me:18951: $lt_compile\"" >&5)
18952    (eval "$lt_compile" 2>out/conftest.err)
18953    ac_status=$?
18954    cat out/conftest.err >&5
18955    echo "$as_me:18955: \$? = $ac_status" >&5
18956    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18957    then
18958      # The compiler can only warn and ignore the option if not recognized
18959      # So say no if there are warnings
18960      if test ! -s out/conftest.err; then
18961        lt_cv_prog_compiler_c_o_F77=yes
18962      fi
18963    fi
18964    chmod u+w .
18965    $rm conftest*
18966    # SGI C++ compiler will create directory out/ii_files/ for
18967    # template instantiation
18968    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18969    $rm out/* && rmdir out
18970    cd ..
18971    rmdir conftest
18972    $rm conftest*
18973
18974 fi
18975 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18976 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18977
18978
18979 hard_links="nottested"
18980 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18981   # do not overwrite the value of need_locks provided by the user
18982   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18984   hard_links=yes
18985   $rm conftest*
18986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18987   touch conftest.a
18988   ln conftest.a conftest.b 2>&5 || hard_links=no
18989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18990   echo "$as_me:$LINENO: result: $hard_links" >&5
18991 echo "${ECHO_T}$hard_links" >&6
18992   if test "$hard_links" = no; then
18993     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18995     need_locks=warn
18996   fi
18997 else
18998   need_locks=no
18999 fi
19000
19001 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19003
19004   runpath_var=
19005   allow_undefined_flag_F77=
19006   enable_shared_with_static_runtimes_F77=no
19007   archive_cmds_F77=
19008   archive_expsym_cmds_F77=
19009   old_archive_From_new_cmds_F77=
19010   old_archive_from_expsyms_cmds_F77=
19011   export_dynamic_flag_spec_F77=
19012   whole_archive_flag_spec_F77=
19013   thread_safe_flag_spec_F77=
19014   hardcode_libdir_flag_spec_F77=
19015   hardcode_libdir_flag_spec_ld_F77=
19016   hardcode_libdir_separator_F77=
19017   hardcode_direct_F77=no
19018   hardcode_minus_L_F77=no
19019   hardcode_shlibpath_var_F77=unsupported
19020   link_all_deplibs_F77=unknown
19021   hardcode_automatic_F77=no
19022   module_cmds_F77=
19023   module_expsym_cmds_F77=
19024   always_export_symbols_F77=no
19025   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19026   # include_expsyms should be a list of space-separated symbols to be *always*
19027   # included in the symbol list
19028   include_expsyms_F77=
19029   # exclude_expsyms can be an extended regexp of symbols to exclude
19030   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19031   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19032   # as well as any symbol that contains `d'.
19033   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19034   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19035   # platforms (ab)use it in PIC code, but their linkers get confused if
19036   # the symbol is explicitly referenced.  Since portable code cannot
19037   # rely on this symbol name, it's probably fine to never include it in
19038   # preloaded symbol tables.
19039   extract_expsyms_cmds=
19040
19041   case $host_os in
19042   cygwin* | mingw* | pw32*)
19043     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19044     # When not using gcc, we currently assume that we are using
19045     # Microsoft Visual C++.
19046     if test "$GCC" != yes; then
19047       with_gnu_ld=no
19048     fi
19049     ;;
19050   openbsd*)
19051     with_gnu_ld=no
19052     ;;
19053   esac
19054
19055   ld_shlibs_F77=yes
19056   if test "$with_gnu_ld" = yes; then
19057     # If archive_cmds runs LD, not CC, wlarc should be empty
19058     wlarc='${wl}'
19059
19060     # See if GNU ld supports shared libraries.
19061     case $host_os in
19062     aix3* | aix4* | aix5*)
19063       # On AIX/PPC, the GNU linker is very broken
19064       if test "$host_cpu" != ia64; then
19065         ld_shlibs_F77=no
19066         cat <<EOF 1>&2
19067
19068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19069 *** to be unable to reliably create shared libraries on AIX.
19070 *** Therefore, libtool is disabling shared libraries support.  If you
19071 *** really care for shared libraries, you may want to modify your PATH
19072 *** so that a non-GNU linker is found, and then restart.
19073
19074 EOF
19075       fi
19076       ;;
19077
19078     amigaos*)
19079       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)'
19080       hardcode_libdir_flag_spec_F77='-L$libdir'
19081       hardcode_minus_L_F77=yes
19082
19083       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19084       # that the semantics of dynamic libraries on AmigaOS, at least up
19085       # to version 4, is to share data among multiple programs linked
19086       # with the same dynamic library.  Since this doesn't match the
19087       # behavior of shared libraries on other platforms, we can't use
19088       # them.
19089       ld_shlibs_F77=no
19090       ;;
19091
19092     beos*)
19093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19094         allow_undefined_flag_F77=unsupported
19095         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19096         # support --undefined.  This deserves some investigation.  FIXME
19097         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19098       else
19099         ld_shlibs_F77=no
19100       fi
19101       ;;
19102
19103     cygwin* | mingw* | pw32*)
19104       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19105       # as there is no search path for DLLs.
19106       hardcode_libdir_flag_spec_F77='-L$libdir'
19107       allow_undefined_flag_F77=unsupported
19108       always_export_symbols_F77=no
19109       enable_shared_with_static_runtimes_F77=yes
19110       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19111
19112       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19113         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19114         # If the export-symbols file already is a .def file (1st line
19115         # is EXPORTS), use it as is; otherwise, prepend...
19116         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19117           cp $export_symbols $output_objdir/$soname.def;
19118         else
19119           echo EXPORTS > $output_objdir/$soname.def;
19120           cat $export_symbols >> $output_objdir/$soname.def;
19121         fi~
19122         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19123       else
19124         ld_shlibs=no
19125       fi
19126       ;;
19127
19128     netbsd*)
19129       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19130         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19131         wlarc=
19132       else
19133         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19134         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19135       fi
19136       ;;
19137
19138     solaris* | sysv5*)
19139       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19140         ld_shlibs_F77=no
19141         cat <<EOF 1>&2
19142
19143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19144 *** create shared libraries on Solaris systems.  Therefore, libtool
19145 *** is disabling shared libraries support.  We urge you to upgrade GNU
19146 *** binutils to release 2.9.1 or newer.  Another option is to modify
19147 *** your PATH or compiler configuration so that the native linker is
19148 *** used, and then restart.
19149
19150 EOF
19151       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19152         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19153         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19154       else
19155         ld_shlibs_F77=no
19156       fi
19157       ;;
19158
19159     sunos4*)
19160       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19161       wlarc=
19162       hardcode_direct_F77=yes
19163       hardcode_shlibpath_var_F77=no
19164       ;;
19165
19166   linux*)
19167     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19168         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19169         archive_cmds_F77="$tmp_archive_cmds"
19170       supports_anon_versioning=no
19171       case `$LD -v 2>/dev/null` in
19172         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19173         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19174         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19175         *\ 2.11.*) ;; # other 2.11 versions
19176         *) supports_anon_versioning=yes ;;
19177       esac
19178       if test $supports_anon_versioning = yes; then
19179         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19181 $echo "local: *; };" >> $output_objdir/$libname.ver~
19182         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19183       else
19184         archive_expsym_cmds_F77="$tmp_archive_cmds"
19185       fi
19186     else
19187       ld_shlibs_F77=no
19188     fi
19189     ;;
19190
19191     *)
19192       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19193         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19194         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19195       else
19196         ld_shlibs_F77=no
19197       fi
19198       ;;
19199     esac
19200
19201     if test "$ld_shlibs_F77" = yes; then
19202       runpath_var=LD_RUN_PATH
19203       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19204       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19205       # ancient GNU ld didn't support --whole-archive et. al.
19206       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19207         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19208       else
19209         whole_archive_flag_spec_F77=
19210       fi
19211     fi
19212   else
19213     # PORTME fill in a description of your system's linker (not GNU ld)
19214     case $host_os in
19215     aix3*)
19216       allow_undefined_flag_F77=unsupported
19217       always_export_symbols_F77=yes
19218       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'
19219       # Note: this linker hardcodes the directories in LIBPATH if there
19220       # are no directories specified by -L.
19221       hardcode_minus_L_F77=yes
19222       if test "$GCC" = yes && test -z "$link_static_flag"; then
19223         # Neither direct hardcoding nor static linking is supported with a
19224         # broken collect2.
19225         hardcode_direct_F77=unsupported
19226       fi
19227       ;;
19228
19229     aix4* | aix5*)
19230       if test "$host_cpu" = ia64; then
19231         # On IA64, the linker does run time linking by default, so we don't
19232         # have to do anything special.
19233         aix_use_runtimelinking=no
19234         exp_sym_flag='-Bexport'
19235         no_entry_flag=""
19236       else
19237         # If we're using GNU nm, then we don't want the "-C" option.
19238         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19239         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19240           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'
19241         else
19242           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'
19243         fi
19244         aix_use_runtimelinking=no
19245
19246         # Test if we are trying to use run time linking or normal
19247         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19248         # need to do runtime linking.
19249         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19250           for ld_flag in $LDFLAGS; do
19251           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19252             aix_use_runtimelinking=yes
19253             break
19254           fi
19255           done
19256         esac
19257
19258         exp_sym_flag='-bexport'
19259         no_entry_flag='-bnoentry'
19260       fi
19261
19262       # When large executables or shared objects are built, AIX ld can
19263       # have problems creating the table of contents.  If linking a library
19264       # or program results in "error TOC overflow" add -mminimal-toc to
19265       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19266       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19267
19268       archive_cmds_F77=''
19269       hardcode_direct_F77=yes
19270       hardcode_libdir_separator_F77=':'
19271       link_all_deplibs_F77=yes
19272
19273       if test "$GCC" = yes; then
19274         case $host_os in aix4.012|aix4.012.*)
19275         # We only want to do this on AIX 4.2 and lower, the check
19276         # below for broken collect2 doesn't work under 4.3+
19277           collect2name=`${CC} -print-prog-name=collect2`
19278           if test -f "$collect2name" && \
19279            strings "$collect2name" | grep resolve_lib_name >/dev/null
19280           then
19281           # We have reworked collect2
19282           hardcode_direct_F77=yes
19283           else
19284           # We have old collect2
19285           hardcode_direct_F77=unsupported
19286           # It fails to find uninstalled libraries when the uninstalled
19287           # path is not listed in the libpath.  Setting hardcode_minus_L
19288           # to unsupported forces relinking
19289           hardcode_minus_L_F77=yes
19290           hardcode_libdir_flag_spec_F77='-L$libdir'
19291           hardcode_libdir_separator_F77=
19292           fi
19293         esac
19294         shared_flag='-shared'
19295       else
19296         # not using gcc
19297         if test "$host_cpu" = ia64; then
19298         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19299         # chokes on -Wl,-G. The following line is correct:
19300           shared_flag='-G'
19301         else
19302         if test "$aix_use_runtimelinking" = yes; then
19303             shared_flag='${wl}-G'
19304           else
19305             shared_flag='${wl}-bM:SRE'
19306         fi
19307         fi
19308       fi
19309
19310       # It seems that -bexpall does not export symbols beginning with
19311       # underscore (_), so it is better to generate a list of symbols to export.
19312       always_export_symbols_F77=yes
19313       if test "$aix_use_runtimelinking" = yes; then
19314         # Warning - without using the other runtime loading flags (-brtl),
19315         # -berok will link without error, but may produce a broken library.
19316         allow_undefined_flag_F77='-berok'
19317        # Determine the default libpath from the value encoded in an empty executable.
19318        cat >conftest.$ac_ext <<_ACEOF
19319       program main
19320
19321       end
19322 _ACEOF
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19325   (eval $ac_link) 2>conftest.er1
19326   ac_status=$?
19327   grep -v '^ *+' conftest.er1 >conftest.err
19328   rm -f conftest.er1
19329   cat conftest.err >&5
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); } &&
19332          { ac_try='test -z "$ac_f77_werror_flag"
19333                          || test ! -s conftest.err'
19334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335   (eval $ac_try) 2>&5
19336   ac_status=$?
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); }; } &&
19339          { ac_try='test -s conftest$ac_exeext'
19340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341   (eval $ac_try) 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }; }; then
19345
19346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19347 }'`
19348 # Check for a 64-bit object if we didn't find anything.
19349 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; }
19350 }'`; fi
19351 else
19352   echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19354
19355 fi
19356 rm -f conftest.err conftest.$ac_objext \
19357       conftest$ac_exeext conftest.$ac_ext
19358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19359
19360        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19361         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"
19362        else
19363         if test "$host_cpu" = ia64; then
19364           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19365           allow_undefined_flag_F77="-z nodefs"
19366           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"
19367         else
19368          # Determine the default libpath from the value encoded in an empty executable.
19369          cat >conftest.$ac_ext <<_ACEOF
19370       program main
19371
19372       end
19373 _ACEOF
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376   (eval $ac_link) 2>conftest.er1
19377   ac_status=$?
19378   grep -v '^ *+' conftest.er1 >conftest.err
19379   rm -f conftest.er1
19380   cat conftest.err >&5
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); } &&
19383          { ac_try='test -z "$ac_f77_werror_flag"
19384                          || test ! -s conftest.err'
19385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386   (eval $ac_try) 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; } &&
19390          { ac_try='test -s conftest$ac_exeext'
19391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392   (eval $ac_try) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; }; then
19396
19397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19398 }'`
19399 # Check for a 64-bit object if we didn't find anything.
19400 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; }
19401 }'`; fi
19402 else
19403   echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19405
19406 fi
19407 rm -f conftest.err conftest.$ac_objext \
19408       conftest$ac_exeext conftest.$ac_ext
19409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19410
19411          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19412           # Warning - without using the other run time loading flags,
19413           # -berok will link without error, but may produce a broken library.
19414           no_undefined_flag_F77=' ${wl}-bernotok'
19415           allow_undefined_flag_F77=' ${wl}-berok'
19416           # -bexpall does not export symbols beginning with underscore (_)
19417           always_export_symbols_F77=yes
19418           # Exported symbols can be pulled into shared objects from archives
19419           whole_archive_flag_spec_F77=' '
19420           archive_cmds_need_lc_F77=yes
19421           # This is similar to how AIX traditionally builds it's shared libraries.
19422           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'
19423         fi
19424       fi
19425       ;;
19426
19427     amigaos*)
19428       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)'
19429       hardcode_libdir_flag_spec_F77='-L$libdir'
19430       hardcode_minus_L_F77=yes
19431       # see comment about different semantics on the GNU ld section
19432       ld_shlibs_F77=no
19433       ;;
19434
19435     bsdi[45]*)
19436       export_dynamic_flag_spec_F77=-rdynamic
19437       ;;
19438
19439     cygwin* | mingw* | pw32*)
19440       # When not using gcc, we currently assume that we are using
19441       # Microsoft Visual C++.
19442       # hardcode_libdir_flag_spec is actually meaningless, as there is
19443       # no search path for DLLs.
19444       hardcode_libdir_flag_spec_F77=' '
19445       allow_undefined_flag_F77=unsupported
19446       # Tell ltmain to make .lib files, not .a files.
19447       libext=lib
19448       # Tell ltmain to make .dll files, not .so files.
19449       shrext_cmds=".dll"
19450       # FIXME: Setting linknames here is a bad hack.
19451       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19452       # The linker will automatically build a .lib file if we build a DLL.
19453       old_archive_From_new_cmds_F77='true'
19454       # FIXME: Should let the user specify the lib program.
19455       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19456       fix_srcfile_path='`cygpath -w "$srcfile"`'
19457       enable_shared_with_static_runtimes_F77=yes
19458       ;;
19459
19460     darwin* | rhapsody*)
19461       case "$host_os" in
19462         rhapsody* | darwin1.[012])
19463          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19464          ;;
19465        *) # Darwin 1.3 on
19466          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19467            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19468          else
19469            case ${MACOSX_DEPLOYMENT_TARGET} in
19470              10.[012])
19471                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19472                ;;
19473              10.*)
19474                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19475                ;;
19476            esac
19477          fi
19478          ;;
19479       esac
19480       archive_cmds_need_lc_F77=no
19481       hardcode_direct_F77=no
19482       hardcode_automatic_F77=yes
19483       hardcode_shlibpath_var_F77=unsupported
19484       whole_archive_flag_spec_F77=''
19485       link_all_deplibs_F77=yes
19486     if test "$GCC" = yes ; then
19487         output_verbose_link_cmd='echo'
19488         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19489       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19490       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19491       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}'
19492       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}'
19493     else
19494       case "$cc_basename" in
19495         xlc*)
19496          output_verbose_link_cmd='echo'
19497          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19498          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19499           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19500          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}'
19501           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}'
19502           ;;
19503        *)
19504          ld_shlibs_F77=no
19505           ;;
19506       esac
19507     fi
19508       ;;
19509
19510     dgux*)
19511       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19512       hardcode_libdir_flag_spec_F77='-L$libdir'
19513       hardcode_shlibpath_var_F77=no
19514       ;;
19515
19516     freebsd1*)
19517       ld_shlibs_F77=no
19518       ;;
19519
19520     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19521     # support.  Future versions do this automatically, but an explicit c++rt0.o
19522     # does not break anything, and helps significantly (at the cost of a little
19523     # extra space).
19524     freebsd2.2*)
19525       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19526       hardcode_libdir_flag_spec_F77='-R$libdir'
19527       hardcode_direct_F77=yes
19528       hardcode_shlibpath_var_F77=no
19529       ;;
19530
19531     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19532     freebsd2*)
19533       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19534       hardcode_direct_F77=yes
19535       hardcode_minus_L_F77=yes
19536       hardcode_shlibpath_var_F77=no
19537       ;;
19538
19539     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19540     freebsd* | kfreebsd*-gnu)
19541       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19542       hardcode_libdir_flag_spec_F77='-R$libdir'
19543       hardcode_direct_F77=yes
19544       hardcode_shlibpath_var_F77=no
19545       ;;
19546
19547     hpux9*)
19548       if test "$GCC" = yes; then
19549         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'
19550       else
19551         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'
19552       fi
19553       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19554       hardcode_libdir_separator_F77=:
19555       hardcode_direct_F77=yes
19556
19557       # hardcode_minus_L: Not really in the search PATH,
19558       # but as the default location of the library.
19559       hardcode_minus_L_F77=yes
19560       export_dynamic_flag_spec_F77='${wl}-E'
19561       ;;
19562
19563     hpux10* | hpux11*)
19564       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19565         case "$host_cpu" in
19566         hppa*64*|ia64*)
19567           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19568           ;;
19569         *)
19570           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19571           ;;
19572         esac
19573       else
19574         case "$host_cpu" in
19575         hppa*64*|ia64*)
19576           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19577           ;;
19578         *)
19579           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19580           ;;
19581         esac
19582       fi
19583       if test "$with_gnu_ld" = no; then
19584         case "$host_cpu" in
19585         hppa*64*)
19586           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19587           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19588           hardcode_libdir_separator_F77=:
19589           hardcode_direct_F77=no
19590           hardcode_shlibpath_var_F77=no
19591           ;;
19592         ia64*)
19593           hardcode_libdir_flag_spec_F77='-L$libdir'
19594           hardcode_direct_F77=no
19595           hardcode_shlibpath_var_F77=no
19596
19597           # hardcode_minus_L: Not really in the search PATH,
19598           # but as the default location of the library.
19599           hardcode_minus_L_F77=yes
19600           ;;
19601         *)
19602           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19603           hardcode_libdir_separator_F77=:
19604           hardcode_direct_F77=yes
19605           export_dynamic_flag_spec_F77='${wl}-E'
19606
19607           # hardcode_minus_L: Not really in the search PATH,
19608           # but as the default location of the library.
19609           hardcode_minus_L_F77=yes
19610           ;;
19611         esac
19612       fi
19613       ;;
19614
19615     irix5* | irix6* | nonstopux*)
19616       if test "$GCC" = yes; then
19617         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'
19618       else
19619         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'
19620         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19621       fi
19622       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19623       hardcode_libdir_separator_F77=:
19624       link_all_deplibs_F77=yes
19625       ;;
19626
19627     netbsd*)
19628       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19629         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19630       else
19631         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19632       fi
19633       hardcode_libdir_flag_spec_F77='-R$libdir'
19634       hardcode_direct_F77=yes
19635       hardcode_shlibpath_var_F77=no
19636       ;;
19637
19638     newsos6)
19639       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19640       hardcode_direct_F77=yes
19641       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19642       hardcode_libdir_separator_F77=:
19643       hardcode_shlibpath_var_F77=no
19644       ;;
19645
19646     openbsd*)
19647       hardcode_direct_F77=yes
19648       hardcode_shlibpath_var_F77=no
19649       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19650         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19651         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19652         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19653         export_dynamic_flag_spec_F77='${wl}-E'
19654       else
19655        case $host_os in
19656          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19657            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19658            hardcode_libdir_flag_spec_F77='-R$libdir'
19659            ;;
19660          *)
19661            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19662            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19663            ;;
19664        esac
19665       fi
19666       ;;
19667
19668     os2*)
19669       hardcode_libdir_flag_spec_F77='-L$libdir'
19670       hardcode_minus_L_F77=yes
19671       allow_undefined_flag_F77=unsupported
19672       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'
19673       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19674       ;;
19675
19676     osf3*)
19677       if test "$GCC" = yes; then
19678         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19679         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'
19680       else
19681         allow_undefined_flag_F77=' -expect_unresolved \*'
19682         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'
19683       fi
19684       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19685       hardcode_libdir_separator_F77=:
19686       ;;
19687
19688     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19689       if test "$GCC" = yes; then
19690         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19691         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'
19692         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19693       else
19694         allow_undefined_flag_F77=' -expect_unresolved \*'
19695         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'
19696         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~
19697         $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'
19698
19699         # Both c and cxx compiler support -rpath directly
19700         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19701       fi
19702       hardcode_libdir_separator_F77=:
19703       ;;
19704
19705     sco3.2v5*)
19706       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19707       hardcode_shlibpath_var_F77=no
19708       export_dynamic_flag_spec_F77='${wl}-Bexport'
19709       runpath_var=LD_RUN_PATH
19710       hardcode_runpath_var=yes
19711       ;;
19712
19713     solaris*)
19714       no_undefined_flag_F77=' -z text'
19715       if test "$GCC" = yes; then
19716         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19717         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19718           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19719       else
19720         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19721         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19722         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19723       fi
19724       hardcode_libdir_flag_spec_F77='-R$libdir'
19725       hardcode_shlibpath_var_F77=no
19726       case $host_os in
19727       solaris2.[0-5] | solaris2.[0-5].*) ;;
19728       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19729         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19730       esac
19731       link_all_deplibs_F77=yes
19732       ;;
19733
19734     sunos4*)
19735       if test "x$host_vendor" = xsequent; then
19736         # Use $CC to link under sequent, because it throws in some extra .o
19737         # files that make .init and .fini sections work.
19738         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19739       else
19740         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19741       fi
19742       hardcode_libdir_flag_spec_F77='-L$libdir'
19743       hardcode_direct_F77=yes
19744       hardcode_minus_L_F77=yes
19745       hardcode_shlibpath_var_F77=no
19746       ;;
19747
19748     sysv4)
19749       case $host_vendor in
19750         sni)
19751           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19752           hardcode_direct_F77=yes # is this really true???
19753         ;;
19754         siemens)
19755           ## LD is ld it makes a PLAMLIB
19756           ## CC just makes a GrossModule.
19757           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19758           reload_cmds_F77='$CC -r -o $output$reload_objs'
19759           hardcode_direct_F77=no
19760         ;;
19761         motorola)
19762           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19763           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19764         ;;
19765       esac
19766       runpath_var='LD_RUN_PATH'
19767       hardcode_shlibpath_var_F77=no
19768       ;;
19769
19770     sysv4.3*)
19771       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19772       hardcode_shlibpath_var_F77=no
19773       export_dynamic_flag_spec_F77='-Bexport'
19774       ;;
19775
19776     sysv4*MP*)
19777       if test -d /usr/nec; then
19778         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19779         hardcode_shlibpath_var_F77=no
19780         runpath_var=LD_RUN_PATH
19781         hardcode_runpath_var=yes
19782         ld_shlibs_F77=yes
19783       fi
19784       ;;
19785
19786     sysv4.2uw2*)
19787       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19788       hardcode_direct_F77=yes
19789       hardcode_minus_L_F77=no
19790       hardcode_shlibpath_var_F77=no
19791       hardcode_runpath_var=yes
19792       runpath_var=LD_RUN_PATH
19793       ;;
19794
19795    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19796       no_undefined_flag_F77='${wl}-z ${wl}text'
19797       if test "$GCC" = yes; then
19798         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19799       else
19800         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19801       fi
19802       runpath_var='LD_RUN_PATH'
19803       hardcode_shlibpath_var_F77=no
19804       ;;
19805
19806     sysv5*)
19807       no_undefined_flag_F77=' -z text'
19808       # $CC -shared without GNU ld will not create a library from C++
19809       # object files and a static libstdc++, better avoid it by now
19810       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19811       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19812                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19813       hardcode_libdir_flag_spec_F77=
19814       hardcode_shlibpath_var_F77=no
19815       runpath_var='LD_RUN_PATH'
19816       ;;
19817
19818     uts4*)
19819       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19820       hardcode_libdir_flag_spec_F77='-L$libdir'
19821       hardcode_shlibpath_var_F77=no
19822       ;;
19823
19824     *)
19825       ld_shlibs_F77=no
19826       ;;
19827     esac
19828   fi
19829
19830 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19831 echo "${ECHO_T}$ld_shlibs_F77" >&6
19832 test "$ld_shlibs_F77" = no && can_build_shared=no
19833
19834 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19835 if test "$GCC" = yes; then
19836   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19837 fi
19838
19839 #
19840 # Do we need to explicitly link libc?
19841 #
19842 case "x$archive_cmds_need_lc_F77" in
19843 x|xyes)
19844   # Assume -lc should be added
19845   archive_cmds_need_lc_F77=yes
19846
19847   if test "$enable_shared" = yes && test "$GCC" = yes; then
19848     case $archive_cmds_F77 in
19849     *'~'*)
19850       # FIXME: we may have to deal with multi-command sequences.
19851       ;;
19852     '$CC '*)
19853       # Test whether the compiler implicitly links with -lc since on some
19854       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19855       # to ld, don't add -lc before -lgcc.
19856       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19857 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19858       $rm conftest*
19859       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19860
19861       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862   (eval $ac_compile) 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); } 2>conftest.err; then
19866         soname=conftest
19867         lib=conftest
19868         libobjs=conftest.$ac_objext
19869         deplibs=
19870         wl=$lt_prog_compiler_wl_F77
19871         compiler_flags=-v
19872         linker_flags=-v
19873         verstring=
19874         output_objdir=.
19875         libname=conftest
19876         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19877         allow_undefined_flag_F77=
19878         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19879   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); }
19883         then
19884           archive_cmds_need_lc_F77=no
19885         else
19886           archive_cmds_need_lc_F77=yes
19887         fi
19888         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19889       else
19890         cat conftest.err 1>&5
19891       fi
19892       $rm conftest*
19893       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19894 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19895       ;;
19896     esac
19897   fi
19898   ;;
19899 esac
19900
19901 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19902 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19903 library_names_spec=
19904 libname_spec='lib$name'
19905 soname_spec=
19906 shrext_cmds=".so"
19907 postinstall_cmds=
19908 postuninstall_cmds=
19909 finish_cmds=
19910 finish_eval=
19911 shlibpath_var=
19912 shlibpath_overrides_runpath=unknown
19913 version_type=none
19914 dynamic_linker="$host_os ld.so"
19915 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19916 if test "$GCC" = yes; then
19917   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19918   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19919     # if the path contains ";" then we assume it to be the separator
19920     # otherwise default to the standard path separator (i.e. ":") - it is
19921     # assumed that no part of a normal pathname contains ";" but that should
19922     # okay in the real world where ";" in dirpaths is itself problematic.
19923     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19924   else
19925     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19926   fi
19927 else
19928   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19929 fi
19930 need_lib_prefix=unknown
19931 hardcode_into_libs=no
19932
19933 # when you set need_version to no, make sure it does not cause -set_version
19934 # flags to be left without arguments
19935 need_version=unknown
19936
19937 case $host_os in
19938 aix3*)
19939   version_type=linux
19940   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19941   shlibpath_var=LIBPATH
19942
19943   # AIX 3 has no versioning support, so we append a major version to the name.
19944   soname_spec='${libname}${release}${shared_ext}$major'
19945   ;;
19946
19947 aix4* | aix5*)
19948   version_type=linux
19949   need_lib_prefix=no
19950   need_version=no
19951   hardcode_into_libs=yes
19952   if test "$host_cpu" = ia64; then
19953     # AIX 5 supports IA64
19954     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19955     shlibpath_var=LD_LIBRARY_PATH
19956   else
19957     # With GCC up to 2.95.x, collect2 would create an import file
19958     # for dependence libraries.  The import file would start with
19959     # the line `#! .'.  This would cause the generated library to
19960     # depend on `.', always an invalid library.  This was fixed in
19961     # development snapshots of GCC prior to 3.0.
19962     case $host_os in
19963       aix4 | aix4.[01] | aix4.[01].*)
19964       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19965            echo ' yes '
19966            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19967         :
19968       else
19969         can_build_shared=no
19970       fi
19971       ;;
19972     esac
19973     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19974     # soname into executable. Probably we can add versioning support to
19975     # collect2, so additional links can be useful in future.
19976     if test "$aix_use_runtimelinking" = yes; then
19977       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19978       # instead of lib<name>.a to let people know that these are not
19979       # typical AIX shared libraries.
19980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19981     else
19982       # We preserve .a as extension for shared libraries through AIX4.2
19983       # and later when we are not doing run time linking.
19984       library_names_spec='${libname}${release}.a $libname.a'
19985       soname_spec='${libname}${release}${shared_ext}$major'
19986     fi
19987     shlibpath_var=LIBPATH
19988   fi
19989   ;;
19990
19991 amigaos*)
19992   library_names_spec='$libname.ixlibrary $libname.a'
19993   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19994   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'
19995   ;;
19996
19997 beos*)
19998   library_names_spec='${libname}${shared_ext}'
19999   dynamic_linker="$host_os ld.so"
20000   shlibpath_var=LIBRARY_PATH
20001   ;;
20002
20003 bsdi[45]*)
20004   version_type=linux
20005   need_version=no
20006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20007   soname_spec='${libname}${release}${shared_ext}$major'
20008   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20009   shlibpath_var=LD_LIBRARY_PATH
20010   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20011   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20012   # the default ld.so.conf also contains /usr/contrib/lib and
20013   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20014   # libtool to hard-code these into programs
20015   ;;
20016
20017 cygwin* | mingw* | pw32*)
20018   version_type=windows
20019   shrext_cmds=".dll"
20020   need_version=no
20021   need_lib_prefix=no
20022
20023   case $GCC,$host_os in
20024   yes,cygwin* | yes,mingw* | yes,pw32*)
20025     library_names_spec='$libname.dll.a'
20026     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20027     postinstall_cmds='base_file=`basename \${file}`~
20028       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20029       dldir=$destdir/`dirname \$dlpath`~
20030       test -d \$dldir || mkdir -p \$dldir~
20031       $install_prog $dir/$dlname \$dldir/$dlname'
20032     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20033       dlpath=$dir/\$dldll~
20034        $rm \$dlpath'
20035     shlibpath_overrides_runpath=yes
20036
20037     case $host_os in
20038     cygwin*)
20039       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20040       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20041       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20042       ;;
20043     mingw*)
20044       # MinGW DLLs use traditional 'lib' prefix
20045       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20047       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20048         # It is most probably a Windows format PATH printed by
20049         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20050         # path with ; separators, and with drive letters. We can handle the
20051         # drive letters (cygwin fileutils understands them), so leave them,
20052         # especially as we might pass files found there to a mingw objdump,
20053         # which wouldn't understand a cygwinified path. Ahh.
20054         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20055       else
20056         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20057       fi
20058       ;;
20059     pw32*)
20060       # pw32 DLLs use 'pw' prefix rather than 'lib'
20061       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20062       ;;
20063     esac
20064     ;;
20065
20066   *)
20067     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20068     ;;
20069   esac
20070   dynamic_linker='Win32 ld.exe'
20071   # FIXME: first we should search . and the directory the executable is in
20072   shlibpath_var=PATH
20073   ;;
20074
20075 darwin* | rhapsody*)
20076   dynamic_linker="$host_os dyld"
20077   version_type=darwin
20078   need_lib_prefix=no
20079   need_version=no
20080   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20081   soname_spec='${libname}${release}${major}$shared_ext'
20082   shlibpath_overrides_runpath=yes
20083   shlibpath_var=DYLD_LIBRARY_PATH
20084   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20085   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20086   if test "$GCC" = yes; then
20087     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"`
20088   else
20089     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20090   fi
20091   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20092   ;;
20093
20094 dgux*)
20095   version_type=linux
20096   need_lib_prefix=no
20097   need_version=no
20098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20099   soname_spec='${libname}${release}${shared_ext}$major'
20100   shlibpath_var=LD_LIBRARY_PATH
20101   ;;
20102
20103 freebsd1*)
20104   dynamic_linker=no
20105   ;;
20106
20107 kfreebsd*-gnu)
20108   version_type=linux
20109   need_lib_prefix=no
20110   need_version=no
20111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20112   soname_spec='${libname}${release}${shared_ext}$major'
20113   shlibpath_var=LD_LIBRARY_PATH
20114   shlibpath_overrides_runpath=no
20115   hardcode_into_libs=yes
20116   dynamic_linker='GNU ld.so'
20117   ;;
20118
20119 freebsd*)
20120   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20121   version_type=freebsd-$objformat
20122   case $version_type in
20123     freebsd-elf*)
20124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20125       need_version=no
20126       need_lib_prefix=no
20127       ;;
20128     freebsd-*)
20129       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20130       need_version=yes
20131       ;;
20132   esac
20133   shlibpath_var=LD_LIBRARY_PATH
20134   case $host_os in
20135   freebsd2*)
20136     shlibpath_overrides_runpath=yes
20137     ;;
20138   freebsd3.01* | freebsdelf3.01*)
20139     shlibpath_overrides_runpath=yes
20140     hardcode_into_libs=yes
20141     ;;
20142   *) # from 3.2 on
20143     shlibpath_overrides_runpath=no
20144     hardcode_into_libs=yes
20145     ;;
20146   esac
20147   ;;
20148
20149 gnu*)
20150   version_type=linux
20151   need_lib_prefix=no
20152   need_version=no
20153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20154   soname_spec='${libname}${release}${shared_ext}$major'
20155   shlibpath_var=LD_LIBRARY_PATH
20156   hardcode_into_libs=yes
20157   ;;
20158
20159 hpux9* | hpux10* | hpux11*)
20160   # Give a soname corresponding to the major version so that dld.sl refuses to
20161   # link against other versions.
20162   version_type=sunos
20163   need_lib_prefix=no
20164   need_version=no
20165   case "$host_cpu" in
20166   ia64*)
20167     shrext_cmds='.so'
20168     hardcode_into_libs=yes
20169     dynamic_linker="$host_os dld.so"
20170     shlibpath_var=LD_LIBRARY_PATH
20171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20173     soname_spec='${libname}${release}${shared_ext}$major'
20174     if test "X$HPUX_IA64_MODE" = X32; then
20175       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20176     else
20177       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20178     fi
20179     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20180     ;;
20181    hppa*64*)
20182      shrext_cmds='.sl'
20183      hardcode_into_libs=yes
20184      dynamic_linker="$host_os dld.sl"
20185      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20186      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20187      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188      soname_spec='${libname}${release}${shared_ext}$major'
20189      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20190      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20191      ;;
20192    *)
20193     shrext_cmds='.sl'
20194     dynamic_linker="$host_os dld.sl"
20195     shlibpath_var=SHLIB_PATH
20196     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198     soname_spec='${libname}${release}${shared_ext}$major'
20199     ;;
20200   esac
20201   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20202   postinstall_cmds='chmod 555 $lib'
20203   ;;
20204
20205 irix5* | irix6* | nonstopux*)
20206   case $host_os in
20207     nonstopux*) version_type=nonstopux ;;
20208     *)
20209         if test "$lt_cv_prog_gnu_ld" = yes; then
20210                 version_type=linux
20211         else
20212                 version_type=irix
20213         fi ;;
20214   esac
20215   need_lib_prefix=no
20216   need_version=no
20217   soname_spec='${libname}${release}${shared_ext}$major'
20218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20219   case $host_os in
20220   irix5* | nonstopux*)
20221     libsuff= shlibsuff=
20222     ;;
20223   *)
20224     case $LD in # libtool.m4 will add one of these switches to LD
20225     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20226       libsuff= shlibsuff= libmagic=32-bit;;
20227     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20228       libsuff=32 shlibsuff=N32 libmagic=N32;;
20229     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20230       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20231     *) libsuff= shlibsuff= libmagic=never-match;;
20232     esac
20233     ;;
20234   esac
20235   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20236   shlibpath_overrides_runpath=no
20237   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20238   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20239   hardcode_into_libs=yes
20240   ;;
20241
20242 # No shared lib support for Linux oldld, aout, or coff.
20243 linux*oldld* | linux*aout* | linux*coff*)
20244   dynamic_linker=no
20245   ;;
20246
20247 # This must be Linux ELF.
20248 linux*)
20249   version_type=linux
20250   need_lib_prefix=no
20251   need_version=no
20252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253   soname_spec='${libname}${release}${shared_ext}$major'
20254   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20255   shlibpath_var=LD_LIBRARY_PATH
20256   shlibpath_overrides_runpath=no
20257   # This implies no fast_install, which is unacceptable.
20258   # Some rework will be needed to allow for fast_install
20259   # before this can be enabled.
20260   hardcode_into_libs=yes
20261
20262   # Append ld.so.conf contents to the search path
20263   if test -f /etc/ld.so.conf; then
20264     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20265     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20266   fi
20267
20268   # We used to test for /lib/ld.so.1 and disable shared libraries on
20269   # powerpc, because MkLinux only supported shared libraries with the
20270   # GNU dynamic linker.  Since this was broken with cross compilers,
20271   # most powerpc-linux boxes support dynamic linking these days and
20272   # people can always --disable-shared, the test was removed, and we
20273   # assume the GNU/Linux dynamic linker is in use.
20274   dynamic_linker='GNU/Linux ld.so'
20275   ;;
20276
20277 knetbsd*-gnu)
20278   version_type=linux
20279   need_lib_prefix=no
20280   need_version=no
20281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20282   soname_spec='${libname}${release}${shared_ext}$major'
20283   shlibpath_var=LD_LIBRARY_PATH
20284   shlibpath_overrides_runpath=no
20285   hardcode_into_libs=yes
20286   dynamic_linker='GNU ld.so'
20287   ;;
20288
20289 netbsd*)
20290   version_type=sunos
20291   need_lib_prefix=no
20292   need_version=no
20293   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20295     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20296     dynamic_linker='NetBSD (a.out) ld.so'
20297   else
20298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20299     soname_spec='${libname}${release}${shared_ext}$major'
20300     dynamic_linker='NetBSD ld.elf_so'
20301   fi
20302   shlibpath_var=LD_LIBRARY_PATH
20303   shlibpath_overrides_runpath=yes
20304   hardcode_into_libs=yes
20305   ;;
20306
20307 newsos6)
20308   version_type=linux
20309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20310   shlibpath_var=LD_LIBRARY_PATH
20311   shlibpath_overrides_runpath=yes
20312   ;;
20313
20314 nto-qnx*)
20315   version_type=linux
20316   need_lib_prefix=no
20317   need_version=no
20318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319   soname_spec='${libname}${release}${shared_ext}$major'
20320   shlibpath_var=LD_LIBRARY_PATH
20321   shlibpath_overrides_runpath=yes
20322   ;;
20323
20324 openbsd*)
20325   version_type=sunos
20326   need_lib_prefix=no
20327   need_version=no
20328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20330   shlibpath_var=LD_LIBRARY_PATH
20331   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20332     case $host_os in
20333       openbsd2.[89] | openbsd2.[89].*)
20334         shlibpath_overrides_runpath=no
20335         ;;
20336       *)
20337         shlibpath_overrides_runpath=yes
20338         ;;
20339       esac
20340   else
20341     shlibpath_overrides_runpath=yes
20342   fi
20343   ;;
20344
20345 os2*)
20346   libname_spec='$name'
20347   shrext_cmds=".dll"
20348   need_lib_prefix=no
20349   library_names_spec='$libname${shared_ext} $libname.a'
20350   dynamic_linker='OS/2 ld.exe'
20351   shlibpath_var=LIBPATH
20352   ;;
20353
20354 osf3* | osf4* | osf5*)
20355   version_type=osf
20356   need_lib_prefix=no
20357   need_version=no
20358   soname_spec='${libname}${release}${shared_ext}$major'
20359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20360   shlibpath_var=LD_LIBRARY_PATH
20361   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20362   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20363   ;;
20364
20365 sco3.2v5*)
20366   version_type=osf
20367   soname_spec='${libname}${release}${shared_ext}$major'
20368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369   shlibpath_var=LD_LIBRARY_PATH
20370   ;;
20371
20372 solaris*)
20373   version_type=linux
20374   need_lib_prefix=no
20375   need_version=no
20376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377   soname_spec='${libname}${release}${shared_ext}$major'
20378   shlibpath_var=LD_LIBRARY_PATH
20379   shlibpath_overrides_runpath=yes
20380   hardcode_into_libs=yes
20381   # ldd complains unless libraries are executable
20382   postinstall_cmds='chmod +x $lib'
20383   ;;
20384
20385 sunos4*)
20386   version_type=sunos
20387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20388   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20389   shlibpath_var=LD_LIBRARY_PATH
20390   shlibpath_overrides_runpath=yes
20391   if test "$with_gnu_ld" = yes; then
20392     need_lib_prefix=no
20393   fi
20394   need_version=yes
20395   ;;
20396
20397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20398   version_type=linux
20399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400   soname_spec='${libname}${release}${shared_ext}$major'
20401   shlibpath_var=LD_LIBRARY_PATH
20402   case $host_vendor in
20403     sni)
20404       shlibpath_overrides_runpath=no
20405       need_lib_prefix=no
20406       export_dynamic_flag_spec='${wl}-Blargedynsym'
20407       runpath_var=LD_RUN_PATH
20408       ;;
20409     siemens)
20410       need_lib_prefix=no
20411       ;;
20412     motorola)
20413       need_lib_prefix=no
20414       need_version=no
20415       shlibpath_overrides_runpath=no
20416       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20417       ;;
20418   esac
20419   ;;
20420
20421 sysv4*MP*)
20422   if test -d /usr/nec ;then
20423     version_type=linux
20424     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20425     soname_spec='$libname${shared_ext}.$major'
20426     shlibpath_var=LD_LIBRARY_PATH
20427   fi
20428   ;;
20429
20430 uts4*)
20431   version_type=linux
20432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433   soname_spec='${libname}${release}${shared_ext}$major'
20434   shlibpath_var=LD_LIBRARY_PATH
20435   ;;
20436
20437 *)
20438   dynamic_linker=no
20439   ;;
20440 esac
20441 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20442 echo "${ECHO_T}$dynamic_linker" >&6
20443 test "$dynamic_linker" = no && can_build_shared=no
20444
20445 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20447 hardcode_action_F77=
20448 if test -n "$hardcode_libdir_flag_spec_F77" || \
20449    test -n "$runpath_var_F77" || \
20450    test "X$hardcode_automatic_F77" = "Xyes" ; then
20451
20452   # We can hardcode non-existant directories.
20453   if test "$hardcode_direct_F77" != no &&
20454      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20455      # have to relink, otherwise we might link with an installed library
20456      # when we should be linking with a yet-to-be-installed one
20457      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20458      test "$hardcode_minus_L_F77" != no; then
20459     # Linking always hardcodes the temporary library directory.
20460     hardcode_action_F77=relink
20461   else
20462     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20463     hardcode_action_F77=immediate
20464   fi
20465 else
20466   # We cannot hardcode anything, or else we can only hardcode existing
20467   # directories.
20468   hardcode_action_F77=unsupported
20469 fi
20470 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20471 echo "${ECHO_T}$hardcode_action_F77" >&6
20472
20473 if test "$hardcode_action_F77" = relink; then
20474   # Fast installation is not supported
20475   enable_fast_install=no
20476 elif test "$shlibpath_overrides_runpath" = yes ||
20477      test "$enable_shared" = no; then
20478   # Fast installation is not necessary
20479   enable_fast_install=needless
20480 fi
20481
20482 striplib=
20483 old_striplib=
20484 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20485 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20486 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20487   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20488   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20489   echo "$as_me:$LINENO: result: yes" >&5
20490 echo "${ECHO_T}yes" >&6
20491 else
20492 # FIXME - insert some real tests, host_os isn't really good enough
20493   case $host_os in
20494    darwin*)
20495        if test -n "$STRIP" ; then
20496          striplib="$STRIP -x"
20497          echo "$as_me:$LINENO: result: yes" >&5
20498 echo "${ECHO_T}yes" >&6
20499        else
20500   echo "$as_me:$LINENO: result: no" >&5
20501 echo "${ECHO_T}no" >&6
20502 fi
20503        ;;
20504    *)
20505   echo "$as_me:$LINENO: result: no" >&5
20506 echo "${ECHO_T}no" >&6
20507     ;;
20508   esac
20509 fi
20510
20511
20512
20513 # The else clause should only fire when bootstrapping the
20514 # libtool distribution, otherwise you forgot to ship ltmain.sh
20515 # with your package, and you will get complaints that there are
20516 # no rules to generate ltmain.sh.
20517 if test -f "$ltmain"; then
20518   # See if we are running on zsh, and set the options which allow our commands through
20519   # without removal of \ escapes.
20520   if test -n "${ZSH_VERSION+set}" ; then
20521     setopt NO_GLOB_SUBST
20522   fi
20523   # Now quote all the things that may contain metacharacters while being
20524   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20525   # variables and quote the copies for generation of the libtool script.
20526   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20527     SED SHELL STRIP \
20528     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20529     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20530     deplibs_check_method reload_flag reload_cmds need_locks \
20531     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20532     lt_cv_sys_global_symbol_to_c_name_address \
20533     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20534     old_postinstall_cmds old_postuninstall_cmds \
20535     compiler_F77 \
20536     CC_F77 \
20537     LD_F77 \
20538     lt_prog_compiler_wl_F77 \
20539     lt_prog_compiler_pic_F77 \
20540     lt_prog_compiler_static_F77 \
20541     lt_prog_compiler_no_builtin_flag_F77 \
20542     export_dynamic_flag_spec_F77 \
20543     thread_safe_flag_spec_F77 \
20544     whole_archive_flag_spec_F77 \
20545     enable_shared_with_static_runtimes_F77 \
20546     old_archive_cmds_F77 \
20547     old_archive_from_new_cmds_F77 \
20548     predep_objects_F77 \
20549     postdep_objects_F77 \
20550     predeps_F77 \
20551     postdeps_F77 \
20552     compiler_lib_search_path_F77 \
20553     archive_cmds_F77 \
20554     archive_expsym_cmds_F77 \
20555     postinstall_cmds_F77 \
20556     postuninstall_cmds_F77 \
20557     old_archive_from_expsyms_cmds_F77 \
20558     allow_undefined_flag_F77 \
20559     no_undefined_flag_F77 \
20560     export_symbols_cmds_F77 \
20561     hardcode_libdir_flag_spec_F77 \
20562     hardcode_libdir_flag_spec_ld_F77 \
20563     hardcode_libdir_separator_F77 \
20564     hardcode_automatic_F77 \
20565     module_cmds_F77 \
20566     module_expsym_cmds_F77 \
20567     lt_cv_prog_compiler_c_o_F77 \
20568     exclude_expsyms_F77 \
20569     include_expsyms_F77; do
20570
20571     case $var in
20572     old_archive_cmds_F77 | \
20573     old_archive_from_new_cmds_F77 | \
20574     archive_cmds_F77 | \
20575     archive_expsym_cmds_F77 | \
20576     module_cmds_F77 | \
20577     module_expsym_cmds_F77 | \
20578     old_archive_from_expsyms_cmds_F77 | \
20579     export_symbols_cmds_F77 | \
20580     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20581     postinstall_cmds | postuninstall_cmds | \
20582     old_postinstall_cmds | old_postuninstall_cmds | \
20583     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20584       # Double-quote double-evaled strings.
20585       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20586       ;;
20587     *)
20588       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20589       ;;
20590     esac
20591   done
20592
20593   case $lt_echo in
20594   *'\$0 --fallback-echo"')
20595     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20596     ;;
20597   esac
20598
20599 cfgfile="$ofile"
20600
20601   cat <<__EOF__ >> "$cfgfile"
20602 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20603
20604 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20605
20606 # Shell to use when invoking shell scripts.
20607 SHELL=$lt_SHELL
20608
20609 # Whether or not to build shared libraries.
20610 build_libtool_libs=$enable_shared
20611
20612 # Whether or not to build static libraries.
20613 build_old_libs=$enable_static
20614
20615 # Whether or not to add -lc for building shared libraries.
20616 build_libtool_need_lc=$archive_cmds_need_lc_F77
20617
20618 # Whether or not to disallow shared libs when runtime libs are static
20619 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20620
20621 # Whether or not to optimize for fast installation.
20622 fast_install=$enable_fast_install
20623
20624 # The host system.
20625 host_alias=$host_alias
20626 host=$host
20627
20628 # An echo program that does not interpret backslashes.
20629 echo=$lt_echo
20630
20631 # The archiver.
20632 AR=$lt_AR
20633 AR_FLAGS=$lt_AR_FLAGS
20634
20635 # A C compiler.
20636 LTCC=$lt_LTCC
20637
20638 # A language-specific compiler.
20639 CC=$lt_compiler_F77
20640
20641 # Is the compiler the GNU C compiler?
20642 with_gcc=$GCC_F77
20643
20644 # An ERE matcher.
20645 EGREP=$lt_EGREP
20646
20647 # The linker used to build libraries.
20648 LD=$lt_LD_F77
20649
20650 # Whether we need hard or soft links.
20651 LN_S=$lt_LN_S
20652
20653 # A BSD-compatible nm program.
20654 NM=$lt_NM
20655
20656 # A symbol stripping program
20657 STRIP=$lt_STRIP
20658
20659 # Used to examine libraries when file_magic_cmd begins "file"
20660 MAGIC_CMD=$MAGIC_CMD
20661
20662 # Used on cygwin: DLL creation program.
20663 DLLTOOL="$DLLTOOL"
20664
20665 # Used on cygwin: object dumper.
20666 OBJDUMP="$OBJDUMP"
20667
20668 # Used on cygwin: assembler.
20669 AS="$AS"
20670
20671 # The name of the directory that contains temporary libtool files.
20672 objdir=$objdir
20673
20674 # How to create reloadable object files.
20675 reload_flag=$lt_reload_flag
20676 reload_cmds=$lt_reload_cmds
20677
20678 # How to pass a linker flag through the compiler.
20679 wl=$lt_lt_prog_compiler_wl_F77
20680
20681 # Object file suffix (normally "o").
20682 objext="$ac_objext"
20683
20684 # Old archive suffix (normally "a").
20685 libext="$libext"
20686
20687 # Shared library suffix (normally ".so").
20688 shrext_cmds='$shrext_cmds'
20689
20690 # Executable file suffix (normally "").
20691 exeext="$exeext"
20692
20693 # Additional compiler flags for building library objects.
20694 pic_flag=$lt_lt_prog_compiler_pic_F77
20695 pic_mode=$pic_mode
20696
20697 # What is the maximum length of a command?
20698 max_cmd_len=$lt_cv_sys_max_cmd_len
20699
20700 # Does compiler simultaneously support -c and -o options?
20701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20702
20703 # Must we lock files when doing compilation ?
20704 need_locks=$lt_need_locks
20705
20706 # Do we need the lib prefix for modules?
20707 need_lib_prefix=$need_lib_prefix
20708
20709 # Do we need a version for libraries?
20710 need_version=$need_version
20711
20712 # Whether dlopen is supported.
20713 dlopen_support=$enable_dlopen
20714
20715 # Whether dlopen of programs is supported.
20716 dlopen_self=$enable_dlopen_self
20717
20718 # Whether dlopen of statically linked programs is supported.
20719 dlopen_self_static=$enable_dlopen_self_static
20720
20721 # Compiler flag to prevent dynamic linking.
20722 link_static_flag=$lt_lt_prog_compiler_static_F77
20723
20724 # Compiler flag to turn off builtin functions.
20725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20726
20727 # Compiler flag to allow reflexive dlopens.
20728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20729
20730 # Compiler flag to generate shared objects directly from archives.
20731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20732
20733 # Compiler flag to generate thread-safe objects.
20734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20735
20736 # Library versioning type.
20737 version_type=$version_type
20738
20739 # Format of library name prefix.
20740 libname_spec=$lt_libname_spec
20741
20742 # List of archive names.  First name is the real one, the rest are links.
20743 # The last name is the one that the linker finds with -lNAME.
20744 library_names_spec=$lt_library_names_spec
20745
20746 # The coded name of the library, if different from the real name.
20747 soname_spec=$lt_soname_spec
20748
20749 # Commands used to build and install an old-style archive.
20750 RANLIB=$lt_RANLIB
20751 old_archive_cmds=$lt_old_archive_cmds_F77
20752 old_postinstall_cmds=$lt_old_postinstall_cmds
20753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20754
20755 # Create an old-style archive from a shared archive.
20756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20757
20758 # Create a temporary old-style archive to link instead of a shared archive.
20759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20760
20761 # Commands used to build and install a shared archive.
20762 archive_cmds=$lt_archive_cmds_F77
20763 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20764 postinstall_cmds=$lt_postinstall_cmds
20765 postuninstall_cmds=$lt_postuninstall_cmds
20766
20767 # Commands used to build a loadable module (assumed same as above if empty)
20768 module_cmds=$lt_module_cmds_F77
20769 module_expsym_cmds=$lt_module_expsym_cmds_F77
20770
20771 # Commands to strip libraries.
20772 old_striplib=$lt_old_striplib
20773 striplib=$lt_striplib
20774
20775 # Dependencies to place before the objects being linked to create a
20776 # shared library.
20777 predep_objects=$lt_predep_objects_F77
20778
20779 # Dependencies to place after the objects being linked to create a
20780 # shared library.
20781 postdep_objects=$lt_postdep_objects_F77
20782
20783 # Dependencies to place before the objects being linked to create a
20784 # shared library.
20785 predeps=$lt_predeps_F77
20786
20787 # Dependencies to place after the objects being linked to create a
20788 # shared library.
20789 postdeps=$lt_postdeps_F77
20790
20791 # The library search path used internally by the compiler when linking
20792 # a shared library.
20793 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20794
20795 # Method to check whether dependent libraries are shared objects.
20796 deplibs_check_method=$lt_deplibs_check_method
20797
20798 # Command to use when deplibs_check_method == file_magic.
20799 file_magic_cmd=$lt_file_magic_cmd
20800
20801 # Flag that allows shared libraries with undefined symbols to be built.
20802 allow_undefined_flag=$lt_allow_undefined_flag_F77
20803
20804 # Flag that forces no undefined symbols.
20805 no_undefined_flag=$lt_no_undefined_flag_F77
20806
20807 # Commands used to finish a libtool library installation in a directory.
20808 finish_cmds=$lt_finish_cmds
20809
20810 # Same as above, but a single script fragment to be evaled but not shown.
20811 finish_eval=$lt_finish_eval
20812
20813 # Take the output of nm and produce a listing of raw symbols and C names.
20814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20815
20816 # Transform the output of nm in a proper C declaration
20817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20818
20819 # Transform the output of nm in a C name address pair
20820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20821
20822 # This is the shared library runtime path variable.
20823 runpath_var=$runpath_var
20824
20825 # This is the shared library path variable.
20826 shlibpath_var=$shlibpath_var
20827
20828 # Is shlibpath searched before the hard-coded library search path?
20829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20830
20831 # How to hardcode a shared library path into an executable.
20832 hardcode_action=$hardcode_action_F77
20833
20834 # Whether we should hardcode library paths into libraries.
20835 hardcode_into_libs=$hardcode_into_libs
20836
20837 # Flag to hardcode \$libdir into a binary during linking.
20838 # This must work even if \$libdir does not exist.
20839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20840
20841 # If ld is used when linking, flag to hardcode \$libdir into
20842 # a binary during linking. This must work even if \$libdir does
20843 # not exist.
20844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20845
20846 # Whether we need a single -rpath flag with a separated argument.
20847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20848
20849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20850 # resulting binary.
20851 hardcode_direct=$hardcode_direct_F77
20852
20853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20854 # resulting binary.
20855 hardcode_minus_L=$hardcode_minus_L_F77
20856
20857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20858 # the resulting binary.
20859 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20860
20861 # Set to yes if building a shared library automatically hardcodes DIR into the library
20862 # and all subsequent libraries and executables linked against it.
20863 hardcode_automatic=$hardcode_automatic_F77
20864
20865 # Variables whose values should be saved in libtool wrapper scripts and
20866 # restored at relink time.
20867 variables_saved_for_relink="$variables_saved_for_relink"
20868
20869 # Whether libtool must link a program against all its dependency libraries.
20870 link_all_deplibs=$link_all_deplibs_F77
20871
20872 # Compile-time system search path for libraries
20873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20874
20875 # Run-time system search path for libraries
20876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20877
20878 # Fix the shell variable \$srcfile for the compiler.
20879 fix_srcfile_path="$fix_srcfile_path_F77"
20880
20881 # Set to yes if exported symbols are required.
20882 always_export_symbols=$always_export_symbols_F77
20883
20884 # The commands to list exported symbols.
20885 export_symbols_cmds=$lt_export_symbols_cmds_F77
20886
20887 # The commands to extract the exported symbol list from a shared archive.
20888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20889
20890 # Symbols that should not be listed in the preloaded symbols.
20891 exclude_expsyms=$lt_exclude_expsyms_F77
20892
20893 # Symbols that must always be exported.
20894 include_expsyms=$lt_include_expsyms_F77
20895
20896 # ### END LIBTOOL TAG CONFIG: $tagname
20897
20898 __EOF__
20899
20900
20901 else
20902   # If there is no Makefile yet, we rely on a make rule to execute
20903   # `config.status --recheck' to rerun these tests and create the
20904   # libtool script then.
20905   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20906   if test -f "$ltmain_in"; then
20907     test -f Makefile && make "$ltmain"
20908   fi
20909 fi
20910
20911
20912 ac_ext=c
20913 ac_cpp='$CPP $CPPFLAGS'
20914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20917
20918 CC="$lt_save_CC"
20919
20920         else
20921           tagname=""
20922         fi
20923         ;;
20924
20925       GCJ)
20926         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20927           ac_ext=c
20928 ac_cpp='$CPP $CPPFLAGS'
20929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20932
20933
20934 # Source file extension for Java test sources.
20935 ac_ext=java
20936
20937 # Object file extension for compiled Java test sources.
20938 objext=o
20939 objext_GCJ=$objext
20940
20941 # Code to be used in simple compile tests
20942 lt_simple_compile_test_code="class foo {}\n"
20943
20944 # Code to be used in simple link tests
20945 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20946
20947 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20948
20949 # If no C compiler was specified, use CC.
20950 LTCC=${LTCC-"$CC"}
20951
20952 # Allow CC to be a program name with arguments.
20953 compiler=$CC
20954
20955
20956 # Allow CC to be a program name with arguments.
20957 lt_save_CC="$CC"
20958 CC=${GCJ-"gcj"}
20959 compiler=$CC
20960 compiler_GCJ=$CC
20961
20962 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20963 archive_cmds_need_lc_GCJ=no
20964
20965
20966 lt_prog_compiler_no_builtin_flag_GCJ=
20967
20968 if test "$GCC" = yes; then
20969   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20970
20971
20972 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20973 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20974 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977   lt_cv_prog_compiler_rtti_exceptions=no
20978   ac_outfile=conftest.$ac_objext
20979    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20980    lt_compiler_flag="-fno-rtti -fno-exceptions"
20981    # Insert the option either (1) after the last *FLAGS variable, or
20982    # (2) before a word containing "conftest.", or (3) at the end.
20983    # Note that $ac_compile itself does not contain backslashes and begins
20984    # with a dollar sign (not a hyphen), so the echo should work correctly.
20985    # The option is referenced via a variable to avoid confusing sed.
20986    lt_compile=`echo "$ac_compile" | $SED \
20987    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20989    -e 's:$: $lt_compiler_flag:'`
20990    (eval echo "\"\$as_me:20990: $lt_compile\"" >&5)
20991    (eval "$lt_compile" 2>conftest.err)
20992    ac_status=$?
20993    cat conftest.err >&5
20994    echo "$as_me:20994: \$? = $ac_status" >&5
20995    if (exit $ac_status) && test -s "$ac_outfile"; then
20996      # The compiler can only warn and ignore the option if not recognized
20997      # So say no if there are warnings
20998      if test ! -s conftest.err; then
20999        lt_cv_prog_compiler_rtti_exceptions=yes
21000      fi
21001    fi
21002    $rm conftest*
21003
21004 fi
21005 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21006 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21007
21008 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21009     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21010 else
21011     :
21012 fi
21013
21014 fi
21015
21016 lt_prog_compiler_wl_GCJ=
21017 lt_prog_compiler_pic_GCJ=
21018 lt_prog_compiler_static_GCJ=
21019
21020 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21021 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21022
21023   if test "$GCC" = yes; then
21024     lt_prog_compiler_wl_GCJ='-Wl,'
21025     lt_prog_compiler_static_GCJ='-static'
21026
21027     case $host_os in
21028       aix*)
21029       # All AIX code is PIC.
21030       if test "$host_cpu" = ia64; then
21031         # AIX 5 now supports IA64 processor
21032         lt_prog_compiler_static_GCJ='-Bstatic'
21033       fi
21034       ;;
21035
21036     amigaos*)
21037       # FIXME: we need at least 68020 code to build shared libraries, but
21038       # adding the `-m68020' flag to GCC prevents building anything better,
21039       # like `-m68040'.
21040       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21041       ;;
21042
21043     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21044       # PIC is the default for these OSes.
21045       ;;
21046
21047     mingw* | pw32* | os2*)
21048       # This hack is so that the source file can tell whether it is being
21049       # built for inclusion in a dll (and should export symbols for example).
21050       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21051       ;;
21052
21053     darwin* | rhapsody*)
21054       # PIC is the default on this platform
21055       # Common symbols not allowed in MH_DYLIB files
21056       lt_prog_compiler_pic_GCJ='-fno-common'
21057       ;;
21058
21059     msdosdjgpp*)
21060       # Just because we use GCC doesn't mean we suddenly get shared libraries
21061       # on systems that don't support them.
21062       lt_prog_compiler_can_build_shared_GCJ=no
21063       enable_shared=no
21064       ;;
21065
21066     sysv4*MP*)
21067       if test -d /usr/nec; then
21068         lt_prog_compiler_pic_GCJ=-Kconform_pic
21069       fi
21070       ;;
21071
21072     hpux*)
21073       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21074       # not for PA HP-UX.
21075       case "$host_cpu" in
21076       hppa*64*|ia64*)
21077         # +Z the default
21078         ;;
21079       *)
21080         lt_prog_compiler_pic_GCJ='-fPIC'
21081         ;;
21082       esac
21083       ;;
21084
21085     *)
21086       lt_prog_compiler_pic_GCJ='-fPIC'
21087       ;;
21088     esac
21089   else
21090     # PORTME Check for flag to pass linker flags through the system compiler.
21091     case $host_os in
21092     aix*)
21093       lt_prog_compiler_wl_GCJ='-Wl,'
21094       if test "$host_cpu" = ia64; then
21095         # AIX 5 now supports IA64 processor
21096         lt_prog_compiler_static_GCJ='-Bstatic'
21097       else
21098         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21099       fi
21100       ;;
21101       darwin*)
21102         # PIC is the default on this platform
21103         # Common symbols not allowed in MH_DYLIB files
21104        case "$cc_basename" in
21105          xlc*)
21106          lt_prog_compiler_pic_GCJ='-qnocommon'
21107          lt_prog_compiler_wl_GCJ='-Wl,'
21108          ;;
21109        esac
21110        ;;
21111
21112     mingw* | pw32* | os2*)
21113       # This hack is so that the source file can tell whether it is being
21114       # built for inclusion in a dll (and should export symbols for example).
21115       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21116       ;;
21117
21118     hpux9* | hpux10* | hpux11*)
21119       lt_prog_compiler_wl_GCJ='-Wl,'
21120       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21121       # not for PA HP-UX.
21122       case "$host_cpu" in
21123       hppa*64*|ia64*)
21124         # +Z the default
21125         ;;
21126       *)
21127         lt_prog_compiler_pic_GCJ='+Z'
21128         ;;
21129       esac
21130       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21131       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21132       ;;
21133
21134     irix5* | irix6* | nonstopux*)
21135       lt_prog_compiler_wl_GCJ='-Wl,'
21136       # PIC (with -KPIC) is the default.
21137       lt_prog_compiler_static_GCJ='-non_shared'
21138       ;;
21139
21140     newsos6)
21141       lt_prog_compiler_pic_GCJ='-KPIC'
21142       lt_prog_compiler_static_GCJ='-Bstatic'
21143       ;;
21144
21145     linux*)
21146       case $CC in
21147       icc* | ecc*)
21148         lt_prog_compiler_wl_GCJ='-Wl,'
21149         lt_prog_compiler_pic_GCJ='-KPIC'
21150         lt_prog_compiler_static_GCJ='-static'
21151         ;;
21152       ccc*)
21153         lt_prog_compiler_wl_GCJ='-Wl,'
21154         # All Alpha code is PIC.
21155         lt_prog_compiler_static_GCJ='-non_shared'
21156         ;;
21157       esac
21158       ;;
21159
21160     osf3* | osf4* | osf5*)
21161       lt_prog_compiler_wl_GCJ='-Wl,'
21162       # All OSF/1 code is PIC.
21163       lt_prog_compiler_static_GCJ='-non_shared'
21164       ;;
21165
21166     sco3.2v5*)
21167       lt_prog_compiler_pic_GCJ='-Kpic'
21168       lt_prog_compiler_static_GCJ='-dn'
21169       ;;
21170
21171     solaris*)
21172       lt_prog_compiler_wl_GCJ='-Wl,'
21173       lt_prog_compiler_pic_GCJ='-KPIC'
21174       lt_prog_compiler_static_GCJ='-Bstatic'
21175       ;;
21176
21177     sunos4*)
21178       lt_prog_compiler_wl_GCJ='-Qoption ld '
21179       lt_prog_compiler_pic_GCJ='-PIC'
21180       lt_prog_compiler_static_GCJ='-Bstatic'
21181       ;;
21182
21183     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21184       lt_prog_compiler_wl_GCJ='-Wl,'
21185       lt_prog_compiler_pic_GCJ='-KPIC'
21186       lt_prog_compiler_static_GCJ='-Bstatic'
21187       ;;
21188
21189     sysv4*MP*)
21190       if test -d /usr/nec ;then
21191         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21192         lt_prog_compiler_static_GCJ='-Bstatic'
21193       fi
21194       ;;
21195
21196     uts4*)
21197       lt_prog_compiler_pic_GCJ='-pic'
21198       lt_prog_compiler_static_GCJ='-Bstatic'
21199       ;;
21200
21201     *)
21202       lt_prog_compiler_can_build_shared_GCJ=no
21203       ;;
21204     esac
21205   fi
21206
21207 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21208 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21209
21210 #
21211 # Check to make sure the PIC flag actually works.
21212 #
21213 if test -n "$lt_prog_compiler_pic_GCJ"; then
21214
21215 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21216 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21217 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   lt_prog_compiler_pic_works_GCJ=no
21221   ac_outfile=conftest.$ac_objext
21222    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21223    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21224    # Insert the option either (1) after the last *FLAGS variable, or
21225    # (2) before a word containing "conftest.", or (3) at the end.
21226    # Note that $ac_compile itself does not contain backslashes and begins
21227    # with a dollar sign (not a hyphen), so the echo should work correctly.
21228    # The option is referenced via a variable to avoid confusing sed.
21229    lt_compile=`echo "$ac_compile" | $SED \
21230    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21231    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21232    -e 's:$: $lt_compiler_flag:'`
21233    (eval echo "\"\$as_me:21233: $lt_compile\"" >&5)
21234    (eval "$lt_compile" 2>conftest.err)
21235    ac_status=$?
21236    cat conftest.err >&5
21237    echo "$as_me:21237: \$? = $ac_status" >&5
21238    if (exit $ac_status) && test -s "$ac_outfile"; then
21239      # The compiler can only warn and ignore the option if not recognized
21240      # So say no if there are warnings
21241      if test ! -s conftest.err; then
21242        lt_prog_compiler_pic_works_GCJ=yes
21243      fi
21244    fi
21245    $rm conftest*
21246
21247 fi
21248 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21249 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21250
21251 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21252     case $lt_prog_compiler_pic_GCJ in
21253      "" | " "*) ;;
21254      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21255      esac
21256 else
21257     lt_prog_compiler_pic_GCJ=
21258      lt_prog_compiler_can_build_shared_GCJ=no
21259 fi
21260
21261 fi
21262 case "$host_os" in
21263   # For platforms which do not support PIC, -DPIC is meaningless:
21264   *djgpp*)
21265     lt_prog_compiler_pic_GCJ=
21266     ;;
21267   *)
21268     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21269     ;;
21270 esac
21271
21272 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21273 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21274 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21275   echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277   lt_cv_prog_compiler_c_o_GCJ=no
21278    $rm -r conftest 2>/dev/null
21279    mkdir conftest
21280    cd conftest
21281    mkdir out
21282    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21283
21284    lt_compiler_flag="-o out/conftest2.$ac_objext"
21285    # Insert the option either (1) after the last *FLAGS variable, or
21286    # (2) before a word containing "conftest.", or (3) at the end.
21287    # Note that $ac_compile itself does not contain backslashes and begins
21288    # with a dollar sign (not a hyphen), so the echo should work correctly.
21289    lt_compile=`echo "$ac_compile" | $SED \
21290    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21291    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21292    -e 's:$: $lt_compiler_flag:'`
21293    (eval echo "\"\$as_me:21293: $lt_compile\"" >&5)
21294    (eval "$lt_compile" 2>out/conftest.err)
21295    ac_status=$?
21296    cat out/conftest.err >&5
21297    echo "$as_me:21297: \$? = $ac_status" >&5
21298    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21299    then
21300      # The compiler can only warn and ignore the option if not recognized
21301      # So say no if there are warnings
21302      if test ! -s out/conftest.err; then
21303        lt_cv_prog_compiler_c_o_GCJ=yes
21304      fi
21305    fi
21306    chmod u+w .
21307    $rm conftest*
21308    # SGI C++ compiler will create directory out/ii_files/ for
21309    # template instantiation
21310    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21311    $rm out/* && rmdir out
21312    cd ..
21313    rmdir conftest
21314    $rm conftest*
21315
21316 fi
21317 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21318 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21319
21320
21321 hard_links="nottested"
21322 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21323   # do not overwrite the value of need_locks provided by the user
21324   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21325 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21326   hard_links=yes
21327   $rm conftest*
21328   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21329   touch conftest.a
21330   ln conftest.a conftest.b 2>&5 || hard_links=no
21331   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21332   echo "$as_me:$LINENO: result: $hard_links" >&5
21333 echo "${ECHO_T}$hard_links" >&6
21334   if test "$hard_links" = no; then
21335     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21336 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21337     need_locks=warn
21338   fi
21339 else
21340   need_locks=no
21341 fi
21342
21343 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21344 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21345
21346   runpath_var=
21347   allow_undefined_flag_GCJ=
21348   enable_shared_with_static_runtimes_GCJ=no
21349   archive_cmds_GCJ=
21350   archive_expsym_cmds_GCJ=
21351   old_archive_From_new_cmds_GCJ=
21352   old_archive_from_expsyms_cmds_GCJ=
21353   export_dynamic_flag_spec_GCJ=
21354   whole_archive_flag_spec_GCJ=
21355   thread_safe_flag_spec_GCJ=
21356   hardcode_libdir_flag_spec_GCJ=
21357   hardcode_libdir_flag_spec_ld_GCJ=
21358   hardcode_libdir_separator_GCJ=
21359   hardcode_direct_GCJ=no
21360   hardcode_minus_L_GCJ=no
21361   hardcode_shlibpath_var_GCJ=unsupported
21362   link_all_deplibs_GCJ=unknown
21363   hardcode_automatic_GCJ=no
21364   module_cmds_GCJ=
21365   module_expsym_cmds_GCJ=
21366   always_export_symbols_GCJ=no
21367   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21368   # include_expsyms should be a list of space-separated symbols to be *always*
21369   # included in the symbol list
21370   include_expsyms_GCJ=
21371   # exclude_expsyms can be an extended regexp of symbols to exclude
21372   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21373   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21374   # as well as any symbol that contains `d'.
21375   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21376   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21377   # platforms (ab)use it in PIC code, but their linkers get confused if
21378   # the symbol is explicitly referenced.  Since portable code cannot
21379   # rely on this symbol name, it's probably fine to never include it in
21380   # preloaded symbol tables.
21381   extract_expsyms_cmds=
21382
21383   case $host_os in
21384   cygwin* | mingw* | pw32*)
21385     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21386     # When not using gcc, we currently assume that we are using
21387     # Microsoft Visual C++.
21388     if test "$GCC" != yes; then
21389       with_gnu_ld=no
21390     fi
21391     ;;
21392   openbsd*)
21393     with_gnu_ld=no
21394     ;;
21395   esac
21396
21397   ld_shlibs_GCJ=yes
21398   if test "$with_gnu_ld" = yes; then
21399     # If archive_cmds runs LD, not CC, wlarc should be empty
21400     wlarc='${wl}'
21401
21402     # See if GNU ld supports shared libraries.
21403     case $host_os in
21404     aix3* | aix4* | aix5*)
21405       # On AIX/PPC, the GNU linker is very broken
21406       if test "$host_cpu" != ia64; then
21407         ld_shlibs_GCJ=no
21408         cat <<EOF 1>&2
21409
21410 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21411 *** to be unable to reliably create shared libraries on AIX.
21412 *** Therefore, libtool is disabling shared libraries support.  If you
21413 *** really care for shared libraries, you may want to modify your PATH
21414 *** so that a non-GNU linker is found, and then restart.
21415
21416 EOF
21417       fi
21418       ;;
21419
21420     amigaos*)
21421       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)'
21422       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21423       hardcode_minus_L_GCJ=yes
21424
21425       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21426       # that the semantics of dynamic libraries on AmigaOS, at least up
21427       # to version 4, is to share data among multiple programs linked
21428       # with the same dynamic library.  Since this doesn't match the
21429       # behavior of shared libraries on other platforms, we can't use
21430       # them.
21431       ld_shlibs_GCJ=no
21432       ;;
21433
21434     beos*)
21435       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21436         allow_undefined_flag_GCJ=unsupported
21437         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21438         # support --undefined.  This deserves some investigation.  FIXME
21439         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21440       else
21441         ld_shlibs_GCJ=no
21442       fi
21443       ;;
21444
21445     cygwin* | mingw* | pw32*)
21446       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21447       # as there is no search path for DLLs.
21448       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21449       allow_undefined_flag_GCJ=unsupported
21450       always_export_symbols_GCJ=no
21451       enable_shared_with_static_runtimes_GCJ=yes
21452       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21453
21454       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21455         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21456         # If the export-symbols file already is a .def file (1st line
21457         # is EXPORTS), use it as is; otherwise, prepend...
21458         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21459           cp $export_symbols $output_objdir/$soname.def;
21460         else
21461           echo EXPORTS > $output_objdir/$soname.def;
21462           cat $export_symbols >> $output_objdir/$soname.def;
21463         fi~
21464         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21465       else
21466         ld_shlibs=no
21467       fi
21468       ;;
21469
21470     netbsd*)
21471       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21472         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21473         wlarc=
21474       else
21475         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21476         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21477       fi
21478       ;;
21479
21480     solaris* | sysv5*)
21481       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21482         ld_shlibs_GCJ=no
21483         cat <<EOF 1>&2
21484
21485 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21486 *** create shared libraries on Solaris systems.  Therefore, libtool
21487 *** is disabling shared libraries support.  We urge you to upgrade GNU
21488 *** binutils to release 2.9.1 or newer.  Another option is to modify
21489 *** your PATH or compiler configuration so that the native linker is
21490 *** used, and then restart.
21491
21492 EOF
21493       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21494         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21495         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21496       else
21497         ld_shlibs_GCJ=no
21498       fi
21499       ;;
21500
21501     sunos4*)
21502       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21503       wlarc=
21504       hardcode_direct_GCJ=yes
21505       hardcode_shlibpath_var_GCJ=no
21506       ;;
21507
21508   linux*)
21509     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21510         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21511         archive_cmds_GCJ="$tmp_archive_cmds"
21512       supports_anon_versioning=no
21513       case `$LD -v 2>/dev/null` in
21514         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21515         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21516         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21517         *\ 2.11.*) ;; # other 2.11 versions
21518         *) supports_anon_versioning=yes ;;
21519       esac
21520       if test $supports_anon_versioning = yes; then
21521         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21523 $echo "local: *; };" >> $output_objdir/$libname.ver~
21524         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21525       else
21526         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21527       fi
21528     else
21529       ld_shlibs_GCJ=no
21530     fi
21531     ;;
21532
21533     *)
21534       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21535         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21536         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21537       else
21538         ld_shlibs_GCJ=no
21539       fi
21540       ;;
21541     esac
21542
21543     if test "$ld_shlibs_GCJ" = yes; then
21544       runpath_var=LD_RUN_PATH
21545       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21546       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21547       # ancient GNU ld didn't support --whole-archive et. al.
21548       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21549         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21550       else
21551         whole_archive_flag_spec_GCJ=
21552       fi
21553     fi
21554   else
21555     # PORTME fill in a description of your system's linker (not GNU ld)
21556     case $host_os in
21557     aix3*)
21558       allow_undefined_flag_GCJ=unsupported
21559       always_export_symbols_GCJ=yes
21560       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'
21561       # Note: this linker hardcodes the directories in LIBPATH if there
21562       # are no directories specified by -L.
21563       hardcode_minus_L_GCJ=yes
21564       if test "$GCC" = yes && test -z "$link_static_flag"; then
21565         # Neither direct hardcoding nor static linking is supported with a
21566         # broken collect2.
21567         hardcode_direct_GCJ=unsupported
21568       fi
21569       ;;
21570
21571     aix4* | aix5*)
21572       if test "$host_cpu" = ia64; then
21573         # On IA64, the linker does run time linking by default, so we don't
21574         # have to do anything special.
21575         aix_use_runtimelinking=no
21576         exp_sym_flag='-Bexport'
21577         no_entry_flag=""
21578       else
21579         # If we're using GNU nm, then we don't want the "-C" option.
21580         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21581         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21582           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'
21583         else
21584           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'
21585         fi
21586         aix_use_runtimelinking=no
21587
21588         # Test if we are trying to use run time linking or normal
21589         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21590         # need to do runtime linking.
21591         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21592           for ld_flag in $LDFLAGS; do
21593           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21594             aix_use_runtimelinking=yes
21595             break
21596           fi
21597           done
21598         esac
21599
21600         exp_sym_flag='-bexport'
21601         no_entry_flag='-bnoentry'
21602       fi
21603
21604       # When large executables or shared objects are built, AIX ld can
21605       # have problems creating the table of contents.  If linking a library
21606       # or program results in "error TOC overflow" add -mminimal-toc to
21607       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21608       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21609
21610       archive_cmds_GCJ=''
21611       hardcode_direct_GCJ=yes
21612       hardcode_libdir_separator_GCJ=':'
21613       link_all_deplibs_GCJ=yes
21614
21615       if test "$GCC" = yes; then
21616         case $host_os in aix4.012|aix4.012.*)
21617         # We only want to do this on AIX 4.2 and lower, the check
21618         # below for broken collect2 doesn't work under 4.3+
21619           collect2name=`${CC} -print-prog-name=collect2`
21620           if test -f "$collect2name" && \
21621            strings "$collect2name" | grep resolve_lib_name >/dev/null
21622           then
21623           # We have reworked collect2
21624           hardcode_direct_GCJ=yes
21625           else
21626           # We have old collect2
21627           hardcode_direct_GCJ=unsupported
21628           # It fails to find uninstalled libraries when the uninstalled
21629           # path is not listed in the libpath.  Setting hardcode_minus_L
21630           # to unsupported forces relinking
21631           hardcode_minus_L_GCJ=yes
21632           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21633           hardcode_libdir_separator_GCJ=
21634           fi
21635         esac
21636         shared_flag='-shared'
21637       else
21638         # not using gcc
21639         if test "$host_cpu" = ia64; then
21640         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21641         # chokes on -Wl,-G. The following line is correct:
21642           shared_flag='-G'
21643         else
21644         if test "$aix_use_runtimelinking" = yes; then
21645             shared_flag='${wl}-G'
21646           else
21647             shared_flag='${wl}-bM:SRE'
21648         fi
21649         fi
21650       fi
21651
21652       # It seems that -bexpall does not export symbols beginning with
21653       # underscore (_), so it is better to generate a list of symbols to export.
21654       always_export_symbols_GCJ=yes
21655       if test "$aix_use_runtimelinking" = yes; then
21656         # Warning - without using the other runtime loading flags (-brtl),
21657         # -berok will link without error, but may produce a broken library.
21658         allow_undefined_flag_GCJ='-berok'
21659        # Determine the default libpath from the value encoded in an empty executable.
21660        cat >conftest.$ac_ext <<_ACEOF
21661 /* confdefs.h.  */
21662 _ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h.  */
21666
21667 int
21668 main ()
21669 {
21670
21671   ;
21672   return 0;
21673 }
21674 _ACEOF
21675 rm -f conftest.$ac_objext conftest$ac_exeext
21676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21677   (eval $ac_link) 2>conftest.er1
21678   ac_status=$?
21679   grep -v '^ *+' conftest.er1 >conftest.err
21680   rm -f conftest.er1
21681   cat conftest.err >&5
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); } &&
21684          { ac_try='test -z "$ac_c_werror_flag"
21685                          || test ! -s conftest.err'
21686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687   (eval $ac_try) 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; } &&
21691          { ac_try='test -s conftest$ac_exeext'
21692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693   (eval $ac_try) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; }; then
21697
21698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21699 }'`
21700 # Check for a 64-bit object if we didn't find anything.
21701 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; }
21702 }'`; fi
21703 else
21704   echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707 fi
21708 rm -f conftest.err conftest.$ac_objext \
21709       conftest$ac_exeext conftest.$ac_ext
21710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21711
21712        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21713         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"
21714        else
21715         if test "$host_cpu" = ia64; then
21716           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21717           allow_undefined_flag_GCJ="-z nodefs"
21718           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"
21719         else
21720          # Determine the default libpath from the value encoded in an empty executable.
21721          cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h.  */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h.  */
21727
21728 int
21729 main ()
21730 {
21731
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21738   (eval $ac_link) 2>conftest.er1
21739   ac_status=$?
21740   grep -v '^ *+' conftest.er1 >conftest.err
21741   rm -f conftest.er1
21742   cat conftest.err >&5
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); } &&
21745          { ac_try='test -z "$ac_c_werror_flag"
21746                          || test ! -s conftest.err'
21747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748   (eval $ac_try) 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); }; } &&
21752          { ac_try='test -s conftest$ac_exeext'
21753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754   (eval $ac_try) 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; }; then
21758
21759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21760 }'`
21761 # Check for a 64-bit object if we didn't find anything.
21762 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; }
21763 }'`; fi
21764 else
21765   echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768 fi
21769 rm -f conftest.err conftest.$ac_objext \
21770       conftest$ac_exeext conftest.$ac_ext
21771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21772
21773          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21774           # Warning - without using the other run time loading flags,
21775           # -berok will link without error, but may produce a broken library.
21776           no_undefined_flag_GCJ=' ${wl}-bernotok'
21777           allow_undefined_flag_GCJ=' ${wl}-berok'
21778           # -bexpall does not export symbols beginning with underscore (_)
21779           always_export_symbols_GCJ=yes
21780           # Exported symbols can be pulled into shared objects from archives
21781           whole_archive_flag_spec_GCJ=' '
21782           archive_cmds_need_lc_GCJ=yes
21783           # This is similar to how AIX traditionally builds it's shared libraries.
21784           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'
21785         fi
21786       fi
21787       ;;
21788
21789     amigaos*)
21790       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)'
21791       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21792       hardcode_minus_L_GCJ=yes
21793       # see comment about different semantics on the GNU ld section
21794       ld_shlibs_GCJ=no
21795       ;;
21796
21797     bsdi[45]*)
21798       export_dynamic_flag_spec_GCJ=-rdynamic
21799       ;;
21800
21801     cygwin* | mingw* | pw32*)
21802       # When not using gcc, we currently assume that we are using
21803       # Microsoft Visual C++.
21804       # hardcode_libdir_flag_spec is actually meaningless, as there is
21805       # no search path for DLLs.
21806       hardcode_libdir_flag_spec_GCJ=' '
21807       allow_undefined_flag_GCJ=unsupported
21808       # Tell ltmain to make .lib files, not .a files.
21809       libext=lib
21810       # Tell ltmain to make .dll files, not .so files.
21811       shrext_cmds=".dll"
21812       # FIXME: Setting linknames here is a bad hack.
21813       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21814       # The linker will automatically build a .lib file if we build a DLL.
21815       old_archive_From_new_cmds_GCJ='true'
21816       # FIXME: Should let the user specify the lib program.
21817       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21818       fix_srcfile_path='`cygpath -w "$srcfile"`'
21819       enable_shared_with_static_runtimes_GCJ=yes
21820       ;;
21821
21822     darwin* | rhapsody*)
21823       case "$host_os" in
21824         rhapsody* | darwin1.[012])
21825          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21826          ;;
21827        *) # Darwin 1.3 on
21828          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21829            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21830          else
21831            case ${MACOSX_DEPLOYMENT_TARGET} in
21832              10.[012])
21833                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21834                ;;
21835              10.*)
21836                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21837                ;;
21838            esac
21839          fi
21840          ;;
21841       esac
21842       archive_cmds_need_lc_GCJ=no
21843       hardcode_direct_GCJ=no
21844       hardcode_automatic_GCJ=yes
21845       hardcode_shlibpath_var_GCJ=unsupported
21846       whole_archive_flag_spec_GCJ=''
21847       link_all_deplibs_GCJ=yes
21848     if test "$GCC" = yes ; then
21849         output_verbose_link_cmd='echo'
21850         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21851       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21852       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21853       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}'
21854       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}'
21855     else
21856       case "$cc_basename" in
21857         xlc*)
21858          output_verbose_link_cmd='echo'
21859          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21860          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21861           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21862          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}'
21863           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}'
21864           ;;
21865        *)
21866          ld_shlibs_GCJ=no
21867           ;;
21868       esac
21869     fi
21870       ;;
21871
21872     dgux*)
21873       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21874       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21875       hardcode_shlibpath_var_GCJ=no
21876       ;;
21877
21878     freebsd1*)
21879       ld_shlibs_GCJ=no
21880       ;;
21881
21882     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21883     # support.  Future versions do this automatically, but an explicit c++rt0.o
21884     # does not break anything, and helps significantly (at the cost of a little
21885     # extra space).
21886     freebsd2.2*)
21887       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21888       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21889       hardcode_direct_GCJ=yes
21890       hardcode_shlibpath_var_GCJ=no
21891       ;;
21892
21893     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21894     freebsd2*)
21895       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21896       hardcode_direct_GCJ=yes
21897       hardcode_minus_L_GCJ=yes
21898       hardcode_shlibpath_var_GCJ=no
21899       ;;
21900
21901     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21902     freebsd* | kfreebsd*-gnu)
21903       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21904       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21905       hardcode_direct_GCJ=yes
21906       hardcode_shlibpath_var_GCJ=no
21907       ;;
21908
21909     hpux9*)
21910       if test "$GCC" = yes; then
21911         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'
21912       else
21913         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'
21914       fi
21915       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21916       hardcode_libdir_separator_GCJ=:
21917       hardcode_direct_GCJ=yes
21918
21919       # hardcode_minus_L: Not really in the search PATH,
21920       # but as the default location of the library.
21921       hardcode_minus_L_GCJ=yes
21922       export_dynamic_flag_spec_GCJ='${wl}-E'
21923       ;;
21924
21925     hpux10* | hpux11*)
21926       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21927         case "$host_cpu" in
21928         hppa*64*|ia64*)
21929           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21930           ;;
21931         *)
21932           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21933           ;;
21934         esac
21935       else
21936         case "$host_cpu" in
21937         hppa*64*|ia64*)
21938           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21939           ;;
21940         *)
21941           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21942           ;;
21943         esac
21944       fi
21945       if test "$with_gnu_ld" = no; then
21946         case "$host_cpu" in
21947         hppa*64*)
21948           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21949           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21950           hardcode_libdir_separator_GCJ=:
21951           hardcode_direct_GCJ=no
21952           hardcode_shlibpath_var_GCJ=no
21953           ;;
21954         ia64*)
21955           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21956           hardcode_direct_GCJ=no
21957           hardcode_shlibpath_var_GCJ=no
21958
21959           # hardcode_minus_L: Not really in the search PATH,
21960           # but as the default location of the library.
21961           hardcode_minus_L_GCJ=yes
21962           ;;
21963         *)
21964           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21965           hardcode_libdir_separator_GCJ=:
21966           hardcode_direct_GCJ=yes
21967           export_dynamic_flag_spec_GCJ='${wl}-E'
21968
21969           # hardcode_minus_L: Not really in the search PATH,
21970           # but as the default location of the library.
21971           hardcode_minus_L_GCJ=yes
21972           ;;
21973         esac
21974       fi
21975       ;;
21976
21977     irix5* | irix6* | nonstopux*)
21978       if test "$GCC" = yes; then
21979         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'
21980       else
21981         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'
21982         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21983       fi
21984       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21985       hardcode_libdir_separator_GCJ=:
21986       link_all_deplibs_GCJ=yes
21987       ;;
21988
21989     netbsd*)
21990       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21991         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21992       else
21993         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21994       fi
21995       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21996       hardcode_direct_GCJ=yes
21997       hardcode_shlibpath_var_GCJ=no
21998       ;;
21999
22000     newsos6)
22001       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22002       hardcode_direct_GCJ=yes
22003       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22004       hardcode_libdir_separator_GCJ=:
22005       hardcode_shlibpath_var_GCJ=no
22006       ;;
22007
22008     openbsd*)
22009       hardcode_direct_GCJ=yes
22010       hardcode_shlibpath_var_GCJ=no
22011       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22012         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22013         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22014         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22015         export_dynamic_flag_spec_GCJ='${wl}-E'
22016       else
22017        case $host_os in
22018          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22019            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22020            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22021            ;;
22022          *)
22023            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22024            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22025            ;;
22026        esac
22027       fi
22028       ;;
22029
22030     os2*)
22031       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22032       hardcode_minus_L_GCJ=yes
22033       allow_undefined_flag_GCJ=unsupported
22034       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'
22035       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22036       ;;
22037
22038     osf3*)
22039       if test "$GCC" = yes; then
22040         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22041         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'
22042       else
22043         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22044         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'
22045       fi
22046       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22047       hardcode_libdir_separator_GCJ=:
22048       ;;
22049
22050     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22051       if test "$GCC" = yes; then
22052         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22053         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'
22054         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22055       else
22056         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22057         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'
22058         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~
22059         $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'
22060
22061         # Both c and cxx compiler support -rpath directly
22062         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22063       fi
22064       hardcode_libdir_separator_GCJ=:
22065       ;;
22066
22067     sco3.2v5*)
22068       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22069       hardcode_shlibpath_var_GCJ=no
22070       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22071       runpath_var=LD_RUN_PATH
22072       hardcode_runpath_var=yes
22073       ;;
22074
22075     solaris*)
22076       no_undefined_flag_GCJ=' -z text'
22077       if test "$GCC" = yes; then
22078         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22079         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22080           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22081       else
22082         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22083         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22084         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22085       fi
22086       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22087       hardcode_shlibpath_var_GCJ=no
22088       case $host_os in
22089       solaris2.[0-5] | solaris2.[0-5].*) ;;
22090       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22091         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22092       esac
22093       link_all_deplibs_GCJ=yes
22094       ;;
22095
22096     sunos4*)
22097       if test "x$host_vendor" = xsequent; then
22098         # Use $CC to link under sequent, because it throws in some extra .o
22099         # files that make .init and .fini sections work.
22100         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22101       else
22102         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22103       fi
22104       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22105       hardcode_direct_GCJ=yes
22106       hardcode_minus_L_GCJ=yes
22107       hardcode_shlibpath_var_GCJ=no
22108       ;;
22109
22110     sysv4)
22111       case $host_vendor in
22112         sni)
22113           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22114           hardcode_direct_GCJ=yes # is this really true???
22115         ;;
22116         siemens)
22117           ## LD is ld it makes a PLAMLIB
22118           ## CC just makes a GrossModule.
22119           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22120           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22121           hardcode_direct_GCJ=no
22122         ;;
22123         motorola)
22124           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22125           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22126         ;;
22127       esac
22128       runpath_var='LD_RUN_PATH'
22129       hardcode_shlibpath_var_GCJ=no
22130       ;;
22131
22132     sysv4.3*)
22133       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134       hardcode_shlibpath_var_GCJ=no
22135       export_dynamic_flag_spec_GCJ='-Bexport'
22136       ;;
22137
22138     sysv4*MP*)
22139       if test -d /usr/nec; then
22140         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22141         hardcode_shlibpath_var_GCJ=no
22142         runpath_var=LD_RUN_PATH
22143         hardcode_runpath_var=yes
22144         ld_shlibs_GCJ=yes
22145       fi
22146       ;;
22147
22148     sysv4.2uw2*)
22149       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22150       hardcode_direct_GCJ=yes
22151       hardcode_minus_L_GCJ=no
22152       hardcode_shlibpath_var_GCJ=no
22153       hardcode_runpath_var=yes
22154       runpath_var=LD_RUN_PATH
22155       ;;
22156
22157    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22158       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22159       if test "$GCC" = yes; then
22160         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22161       else
22162         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22163       fi
22164       runpath_var='LD_RUN_PATH'
22165       hardcode_shlibpath_var_GCJ=no
22166       ;;
22167
22168     sysv5*)
22169       no_undefined_flag_GCJ=' -z text'
22170       # $CC -shared without GNU ld will not create a library from C++
22171       # object files and a static libstdc++, better avoid it by now
22172       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22173       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22174                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22175       hardcode_libdir_flag_spec_GCJ=
22176       hardcode_shlibpath_var_GCJ=no
22177       runpath_var='LD_RUN_PATH'
22178       ;;
22179
22180     uts4*)
22181       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22183       hardcode_shlibpath_var_GCJ=no
22184       ;;
22185
22186     *)
22187       ld_shlibs_GCJ=no
22188       ;;
22189     esac
22190   fi
22191
22192 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22193 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22194 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22195
22196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22197 if test "$GCC" = yes; then
22198   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22199 fi
22200
22201 #
22202 # Do we need to explicitly link libc?
22203 #
22204 case "x$archive_cmds_need_lc_GCJ" in
22205 x|xyes)
22206   # Assume -lc should be added
22207   archive_cmds_need_lc_GCJ=yes
22208
22209   if test "$enable_shared" = yes && test "$GCC" = yes; then
22210     case $archive_cmds_GCJ in
22211     *'~'*)
22212       # FIXME: we may have to deal with multi-command sequences.
22213       ;;
22214     '$CC '*)
22215       # Test whether the compiler implicitly links with -lc since on some
22216       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22217       # to ld, don't add -lc before -lgcc.
22218       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22219 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22220       $rm conftest*
22221       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22222
22223       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22224   (eval $ac_compile) 2>&5
22225   ac_status=$?
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); } 2>conftest.err; then
22228         soname=conftest
22229         lib=conftest
22230         libobjs=conftest.$ac_objext
22231         deplibs=
22232         wl=$lt_prog_compiler_wl_GCJ
22233         compiler_flags=-v
22234         linker_flags=-v
22235         verstring=
22236         output_objdir=.
22237         libname=conftest
22238         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22239         allow_undefined_flag_GCJ=
22240         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22241   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22242   ac_status=$?
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); }
22245         then
22246           archive_cmds_need_lc_GCJ=no
22247         else
22248           archive_cmds_need_lc_GCJ=yes
22249         fi
22250         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22251       else
22252         cat conftest.err 1>&5
22253       fi
22254       $rm conftest*
22255       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22256 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22257       ;;
22258     esac
22259   fi
22260   ;;
22261 esac
22262
22263 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22264 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22265 library_names_spec=
22266 libname_spec='lib$name'
22267 soname_spec=
22268 shrext_cmds=".so"
22269 postinstall_cmds=
22270 postuninstall_cmds=
22271 finish_cmds=
22272 finish_eval=
22273 shlibpath_var=
22274 shlibpath_overrides_runpath=unknown
22275 version_type=none
22276 dynamic_linker="$host_os ld.so"
22277 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22278 if test "$GCC" = yes; then
22279   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22280   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22281     # if the path contains ";" then we assume it to be the separator
22282     # otherwise default to the standard path separator (i.e. ":") - it is
22283     # assumed that no part of a normal pathname contains ";" but that should
22284     # okay in the real world where ";" in dirpaths is itself problematic.
22285     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22286   else
22287     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22288   fi
22289 else
22290   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22291 fi
22292 need_lib_prefix=unknown
22293 hardcode_into_libs=no
22294
22295 # when you set need_version to no, make sure it does not cause -set_version
22296 # flags to be left without arguments
22297 need_version=unknown
22298
22299 case $host_os in
22300 aix3*)
22301   version_type=linux
22302   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22303   shlibpath_var=LIBPATH
22304
22305   # AIX 3 has no versioning support, so we append a major version to the name.
22306   soname_spec='${libname}${release}${shared_ext}$major'
22307   ;;
22308
22309 aix4* | aix5*)
22310   version_type=linux
22311   need_lib_prefix=no
22312   need_version=no
22313   hardcode_into_libs=yes
22314   if test "$host_cpu" = ia64; then
22315     # AIX 5 supports IA64
22316     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22317     shlibpath_var=LD_LIBRARY_PATH
22318   else
22319     # With GCC up to 2.95.x, collect2 would create an import file
22320     # for dependence libraries.  The import file would start with
22321     # the line `#! .'.  This would cause the generated library to
22322     # depend on `.', always an invalid library.  This was fixed in
22323     # development snapshots of GCC prior to 3.0.
22324     case $host_os in
22325       aix4 | aix4.[01] | aix4.[01].*)
22326       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22327            echo ' yes '
22328            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22329         :
22330       else
22331         can_build_shared=no
22332       fi
22333       ;;
22334     esac
22335     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22336     # soname into executable. Probably we can add versioning support to
22337     # collect2, so additional links can be useful in future.
22338     if test "$aix_use_runtimelinking" = yes; then
22339       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22340       # instead of lib<name>.a to let people know that these are not
22341       # typical AIX shared libraries.
22342       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22343     else
22344       # We preserve .a as extension for shared libraries through AIX4.2
22345       # and later when we are not doing run time linking.
22346       library_names_spec='${libname}${release}.a $libname.a'
22347       soname_spec='${libname}${release}${shared_ext}$major'
22348     fi
22349     shlibpath_var=LIBPATH
22350   fi
22351   ;;
22352
22353 amigaos*)
22354   library_names_spec='$libname.ixlibrary $libname.a'
22355   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22356   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'
22357   ;;
22358
22359 beos*)
22360   library_names_spec='${libname}${shared_ext}'
22361   dynamic_linker="$host_os ld.so"
22362   shlibpath_var=LIBRARY_PATH
22363   ;;
22364
22365 bsdi[45]*)
22366   version_type=linux
22367   need_version=no
22368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22369   soname_spec='${libname}${release}${shared_ext}$major'
22370   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22371   shlibpath_var=LD_LIBRARY_PATH
22372   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22373   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22374   # the default ld.so.conf also contains /usr/contrib/lib and
22375   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22376   # libtool to hard-code these into programs
22377   ;;
22378
22379 cygwin* | mingw* | pw32*)
22380   version_type=windows
22381   shrext_cmds=".dll"
22382   need_version=no
22383   need_lib_prefix=no
22384
22385   case $GCC,$host_os in
22386   yes,cygwin* | yes,mingw* | yes,pw32*)
22387     library_names_spec='$libname.dll.a'
22388     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22389     postinstall_cmds='base_file=`basename \${file}`~
22390       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22391       dldir=$destdir/`dirname \$dlpath`~
22392       test -d \$dldir || mkdir -p \$dldir~
22393       $install_prog $dir/$dlname \$dldir/$dlname'
22394     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22395       dlpath=$dir/\$dldll~
22396        $rm \$dlpath'
22397     shlibpath_overrides_runpath=yes
22398
22399     case $host_os in
22400     cygwin*)
22401       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22402       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22403       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22404       ;;
22405     mingw*)
22406       # MinGW DLLs use traditional 'lib' prefix
22407       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22408       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22409       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22410         # It is most probably a Windows format PATH printed by
22411         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22412         # path with ; separators, and with drive letters. We can handle the
22413         # drive letters (cygwin fileutils understands them), so leave them,
22414         # especially as we might pass files found there to a mingw objdump,
22415         # which wouldn't understand a cygwinified path. Ahh.
22416         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22417       else
22418         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22419       fi
22420       ;;
22421     pw32*)
22422       # pw32 DLLs use 'pw' prefix rather than 'lib'
22423       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22424       ;;
22425     esac
22426     ;;
22427
22428   *)
22429     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22430     ;;
22431   esac
22432   dynamic_linker='Win32 ld.exe'
22433   # FIXME: first we should search . and the directory the executable is in
22434   shlibpath_var=PATH
22435   ;;
22436
22437 darwin* | rhapsody*)
22438   dynamic_linker="$host_os dyld"
22439   version_type=darwin
22440   need_lib_prefix=no
22441   need_version=no
22442   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22443   soname_spec='${libname}${release}${major}$shared_ext'
22444   shlibpath_overrides_runpath=yes
22445   shlibpath_var=DYLD_LIBRARY_PATH
22446   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22447   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22448   if test "$GCC" = yes; then
22449     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"`
22450   else
22451     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22452   fi
22453   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22454   ;;
22455
22456 dgux*)
22457   version_type=linux
22458   need_lib_prefix=no
22459   need_version=no
22460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22461   soname_spec='${libname}${release}${shared_ext}$major'
22462   shlibpath_var=LD_LIBRARY_PATH
22463   ;;
22464
22465 freebsd1*)
22466   dynamic_linker=no
22467   ;;
22468
22469 kfreebsd*-gnu)
22470   version_type=linux
22471   need_lib_prefix=no
22472   need_version=no
22473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22474   soname_spec='${libname}${release}${shared_ext}$major'
22475   shlibpath_var=LD_LIBRARY_PATH
22476   shlibpath_overrides_runpath=no
22477   hardcode_into_libs=yes
22478   dynamic_linker='GNU ld.so'
22479   ;;
22480
22481 freebsd*)
22482   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22483   version_type=freebsd-$objformat
22484   case $version_type in
22485     freebsd-elf*)
22486       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22487       need_version=no
22488       need_lib_prefix=no
22489       ;;
22490     freebsd-*)
22491       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22492       need_version=yes
22493       ;;
22494   esac
22495   shlibpath_var=LD_LIBRARY_PATH
22496   case $host_os in
22497   freebsd2*)
22498     shlibpath_overrides_runpath=yes
22499     ;;
22500   freebsd3.01* | freebsdelf3.01*)
22501     shlibpath_overrides_runpath=yes
22502     hardcode_into_libs=yes
22503     ;;
22504   *) # from 3.2 on
22505     shlibpath_overrides_runpath=no
22506     hardcode_into_libs=yes
22507     ;;
22508   esac
22509   ;;
22510
22511 gnu*)
22512   version_type=linux
22513   need_lib_prefix=no
22514   need_version=no
22515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22516   soname_spec='${libname}${release}${shared_ext}$major'
22517   shlibpath_var=LD_LIBRARY_PATH
22518   hardcode_into_libs=yes
22519   ;;
22520
22521 hpux9* | hpux10* | hpux11*)
22522   # Give a soname corresponding to the major version so that dld.sl refuses to
22523   # link against other versions.
22524   version_type=sunos
22525   need_lib_prefix=no
22526   need_version=no
22527   case "$host_cpu" in
22528   ia64*)
22529     shrext_cmds='.so'
22530     hardcode_into_libs=yes
22531     dynamic_linker="$host_os dld.so"
22532     shlibpath_var=LD_LIBRARY_PATH
22533     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22535     soname_spec='${libname}${release}${shared_ext}$major'
22536     if test "X$HPUX_IA64_MODE" = X32; then
22537       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22538     else
22539       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22540     fi
22541     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22542     ;;
22543    hppa*64*)
22544      shrext_cmds='.sl'
22545      hardcode_into_libs=yes
22546      dynamic_linker="$host_os dld.sl"
22547      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22548      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22549      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22550      soname_spec='${libname}${release}${shared_ext}$major'
22551      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22552      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22553      ;;
22554    *)
22555     shrext_cmds='.sl'
22556     dynamic_linker="$host_os dld.sl"
22557     shlibpath_var=SHLIB_PATH
22558     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22560     soname_spec='${libname}${release}${shared_ext}$major'
22561     ;;
22562   esac
22563   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22564   postinstall_cmds='chmod 555 $lib'
22565   ;;
22566
22567 irix5* | irix6* | nonstopux*)
22568   case $host_os in
22569     nonstopux*) version_type=nonstopux ;;
22570     *)
22571         if test "$lt_cv_prog_gnu_ld" = yes; then
22572                 version_type=linux
22573         else
22574                 version_type=irix
22575         fi ;;
22576   esac
22577   need_lib_prefix=no
22578   need_version=no
22579   soname_spec='${libname}${release}${shared_ext}$major'
22580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22581   case $host_os in
22582   irix5* | nonstopux*)
22583     libsuff= shlibsuff=
22584     ;;
22585   *)
22586     case $LD in # libtool.m4 will add one of these switches to LD
22587     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22588       libsuff= shlibsuff= libmagic=32-bit;;
22589     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22590       libsuff=32 shlibsuff=N32 libmagic=N32;;
22591     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22592       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22593     *) libsuff= shlibsuff= libmagic=never-match;;
22594     esac
22595     ;;
22596   esac
22597   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22598   shlibpath_overrides_runpath=no
22599   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22600   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22601   hardcode_into_libs=yes
22602   ;;
22603
22604 # No shared lib support for Linux oldld, aout, or coff.
22605 linux*oldld* | linux*aout* | linux*coff*)
22606   dynamic_linker=no
22607   ;;
22608
22609 # This must be Linux ELF.
22610 linux*)
22611   version_type=linux
22612   need_lib_prefix=no
22613   need_version=no
22614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22615   soname_spec='${libname}${release}${shared_ext}$major'
22616   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22617   shlibpath_var=LD_LIBRARY_PATH
22618   shlibpath_overrides_runpath=no
22619   # This implies no fast_install, which is unacceptable.
22620   # Some rework will be needed to allow for fast_install
22621   # before this can be enabled.
22622   hardcode_into_libs=yes
22623
22624   # Append ld.so.conf contents to the search path
22625   if test -f /etc/ld.so.conf; then
22626     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22627     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22628   fi
22629
22630   # We used to test for /lib/ld.so.1 and disable shared libraries on
22631   # powerpc, because MkLinux only supported shared libraries with the
22632   # GNU dynamic linker.  Since this was broken with cross compilers,
22633   # most powerpc-linux boxes support dynamic linking these days and
22634   # people can always --disable-shared, the test was removed, and we
22635   # assume the GNU/Linux dynamic linker is in use.
22636   dynamic_linker='GNU/Linux ld.so'
22637   ;;
22638
22639 knetbsd*-gnu)
22640   version_type=linux
22641   need_lib_prefix=no
22642   need_version=no
22643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22644   soname_spec='${libname}${release}${shared_ext}$major'
22645   shlibpath_var=LD_LIBRARY_PATH
22646   shlibpath_overrides_runpath=no
22647   hardcode_into_libs=yes
22648   dynamic_linker='GNU ld.so'
22649   ;;
22650
22651 netbsd*)
22652   version_type=sunos
22653   need_lib_prefix=no
22654   need_version=no
22655   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22657     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22658     dynamic_linker='NetBSD (a.out) ld.so'
22659   else
22660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22661     soname_spec='${libname}${release}${shared_ext}$major'
22662     dynamic_linker='NetBSD ld.elf_so'
22663   fi
22664   shlibpath_var=LD_LIBRARY_PATH
22665   shlibpath_overrides_runpath=yes
22666   hardcode_into_libs=yes
22667   ;;
22668
22669 newsos6)
22670   version_type=linux
22671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672   shlibpath_var=LD_LIBRARY_PATH
22673   shlibpath_overrides_runpath=yes
22674   ;;
22675
22676 nto-qnx*)
22677   version_type=linux
22678   need_lib_prefix=no
22679   need_version=no
22680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681   soname_spec='${libname}${release}${shared_ext}$major'
22682   shlibpath_var=LD_LIBRARY_PATH
22683   shlibpath_overrides_runpath=yes
22684   ;;
22685
22686 openbsd*)
22687   version_type=sunos
22688   need_lib_prefix=no
22689   need_version=no
22690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22691   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22692   shlibpath_var=LD_LIBRARY_PATH
22693   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22694     case $host_os in
22695       openbsd2.[89] | openbsd2.[89].*)
22696         shlibpath_overrides_runpath=no
22697         ;;
22698       *)
22699         shlibpath_overrides_runpath=yes
22700         ;;
22701       esac
22702   else
22703     shlibpath_overrides_runpath=yes
22704   fi
22705   ;;
22706
22707 os2*)
22708   libname_spec='$name'
22709   shrext_cmds=".dll"
22710   need_lib_prefix=no
22711   library_names_spec='$libname${shared_ext} $libname.a'
22712   dynamic_linker='OS/2 ld.exe'
22713   shlibpath_var=LIBPATH
22714   ;;
22715
22716 osf3* | osf4* | osf5*)
22717   version_type=osf
22718   need_lib_prefix=no
22719   need_version=no
22720   soname_spec='${libname}${release}${shared_ext}$major'
22721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22722   shlibpath_var=LD_LIBRARY_PATH
22723   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22724   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22725   ;;
22726
22727 sco3.2v5*)
22728   version_type=osf
22729   soname_spec='${libname}${release}${shared_ext}$major'
22730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731   shlibpath_var=LD_LIBRARY_PATH
22732   ;;
22733
22734 solaris*)
22735   version_type=linux
22736   need_lib_prefix=no
22737   need_version=no
22738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739   soname_spec='${libname}${release}${shared_ext}$major'
22740   shlibpath_var=LD_LIBRARY_PATH
22741   shlibpath_overrides_runpath=yes
22742   hardcode_into_libs=yes
22743   # ldd complains unless libraries are executable
22744   postinstall_cmds='chmod +x $lib'
22745   ;;
22746
22747 sunos4*)
22748   version_type=sunos
22749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22750   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22751   shlibpath_var=LD_LIBRARY_PATH
22752   shlibpath_overrides_runpath=yes
22753   if test "$with_gnu_ld" = yes; then
22754     need_lib_prefix=no
22755   fi
22756   need_version=yes
22757   ;;
22758
22759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22760   version_type=linux
22761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762   soname_spec='${libname}${release}${shared_ext}$major'
22763   shlibpath_var=LD_LIBRARY_PATH
22764   case $host_vendor in
22765     sni)
22766       shlibpath_overrides_runpath=no
22767       need_lib_prefix=no
22768       export_dynamic_flag_spec='${wl}-Blargedynsym'
22769       runpath_var=LD_RUN_PATH
22770       ;;
22771     siemens)
22772       need_lib_prefix=no
22773       ;;
22774     motorola)
22775       need_lib_prefix=no
22776       need_version=no
22777       shlibpath_overrides_runpath=no
22778       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22779       ;;
22780   esac
22781   ;;
22782
22783 sysv4*MP*)
22784   if test -d /usr/nec ;then
22785     version_type=linux
22786     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22787     soname_spec='$libname${shared_ext}.$major'
22788     shlibpath_var=LD_LIBRARY_PATH
22789   fi
22790   ;;
22791
22792 uts4*)
22793   version_type=linux
22794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795   soname_spec='${libname}${release}${shared_ext}$major'
22796   shlibpath_var=LD_LIBRARY_PATH
22797   ;;
22798
22799 *)
22800   dynamic_linker=no
22801   ;;
22802 esac
22803 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22804 echo "${ECHO_T}$dynamic_linker" >&6
22805 test "$dynamic_linker" = no && can_build_shared=no
22806
22807 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22808 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22809 hardcode_action_GCJ=
22810 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22811    test -n "$runpath_var_GCJ" || \
22812    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22813
22814   # We can hardcode non-existant directories.
22815   if test "$hardcode_direct_GCJ" != no &&
22816      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22817      # have to relink, otherwise we might link with an installed library
22818      # when we should be linking with a yet-to-be-installed one
22819      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22820      test "$hardcode_minus_L_GCJ" != no; then
22821     # Linking always hardcodes the temporary library directory.
22822     hardcode_action_GCJ=relink
22823   else
22824     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22825     hardcode_action_GCJ=immediate
22826   fi
22827 else
22828   # We cannot hardcode anything, or else we can only hardcode existing
22829   # directories.
22830   hardcode_action_GCJ=unsupported
22831 fi
22832 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22833 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22834
22835 if test "$hardcode_action_GCJ" = relink; then
22836   # Fast installation is not supported
22837   enable_fast_install=no
22838 elif test "$shlibpath_overrides_runpath" = yes ||
22839      test "$enable_shared" = no; then
22840   # Fast installation is not necessary
22841   enable_fast_install=needless
22842 fi
22843
22844 striplib=
22845 old_striplib=
22846 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22848 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22849   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22850   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22851   echo "$as_me:$LINENO: result: yes" >&5
22852 echo "${ECHO_T}yes" >&6
22853 else
22854 # FIXME - insert some real tests, host_os isn't really good enough
22855   case $host_os in
22856    darwin*)
22857        if test -n "$STRIP" ; then
22858          striplib="$STRIP -x"
22859          echo "$as_me:$LINENO: result: yes" >&5
22860 echo "${ECHO_T}yes" >&6
22861        else
22862   echo "$as_me:$LINENO: result: no" >&5
22863 echo "${ECHO_T}no" >&6
22864 fi
22865        ;;
22866    *)
22867   echo "$as_me:$LINENO: result: no" >&5
22868 echo "${ECHO_T}no" >&6
22869     ;;
22870   esac
22871 fi
22872
22873 if test "x$enable_dlopen" != xyes; then
22874   enable_dlopen=unknown
22875   enable_dlopen_self=unknown
22876   enable_dlopen_self_static=unknown
22877 else
22878   lt_cv_dlopen=no
22879   lt_cv_dlopen_libs=
22880
22881   case $host_os in
22882   beos*)
22883     lt_cv_dlopen="load_add_on"
22884     lt_cv_dlopen_libs=
22885     lt_cv_dlopen_self=yes
22886     ;;
22887
22888   mingw* | pw32*)
22889     lt_cv_dlopen="LoadLibrary"
22890     lt_cv_dlopen_libs=
22891    ;;
22892
22893   cygwin*)
22894     lt_cv_dlopen="dlopen"
22895     lt_cv_dlopen_libs=
22896    ;;
22897
22898   darwin*)
22899   # if libdl is installed we need to link against it
22900     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22903   echo $ECHO_N "(cached) $ECHO_C" >&6
22904 else
22905   ac_check_lib_save_LIBS=$LIBS
22906 LIBS="-ldl  $LIBS"
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913
22914 /* Override any gcc2 internal prototype to avoid an error.  */
22915 #ifdef __cplusplus
22916 extern "C"
22917 #endif
22918 /* We use char because int might match the return type of a gcc2
22919    builtin and then its argument prototype would still apply.  */
22920 char dlopen ();
22921 int
22922 main ()
22923 {
22924 dlopen ();
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22931   (eval $ac_link) 2>conftest.er1
22932   ac_status=$?
22933   grep -v '^ *+' conftest.er1 >conftest.err
22934   rm -f conftest.er1
22935   cat conftest.err >&5
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); } &&
22938          { ac_try='test -z "$ac_c_werror_flag"
22939                          || test ! -s conftest.err'
22940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941   (eval $ac_try) 2>&5
22942   ac_status=$?
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); }; } &&
22945          { ac_try='test -s conftest$ac_exeext'
22946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); }; }; then
22951   ac_cv_lib_dl_dlopen=yes
22952 else
22953   echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22955
22956 ac_cv_lib_dl_dlopen=no
22957 fi
22958 rm -f conftest.err conftest.$ac_objext \
22959       conftest$ac_exeext conftest.$ac_ext
22960 LIBS=$ac_check_lib_save_LIBS
22961 fi
22962 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22964 if test $ac_cv_lib_dl_dlopen = yes; then
22965   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22966 else
22967
22968     lt_cv_dlopen="dyld"
22969     lt_cv_dlopen_libs=
22970     lt_cv_dlopen_self=yes
22971
22972 fi
22973
22974    ;;
22975
22976   *)
22977     echo "$as_me:$LINENO: checking for shl_load" >&5
22978 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22979 if test "${ac_cv_func_shl_load+set}" = set; then
22980   echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22982   cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22990 #define shl_load innocuous_shl_load
22991
22992 /* System header to define __stub macros and hopefully few prototypes,
22993     which can conflict with char shl_load (); below.
22994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22995     <limits.h> exists even on freestanding compilers.  */
22996
22997 #ifdef __STDC__
22998 # include <limits.h>
22999 #else
23000 # include <assert.h>
23001 #endif
23002
23003 #undef shl_load
23004
23005 /* Override any gcc2 internal prototype to avoid an error.  */
23006 #ifdef __cplusplus
23007 extern "C"
23008 {
23009 #endif
23010 /* We use char because int might match the return type of a gcc2
23011    builtin and then its argument prototype would still apply.  */
23012 char shl_load ();
23013 /* The GNU C library defines this for functions which it implements
23014     to always fail with ENOSYS.  Some functions are actually named
23015     something starting with __ and the normal name is an alias.  */
23016 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23017 choke me
23018 #else
23019 char (*f) () = shl_load;
23020 #endif
23021 #ifdef __cplusplus
23022 }
23023 #endif
23024
23025 int
23026 main ()
23027 {
23028 return f != shl_load;
23029   ;
23030   return 0;
23031 }
23032 _ACEOF
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035   (eval $ac_link) 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } &&
23042          { ac_try='test -z "$ac_c_werror_flag"
23043                          || test ! -s conftest.err'
23044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045   (eval $ac_try) 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); }; } &&
23049          { ac_try='test -s conftest$ac_exeext'
23050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051   (eval $ac_try) 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; }; then
23055   ac_cv_func_shl_load=yes
23056 else
23057   echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23059
23060 ac_cv_func_shl_load=no
23061 fi
23062 rm -f conftest.err conftest.$ac_objext \
23063       conftest$ac_exeext conftest.$ac_ext
23064 fi
23065 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23066 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23067 if test $ac_cv_func_shl_load = yes; then
23068   lt_cv_dlopen="shl_load"
23069 else
23070   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23071 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23072 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23073   echo $ECHO_N "(cached) $ECHO_C" >&6
23074 else
23075   ac_check_lib_save_LIBS=$LIBS
23076 LIBS="-ldld  $LIBS"
23077 cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h.  */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h.  */
23083
23084 /* Override any gcc2 internal prototype to avoid an error.  */
23085 #ifdef __cplusplus
23086 extern "C"
23087 #endif
23088 /* We use char because int might match the return type of a gcc2
23089    builtin and then its argument prototype would still apply.  */
23090 char shl_load ();
23091 int
23092 main ()
23093 {
23094 shl_load ();
23095   ;
23096   return 0;
23097 }
23098 _ACEOF
23099 rm -f conftest.$ac_objext conftest$ac_exeext
23100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23101   (eval $ac_link) 2>conftest.er1
23102   ac_status=$?
23103   grep -v '^ *+' conftest.er1 >conftest.err
23104   rm -f conftest.er1
23105   cat conftest.err >&5
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); } &&
23108          { ac_try='test -z "$ac_c_werror_flag"
23109                          || test ! -s conftest.err'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; } &&
23115          { ac_try='test -s conftest$ac_exeext'
23116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117   (eval $ac_try) 2>&5
23118   ac_status=$?
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); }; }; then
23121   ac_cv_lib_dld_shl_load=yes
23122 else
23123   echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126 ac_cv_lib_dld_shl_load=no
23127 fi
23128 rm -f conftest.err conftest.$ac_objext \
23129       conftest$ac_exeext conftest.$ac_ext
23130 LIBS=$ac_check_lib_save_LIBS
23131 fi
23132 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23133 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23134 if test $ac_cv_lib_dld_shl_load = yes; then
23135   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23136 else
23137   echo "$as_me:$LINENO: checking for dlopen" >&5
23138 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23139 if test "${ac_cv_func_dlopen+set}" = set; then
23140   echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142   cat >conftest.$ac_ext <<_ACEOF
23143 /* confdefs.h.  */
23144 _ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h.  */
23148 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23150 #define dlopen innocuous_dlopen
23151
23152 /* System header to define __stub macros and hopefully few prototypes,
23153     which can conflict with char dlopen (); below.
23154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23155     <limits.h> exists even on freestanding compilers.  */
23156
23157 #ifdef __STDC__
23158 # include <limits.h>
23159 #else
23160 # include <assert.h>
23161 #endif
23162
23163 #undef dlopen
23164
23165 /* Override any gcc2 internal prototype to avoid an error.  */
23166 #ifdef __cplusplus
23167 extern "C"
23168 {
23169 #endif
23170 /* We use char because int might match the return type of a gcc2
23171    builtin and then its argument prototype would still apply.  */
23172 char dlopen ();
23173 /* The GNU C library defines this for functions which it implements
23174     to always fail with ENOSYS.  Some functions are actually named
23175     something starting with __ and the normal name is an alias.  */
23176 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23177 choke me
23178 #else
23179 char (*f) () = dlopen;
23180 #endif
23181 #ifdef __cplusplus
23182 }
23183 #endif
23184
23185 int
23186 main ()
23187 {
23188 return f != dlopen;
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext conftest$ac_exeext
23194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195   (eval $ac_link) 2>conftest.er1
23196   ac_status=$?
23197   grep -v '^ *+' conftest.er1 >conftest.err
23198   rm -f conftest.er1
23199   cat conftest.err >&5
23200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201   (exit $ac_status); } &&
23202          { ac_try='test -z "$ac_c_werror_flag"
23203                          || test ! -s conftest.err'
23204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205   (eval $ac_try) 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); }; } &&
23209          { ac_try='test -s conftest$ac_exeext'
23210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211   (eval $ac_try) 2>&5
23212   ac_status=$?
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); }; }; then
23215   ac_cv_func_dlopen=yes
23216 else
23217   echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
23220 ac_cv_func_dlopen=no
23221 fi
23222 rm -f conftest.err conftest.$ac_objext \
23223       conftest$ac_exeext conftest.$ac_ext
23224 fi
23225 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23226 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23227 if test $ac_cv_func_dlopen = yes; then
23228   lt_cv_dlopen="dlopen"
23229 else
23230   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23233   echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235   ac_check_lib_save_LIBS=$LIBS
23236 LIBS="-ldl  $LIBS"
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243
23244 /* Override any gcc2 internal prototype to avoid an error.  */
23245 #ifdef __cplusplus
23246 extern "C"
23247 #endif
23248 /* We use char because int might match the return type of a gcc2
23249    builtin and then its argument prototype would still apply.  */
23250 char dlopen ();
23251 int
23252 main ()
23253 {
23254 dlopen ();
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261   (eval $ac_link) 2>conftest.er1
23262   ac_status=$?
23263   grep -v '^ *+' conftest.er1 >conftest.err
23264   rm -f conftest.er1
23265   cat conftest.err >&5
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } &&
23268          { ac_try='test -z "$ac_c_werror_flag"
23269                          || test ! -s conftest.err'
23270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271   (eval $ac_try) 2>&5
23272   ac_status=$?
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); }; } &&
23275          { ac_try='test -s conftest$ac_exeext'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; }; then
23281   ac_cv_lib_dl_dlopen=yes
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_cv_lib_dl_dlopen=no
23287 fi
23288 rm -f conftest.err conftest.$ac_objext \
23289       conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23291 fi
23292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23294 if test $ac_cv_lib_dl_dlopen = yes; then
23295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23296 else
23297   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23298 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23300   echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302   ac_check_lib_save_LIBS=$LIBS
23303 LIBS="-lsvld  $LIBS"
23304 cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310
23311 /* Override any gcc2 internal prototype to avoid an error.  */
23312 #ifdef __cplusplus
23313 extern "C"
23314 #endif
23315 /* We use char because int might match the return type of a gcc2
23316    builtin and then its argument prototype would still apply.  */
23317 char dlopen ();
23318 int
23319 main ()
23320 {
23321 dlopen ();
23322   ;
23323   return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext conftest$ac_exeext
23327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23328   (eval $ac_link) 2>conftest.er1
23329   ac_status=$?
23330   grep -v '^ *+' conftest.er1 >conftest.err
23331   rm -f conftest.er1
23332   cat conftest.err >&5
23333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334   (exit $ac_status); } &&
23335          { ac_try='test -z "$ac_c_werror_flag"
23336                          || test ! -s conftest.err'
23337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338   (eval $ac_try) 2>&5
23339   ac_status=$?
23340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341   (exit $ac_status); }; } &&
23342          { ac_try='test -s conftest$ac_exeext'
23343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344   (eval $ac_try) 2>&5
23345   ac_status=$?
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); }; }; then
23348   ac_cv_lib_svld_dlopen=yes
23349 else
23350   echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23352
23353 ac_cv_lib_svld_dlopen=no
23354 fi
23355 rm -f conftest.err conftest.$ac_objext \
23356       conftest$ac_exeext conftest.$ac_ext
23357 LIBS=$ac_check_lib_save_LIBS
23358 fi
23359 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23360 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23361 if test $ac_cv_lib_svld_dlopen = yes; then
23362   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23363 else
23364   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23365 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23366 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23367   echo $ECHO_N "(cached) $ECHO_C" >&6
23368 else
23369   ac_check_lib_save_LIBS=$LIBS
23370 LIBS="-ldld  $LIBS"
23371 cat >conftest.$ac_ext <<_ACEOF
23372 /* confdefs.h.  */
23373 _ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h.  */
23377
23378 /* Override any gcc2 internal prototype to avoid an error.  */
23379 #ifdef __cplusplus
23380 extern "C"
23381 #endif
23382 /* We use char because int might match the return type of a gcc2
23383    builtin and then its argument prototype would still apply.  */
23384 char dld_link ();
23385 int
23386 main ()
23387 {
23388 dld_link ();
23389   ;
23390   return 0;
23391 }
23392 _ACEOF
23393 rm -f conftest.$ac_objext conftest$ac_exeext
23394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23395   (eval $ac_link) 2>conftest.er1
23396   ac_status=$?
23397   grep -v '^ *+' conftest.er1 >conftest.err
23398   rm -f conftest.er1
23399   cat conftest.err >&5
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } &&
23402          { ac_try='test -z "$ac_c_werror_flag"
23403                          || test ! -s conftest.err'
23404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405   (eval $ac_try) 2>&5
23406   ac_status=$?
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); }; } &&
23409          { ac_try='test -s conftest$ac_exeext'
23410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411   (eval $ac_try) 2>&5
23412   ac_status=$?
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); }; }; then
23415   ac_cv_lib_dld_dld_link=yes
23416 else
23417   echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23419
23420 ac_cv_lib_dld_dld_link=no
23421 fi
23422 rm -f conftest.err conftest.$ac_objext \
23423       conftest$ac_exeext conftest.$ac_ext
23424 LIBS=$ac_check_lib_save_LIBS
23425 fi
23426 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23427 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23428 if test $ac_cv_lib_dld_dld_link = yes; then
23429   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23430 fi
23431
23432
23433 fi
23434
23435
23436 fi
23437
23438
23439 fi
23440
23441
23442 fi
23443
23444
23445 fi
23446
23447     ;;
23448   esac
23449
23450   if test "x$lt_cv_dlopen" != xno; then
23451     enable_dlopen=yes
23452   else
23453     enable_dlopen=no
23454   fi
23455
23456   case $lt_cv_dlopen in
23457   dlopen)
23458     save_CPPFLAGS="$CPPFLAGS"
23459     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23460
23461     save_LDFLAGS="$LDFLAGS"
23462     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23463
23464     save_LIBS="$LIBS"
23465     LIBS="$lt_cv_dlopen_libs $LIBS"
23466
23467     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23468 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23469 if test "${lt_cv_dlopen_self+set}" = set; then
23470   echo $ECHO_N "(cached) $ECHO_C" >&6
23471 else
23472           if test "$cross_compiling" = yes; then :
23473   lt_cv_dlopen_self=cross
23474 else
23475   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23476   lt_status=$lt_dlunknown
23477   cat > conftest.$ac_ext <<EOF
23478 #line 23478 "configure"
23479 #include "confdefs.h"
23480
23481 #if HAVE_DLFCN_H
23482 #include <dlfcn.h>
23483 #endif
23484
23485 #include <stdio.h>
23486
23487 #ifdef RTLD_GLOBAL
23488 #  define LT_DLGLOBAL           RTLD_GLOBAL
23489 #else
23490 #  ifdef DL_GLOBAL
23491 #    define LT_DLGLOBAL         DL_GLOBAL
23492 #  else
23493 #    define LT_DLGLOBAL         0
23494 #  endif
23495 #endif
23496
23497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23498    find out it does not work in some platform. */
23499 #ifndef LT_DLLAZY_OR_NOW
23500 #  ifdef RTLD_LAZY
23501 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23502 #  else
23503 #    ifdef DL_LAZY
23504 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23505 #    else
23506 #      ifdef RTLD_NOW
23507 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23508 #      else
23509 #        ifdef DL_NOW
23510 #          define LT_DLLAZY_OR_NOW      DL_NOW
23511 #        else
23512 #          define LT_DLLAZY_OR_NOW      0
23513 #        endif
23514 #      endif
23515 #    endif
23516 #  endif
23517 #endif
23518
23519 #ifdef __cplusplus
23520 extern "C" void exit (int);
23521 #endif
23522
23523 void fnord() { int i=42;}
23524 int main ()
23525 {
23526   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23527   int status = $lt_dlunknown;
23528
23529   if (self)
23530     {
23531       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23532       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23533       /* dlclose (self); */
23534     }
23535
23536     exit (status);
23537 }
23538 EOF
23539   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23540   (eval $ac_link) 2>&5
23541   ac_status=$?
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23544     (./conftest; exit; ) 2>/dev/null
23545     lt_status=$?
23546     case x$lt_status in
23547       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23548       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23549       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23550     esac
23551   else :
23552     # compilation failed
23553     lt_cv_dlopen_self=no
23554   fi
23555 fi
23556 rm -fr conftest*
23557
23558
23559 fi
23560 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23561 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23562
23563     if test "x$lt_cv_dlopen_self" = xyes; then
23564       LDFLAGS="$LDFLAGS $link_static_flag"
23565       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23566 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23567 if test "${lt_cv_dlopen_self_static+set}" = set; then
23568   echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570           if test "$cross_compiling" = yes; then :
23571   lt_cv_dlopen_self_static=cross
23572 else
23573   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23574   lt_status=$lt_dlunknown
23575   cat > conftest.$ac_ext <<EOF
23576 #line 23576 "configure"
23577 #include "confdefs.h"
23578
23579 #if HAVE_DLFCN_H
23580 #include <dlfcn.h>
23581 #endif
23582
23583 #include <stdio.h>
23584
23585 #ifdef RTLD_GLOBAL
23586 #  define LT_DLGLOBAL           RTLD_GLOBAL
23587 #else
23588 #  ifdef DL_GLOBAL
23589 #    define LT_DLGLOBAL         DL_GLOBAL
23590 #  else
23591 #    define LT_DLGLOBAL         0
23592 #  endif
23593 #endif
23594
23595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23596    find out it does not work in some platform. */
23597 #ifndef LT_DLLAZY_OR_NOW
23598 #  ifdef RTLD_LAZY
23599 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23600 #  else
23601 #    ifdef DL_LAZY
23602 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23603 #    else
23604 #      ifdef RTLD_NOW
23605 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23606 #      else
23607 #        ifdef DL_NOW
23608 #          define LT_DLLAZY_OR_NOW      DL_NOW
23609 #        else
23610 #          define LT_DLLAZY_OR_NOW      0
23611 #        endif
23612 #      endif
23613 #    endif
23614 #  endif
23615 #endif
23616
23617 #ifdef __cplusplus
23618 extern "C" void exit (int);
23619 #endif
23620
23621 void fnord() { int i=42;}
23622 int main ()
23623 {
23624   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23625   int status = $lt_dlunknown;
23626
23627   if (self)
23628     {
23629       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23630       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23631       /* dlclose (self); */
23632     }
23633
23634     exit (status);
23635 }
23636 EOF
23637   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23638   (eval $ac_link) 2>&5
23639   ac_status=$?
23640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23642     (./conftest; exit; ) 2>/dev/null
23643     lt_status=$?
23644     case x$lt_status in
23645       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23646       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23647       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23648     esac
23649   else :
23650     # compilation failed
23651     lt_cv_dlopen_self_static=no
23652   fi
23653 fi
23654 rm -fr conftest*
23655
23656
23657 fi
23658 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23659 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23660     fi
23661
23662     CPPFLAGS="$save_CPPFLAGS"
23663     LDFLAGS="$save_LDFLAGS"
23664     LIBS="$save_LIBS"
23665     ;;
23666   esac
23667
23668   case $lt_cv_dlopen_self in
23669   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23670   *) enable_dlopen_self=unknown ;;
23671   esac
23672
23673   case $lt_cv_dlopen_self_static in
23674   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23675   *) enable_dlopen_self_static=unknown ;;
23676   esac
23677 fi
23678
23679
23680 # The else clause should only fire when bootstrapping the
23681 # libtool distribution, otherwise you forgot to ship ltmain.sh
23682 # with your package, and you will get complaints that there are
23683 # no rules to generate ltmain.sh.
23684 if test -f "$ltmain"; then
23685   # See if we are running on zsh, and set the options which allow our commands through
23686   # without removal of \ escapes.
23687   if test -n "${ZSH_VERSION+set}" ; then
23688     setopt NO_GLOB_SUBST
23689   fi
23690   # Now quote all the things that may contain metacharacters while being
23691   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23692   # variables and quote the copies for generation of the libtool script.
23693   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23694     SED SHELL STRIP \
23695     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23696     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23697     deplibs_check_method reload_flag reload_cmds need_locks \
23698     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23699     lt_cv_sys_global_symbol_to_c_name_address \
23700     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23701     old_postinstall_cmds old_postuninstall_cmds \
23702     compiler_GCJ \
23703     CC_GCJ \
23704     LD_GCJ \
23705     lt_prog_compiler_wl_GCJ \
23706     lt_prog_compiler_pic_GCJ \
23707     lt_prog_compiler_static_GCJ \
23708     lt_prog_compiler_no_builtin_flag_GCJ \
23709     export_dynamic_flag_spec_GCJ \
23710     thread_safe_flag_spec_GCJ \
23711     whole_archive_flag_spec_GCJ \
23712     enable_shared_with_static_runtimes_GCJ \
23713     old_archive_cmds_GCJ \
23714     old_archive_from_new_cmds_GCJ \
23715     predep_objects_GCJ \
23716     postdep_objects_GCJ \
23717     predeps_GCJ \
23718     postdeps_GCJ \
23719     compiler_lib_search_path_GCJ \
23720     archive_cmds_GCJ \
23721     archive_expsym_cmds_GCJ \
23722     postinstall_cmds_GCJ \
23723     postuninstall_cmds_GCJ \
23724     old_archive_from_expsyms_cmds_GCJ \
23725     allow_undefined_flag_GCJ \
23726     no_undefined_flag_GCJ \
23727     export_symbols_cmds_GCJ \
23728     hardcode_libdir_flag_spec_GCJ \
23729     hardcode_libdir_flag_spec_ld_GCJ \
23730     hardcode_libdir_separator_GCJ \
23731     hardcode_automatic_GCJ \
23732     module_cmds_GCJ \
23733     module_expsym_cmds_GCJ \
23734     lt_cv_prog_compiler_c_o_GCJ \
23735     exclude_expsyms_GCJ \
23736     include_expsyms_GCJ; do
23737
23738     case $var in
23739     old_archive_cmds_GCJ | \
23740     old_archive_from_new_cmds_GCJ | \
23741     archive_cmds_GCJ | \
23742     archive_expsym_cmds_GCJ | \
23743     module_cmds_GCJ | \
23744     module_expsym_cmds_GCJ | \
23745     old_archive_from_expsyms_cmds_GCJ | \
23746     export_symbols_cmds_GCJ | \
23747     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23748     postinstall_cmds | postuninstall_cmds | \
23749     old_postinstall_cmds | old_postuninstall_cmds | \
23750     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23751       # Double-quote double-evaled strings.
23752       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23753       ;;
23754     *)
23755       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23756       ;;
23757     esac
23758   done
23759
23760   case $lt_echo in
23761   *'\$0 --fallback-echo"')
23762     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23763     ;;
23764   esac
23765
23766 cfgfile="$ofile"
23767
23768   cat <<__EOF__ >> "$cfgfile"
23769 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23770
23771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23772
23773 # Shell to use when invoking shell scripts.
23774 SHELL=$lt_SHELL
23775
23776 # Whether or not to build shared libraries.
23777 build_libtool_libs=$enable_shared
23778
23779 # Whether or not to build static libraries.
23780 build_old_libs=$enable_static
23781
23782 # Whether or not to add -lc for building shared libraries.
23783 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23784
23785 # Whether or not to disallow shared libs when runtime libs are static
23786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23787
23788 # Whether or not to optimize for fast installation.
23789 fast_install=$enable_fast_install
23790
23791 # The host system.
23792 host_alias=$host_alias
23793 host=$host
23794
23795 # An echo program that does not interpret backslashes.
23796 echo=$lt_echo
23797
23798 # The archiver.
23799 AR=$lt_AR
23800 AR_FLAGS=$lt_AR_FLAGS
23801
23802 # A C compiler.
23803 LTCC=$lt_LTCC
23804
23805 # A language-specific compiler.
23806 CC=$lt_compiler_GCJ
23807
23808 # Is the compiler the GNU C compiler?
23809 with_gcc=$GCC_GCJ
23810
23811 # An ERE matcher.
23812 EGREP=$lt_EGREP
23813
23814 # The linker used to build libraries.
23815 LD=$lt_LD_GCJ
23816
23817 # Whether we need hard or soft links.
23818 LN_S=$lt_LN_S
23819
23820 # A BSD-compatible nm program.
23821 NM=$lt_NM
23822
23823 # A symbol stripping program
23824 STRIP=$lt_STRIP
23825
23826 # Used to examine libraries when file_magic_cmd begins "file"
23827 MAGIC_CMD=$MAGIC_CMD
23828
23829 # Used on cygwin: DLL creation program.
23830 DLLTOOL="$DLLTOOL"
23831
23832 # Used on cygwin: object dumper.
23833 OBJDUMP="$OBJDUMP"
23834
23835 # Used on cygwin: assembler.
23836 AS="$AS"
23837
23838 # The name of the directory that contains temporary libtool files.
23839 objdir=$objdir
23840
23841 # How to create reloadable object files.
23842 reload_flag=$lt_reload_flag
23843 reload_cmds=$lt_reload_cmds
23844
23845 # How to pass a linker flag through the compiler.
23846 wl=$lt_lt_prog_compiler_wl_GCJ
23847
23848 # Object file suffix (normally "o").
23849 objext="$ac_objext"
23850
23851 # Old archive suffix (normally "a").
23852 libext="$libext"
23853
23854 # Shared library suffix (normally ".so").
23855 shrext_cmds='$shrext_cmds'
23856
23857 # Executable file suffix (normally "").
23858 exeext="$exeext"
23859
23860 # Additional compiler flags for building library objects.
23861 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23862 pic_mode=$pic_mode
23863
23864 # What is the maximum length of a command?
23865 max_cmd_len=$lt_cv_sys_max_cmd_len
23866
23867 # Does compiler simultaneously support -c and -o options?
23868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23869
23870 # Must we lock files when doing compilation ?
23871 need_locks=$lt_need_locks
23872
23873 # Do we need the lib prefix for modules?
23874 need_lib_prefix=$need_lib_prefix
23875
23876 # Do we need a version for libraries?
23877 need_version=$need_version
23878
23879 # Whether dlopen is supported.
23880 dlopen_support=$enable_dlopen
23881
23882 # Whether dlopen of programs is supported.
23883 dlopen_self=$enable_dlopen_self
23884
23885 # Whether dlopen of statically linked programs is supported.
23886 dlopen_self_static=$enable_dlopen_self_static
23887
23888 # Compiler flag to prevent dynamic linking.
23889 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23890
23891 # Compiler flag to turn off builtin functions.
23892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23893
23894 # Compiler flag to allow reflexive dlopens.
23895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23896
23897 # Compiler flag to generate shared objects directly from archives.
23898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23899
23900 # Compiler flag to generate thread-safe objects.
23901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23902
23903 # Library versioning type.
23904 version_type=$version_type
23905
23906 # Format of library name prefix.
23907 libname_spec=$lt_libname_spec
23908
23909 # List of archive names.  First name is the real one, the rest are links.
23910 # The last name is the one that the linker finds with -lNAME.
23911 library_names_spec=$lt_library_names_spec
23912
23913 # The coded name of the library, if different from the real name.
23914 soname_spec=$lt_soname_spec
23915
23916 # Commands used to build and install an old-style archive.
23917 RANLIB=$lt_RANLIB
23918 old_archive_cmds=$lt_old_archive_cmds_GCJ
23919 old_postinstall_cmds=$lt_old_postinstall_cmds
23920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23921
23922 # Create an old-style archive from a shared archive.
23923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23924
23925 # Create a temporary old-style archive to link instead of a shared archive.
23926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23927
23928 # Commands used to build and install a shared archive.
23929 archive_cmds=$lt_archive_cmds_GCJ
23930 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23931 postinstall_cmds=$lt_postinstall_cmds
23932 postuninstall_cmds=$lt_postuninstall_cmds
23933
23934 # Commands used to build a loadable module (assumed same as above if empty)
23935 module_cmds=$lt_module_cmds_GCJ
23936 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23937
23938 # Commands to strip libraries.
23939 old_striplib=$lt_old_striplib
23940 striplib=$lt_striplib
23941
23942 # Dependencies to place before the objects being linked to create a
23943 # shared library.
23944 predep_objects=$lt_predep_objects_GCJ
23945
23946 # Dependencies to place after the objects being linked to create a
23947 # shared library.
23948 postdep_objects=$lt_postdep_objects_GCJ
23949
23950 # Dependencies to place before the objects being linked to create a
23951 # shared library.
23952 predeps=$lt_predeps_GCJ
23953
23954 # Dependencies to place after the objects being linked to create a
23955 # shared library.
23956 postdeps=$lt_postdeps_GCJ
23957
23958 # The library search path used internally by the compiler when linking
23959 # a shared library.
23960 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23961
23962 # Method to check whether dependent libraries are shared objects.
23963 deplibs_check_method=$lt_deplibs_check_method
23964
23965 # Command to use when deplibs_check_method == file_magic.
23966 file_magic_cmd=$lt_file_magic_cmd
23967
23968 # Flag that allows shared libraries with undefined symbols to be built.
23969 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23970
23971 # Flag that forces no undefined symbols.
23972 no_undefined_flag=$lt_no_undefined_flag_GCJ
23973
23974 # Commands used to finish a libtool library installation in a directory.
23975 finish_cmds=$lt_finish_cmds
23976
23977 # Same as above, but a single script fragment to be evaled but not shown.
23978 finish_eval=$lt_finish_eval
23979
23980 # Take the output of nm and produce a listing of raw symbols and C names.
23981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23982
23983 # Transform the output of nm in a proper C declaration
23984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23985
23986 # Transform the output of nm in a C name address pair
23987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23988
23989 # This is the shared library runtime path variable.
23990 runpath_var=$runpath_var
23991
23992 # This is the shared library path variable.
23993 shlibpath_var=$shlibpath_var
23994
23995 # Is shlibpath searched before the hard-coded library search path?
23996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23997
23998 # How to hardcode a shared library path into an executable.
23999 hardcode_action=$hardcode_action_GCJ
24000
24001 # Whether we should hardcode library paths into libraries.
24002 hardcode_into_libs=$hardcode_into_libs
24003
24004 # Flag to hardcode \$libdir into a binary during linking.
24005 # This must work even if \$libdir does not exist.
24006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24007
24008 # If ld is used when linking, flag to hardcode \$libdir into
24009 # a binary during linking. This must work even if \$libdir does
24010 # not exist.
24011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24012
24013 # Whether we need a single -rpath flag with a separated argument.
24014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24015
24016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24017 # resulting binary.
24018 hardcode_direct=$hardcode_direct_GCJ
24019
24020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24021 # resulting binary.
24022 hardcode_minus_L=$hardcode_minus_L_GCJ
24023
24024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24025 # the resulting binary.
24026 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24027
24028 # Set to yes if building a shared library automatically hardcodes DIR into the library
24029 # and all subsequent libraries and executables linked against it.
24030 hardcode_automatic=$hardcode_automatic_GCJ
24031
24032 # Variables whose values should be saved in libtool wrapper scripts and
24033 # restored at relink time.
24034 variables_saved_for_relink="$variables_saved_for_relink"
24035
24036 # Whether libtool must link a program against all its dependency libraries.
24037 link_all_deplibs=$link_all_deplibs_GCJ
24038
24039 # Compile-time system search path for libraries
24040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24041
24042 # Run-time system search path for libraries
24043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24044
24045 # Fix the shell variable \$srcfile for the compiler.
24046 fix_srcfile_path="$fix_srcfile_path_GCJ"
24047
24048 # Set to yes if exported symbols are required.
24049 always_export_symbols=$always_export_symbols_GCJ
24050
24051 # The commands to list exported symbols.
24052 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24053
24054 # The commands to extract the exported symbol list from a shared archive.
24055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24056
24057 # Symbols that should not be listed in the preloaded symbols.
24058 exclude_expsyms=$lt_exclude_expsyms_GCJ
24059
24060 # Symbols that must always be exported.
24061 include_expsyms=$lt_include_expsyms_GCJ
24062
24063 # ### END LIBTOOL TAG CONFIG: $tagname
24064
24065 __EOF__
24066
24067
24068 else
24069   # If there is no Makefile yet, we rely on a make rule to execute
24070   # `config.status --recheck' to rerun these tests and create the
24071   # libtool script then.
24072   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24073   if test -f "$ltmain_in"; then
24074     test -f Makefile && make "$ltmain"
24075   fi
24076 fi
24077
24078
24079 ac_ext=c
24080 ac_cpp='$CPP $CPPFLAGS'
24081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24084
24085 CC="$lt_save_CC"
24086
24087         else
24088           tagname=""
24089         fi
24090         ;;
24091
24092       RC)
24093         ac_ext=c
24094 ac_cpp='$CPP $CPPFLAGS'
24095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24098
24099
24100 # Source file extension for RC test sources.
24101 ac_ext=rc
24102
24103 # Object file extension for compiled RC test sources.
24104 objext=o
24105 objext_RC=$objext
24106
24107 # Code to be used in simple compile tests
24108 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24109
24110 # Code to be used in simple link tests
24111 lt_simple_link_test_code="$lt_simple_compile_test_code"
24112
24113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24114
24115 # If no C compiler was specified, use CC.
24116 LTCC=${LTCC-"$CC"}
24117
24118 # Allow CC to be a program name with arguments.
24119 compiler=$CC
24120
24121
24122 # Allow CC to be a program name with arguments.
24123 lt_save_CC="$CC"
24124 CC=${RC-"windres"}
24125 compiler=$CC
24126 compiler_RC=$CC
24127 lt_cv_prog_compiler_c_o_RC=yes
24128
24129 # The else clause should only fire when bootstrapping the
24130 # libtool distribution, otherwise you forgot to ship ltmain.sh
24131 # with your package, and you will get complaints that there are
24132 # no rules to generate ltmain.sh.
24133 if test -f "$ltmain"; then
24134   # See if we are running on zsh, and set the options which allow our commands through
24135   # without removal of \ escapes.
24136   if test -n "${ZSH_VERSION+set}" ; then
24137     setopt NO_GLOB_SUBST
24138   fi
24139   # Now quote all the things that may contain metacharacters while being
24140   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24141   # variables and quote the copies for generation of the libtool script.
24142   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24143     SED SHELL STRIP \
24144     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24145     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24146     deplibs_check_method reload_flag reload_cmds need_locks \
24147     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24148     lt_cv_sys_global_symbol_to_c_name_address \
24149     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24150     old_postinstall_cmds old_postuninstall_cmds \
24151     compiler_RC \
24152     CC_RC \
24153     LD_RC \
24154     lt_prog_compiler_wl_RC \
24155     lt_prog_compiler_pic_RC \
24156     lt_prog_compiler_static_RC \
24157     lt_prog_compiler_no_builtin_flag_RC \
24158     export_dynamic_flag_spec_RC \
24159     thread_safe_flag_spec_RC \
24160     whole_archive_flag_spec_RC \
24161     enable_shared_with_static_runtimes_RC \
24162     old_archive_cmds_RC \
24163     old_archive_from_new_cmds_RC \
24164     predep_objects_RC \
24165     postdep_objects_RC \
24166     predeps_RC \
24167     postdeps_RC \
24168     compiler_lib_search_path_RC \
24169     archive_cmds_RC \
24170     archive_expsym_cmds_RC \
24171     postinstall_cmds_RC \
24172     postuninstall_cmds_RC \
24173     old_archive_from_expsyms_cmds_RC \
24174     allow_undefined_flag_RC \
24175     no_undefined_flag_RC \
24176     export_symbols_cmds_RC \
24177     hardcode_libdir_flag_spec_RC \
24178     hardcode_libdir_flag_spec_ld_RC \
24179     hardcode_libdir_separator_RC \
24180     hardcode_automatic_RC \
24181     module_cmds_RC \
24182     module_expsym_cmds_RC \
24183     lt_cv_prog_compiler_c_o_RC \
24184     exclude_expsyms_RC \
24185     include_expsyms_RC; do
24186
24187     case $var in
24188     old_archive_cmds_RC | \
24189     old_archive_from_new_cmds_RC | \
24190     archive_cmds_RC | \
24191     archive_expsym_cmds_RC | \
24192     module_cmds_RC | \
24193     module_expsym_cmds_RC | \
24194     old_archive_from_expsyms_cmds_RC | \
24195     export_symbols_cmds_RC | \
24196     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24197     postinstall_cmds | postuninstall_cmds | \
24198     old_postinstall_cmds | old_postuninstall_cmds | \
24199     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24200       # Double-quote double-evaled strings.
24201       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24202       ;;
24203     *)
24204       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24205       ;;
24206     esac
24207   done
24208
24209   case $lt_echo in
24210   *'\$0 --fallback-echo"')
24211     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24212     ;;
24213   esac
24214
24215 cfgfile="$ofile"
24216
24217   cat <<__EOF__ >> "$cfgfile"
24218 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24219
24220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24221
24222 # Shell to use when invoking shell scripts.
24223 SHELL=$lt_SHELL
24224
24225 # Whether or not to build shared libraries.
24226 build_libtool_libs=$enable_shared
24227
24228 # Whether or not to build static libraries.
24229 build_old_libs=$enable_static
24230
24231 # Whether or not to add -lc for building shared libraries.
24232 build_libtool_need_lc=$archive_cmds_need_lc_RC
24233
24234 # Whether or not to disallow shared libs when runtime libs are static
24235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24236
24237 # Whether or not to optimize for fast installation.
24238 fast_install=$enable_fast_install
24239
24240 # The host system.
24241 host_alias=$host_alias
24242 host=$host
24243
24244 # An echo program that does not interpret backslashes.
24245 echo=$lt_echo
24246
24247 # The archiver.
24248 AR=$lt_AR
24249 AR_FLAGS=$lt_AR_FLAGS
24250
24251 # A C compiler.
24252 LTCC=$lt_LTCC
24253
24254 # A language-specific compiler.
24255 CC=$lt_compiler_RC
24256
24257 # Is the compiler the GNU C compiler?
24258 with_gcc=$GCC_RC
24259
24260 # An ERE matcher.
24261 EGREP=$lt_EGREP
24262
24263 # The linker used to build libraries.
24264 LD=$lt_LD_RC
24265
24266 # Whether we need hard or soft links.
24267 LN_S=$lt_LN_S
24268
24269 # A BSD-compatible nm program.
24270 NM=$lt_NM
24271
24272 # A symbol stripping program
24273 STRIP=$lt_STRIP
24274
24275 # Used to examine libraries when file_magic_cmd begins "file"
24276 MAGIC_CMD=$MAGIC_CMD
24277
24278 # Used on cygwin: DLL creation program.
24279 DLLTOOL="$DLLTOOL"
24280
24281 # Used on cygwin: object dumper.
24282 OBJDUMP="$OBJDUMP"
24283
24284 # Used on cygwin: assembler.
24285 AS="$AS"
24286
24287 # The name of the directory that contains temporary libtool files.
24288 objdir=$objdir
24289
24290 # How to create reloadable object files.
24291 reload_flag=$lt_reload_flag
24292 reload_cmds=$lt_reload_cmds
24293
24294 # How to pass a linker flag through the compiler.
24295 wl=$lt_lt_prog_compiler_wl_RC
24296
24297 # Object file suffix (normally "o").
24298 objext="$ac_objext"
24299
24300 # Old archive suffix (normally "a").
24301 libext="$libext"
24302
24303 # Shared library suffix (normally ".so").
24304 shrext_cmds='$shrext_cmds'
24305
24306 # Executable file suffix (normally "").
24307 exeext="$exeext"
24308
24309 # Additional compiler flags for building library objects.
24310 pic_flag=$lt_lt_prog_compiler_pic_RC
24311 pic_mode=$pic_mode
24312
24313 # What is the maximum length of a command?
24314 max_cmd_len=$lt_cv_sys_max_cmd_len
24315
24316 # Does compiler simultaneously support -c and -o options?
24317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24318
24319 # Must we lock files when doing compilation ?
24320 need_locks=$lt_need_locks
24321
24322 # Do we need the lib prefix for modules?
24323 need_lib_prefix=$need_lib_prefix
24324
24325 # Do we need a version for libraries?
24326 need_version=$need_version
24327
24328 # Whether dlopen is supported.
24329 dlopen_support=$enable_dlopen
24330
24331 # Whether dlopen of programs is supported.
24332 dlopen_self=$enable_dlopen_self
24333
24334 # Whether dlopen of statically linked programs is supported.
24335 dlopen_self_static=$enable_dlopen_self_static
24336
24337 # Compiler flag to prevent dynamic linking.
24338 link_static_flag=$lt_lt_prog_compiler_static_RC
24339
24340 # Compiler flag to turn off builtin functions.
24341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24342
24343 # Compiler flag to allow reflexive dlopens.
24344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24345
24346 # Compiler flag to generate shared objects directly from archives.
24347 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24348
24349 # Compiler flag to generate thread-safe objects.
24350 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24351
24352 # Library versioning type.
24353 version_type=$version_type
24354
24355 # Format of library name prefix.
24356 libname_spec=$lt_libname_spec
24357
24358 # List of archive names.  First name is the real one, the rest are links.
24359 # The last name is the one that the linker finds with -lNAME.
24360 library_names_spec=$lt_library_names_spec
24361
24362 # The coded name of the library, if different from the real name.
24363 soname_spec=$lt_soname_spec
24364
24365 # Commands used to build and install an old-style archive.
24366 RANLIB=$lt_RANLIB
24367 old_archive_cmds=$lt_old_archive_cmds_RC
24368 old_postinstall_cmds=$lt_old_postinstall_cmds
24369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24370
24371 # Create an old-style archive from a shared archive.
24372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24373
24374 # Create a temporary old-style archive to link instead of a shared archive.
24375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24376
24377 # Commands used to build and install a shared archive.
24378 archive_cmds=$lt_archive_cmds_RC
24379 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24380 postinstall_cmds=$lt_postinstall_cmds
24381 postuninstall_cmds=$lt_postuninstall_cmds
24382
24383 # Commands used to build a loadable module (assumed same as above if empty)
24384 module_cmds=$lt_module_cmds_RC
24385 module_expsym_cmds=$lt_module_expsym_cmds_RC
24386
24387 # Commands to strip libraries.
24388 old_striplib=$lt_old_striplib
24389 striplib=$lt_striplib
24390
24391 # Dependencies to place before the objects being linked to create a
24392 # shared library.
24393 predep_objects=$lt_predep_objects_RC
24394
24395 # Dependencies to place after the objects being linked to create a
24396 # shared library.
24397 postdep_objects=$lt_postdep_objects_RC
24398
24399 # Dependencies to place before the objects being linked to create a
24400 # shared library.
24401 predeps=$lt_predeps_RC
24402
24403 # Dependencies to place after the objects being linked to create a
24404 # shared library.
24405 postdeps=$lt_postdeps_RC
24406
24407 # The library search path used internally by the compiler when linking
24408 # a shared library.
24409 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24410
24411 # Method to check whether dependent libraries are shared objects.
24412 deplibs_check_method=$lt_deplibs_check_method
24413
24414 # Command to use when deplibs_check_method == file_magic.
24415 file_magic_cmd=$lt_file_magic_cmd
24416
24417 # Flag that allows shared libraries with undefined symbols to be built.
24418 allow_undefined_flag=$lt_allow_undefined_flag_RC
24419
24420 # Flag that forces no undefined symbols.
24421 no_undefined_flag=$lt_no_undefined_flag_RC
24422
24423 # Commands used to finish a libtool library installation in a directory.
24424 finish_cmds=$lt_finish_cmds
24425
24426 # Same as above, but a single script fragment to be evaled but not shown.
24427 finish_eval=$lt_finish_eval
24428
24429 # Take the output of nm and produce a listing of raw symbols and C names.
24430 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24431
24432 # Transform the output of nm in a proper C declaration
24433 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24434
24435 # Transform the output of nm in a C name address pair
24436 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24437
24438 # This is the shared library runtime path variable.
24439 runpath_var=$runpath_var
24440
24441 # This is the shared library path variable.
24442 shlibpath_var=$shlibpath_var
24443
24444 # Is shlibpath searched before the hard-coded library search path?
24445 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24446
24447 # How to hardcode a shared library path into an executable.
24448 hardcode_action=$hardcode_action_RC
24449
24450 # Whether we should hardcode library paths into libraries.
24451 hardcode_into_libs=$hardcode_into_libs
24452
24453 # Flag to hardcode \$libdir into a binary during linking.
24454 # This must work even if \$libdir does not exist.
24455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24456
24457 # If ld is used when linking, flag to hardcode \$libdir into
24458 # a binary during linking. This must work even if \$libdir does
24459 # not exist.
24460 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24461
24462 # Whether we need a single -rpath flag with a separated argument.
24463 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24464
24465 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24466 # resulting binary.
24467 hardcode_direct=$hardcode_direct_RC
24468
24469 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24470 # resulting binary.
24471 hardcode_minus_L=$hardcode_minus_L_RC
24472
24473 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24474 # the resulting binary.
24475 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24476
24477 # Set to yes if building a shared library automatically hardcodes DIR into the library
24478 # and all subsequent libraries and executables linked against it.
24479 hardcode_automatic=$hardcode_automatic_RC
24480
24481 # Variables whose values should be saved in libtool wrapper scripts and
24482 # restored at relink time.
24483 variables_saved_for_relink="$variables_saved_for_relink"
24484
24485 # Whether libtool must link a program against all its dependency libraries.
24486 link_all_deplibs=$link_all_deplibs_RC
24487
24488 # Compile-time system search path for libraries
24489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24490
24491 # Run-time system search path for libraries
24492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24493
24494 # Fix the shell variable \$srcfile for the compiler.
24495 fix_srcfile_path="$fix_srcfile_path_RC"
24496
24497 # Set to yes if exported symbols are required.
24498 always_export_symbols=$always_export_symbols_RC
24499
24500 # The commands to list exported symbols.
24501 export_symbols_cmds=$lt_export_symbols_cmds_RC
24502
24503 # The commands to extract the exported symbol list from a shared archive.
24504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24505
24506 # Symbols that should not be listed in the preloaded symbols.
24507 exclude_expsyms=$lt_exclude_expsyms_RC
24508
24509 # Symbols that must always be exported.
24510 include_expsyms=$lt_include_expsyms_RC
24511
24512 # ### END LIBTOOL TAG CONFIG: $tagname
24513
24514 __EOF__
24515
24516
24517 else
24518   # If there is no Makefile yet, we rely on a make rule to execute
24519   # `config.status --recheck' to rerun these tests and create the
24520   # libtool script then.
24521   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24522   if test -f "$ltmain_in"; then
24523     test -f Makefile && make "$ltmain"
24524   fi
24525 fi
24526
24527
24528 ac_ext=c
24529 ac_cpp='$CPP $CPPFLAGS'
24530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24533
24534 CC="$lt_save_CC"
24535
24536         ;;
24537
24538       *)
24539         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24540 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24541    { (exit 1); exit 1; }; }
24542         ;;
24543       esac
24544
24545       # Append the new tag name to the list of available tags.
24546       if test -n "$tagname" ; then
24547       available_tags="$available_tags $tagname"
24548     fi
24549     fi
24550   done
24551   IFS="$lt_save_ifs"
24552
24553   # Now substitute the updated list of available tags.
24554   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24555     mv "${ofile}T" "$ofile"
24556     chmod +x "$ofile"
24557   else
24558     rm -f "${ofile}T"
24559     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24560 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24561    { (exit 1); exit 1; }; }
24562   fi
24563 fi
24564
24565
24566
24567 # This can be used to rebuild libtool when needed
24568 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24569
24570 # Always use our own libtool.
24571 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24572
24573 # Prevent multiple expansion
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595 etags_version=`$ETAGS --version 2>&1`
24596 case "$etags_version" in
24597         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24598         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24599         *) ETAGSFLAGS="" ;;
24600 esac
24601 ETAGSFLAGS=$ETAGSFLAGS
24602
24603
24604 if test "$WITH_LLVMGCCDIR" = "default" ; then
24605   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24606 set dummy llvm-gcc; ac_word=$2
24607 echo "$as_me:$LINENO: checking for $ac_word" >&5
24608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24609 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24610   echo $ECHO_N "(cached) $ECHO_C" >&6
24611 else
24612   case $LLVMGCC in
24613   [\\/]* | ?:[\\/]*)
24614   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24615   ;;
24616   *)
24617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24618 for as_dir in $PATH
24619 do
24620   IFS=$as_save_IFS
24621   test -z "$as_dir" && as_dir=.
24622   for ac_exec_ext in '' $ac_executable_extensions; do
24623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24624     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24626     break 2
24627   fi
24628 done
24629 done
24630
24631   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24632   ;;
24633 esac
24634 fi
24635 LLVMGCC=$ac_cv_path_LLVMGCC
24636
24637 if test -n "$LLVMGCC"; then
24638   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24639 echo "${ECHO_T}$LLVMGCC" >&6
24640 else
24641   echo "$as_me:$LINENO: result: no" >&5
24642 echo "${ECHO_T}no" >&6
24643 fi
24644
24645   # Extract the first word of "llvm-g++", so it can be a program name with args.
24646 set dummy llvm-g++; ac_word=$2
24647 echo "$as_me:$LINENO: checking for $ac_word" >&5
24648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24649 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24650   echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652   case $LLVMGXX in
24653   [\\/]* | ?:[\\/]*)
24654   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24655   ;;
24656   *)
24657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24658 for as_dir in $PATH
24659 do
24660   IFS=$as_save_IFS
24661   test -z "$as_dir" && as_dir=.
24662   for ac_exec_ext in '' $ac_executable_extensions; do
24663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24664     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24666     break 2
24667   fi
24668 done
24669 done
24670
24671   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24672   ;;
24673 esac
24674 fi
24675 LLVMGXX=$ac_cv_path_LLVMGXX
24676
24677 if test -n "$LLVMGXX"; then
24678   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24679 echo "${ECHO_T}$LLVMGXX" >&6
24680 else
24681   echo "$as_me:$LINENO: result: no" >&5
24682 echo "${ECHO_T}no" >&6
24683 fi
24684
24685 else
24686   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24687   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24688   LLVMGCC=$LLVMGCC
24689
24690   LLVMGXX=$LLVMGXX
24691
24692 fi
24693
24694 echo "$as_me:$LINENO: checking tool compatibility" >&5
24695 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24696
24697 ICC=no
24698 IXX=no
24699 case $CC in
24700   icc*|icpc*)
24701     ICC=yes
24702     IXX=yes
24703     ;;
24704    *)
24705     ;;
24706 esac
24707
24708 if test "$GCC" != "yes" && test "$ICC" != "yes"
24709 then
24710   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24711 echo "$as_me: error: gcc|icc required but not found" >&2;}
24712    { (exit 1); exit 1; }; }
24713 fi
24714
24715 if test "$GXX" != "yes" && test "$IXX" != "yes"
24716 then
24717   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24718 echo "$as_me: error: g++|icc required but not found" >&2;}
24719    { (exit 1); exit 1; }; }
24720 fi
24721
24722 if test "$GCC" = "yes"
24723 then
24724   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24725   if test "$gccmajor" -lt "3"
24726   then
24727     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24728 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24729    { (exit 1); exit 1; }; }
24730   fi
24731 fi
24732
24733 if test -z "$llvm_cv_gnu_make_command"
24734 then
24735   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24736 echo "$as_me: error: GNU Make required but not found" >&2;}
24737    { (exit 1); exit 1; }; }
24738 fi
24739
24740 echo "$as_me:$LINENO: result: ok" >&5
24741 echo "${ECHO_T}ok" >&6
24742
24743
24744
24745 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24746 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24747 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24748   echo $ECHO_N "(cached) $ECHO_C" >&6
24749 else
24750   ac_check_lib_save_LIBS=$LIBS
24751 LIBS="-lelf  $LIBS"
24752 cat >conftest.$ac_ext <<_ACEOF
24753 /* confdefs.h.  */
24754 _ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h.  */
24758
24759 /* Override any gcc2 internal prototype to avoid an error.  */
24760 #ifdef __cplusplus
24761 extern "C"
24762 #endif
24763 /* We use char because int might match the return type of a gcc2
24764    builtin and then its argument prototype would still apply.  */
24765 char elf_begin ();
24766 int
24767 main ()
24768 {
24769 elf_begin ();
24770   ;
24771   return 0;
24772 }
24773 _ACEOF
24774 rm -f conftest.$ac_objext conftest$ac_exeext
24775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24776   (eval $ac_link) 2>conftest.er1
24777   ac_status=$?
24778   grep -v '^ *+' conftest.er1 >conftest.err
24779   rm -f conftest.er1
24780   cat conftest.err >&5
24781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); } &&
24783          { ac_try='test -z "$ac_c_werror_flag"
24784                          || test ! -s conftest.err'
24785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786   (eval $ac_try) 2>&5
24787   ac_status=$?
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); }; } &&
24790          { ac_try='test -s conftest$ac_exeext'
24791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792   (eval $ac_try) 2>&5
24793   ac_status=$?
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); }; }; then
24796   ac_cv_lib_elf_elf_begin=yes
24797 else
24798   echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24800
24801 ac_cv_lib_elf_elf_begin=no
24802 fi
24803 rm -f conftest.err conftest.$ac_objext \
24804       conftest$ac_exeext conftest.$ac_ext
24805 LIBS=$ac_check_lib_save_LIBS
24806 fi
24807 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24808 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24809 if test $ac_cv_lib_elf_elf_begin = yes; then
24810   cat >>confdefs.h <<_ACEOF
24811 #define HAVE_LIBELF 1
24812 _ACEOF
24813
24814   LIBS="-lelf $LIBS"
24815
24816 fi
24817
24818
24819 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24820 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24821 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24822   echo $ECHO_N "(cached) $ECHO_C" >&6
24823 else
24824   ac_func_search_save_LIBS=$LIBS
24825 ac_cv_search_lt_dlopen=no
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h.  */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h.  */
24832
24833 /* Override any gcc2 internal prototype to avoid an error.  */
24834 #ifdef __cplusplus
24835 extern "C"
24836 #endif
24837 /* We use char because int might match the return type of a gcc2
24838    builtin and then its argument prototype would still apply.  */
24839 char lt_dlopen ();
24840 int
24841 main ()
24842 {
24843 lt_dlopen ();
24844   ;
24845   return 0;
24846 }
24847 _ACEOF
24848 rm -f conftest.$ac_objext conftest$ac_exeext
24849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24850   (eval $ac_link) 2>conftest.er1
24851   ac_status=$?
24852   grep -v '^ *+' conftest.er1 >conftest.err
24853   rm -f conftest.er1
24854   cat conftest.err >&5
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); } &&
24857          { ac_try='test -z "$ac_c_werror_flag"
24858                          || test ! -s conftest.err'
24859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24860   (eval $ac_try) 2>&5
24861   ac_status=$?
24862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863   (exit $ac_status); }; } &&
24864          { ac_try='test -s conftest$ac_exeext'
24865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866   (eval $ac_try) 2>&5
24867   ac_status=$?
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); }; }; then
24870   ac_cv_search_lt_dlopen="none required"
24871 else
24872   echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24874
24875 fi
24876 rm -f conftest.err conftest.$ac_objext \
24877       conftest$ac_exeext conftest.$ac_ext
24878 if test "$ac_cv_search_lt_dlopen" = no; then
24879   for ac_lib in ltdl; do
24880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24881     cat >conftest.$ac_ext <<_ACEOF
24882 /* confdefs.h.  */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h.  */
24887
24888 /* Override any gcc2 internal prototype to avoid an error.  */
24889 #ifdef __cplusplus
24890 extern "C"
24891 #endif
24892 /* We use char because int might match the return type of a gcc2
24893    builtin and then its argument prototype would still apply.  */
24894 char lt_dlopen ();
24895 int
24896 main ()
24897 {
24898 lt_dlopen ();
24899   ;
24900   return 0;
24901 }
24902 _ACEOF
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24905   (eval $ac_link) 2>conftest.er1
24906   ac_status=$?
24907   grep -v '^ *+' conftest.er1 >conftest.err
24908   rm -f conftest.er1
24909   cat conftest.err >&5
24910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911   (exit $ac_status); } &&
24912          { ac_try='test -z "$ac_c_werror_flag"
24913                          || test ! -s conftest.err'
24914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915   (eval $ac_try) 2>&5
24916   ac_status=$?
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); }; } &&
24919          { ac_try='test -s conftest$ac_exeext'
24920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24921   (eval $ac_try) 2>&5
24922   ac_status=$?
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); }; }; then
24925   ac_cv_search_lt_dlopen="-l$ac_lib"
24926 break
24927 else
24928   echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24930
24931 fi
24932 rm -f conftest.err conftest.$ac_objext \
24933       conftest$ac_exeext conftest.$ac_ext
24934   done
24935 fi
24936 LIBS=$ac_func_search_save_LIBS
24937 fi
24938 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24939 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24940 if test "$ac_cv_search_lt_dlopen" != no; then
24941   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24942
24943 cat >>confdefs.h <<\_ACEOF
24944 #define HAVE_LT_DLOPEN 1
24945 _ACEOF
24946
24947 else
24948   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24949                            not be available" >&5
24950 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24951                            not be available" >&2;}
24952 fi
24953
24954
24955 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24956 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24957 if test "${ac_cv_search_dlopen+set}" = set; then
24958   echo $ECHO_N "(cached) $ECHO_C" >&6
24959 else
24960   ac_func_search_save_LIBS=$LIBS
24961 ac_cv_search_dlopen=no
24962 cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h.  */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h.  */
24968
24969 /* Override any gcc2 internal prototype to avoid an error.  */
24970 #ifdef __cplusplus
24971 extern "C"
24972 #endif
24973 /* We use char because int might match the return type of a gcc2
24974    builtin and then its argument prototype would still apply.  */
24975 char dlopen ();
24976 int
24977 main ()
24978 {
24979 dlopen ();
24980   ;
24981   return 0;
24982 }
24983 _ACEOF
24984 rm -f conftest.$ac_objext conftest$ac_exeext
24985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24986   (eval $ac_link) 2>conftest.er1
24987   ac_status=$?
24988   grep -v '^ *+' conftest.er1 >conftest.err
24989   rm -f conftest.er1
24990   cat conftest.err >&5
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } &&
24993          { ac_try='test -z "$ac_c_werror_flag"
24994                          || test ! -s conftest.err'
24995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996   (eval $ac_try) 2>&5
24997   ac_status=$?
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); }; } &&
25000          { ac_try='test -s conftest$ac_exeext'
25001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002   (eval $ac_try) 2>&5
25003   ac_status=$?
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); }; }; then
25006   ac_cv_search_dlopen="none required"
25007 else
25008   echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25010
25011 fi
25012 rm -f conftest.err conftest.$ac_objext \
25013       conftest$ac_exeext conftest.$ac_ext
25014 if test "$ac_cv_search_dlopen" = no; then
25015   for ac_lib in dl; do
25016     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25017     cat >conftest.$ac_ext <<_ACEOF
25018 /* confdefs.h.  */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h.  */
25023
25024 /* Override any gcc2 internal prototype to avoid an error.  */
25025 #ifdef __cplusplus
25026 extern "C"
25027 #endif
25028 /* We use char because int might match the return type of a gcc2
25029    builtin and then its argument prototype would still apply.  */
25030 char dlopen ();
25031 int
25032 main ()
25033 {
25034 dlopen ();
25035   ;
25036   return 0;
25037 }
25038 _ACEOF
25039 rm -f conftest.$ac_objext conftest$ac_exeext
25040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25041   (eval $ac_link) 2>conftest.er1
25042   ac_status=$?
25043   grep -v '^ *+' conftest.er1 >conftest.err
25044   rm -f conftest.er1
25045   cat conftest.err >&5
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); } &&
25048          { ac_try='test -z "$ac_c_werror_flag"
25049                          || test ! -s conftest.err'
25050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051   (eval $ac_try) 2>&5
25052   ac_status=$?
25053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054   (exit $ac_status); }; } &&
25055          { ac_try='test -s conftest$ac_exeext'
25056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25057   (eval $ac_try) 2>&5
25058   ac_status=$?
25059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060   (exit $ac_status); }; }; then
25061   ac_cv_search_dlopen="-l$ac_lib"
25062 break
25063 else
25064   echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25066
25067 fi
25068 rm -f conftest.err conftest.$ac_objext \
25069       conftest$ac_exeext conftest.$ac_ext
25070   done
25071 fi
25072 LIBS=$ac_func_search_save_LIBS
25073 fi
25074 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25075 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25076 if test "$ac_cv_search_dlopen" != no; then
25077   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25078
25079 cat >>confdefs.h <<\_ACEOF
25080 #define HAVE_DLOPEN 1
25081 _ACEOF
25082
25083 else
25084   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25085 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25086 fi
25087
25088
25089 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25090 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25091 if test "${ac_cv_search_mallinfo+set}" = set; then
25092   echo $ECHO_N "(cached) $ECHO_C" >&6
25093 else
25094   ac_func_search_save_LIBS=$LIBS
25095 ac_cv_search_mallinfo=no
25096 cat >conftest.$ac_ext <<_ACEOF
25097 /* confdefs.h.  */
25098 _ACEOF
25099 cat confdefs.h >>conftest.$ac_ext
25100 cat >>conftest.$ac_ext <<_ACEOF
25101 /* end confdefs.h.  */
25102
25103 /* Override any gcc2 internal prototype to avoid an error.  */
25104 #ifdef __cplusplus
25105 extern "C"
25106 #endif
25107 /* We use char because int might match the return type of a gcc2
25108    builtin and then its argument prototype would still apply.  */
25109 char mallinfo ();
25110 int
25111 main ()
25112 {
25113 mallinfo ();
25114   ;
25115   return 0;
25116 }
25117 _ACEOF
25118 rm -f conftest.$ac_objext conftest$ac_exeext
25119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25120   (eval $ac_link) 2>conftest.er1
25121   ac_status=$?
25122   grep -v '^ *+' conftest.er1 >conftest.err
25123   rm -f conftest.er1
25124   cat conftest.err >&5
25125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126   (exit $ac_status); } &&
25127          { ac_try='test -z "$ac_c_werror_flag"
25128                          || test ! -s conftest.err'
25129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130   (eval $ac_try) 2>&5
25131   ac_status=$?
25132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); }; } &&
25134          { ac_try='test -s conftest$ac_exeext'
25135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136   (eval $ac_try) 2>&5
25137   ac_status=$?
25138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139   (exit $ac_status); }; }; then
25140   ac_cv_search_mallinfo="none required"
25141 else
25142   echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25144
25145 fi
25146 rm -f conftest.err conftest.$ac_objext \
25147       conftest$ac_exeext conftest.$ac_ext
25148 if test "$ac_cv_search_mallinfo" = no; then
25149   for ac_lib in malloc; do
25150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25151     cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h.  */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h.  */
25157
25158 /* Override any gcc2 internal prototype to avoid an error.  */
25159 #ifdef __cplusplus
25160 extern "C"
25161 #endif
25162 /* We use char because int might match the return type of a gcc2
25163    builtin and then its argument prototype would still apply.  */
25164 char mallinfo ();
25165 int
25166 main ()
25167 {
25168 mallinfo ();
25169   ;
25170   return 0;
25171 }
25172 _ACEOF
25173 rm -f conftest.$ac_objext conftest$ac_exeext
25174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25175   (eval $ac_link) 2>conftest.er1
25176   ac_status=$?
25177   grep -v '^ *+' conftest.er1 >conftest.err
25178   rm -f conftest.er1
25179   cat conftest.err >&5
25180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181   (exit $ac_status); } &&
25182          { ac_try='test -z "$ac_c_werror_flag"
25183                          || test ! -s conftest.err'
25184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185   (eval $ac_try) 2>&5
25186   ac_status=$?
25187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); }; } &&
25189          { ac_try='test -s conftest$ac_exeext'
25190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191   (eval $ac_try) 2>&5
25192   ac_status=$?
25193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194   (exit $ac_status); }; }; then
25195   ac_cv_search_mallinfo="-l$ac_lib"
25196 break
25197 else
25198   echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25200
25201 fi
25202 rm -f conftest.err conftest.$ac_objext \
25203       conftest$ac_exeext conftest.$ac_ext
25204   done
25205 fi
25206 LIBS=$ac_func_search_save_LIBS
25207 fi
25208 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25209 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25210 if test "$ac_cv_search_mallinfo" != no; then
25211   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25212
25213 cat >>confdefs.h <<\_ACEOF
25214 #define HAVE_MALLINFO 1
25215 _ACEOF
25216
25217 fi
25218
25219
25220 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25221 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25222 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25223   echo $ECHO_N "(cached) $ECHO_C" >&6
25224 else
25225   ac_func_search_save_LIBS=$LIBS
25226 ac_cv_search_pthread_mutex_lock=no
25227 cat >conftest.$ac_ext <<_ACEOF
25228 /* confdefs.h.  */
25229 _ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h.  */
25233
25234 /* Override any gcc2 internal prototype to avoid an error.  */
25235 #ifdef __cplusplus
25236 extern "C"
25237 #endif
25238 /* We use char because int might match the return type of a gcc2
25239    builtin and then its argument prototype would still apply.  */
25240 char pthread_mutex_lock ();
25241 int
25242 main ()
25243 {
25244 pthread_mutex_lock ();
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 rm -f conftest.$ac_objext conftest$ac_exeext
25250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25251   (eval $ac_link) 2>conftest.er1
25252   ac_status=$?
25253   grep -v '^ *+' conftest.er1 >conftest.err
25254   rm -f conftest.er1
25255   cat conftest.err >&5
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); } &&
25258          { ac_try='test -z "$ac_c_werror_flag"
25259                          || test ! -s conftest.err'
25260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261   (eval $ac_try) 2>&5
25262   ac_status=$?
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); }; } &&
25265          { ac_try='test -s conftest$ac_exeext'
25266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267   (eval $ac_try) 2>&5
25268   ac_status=$?
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); }; }; then
25271   ac_cv_search_pthread_mutex_lock="none required"
25272 else
25273   echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25275
25276 fi
25277 rm -f conftest.err conftest.$ac_objext \
25278       conftest$ac_exeext conftest.$ac_ext
25279 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25280   for ac_lib in pthread; do
25281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25282     cat >conftest.$ac_ext <<_ACEOF
25283 /* confdefs.h.  */
25284 _ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h.  */
25288
25289 /* Override any gcc2 internal prototype to avoid an error.  */
25290 #ifdef __cplusplus
25291 extern "C"
25292 #endif
25293 /* We use char because int might match the return type of a gcc2
25294    builtin and then its argument prototype would still apply.  */
25295 char pthread_mutex_lock ();
25296 int
25297 main ()
25298 {
25299 pthread_mutex_lock ();
25300   ;
25301   return 0;
25302 }
25303 _ACEOF
25304 rm -f conftest.$ac_objext conftest$ac_exeext
25305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25306   (eval $ac_link) 2>conftest.er1
25307   ac_status=$?
25308   grep -v '^ *+' conftest.er1 >conftest.err
25309   rm -f conftest.er1
25310   cat conftest.err >&5
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); } &&
25313          { ac_try='test -z "$ac_c_werror_flag"
25314                          || test ! -s conftest.err'
25315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316   (eval $ac_try) 2>&5
25317   ac_status=$?
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); }; } &&
25320          { ac_try='test -s conftest$ac_exeext'
25321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322   (eval $ac_try) 2>&5
25323   ac_status=$?
25324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); }; }; then
25326   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25327 break
25328 else
25329   echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25331
25332 fi
25333 rm -f conftest.err conftest.$ac_objext \
25334       conftest$ac_exeext conftest.$ac_ext
25335   done
25336 fi
25337 LIBS=$ac_func_search_save_LIBS
25338 fi
25339 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25340 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25341 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25342   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25343
25344 cat >>confdefs.h <<\_ACEOF
25345 #define HAVE_PTHREAD_MUTEX_LOCK 1
25346 _ACEOF
25347
25348 fi
25349
25350
25351
25352
25353
25354
25355
25356
25357 ac_header_dirent=no
25358 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25359   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25360 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25361 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25363   echo $ECHO_N "(cached) $ECHO_C" >&6
25364 else
25365   cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371 #include <sys/types.h>
25372 #include <$ac_hdr>
25373
25374 int
25375 main ()
25376 {
25377 if ((DIR *) 0)
25378 return 0;
25379   ;
25380   return 0;
25381 }
25382 _ACEOF
25383 rm -f conftest.$ac_objext
25384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25385   (eval $ac_compile) 2>conftest.er1
25386   ac_status=$?
25387   grep -v '^ *+' conftest.er1 >conftest.err
25388   rm -f conftest.er1
25389   cat conftest.err >&5
25390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); } &&
25392          { ac_try='test -z "$ac_c_werror_flag"
25393                          || test ! -s conftest.err'
25394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395   (eval $ac_try) 2>&5
25396   ac_status=$?
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); }; } &&
25399          { ac_try='test -s conftest.$ac_objext'
25400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401   (eval $ac_try) 2>&5
25402   ac_status=$?
25403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404   (exit $ac_status); }; }; then
25405   eval "$as_ac_Header=yes"
25406 else
25407   echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25409
25410 eval "$as_ac_Header=no"
25411 fi
25412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25413 fi
25414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25417   cat >>confdefs.h <<_ACEOF
25418 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25419 _ACEOF
25420
25421 ac_header_dirent=$ac_hdr; break
25422 fi
25423
25424 done
25425 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25426 if test $ac_header_dirent = dirent.h; then
25427   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25428 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25429 if test "${ac_cv_search_opendir+set}" = set; then
25430   echo $ECHO_N "(cached) $ECHO_C" >&6
25431 else
25432   ac_func_search_save_LIBS=$LIBS
25433 ac_cv_search_opendir=no
25434 cat >conftest.$ac_ext <<_ACEOF
25435 /* confdefs.h.  */
25436 _ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h.  */
25440
25441 /* Override any gcc2 internal prototype to avoid an error.  */
25442 #ifdef __cplusplus
25443 extern "C"
25444 #endif
25445 /* We use char because int might match the return type of a gcc2
25446    builtin and then its argument prototype would still apply.  */
25447 char opendir ();
25448 int
25449 main ()
25450 {
25451 opendir ();
25452   ;
25453   return 0;
25454 }
25455 _ACEOF
25456 rm -f conftest.$ac_objext conftest$ac_exeext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458   (eval $ac_link) 2>conftest.er1
25459   ac_status=$?
25460   grep -v '^ *+' conftest.er1 >conftest.err
25461   rm -f conftest.er1
25462   cat conftest.err >&5
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); } &&
25465          { ac_try='test -z "$ac_c_werror_flag"
25466                          || test ! -s conftest.err'
25467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468   (eval $ac_try) 2>&5
25469   ac_status=$?
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); }; } &&
25472          { ac_try='test -s conftest$ac_exeext'
25473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474   (eval $ac_try) 2>&5
25475   ac_status=$?
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); }; }; then
25478   ac_cv_search_opendir="none required"
25479 else
25480   echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483 fi
25484 rm -f conftest.err conftest.$ac_objext \
25485       conftest$ac_exeext conftest.$ac_ext
25486 if test "$ac_cv_search_opendir" = no; then
25487   for ac_lib in dir; do
25488     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25489     cat >conftest.$ac_ext <<_ACEOF
25490 /* confdefs.h.  */
25491 _ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h.  */
25495
25496 /* Override any gcc2 internal prototype to avoid an error.  */
25497 #ifdef __cplusplus
25498 extern "C"
25499 #endif
25500 /* We use char because int might match the return type of a gcc2
25501    builtin and then its argument prototype would still apply.  */
25502 char opendir ();
25503 int
25504 main ()
25505 {
25506 opendir ();
25507   ;
25508   return 0;
25509 }
25510 _ACEOF
25511 rm -f conftest.$ac_objext conftest$ac_exeext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25513   (eval $ac_link) 2>conftest.er1
25514   ac_status=$?
25515   grep -v '^ *+' conftest.er1 >conftest.err
25516   rm -f conftest.er1
25517   cat conftest.err >&5
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); } &&
25520          { ac_try='test -z "$ac_c_werror_flag"
25521                          || test ! -s conftest.err'
25522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523   (eval $ac_try) 2>&5
25524   ac_status=$?
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); }; } &&
25527          { ac_try='test -s conftest$ac_exeext'
25528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529   (eval $ac_try) 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); }; }; then
25533   ac_cv_search_opendir="-l$ac_lib"
25534 break
25535 else
25536   echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25538
25539 fi
25540 rm -f conftest.err conftest.$ac_objext \
25541       conftest$ac_exeext conftest.$ac_ext
25542   done
25543 fi
25544 LIBS=$ac_func_search_save_LIBS
25545 fi
25546 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25547 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25548 if test "$ac_cv_search_opendir" != no; then
25549   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25550
25551 fi
25552
25553 else
25554   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25555 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25556 if test "${ac_cv_search_opendir+set}" = set; then
25557   echo $ECHO_N "(cached) $ECHO_C" >&6
25558 else
25559   ac_func_search_save_LIBS=$LIBS
25560 ac_cv_search_opendir=no
25561 cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h.  */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h.  */
25567
25568 /* Override any gcc2 internal prototype to avoid an error.  */
25569 #ifdef __cplusplus
25570 extern "C"
25571 #endif
25572 /* We use char because int might match the return type of a gcc2
25573    builtin and then its argument prototype would still apply.  */
25574 char opendir ();
25575 int
25576 main ()
25577 {
25578 opendir ();
25579   ;
25580   return 0;
25581 }
25582 _ACEOF
25583 rm -f conftest.$ac_objext conftest$ac_exeext
25584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25585   (eval $ac_link) 2>conftest.er1
25586   ac_status=$?
25587   grep -v '^ *+' conftest.er1 >conftest.err
25588   rm -f conftest.er1
25589   cat conftest.err >&5
25590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591   (exit $ac_status); } &&
25592          { ac_try='test -z "$ac_c_werror_flag"
25593                          || test ! -s conftest.err'
25594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595   (eval $ac_try) 2>&5
25596   ac_status=$?
25597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598   (exit $ac_status); }; } &&
25599          { ac_try='test -s conftest$ac_exeext'
25600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601   (eval $ac_try) 2>&5
25602   ac_status=$?
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); }; }; then
25605   ac_cv_search_opendir="none required"
25606 else
25607   echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610 fi
25611 rm -f conftest.err conftest.$ac_objext \
25612       conftest$ac_exeext conftest.$ac_ext
25613 if test "$ac_cv_search_opendir" = no; then
25614   for ac_lib in x; do
25615     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25616     cat >conftest.$ac_ext <<_ACEOF
25617 /* confdefs.h.  */
25618 _ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h.  */
25622
25623 /* Override any gcc2 internal prototype to avoid an error.  */
25624 #ifdef __cplusplus
25625 extern "C"
25626 #endif
25627 /* We use char because int might match the return type of a gcc2
25628    builtin and then its argument prototype would still apply.  */
25629 char opendir ();
25630 int
25631 main ()
25632 {
25633 opendir ();
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25640   (eval $ac_link) 2>conftest.er1
25641   ac_status=$?
25642   grep -v '^ *+' conftest.er1 >conftest.err
25643   rm -f conftest.er1
25644   cat conftest.err >&5
25645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646   (exit $ac_status); } &&
25647          { ac_try='test -z "$ac_c_werror_flag"
25648                          || test ! -s conftest.err'
25649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650   (eval $ac_try) 2>&5
25651   ac_status=$?
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); }; } &&
25654          { ac_try='test -s conftest$ac_exeext'
25655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656   (eval $ac_try) 2>&5
25657   ac_status=$?
25658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); }; }; then
25660   ac_cv_search_opendir="-l$ac_lib"
25661 break
25662 else
25663   echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25665
25666 fi
25667 rm -f conftest.err conftest.$ac_objext \
25668       conftest$ac_exeext conftest.$ac_ext
25669   done
25670 fi
25671 LIBS=$ac_func_search_save_LIBS
25672 fi
25673 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25674 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25675 if test "$ac_cv_search_opendir" != no; then
25676   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25677
25678 fi
25679
25680 fi
25681
25682 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25683 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25684 if test "${ac_cv_header_mmap_anon+set}" = set; then
25685   echo $ECHO_N "(cached) $ECHO_C" >&6
25686 else
25687    ac_ext=c
25688 ac_cpp='$CPP $CPPFLAGS'
25689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25692
25693   cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h.  */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h.  */
25699 #include <sys/mman.h>
25700 #include <unistd.h>
25701 #include <fcntl.h>
25702 int
25703 main ()
25704 {
25705 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25706   ;
25707   return 0;
25708 }
25709 _ACEOF
25710 rm -f conftest.$ac_objext
25711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25712   (eval $ac_compile) 2>conftest.er1
25713   ac_status=$?
25714   grep -v '^ *+' conftest.er1 >conftest.err
25715   rm -f conftest.er1
25716   cat conftest.err >&5
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } &&
25719          { ac_try='test -z "$ac_c_werror_flag"
25720                          || test ! -s conftest.err'
25721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722   (eval $ac_try) 2>&5
25723   ac_status=$?
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); }; } &&
25726          { ac_try='test -s conftest.$ac_objext'
25727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728   (eval $ac_try) 2>&5
25729   ac_status=$?
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); }; }; then
25732   ac_cv_header_mmap_anon=yes
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737 ac_cv_header_mmap_anon=no
25738 fi
25739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25740   ac_ext=c
25741 ac_cpp='$CPP $CPPFLAGS'
25742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25745
25746
25747 fi
25748 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25749 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25750 if test "$ac_cv_header_mmap_anon" = yes; then
25751
25752 cat >>confdefs.h <<\_ACEOF
25753 #define HAVE_MMAP_ANONYMOUS 1
25754 _ACEOF
25755
25756 fi
25757
25758 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25759 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25760 if test "${ac_cv_header_stat_broken+set}" = set; then
25761   echo $ECHO_N "(cached) $ECHO_C" >&6
25762 else
25763   cat >conftest.$ac_ext <<_ACEOF
25764 /* confdefs.h.  */
25765 _ACEOF
25766 cat confdefs.h >>conftest.$ac_ext
25767 cat >>conftest.$ac_ext <<_ACEOF
25768 /* end confdefs.h.  */
25769 #include <sys/types.h>
25770 #include <sys/stat.h>
25771
25772 #if defined(S_ISBLK) && defined(S_IFDIR)
25773 # if S_ISBLK (S_IFDIR)
25774 You lose.
25775 # endif
25776 #endif
25777
25778 #if defined(S_ISBLK) && defined(S_IFCHR)
25779 # if S_ISBLK (S_IFCHR)
25780 You lose.
25781 # endif
25782 #endif
25783
25784 #if defined(S_ISLNK) && defined(S_IFREG)
25785 # if S_ISLNK (S_IFREG)
25786 You lose.
25787 # endif
25788 #endif
25789
25790 #if defined(S_ISSOCK) && defined(S_IFREG)
25791 # if S_ISSOCK (S_IFREG)
25792 You lose.
25793 # endif
25794 #endif
25795
25796 _ACEOF
25797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25798   $EGREP "You lose" >/dev/null 2>&1; then
25799   ac_cv_header_stat_broken=yes
25800 else
25801   ac_cv_header_stat_broken=no
25802 fi
25803 rm -f conftest*
25804
25805 fi
25806 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25807 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25808 if test $ac_cv_header_stat_broken = yes; then
25809
25810 cat >>confdefs.h <<\_ACEOF
25811 #define STAT_MACROS_BROKEN 1
25812 _ACEOF
25813
25814 fi
25815
25816 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25818 if test "${ac_cv_header_stdc+set}" = set; then
25819   echo $ECHO_N "(cached) $ECHO_C" >&6
25820 else
25821   cat >conftest.$ac_ext <<_ACEOF
25822 /* confdefs.h.  */
25823 _ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h.  */
25827 #include <stdlib.h>
25828 #include <stdarg.h>
25829 #include <string.h>
25830 #include <float.h>
25831
25832 int
25833 main ()
25834 {
25835
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext
25841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25842   (eval $ac_compile) 2>conftest.er1
25843   ac_status=$?
25844   grep -v '^ *+' conftest.er1 >conftest.err
25845   rm -f conftest.er1
25846   cat conftest.err >&5
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); } &&
25849          { ac_try='test -z "$ac_c_werror_flag"
25850                          || test ! -s conftest.err'
25851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852   (eval $ac_try) 2>&5
25853   ac_status=$?
25854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855   (exit $ac_status); }; } &&
25856          { ac_try='test -s conftest.$ac_objext'
25857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858   (eval $ac_try) 2>&5
25859   ac_status=$?
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); }; }; then
25862   ac_cv_header_stdc=yes
25863 else
25864   echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25866
25867 ac_cv_header_stdc=no
25868 fi
25869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25870
25871 if test $ac_cv_header_stdc = yes; then
25872   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25873   cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h.  */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h.  */
25879 #include <string.h>
25880
25881 _ACEOF
25882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25883   $EGREP "memchr" >/dev/null 2>&1; then
25884   :
25885 else
25886   ac_cv_header_stdc=no
25887 fi
25888 rm -f conftest*
25889
25890 fi
25891
25892 if test $ac_cv_header_stdc = yes; then
25893   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25894   cat >conftest.$ac_ext <<_ACEOF
25895 /* confdefs.h.  */
25896 _ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h.  */
25900 #include <stdlib.h>
25901
25902 _ACEOF
25903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25904   $EGREP "free" >/dev/null 2>&1; then
25905   :
25906 else
25907   ac_cv_header_stdc=no
25908 fi
25909 rm -f conftest*
25910
25911 fi
25912
25913 if test $ac_cv_header_stdc = yes; then
25914   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25915   if test "$cross_compiling" = yes; then
25916   :
25917 else
25918   cat >conftest.$ac_ext <<_ACEOF
25919 /* confdefs.h.  */
25920 _ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h.  */
25924 #include <ctype.h>
25925 #if ((' ' & 0x0FF) == 0x020)
25926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25928 #else
25929 # define ISLOWER(c) \
25930                    (('a' <= (c) && (c) <= 'i') \
25931                      || ('j' <= (c) && (c) <= 'r') \
25932                      || ('s' <= (c) && (c) <= 'z'))
25933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25934 #endif
25935
25936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25937 int
25938 main ()
25939 {
25940   int i;
25941   for (i = 0; i < 256; i++)
25942     if (XOR (islower (i), ISLOWER (i))
25943         || toupper (i) != TOUPPER (i))
25944       exit(2);
25945   exit (0);
25946 }
25947 _ACEOF
25948 rm -f conftest$ac_exeext
25949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25950   (eval $ac_link) 2>&5
25951   ac_status=$?
25952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25955   (eval $ac_try) 2>&5
25956   ac_status=$?
25957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958   (exit $ac_status); }; }; then
25959   :
25960 else
25961   echo "$as_me: program exited with status $ac_status" >&5
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25964
25965 ( exit $ac_status )
25966 ac_cv_header_stdc=no
25967 fi
25968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25969 fi
25970 fi
25971 fi
25972 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25973 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25974 if test $ac_cv_header_stdc = yes; then
25975
25976 cat >>confdefs.h <<\_ACEOF
25977 #define STDC_HEADERS 1
25978 _ACEOF
25979
25980 fi
25981
25982 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25983 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25984 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25985   echo $ECHO_N "(cached) $ECHO_C" >&6
25986 else
25987   cat >conftest.$ac_ext <<_ACEOF
25988 /* confdefs.h.  */
25989 _ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h.  */
25993 #include <sys/types.h>
25994 #include <sys/wait.h>
25995 #ifndef WEXITSTATUS
25996 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25997 #endif
25998 #ifndef WIFEXITED
25999 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26000 #endif
26001
26002 int
26003 main ()
26004 {
26005   int s;
26006   wait (&s);
26007   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26008   ;
26009   return 0;
26010 }
26011 _ACEOF
26012 rm -f conftest.$ac_objext
26013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26014   (eval $ac_compile) 2>conftest.er1
26015   ac_status=$?
26016   grep -v '^ *+' conftest.er1 >conftest.err
26017   rm -f conftest.er1
26018   cat conftest.err >&5
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); } &&
26021          { ac_try='test -z "$ac_c_werror_flag"
26022                          || test ! -s conftest.err'
26023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024   (eval $ac_try) 2>&5
26025   ac_status=$?
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); }; } &&
26028          { ac_try='test -s conftest.$ac_objext'
26029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030   (eval $ac_try) 2>&5
26031   ac_status=$?
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); }; }; then
26034   ac_cv_header_sys_wait_h=yes
26035 else
26036   echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039 ac_cv_header_sys_wait_h=no
26040 fi
26041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26042 fi
26043 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26044 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26045 if test $ac_cv_header_sys_wait_h = yes; then
26046
26047 cat >>confdefs.h <<\_ACEOF
26048 #define HAVE_SYS_WAIT_H 1
26049 _ACEOF
26050
26051 fi
26052
26053 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26054 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26055 if test "${ac_cv_header_time+set}" = set; then
26056   echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058   cat >conftest.$ac_ext <<_ACEOF
26059 /* confdefs.h.  */
26060 _ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h.  */
26064 #include <sys/types.h>
26065 #include <sys/time.h>
26066 #include <time.h>
26067
26068 int
26069 main ()
26070 {
26071 if ((struct tm *) 0)
26072 return 0;
26073   ;
26074   return 0;
26075 }
26076 _ACEOF
26077 rm -f conftest.$ac_objext
26078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26079   (eval $ac_compile) 2>conftest.er1
26080   ac_status=$?
26081   grep -v '^ *+' conftest.er1 >conftest.err
26082   rm -f conftest.er1
26083   cat conftest.err >&5
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); } &&
26086          { ac_try='test -z "$ac_c_werror_flag"
26087                          || test ! -s conftest.err'
26088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089   (eval $ac_try) 2>&5
26090   ac_status=$?
26091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); }; } &&
26093          { ac_try='test -s conftest.$ac_objext'
26094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095   (eval $ac_try) 2>&5
26096   ac_status=$?
26097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); }; }; then
26099   ac_cv_header_time=yes
26100 else
26101   echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26103
26104 ac_cv_header_time=no
26105 fi
26106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26107 fi
26108 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26109 echo "${ECHO_T}$ac_cv_header_time" >&6
26110 if test $ac_cv_header_time = yes; then
26111
26112 cat >>confdefs.h <<\_ACEOF
26113 #define TIME_WITH_SYS_TIME 1
26114 _ACEOF
26115
26116 fi
26117
26118
26119
26120
26121
26122
26123
26124
26125 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26126 do
26127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26129   echo "$as_me:$LINENO: checking for $ac_header" >&5
26130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26132   echo $ECHO_N "(cached) $ECHO_C" >&6
26133 fi
26134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26136 else
26137   # Is the header compilable?
26138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26140 cat >conftest.$ac_ext <<_ACEOF
26141 /* confdefs.h.  */
26142 _ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h.  */
26146 $ac_includes_default
26147 #include <$ac_header>
26148 _ACEOF
26149 rm -f conftest.$ac_objext
26150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26151   (eval $ac_compile) 2>conftest.er1
26152   ac_status=$?
26153   grep -v '^ *+' conftest.er1 >conftest.err
26154   rm -f conftest.er1
26155   cat conftest.err >&5
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); } &&
26158          { ac_try='test -z "$ac_c_werror_flag"
26159                          || test ! -s conftest.err'
26160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26161   (eval $ac_try) 2>&5
26162   ac_status=$?
26163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164   (exit $ac_status); }; } &&
26165          { ac_try='test -s conftest.$ac_objext'
26166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167   (eval $ac_try) 2>&5
26168   ac_status=$?
26169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170   (exit $ac_status); }; }; then
26171   ac_header_compiler=yes
26172 else
26173   echo "$as_me: failed program was:" >&5
26174 sed 's/^/| /' conftest.$ac_ext >&5
26175
26176 ac_header_compiler=no
26177 fi
26178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26180 echo "${ECHO_T}$ac_header_compiler" >&6
26181
26182 # Is the header present?
26183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26185 cat >conftest.$ac_ext <<_ACEOF
26186 /* confdefs.h.  */
26187 _ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h.  */
26191 #include <$ac_header>
26192 _ACEOF
26193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26195   ac_status=$?
26196   grep -v '^ *+' conftest.er1 >conftest.err
26197   rm -f conftest.er1
26198   cat conftest.err >&5
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); } >/dev/null; then
26201   if test -s conftest.err; then
26202     ac_cpp_err=$ac_c_preproc_warn_flag
26203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26204   else
26205     ac_cpp_err=
26206   fi
26207 else
26208   ac_cpp_err=yes
26209 fi
26210 if test -z "$ac_cpp_err"; then
26211   ac_header_preproc=yes
26212 else
26213   echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26215
26216   ac_header_preproc=no
26217 fi
26218 rm -f conftest.err conftest.$ac_ext
26219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26220 echo "${ECHO_T}$ac_header_preproc" >&6
26221
26222 # So?  What about this header?
26223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26224   yes:no: )
26225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26229     ac_header_preproc=yes
26230     ;;
26231   no:yes:* )
26232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26244     (
26245       cat <<\_ASBOX
26246 ## ----------------------------------- ##
26247 ## Report this to llvmbugs@cs.uiuc.edu ##
26248 ## ----------------------------------- ##
26249 _ASBOX
26250     ) |
26251       sed "s/^/$as_me: WARNING:     /" >&2
26252     ;;
26253 esac
26254 echo "$as_me:$LINENO: checking for $ac_header" >&5
26255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26257   echo $ECHO_N "(cached) $ECHO_C" >&6
26258 else
26259   eval "$as_ac_Header=\$ac_header_preproc"
26260 fi
26261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26263
26264 fi
26265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26266   cat >>confdefs.h <<_ACEOF
26267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26268 _ACEOF
26269
26270 fi
26271
26272 done
26273
26274
26275
26276
26277
26278
26279
26280 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26281 do
26282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26284   echo "$as_me:$LINENO: checking for $ac_header" >&5
26285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26287   echo $ECHO_N "(cached) $ECHO_C" >&6
26288 fi
26289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26291 else
26292   # Is the header compilable?
26293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26295 cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 $ac_includes_default
26302 #include <$ac_header>
26303 _ACEOF
26304 rm -f conftest.$ac_objext
26305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26306   (eval $ac_compile) 2>conftest.er1
26307   ac_status=$?
26308   grep -v '^ *+' conftest.er1 >conftest.err
26309   rm -f conftest.er1
26310   cat conftest.err >&5
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); } &&
26313          { ac_try='test -z "$ac_c_werror_flag"
26314                          || test ! -s conftest.err'
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); }; } &&
26320          { ac_try='test -s conftest.$ac_objext'
26321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322   (eval $ac_try) 2>&5
26323   ac_status=$?
26324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325   (exit $ac_status); }; }; then
26326   ac_header_compiler=yes
26327 else
26328   echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26330
26331 ac_header_compiler=no
26332 fi
26333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26335 echo "${ECHO_T}$ac_header_compiler" >&6
26336
26337 # Is the header present?
26338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26340 cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346 #include <$ac_header>
26347 _ACEOF
26348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26350   ac_status=$?
26351   grep -v '^ *+' conftest.er1 >conftest.err
26352   rm -f conftest.er1
26353   cat conftest.err >&5
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } >/dev/null; then
26356   if test -s conftest.err; then
26357     ac_cpp_err=$ac_c_preproc_warn_flag
26358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26359   else
26360     ac_cpp_err=
26361   fi
26362 else
26363   ac_cpp_err=yes
26364 fi
26365 if test -z "$ac_cpp_err"; then
26366   ac_header_preproc=yes
26367 else
26368   echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26370
26371   ac_header_preproc=no
26372 fi
26373 rm -f conftest.err conftest.$ac_ext
26374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26375 echo "${ECHO_T}$ac_header_preproc" >&6
26376
26377 # So?  What about this header?
26378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26379   yes:no: )
26380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26384     ac_header_preproc=yes
26385     ;;
26386   no:yes:* )
26387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26399     (
26400       cat <<\_ASBOX
26401 ## ----------------------------------- ##
26402 ## Report this to llvmbugs@cs.uiuc.edu ##
26403 ## ----------------------------------- ##
26404 _ASBOX
26405     ) |
26406       sed "s/^/$as_me: WARNING:     /" >&2
26407     ;;
26408 esac
26409 echo "$as_me:$LINENO: checking for $ac_header" >&5
26410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   eval "$as_ac_Header=\$ac_header_preproc"
26415 fi
26416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26418
26419 fi
26420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26421   cat >>confdefs.h <<_ACEOF
26422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26423 _ACEOF
26424
26425 fi
26426
26427 done
26428
26429
26430
26431
26432
26433
26434 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26435 do
26436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26438   echo "$as_me:$LINENO: checking for $ac_header" >&5
26439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26441   echo $ECHO_N "(cached) $ECHO_C" >&6
26442 fi
26443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26445 else
26446   # Is the header compilable?
26447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26449 cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h.  */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h.  */
26455 $ac_includes_default
26456 #include <$ac_header>
26457 _ACEOF
26458 rm -f conftest.$ac_objext
26459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26460   (eval $ac_compile) 2>conftest.er1
26461   ac_status=$?
26462   grep -v '^ *+' conftest.er1 >conftest.err
26463   rm -f conftest.er1
26464   cat conftest.err >&5
26465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466   (exit $ac_status); } &&
26467          { ac_try='test -z "$ac_c_werror_flag"
26468                          || test ! -s conftest.err'
26469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470   (eval $ac_try) 2>&5
26471   ac_status=$?
26472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473   (exit $ac_status); }; } &&
26474          { ac_try='test -s conftest.$ac_objext'
26475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476   (eval $ac_try) 2>&5
26477   ac_status=$?
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); }; }; then
26480   ac_header_compiler=yes
26481 else
26482   echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26484
26485 ac_header_compiler=no
26486 fi
26487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26489 echo "${ECHO_T}$ac_header_compiler" >&6
26490
26491 # Is the header present?
26492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26494 cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h.  */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h.  */
26500 #include <$ac_header>
26501 _ACEOF
26502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26504   ac_status=$?
26505   grep -v '^ *+' conftest.er1 >conftest.err
26506   rm -f conftest.er1
26507   cat conftest.err >&5
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); } >/dev/null; then
26510   if test -s conftest.err; then
26511     ac_cpp_err=$ac_c_preproc_warn_flag
26512     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26513   else
26514     ac_cpp_err=
26515   fi
26516 else
26517   ac_cpp_err=yes
26518 fi
26519 if test -z "$ac_cpp_err"; then
26520   ac_header_preproc=yes
26521 else
26522   echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26524
26525   ac_header_preproc=no
26526 fi
26527 rm -f conftest.err conftest.$ac_ext
26528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26529 echo "${ECHO_T}$ac_header_preproc" >&6
26530
26531 # So?  What about this header?
26532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26533   yes:no: )
26534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26538     ac_header_preproc=yes
26539     ;;
26540   no:yes:* )
26541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26553     (
26554       cat <<\_ASBOX
26555 ## ----------------------------------- ##
26556 ## Report this to llvmbugs@cs.uiuc.edu ##
26557 ## ----------------------------------- ##
26558 _ASBOX
26559     ) |
26560       sed "s/^/$as_me: WARNING:     /" >&2
26561     ;;
26562 esac
26563 echo "$as_me:$LINENO: checking for $ac_header" >&5
26564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26566   echo $ECHO_N "(cached) $ECHO_C" >&6
26567 else
26568   eval "$as_ac_Header=\$ac_header_preproc"
26569 fi
26570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26572
26573 fi
26574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26575   cat >>confdefs.h <<_ACEOF
26576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26577 _ACEOF
26578
26579 fi
26580
26581 done
26582
26583
26584
26585 echo "$as_me:$LINENO: checking for pid_t" >&5
26586 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26587 if test "${ac_cv_type_pid_t+set}" = set; then
26588   echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26590   cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596 $ac_includes_default
26597 int
26598 main ()
26599 {
26600 if ((pid_t *) 0)
26601   return 0;
26602 if (sizeof (pid_t))
26603   return 0;
26604   ;
26605   return 0;
26606 }
26607 _ACEOF
26608 rm -f conftest.$ac_objext
26609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26610   (eval $ac_compile) 2>conftest.er1
26611   ac_status=$?
26612   grep -v '^ *+' conftest.er1 >conftest.err
26613   rm -f conftest.er1
26614   cat conftest.err >&5
26615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616   (exit $ac_status); } &&
26617          { ac_try='test -z "$ac_c_werror_flag"
26618                          || test ! -s conftest.err'
26619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620   (eval $ac_try) 2>&5
26621   ac_status=$?
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); }; } &&
26624          { ac_try='test -s conftest.$ac_objext'
26625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626   (eval $ac_try) 2>&5
26627   ac_status=$?
26628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629   (exit $ac_status); }; }; then
26630   ac_cv_type_pid_t=yes
26631 else
26632   echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26634
26635 ac_cv_type_pid_t=no
26636 fi
26637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26638 fi
26639 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26640 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26641 if test $ac_cv_type_pid_t = yes; then
26642   :
26643 else
26644
26645 cat >>confdefs.h <<_ACEOF
26646 #define pid_t int
26647 _ACEOF
26648
26649 fi
26650
26651 echo "$as_me:$LINENO: checking for size_t" >&5
26652 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26653 if test "${ac_cv_type_size_t+set}" = set; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656   cat >conftest.$ac_ext <<_ACEOF
26657 /* confdefs.h.  */
26658 _ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h.  */
26662 $ac_includes_default
26663 int
26664 main ()
26665 {
26666 if ((size_t *) 0)
26667   return 0;
26668 if (sizeof (size_t))
26669   return 0;
26670   ;
26671   return 0;
26672 }
26673 _ACEOF
26674 rm -f conftest.$ac_objext
26675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26676   (eval $ac_compile) 2>conftest.er1
26677   ac_status=$?
26678   grep -v '^ *+' conftest.er1 >conftest.err
26679   rm -f conftest.er1
26680   cat conftest.err >&5
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } &&
26683          { ac_try='test -z "$ac_c_werror_flag"
26684                          || test ! -s conftest.err'
26685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686   (eval $ac_try) 2>&5
26687   ac_status=$?
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); }; } &&
26690          { ac_try='test -s conftest.$ac_objext'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; }; then
26696   ac_cv_type_size_t=yes
26697 else
26698   echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ac_cv_type_size_t=no
26702 fi
26703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26704 fi
26705 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26706 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26707 if test $ac_cv_type_size_t = yes; then
26708   :
26709 else
26710
26711 cat >>confdefs.h <<_ACEOF
26712 #define size_t unsigned
26713 _ACEOF
26714
26715 fi
26716
26717 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26718 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26719 if test "${ac_cv_type_signal+set}" = set; then
26720   echo $ECHO_N "(cached) $ECHO_C" >&6
26721 else
26722   cat >conftest.$ac_ext <<_ACEOF
26723 /* confdefs.h.  */
26724 _ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h.  */
26728 #include <sys/types.h>
26729 #include <signal.h>
26730 #ifdef signal
26731 # undef signal
26732 #endif
26733 #ifdef __cplusplus
26734 extern "C" void (*signal (int, void (*)(int)))(int);
26735 #else
26736 void (*signal ()) ();
26737 #endif
26738
26739 int
26740 main ()
26741 {
26742 int i;
26743   ;
26744   return 0;
26745 }
26746 _ACEOF
26747 rm -f conftest.$ac_objext
26748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26749   (eval $ac_compile) 2>conftest.er1
26750   ac_status=$?
26751   grep -v '^ *+' conftest.er1 >conftest.err
26752   rm -f conftest.er1
26753   cat conftest.err >&5
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); } &&
26756          { ac_try='test -z "$ac_c_werror_flag"
26757                          || test ! -s conftest.err'
26758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759   (eval $ac_try) 2>&5
26760   ac_status=$?
26761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); }; } &&
26763          { ac_try='test -s conftest.$ac_objext'
26764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765   (eval $ac_try) 2>&5
26766   ac_status=$?
26767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768   (exit $ac_status); }; }; then
26769   ac_cv_type_signal=void
26770 else
26771   echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26773
26774 ac_cv_type_signal=int
26775 fi
26776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26777 fi
26778 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26779 echo "${ECHO_T}$ac_cv_type_signal" >&6
26780
26781 cat >>confdefs.h <<_ACEOF
26782 #define RETSIGTYPE $ac_cv_type_signal
26783 _ACEOF
26784
26785
26786 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26787 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26788 if test "${ac_cv_struct_tm+set}" = set; then
26789   echo $ECHO_N "(cached) $ECHO_C" >&6
26790 else
26791   cat >conftest.$ac_ext <<_ACEOF
26792 /* confdefs.h.  */
26793 _ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h.  */
26797 #include <sys/types.h>
26798 #include <time.h>
26799
26800 int
26801 main ()
26802 {
26803 struct tm *tp; tp->tm_sec;
26804   ;
26805   return 0;
26806 }
26807 _ACEOF
26808 rm -f conftest.$ac_objext
26809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26810   (eval $ac_compile) 2>conftest.er1
26811   ac_status=$?
26812   grep -v '^ *+' conftest.er1 >conftest.err
26813   rm -f conftest.er1
26814   cat conftest.err >&5
26815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816   (exit $ac_status); } &&
26817          { ac_try='test -z "$ac_c_werror_flag"
26818                          || test ! -s conftest.err'
26819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820   (eval $ac_try) 2>&5
26821   ac_status=$?
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); }; } &&
26824          { ac_try='test -s conftest.$ac_objext'
26825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826   (eval $ac_try) 2>&5
26827   ac_status=$?
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); }; }; then
26830   ac_cv_struct_tm=time.h
26831 else
26832   echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26834
26835 ac_cv_struct_tm=sys/time.h
26836 fi
26837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26838 fi
26839 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26840 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26841 if test $ac_cv_struct_tm = sys/time.h; then
26842
26843 cat >>confdefs.h <<\_ACEOF
26844 #define TM_IN_SYS_TIME 1
26845 _ACEOF
26846
26847 fi
26848
26849 echo "$as_me:$LINENO: checking for int64_t" >&5
26850 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26851 if test "${ac_cv_type_int64_t+set}" = set; then
26852   echo $ECHO_N "(cached) $ECHO_C" >&6
26853 else
26854   cat >conftest.$ac_ext <<_ACEOF
26855 /* confdefs.h.  */
26856 _ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h.  */
26860 $ac_includes_default
26861 int
26862 main ()
26863 {
26864 if ((int64_t *) 0)
26865   return 0;
26866 if (sizeof (int64_t))
26867   return 0;
26868   ;
26869   return 0;
26870 }
26871 _ACEOF
26872 rm -f conftest.$ac_objext
26873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26874   (eval $ac_compile) 2>conftest.er1
26875   ac_status=$?
26876   grep -v '^ *+' conftest.er1 >conftest.err
26877   rm -f conftest.er1
26878   cat conftest.err >&5
26879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880   (exit $ac_status); } &&
26881          { ac_try='test -z "$ac_c_werror_flag"
26882                          || test ! -s conftest.err'
26883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884   (eval $ac_try) 2>&5
26885   ac_status=$?
26886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887   (exit $ac_status); }; } &&
26888          { ac_try='test -s conftest.$ac_objext'
26889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890   (eval $ac_try) 2>&5
26891   ac_status=$?
26892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893   (exit $ac_status); }; }; then
26894   ac_cv_type_int64_t=yes
26895 else
26896   echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26898
26899 ac_cv_type_int64_t=no
26900 fi
26901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26902 fi
26903 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26904 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26905 if test $ac_cv_type_int64_t = yes; then
26906
26907 cat >>confdefs.h <<_ACEOF
26908 #define HAVE_INT64_T 1
26909 _ACEOF
26910
26911
26912 else
26913   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26914 echo "$as_me: error: Type int64_t required but not found" >&2;}
26915    { (exit 1); exit 1; }; }
26916 fi
26917
26918 echo "$as_me:$LINENO: checking for uint64_t" >&5
26919 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26920 if test "${ac_cv_type_uint64_t+set}" = set; then
26921   echo $ECHO_N "(cached) $ECHO_C" >&6
26922 else
26923   cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929 $ac_includes_default
26930 int
26931 main ()
26932 {
26933 if ((uint64_t *) 0)
26934   return 0;
26935 if (sizeof (uint64_t))
26936   return 0;
26937   ;
26938   return 0;
26939 }
26940 _ACEOF
26941 rm -f conftest.$ac_objext
26942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26943   (eval $ac_compile) 2>conftest.er1
26944   ac_status=$?
26945   grep -v '^ *+' conftest.er1 >conftest.err
26946   rm -f conftest.er1
26947   cat conftest.err >&5
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); } &&
26950          { ac_try='test -z "$ac_c_werror_flag"
26951                          || test ! -s conftest.err'
26952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953   (eval $ac_try) 2>&5
26954   ac_status=$?
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); }; } &&
26957          { ac_try='test -s conftest.$ac_objext'
26958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959   (eval $ac_try) 2>&5
26960   ac_status=$?
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); }; }; then
26963   ac_cv_type_uint64_t=yes
26964 else
26965   echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26967
26968 ac_cv_type_uint64_t=no
26969 fi
26970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26971 fi
26972 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26973 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26974 if test $ac_cv_type_uint64_t = yes; then
26975
26976 cat >>confdefs.h <<_ACEOF
26977 #define HAVE_UINT64_T 1
26978 _ACEOF
26979
26980
26981 else
26982   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26983 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26984 if test "${ac_cv_type_u_int64_t+set}" = set; then
26985   echo $ECHO_N "(cached) $ECHO_C" >&6
26986 else
26987   cat >conftest.$ac_ext <<_ACEOF
26988 /* confdefs.h.  */
26989 _ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h.  */
26993 $ac_includes_default
26994 int
26995 main ()
26996 {
26997 if ((u_int64_t *) 0)
26998   return 0;
26999 if (sizeof (u_int64_t))
27000   return 0;
27001   ;
27002   return 0;
27003 }
27004 _ACEOF
27005 rm -f conftest.$ac_objext
27006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007   (eval $ac_compile) 2>conftest.er1
27008   ac_status=$?
27009   grep -v '^ *+' conftest.er1 >conftest.err
27010   rm -f conftest.er1
27011   cat conftest.err >&5
27012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013   (exit $ac_status); } &&
27014          { ac_try='test -z "$ac_c_werror_flag"
27015                          || test ! -s conftest.err'
27016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017   (eval $ac_try) 2>&5
27018   ac_status=$?
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); }; } &&
27021          { ac_try='test -s conftest.$ac_objext'
27022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023   (eval $ac_try) 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); }; }; then
27027   ac_cv_type_u_int64_t=yes
27028 else
27029   echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27031
27032 ac_cv_type_u_int64_t=no
27033 fi
27034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27035 fi
27036 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27037 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27038 if test $ac_cv_type_u_int64_t = yes; then
27039
27040 cat >>confdefs.h <<_ACEOF
27041 #define HAVE_U_INT64_T 1
27042 _ACEOF
27043
27044
27045 else
27046   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27047 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27048    { (exit 1); exit 1; }; }
27049 fi
27050
27051 fi
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27062 do
27063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27064 echo "$as_me:$LINENO: checking for $ac_func" >&5
27065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27066 if eval "test \"\${$as_ac_var+set}\" = set"; then
27067   echo $ECHO_N "(cached) $ECHO_C" >&6
27068 else
27069   cat >conftest.$ac_ext <<_ACEOF
27070 /* confdefs.h.  */
27071 _ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h.  */
27075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27077 #define $ac_func innocuous_$ac_func
27078
27079 /* System header to define __stub macros and hopefully few prototypes,
27080     which can conflict with char $ac_func (); below.
27081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27082     <limits.h> exists even on freestanding compilers.  */
27083
27084 #ifdef __STDC__
27085 # include <limits.h>
27086 #else
27087 # include <assert.h>
27088 #endif
27089
27090 #undef $ac_func
27091
27092 /* Override any gcc2 internal prototype to avoid an error.  */
27093 #ifdef __cplusplus
27094 extern "C"
27095 {
27096 #endif
27097 /* We use char because int might match the return type of a gcc2
27098    builtin and then its argument prototype would still apply.  */
27099 char $ac_func ();
27100 /* The GNU C library defines this for functions which it implements
27101     to always fail with ENOSYS.  Some functions are actually named
27102     something starting with __ and the normal name is an alias.  */
27103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27104 choke me
27105 #else
27106 char (*f) () = $ac_func;
27107 #endif
27108 #ifdef __cplusplus
27109 }
27110 #endif
27111
27112 int
27113 main ()
27114 {
27115 return f != $ac_func;
27116   ;
27117   return 0;
27118 }
27119 _ACEOF
27120 rm -f conftest.$ac_objext conftest$ac_exeext
27121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27122   (eval $ac_link) 2>conftest.er1
27123   ac_status=$?
27124   grep -v '^ *+' conftest.er1 >conftest.err
27125   rm -f conftest.er1
27126   cat conftest.err >&5
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); } &&
27129          { ac_try='test -z "$ac_c_werror_flag"
27130                          || test ! -s conftest.err'
27131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132   (eval $ac_try) 2>&5
27133   ac_status=$?
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); }; } &&
27136          { ac_try='test -s conftest$ac_exeext'
27137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138   (eval $ac_try) 2>&5
27139   ac_status=$?
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); }; }; then
27142   eval "$as_ac_var=yes"
27143 else
27144   echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147 eval "$as_ac_var=no"
27148 fi
27149 rm -f conftest.err conftest.$ac_objext \
27150       conftest$ac_exeext conftest.$ac_ext
27151 fi
27152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27154 if test `eval echo '${'$as_ac_var'}'` = yes; then
27155   cat >>confdefs.h <<_ACEOF
27156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27157 _ACEOF
27158
27159 fi
27160 done
27161
27162
27163
27164
27165 for ac_func in mkdtemp mkstemp mktemp
27166 do
27167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27168 echo "$as_me:$LINENO: checking for $ac_func" >&5
27169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27170 if eval "test \"\${$as_ac_var+set}\" = set"; then
27171   echo $ECHO_N "(cached) $ECHO_C" >&6
27172 else
27173   cat >conftest.$ac_ext <<_ACEOF
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27181 #define $ac_func innocuous_$ac_func
27182
27183 /* System header to define __stub macros and hopefully few prototypes,
27184     which can conflict with char $ac_func (); below.
27185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27186     <limits.h> exists even on freestanding compilers.  */
27187
27188 #ifdef __STDC__
27189 # include <limits.h>
27190 #else
27191 # include <assert.h>
27192 #endif
27193
27194 #undef $ac_func
27195
27196 /* Override any gcc2 internal prototype to avoid an error.  */
27197 #ifdef __cplusplus
27198 extern "C"
27199 {
27200 #endif
27201 /* We use char because int might match the return type of a gcc2
27202    builtin and then its argument prototype would still apply.  */
27203 char $ac_func ();
27204 /* The GNU C library defines this for functions which it implements
27205     to always fail with ENOSYS.  Some functions are actually named
27206     something starting with __ and the normal name is an alias.  */
27207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27208 choke me
27209 #else
27210 char (*f) () = $ac_func;
27211 #endif
27212 #ifdef __cplusplus
27213 }
27214 #endif
27215
27216 int
27217 main ()
27218 {
27219 return f != $ac_func;
27220   ;
27221   return 0;
27222 }
27223 _ACEOF
27224 rm -f conftest.$ac_objext conftest$ac_exeext
27225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27226   (eval $ac_link) 2>conftest.er1
27227   ac_status=$?
27228   grep -v '^ *+' conftest.er1 >conftest.err
27229   rm -f conftest.er1
27230   cat conftest.err >&5
27231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232   (exit $ac_status); } &&
27233          { ac_try='test -z "$ac_c_werror_flag"
27234                          || test ! -s conftest.err'
27235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236   (eval $ac_try) 2>&5
27237   ac_status=$?
27238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239   (exit $ac_status); }; } &&
27240          { ac_try='test -s conftest$ac_exeext'
27241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242   (eval $ac_try) 2>&5
27243   ac_status=$?
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); }; }; then
27246   eval "$as_ac_var=yes"
27247 else
27248   echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27250
27251 eval "$as_ac_var=no"
27252 fi
27253 rm -f conftest.err conftest.$ac_objext \
27254       conftest$ac_exeext conftest.$ac_ext
27255 fi
27256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27258 if test `eval echo '${'$as_ac_var'}'` = yes; then
27259   cat >>confdefs.h <<_ACEOF
27260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27261 _ACEOF
27262
27263 fi
27264 done
27265
27266
27267
27268
27269
27270
27271
27272
27273 for ac_func in realpath setrlimit strdup strerror strerror_r strtoll strtoq
27274 do
27275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27276 echo "$as_me:$LINENO: checking for $ac_func" >&5
27277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27278 if eval "test \"\${$as_ac_var+set}\" = set"; then
27279   echo $ECHO_N "(cached) $ECHO_C" >&6
27280 else
27281   cat >conftest.$ac_ext <<_ACEOF
27282 /* confdefs.h.  */
27283 _ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h.  */
27287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27289 #define $ac_func innocuous_$ac_func
27290
27291 /* System header to define __stub macros and hopefully few prototypes,
27292     which can conflict with char $ac_func (); below.
27293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27294     <limits.h> exists even on freestanding compilers.  */
27295
27296 #ifdef __STDC__
27297 # include <limits.h>
27298 #else
27299 # include <assert.h>
27300 #endif
27301
27302 #undef $ac_func
27303
27304 /* Override any gcc2 internal prototype to avoid an error.  */
27305 #ifdef __cplusplus
27306 extern "C"
27307 {
27308 #endif
27309 /* We use char because int might match the return type of a gcc2
27310    builtin and then its argument prototype would still apply.  */
27311 char $ac_func ();
27312 /* The GNU C library defines this for functions which it implements
27313     to always fail with ENOSYS.  Some functions are actually named
27314     something starting with __ and the normal name is an alias.  */
27315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27316 choke me
27317 #else
27318 char (*f) () = $ac_func;
27319 #endif
27320 #ifdef __cplusplus
27321 }
27322 #endif
27323
27324 int
27325 main ()
27326 {
27327 return f != $ac_func;
27328   ;
27329   return 0;
27330 }
27331 _ACEOF
27332 rm -f conftest.$ac_objext conftest$ac_exeext
27333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27334   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
27355 else
27356   echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359 eval "$as_ac_var=no"
27360 fi
27361 rm -f conftest.err conftest.$ac_objext \
27362       conftest$ac_exeext conftest.$ac_ext
27363 fi
27364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27366 if test `eval echo '${'$as_ac_var'}'` = yes; then
27367   cat >>confdefs.h <<_ACEOF
27368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27369 _ACEOF
27370
27371 fi
27372 done
27373
27374
27375 for ac_func in sysconf
27376 do
27377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27378 echo "$as_me:$LINENO: checking for $ac_func" >&5
27379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27380 if eval "test \"\${$as_ac_var+set}\" = set"; then
27381   echo $ECHO_N "(cached) $ECHO_C" >&6
27382 else
27383   cat >conftest.$ac_ext <<_ACEOF
27384 /* confdefs.h.  */
27385 _ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h.  */
27389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27391 #define $ac_func innocuous_$ac_func
27392
27393 /* System header to define __stub macros and hopefully few prototypes,
27394     which can conflict with char $ac_func (); below.
27395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27396     <limits.h> exists even on freestanding compilers.  */
27397
27398 #ifdef __STDC__
27399 # include <limits.h>
27400 #else
27401 # include <assert.h>
27402 #endif
27403
27404 #undef $ac_func
27405
27406 /* Override any gcc2 internal prototype to avoid an error.  */
27407 #ifdef __cplusplus
27408 extern "C"
27409 {
27410 #endif
27411 /* We use char because int might match the return type of a gcc2
27412    builtin and then its argument prototype would still apply.  */
27413 char $ac_func ();
27414 /* The GNU C library defines this for functions which it implements
27415     to always fail with ENOSYS.  Some functions are actually named
27416     something starting with __ and the normal name is an alias.  */
27417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27418 choke me
27419 #else
27420 char (*f) () = $ac_func;
27421 #endif
27422 #ifdef __cplusplus
27423 }
27424 #endif
27425
27426 int
27427 main ()
27428 {
27429 return f != $ac_func;
27430   ;
27431   return 0;
27432 }
27433 _ACEOF
27434 rm -f conftest.$ac_objext conftest$ac_exeext
27435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27436   (eval $ac_link) 2>conftest.er1
27437   ac_status=$?
27438   grep -v '^ *+' conftest.er1 >conftest.err
27439   rm -f conftest.er1
27440   cat conftest.err >&5
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); } &&
27443          { ac_try='test -z "$ac_c_werror_flag"
27444                          || test ! -s conftest.err'
27445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446   (eval $ac_try) 2>&5
27447   ac_status=$?
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); }; } &&
27450          { ac_try='test -s conftest$ac_exeext'
27451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452   (eval $ac_try) 2>&5
27453   ac_status=$?
27454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455   (exit $ac_status); }; }; then
27456   eval "$as_ac_var=yes"
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461 eval "$as_ac_var=no"
27462 fi
27463 rm -f conftest.err conftest.$ac_objext \
27464       conftest$ac_exeext conftest.$ac_ext
27465 fi
27466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27468 if test `eval echo '${'$as_ac_var'}'` = yes; then
27469   cat >>confdefs.h <<_ACEOF
27470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27471 _ACEOF
27472
27473 fi
27474 done
27475
27476 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27477 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27478 if test "${llvm_cv_c_printf_a+set}" = set; then
27479   echo $ECHO_N "(cached) $ECHO_C" >&6
27480 else
27481   ac_ext=c
27482 ac_cpp='$CPP $CPPFLAGS'
27483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27486
27487  if test "$cross_compiling" = yes; then
27488   llvmac_cv_c_printf_a=no
27489 else
27490   cat >conftest.$ac_ext <<_ACEOF
27491
27492   /* confdefs.h.  */
27493 _ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h.  */
27497
27498 #include <stdio.h>
27499 #include <stdlib.h>
27500
27501 int
27502 main ()
27503 {
27504
27505 volatile double A, B;
27506 char Buffer[100];
27507 A = 1;
27508 A /= 10.0;
27509 sprintf(Buffer, "%a", A);
27510 B = atof(Buffer);
27511 if (A != B)
27512   return (1);
27513 if (A != 0x1.999999999999ap-4)
27514   return (1);
27515 return (0);
27516   ;
27517   return 0;
27518 }
27519 _ACEOF
27520 rm -f conftest$ac_exeext
27521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27522   (eval $ac_link) 2>&5
27523   ac_status=$?
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527   (eval $ac_try) 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; }; then
27531   llvm_cv_c_printf_a=yes
27532 else
27533   echo "$as_me: program exited with status $ac_status" >&5
27534 echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27536
27537 ( exit $ac_status )
27538 llvmac_cv_c_printf_a=no
27539 fi
27540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27541 fi
27542  ac_ext=c
27543 ac_cpp='$CPP $CPPFLAGS'
27544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27547
27548 fi
27549 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27550 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27551  if test "$llvm_cv_c_printf_a" = "yes"; then
27552
27553 cat >>confdefs.h <<\_ACEOF
27554 #define HAVE_PRINTF_A 1
27555 _ACEOF
27556
27557  fi
27558
27559 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27560 # for constant arguments.  Useless!
27561 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27562 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27563 if test "${ac_cv_working_alloca_h+set}" = set; then
27564   echo $ECHO_N "(cached) $ECHO_C" >&6
27565 else
27566   cat >conftest.$ac_ext <<_ACEOF
27567 /* confdefs.h.  */
27568 _ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h.  */
27572 #include <alloca.h>
27573 int
27574 main ()
27575 {
27576 char *p = (char *) alloca (2 * sizeof (int));
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 rm -f conftest.$ac_objext conftest$ac_exeext
27582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27583   (eval $ac_link) 2>conftest.er1
27584   ac_status=$?
27585   grep -v '^ *+' conftest.er1 >conftest.err
27586   rm -f conftest.er1
27587   cat conftest.err >&5
27588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589   (exit $ac_status); } &&
27590          { ac_try='test -z "$ac_c_werror_flag"
27591                          || test ! -s conftest.err'
27592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593   (eval $ac_try) 2>&5
27594   ac_status=$?
27595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596   (exit $ac_status); }; } &&
27597          { ac_try='test -s conftest$ac_exeext'
27598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599   (eval $ac_try) 2>&5
27600   ac_status=$?
27601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602   (exit $ac_status); }; }; then
27603   ac_cv_working_alloca_h=yes
27604 else
27605   echo "$as_me: failed program was:" >&5
27606 sed 's/^/| /' conftest.$ac_ext >&5
27607
27608 ac_cv_working_alloca_h=no
27609 fi
27610 rm -f conftest.err conftest.$ac_objext \
27611       conftest$ac_exeext conftest.$ac_ext
27612 fi
27613 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27614 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27615 if test $ac_cv_working_alloca_h = yes; then
27616
27617 cat >>confdefs.h <<\_ACEOF
27618 #define HAVE_ALLOCA_H 1
27619 _ACEOF
27620
27621 fi
27622
27623 echo "$as_me:$LINENO: checking for alloca" >&5
27624 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27625 if test "${ac_cv_func_alloca_works+set}" = set; then
27626   echo $ECHO_N "(cached) $ECHO_C" >&6
27627 else
27628   cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h.  */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h.  */
27634 #ifdef __GNUC__
27635 # define alloca __builtin_alloca
27636 #else
27637 # ifdef _MSC_VER
27638 #  include <malloc.h>
27639 #  define alloca _alloca
27640 # else
27641 #  if HAVE_ALLOCA_H
27642 #   include <alloca.h>
27643 #  else
27644 #   ifdef _AIX
27645  #pragma alloca
27646 #   else
27647 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27648 char *alloca ();
27649 #    endif
27650 #   endif
27651 #  endif
27652 # endif
27653 #endif
27654
27655 int
27656 main ()
27657 {
27658 char *p = (char *) alloca (1);
27659   ;
27660   return 0;
27661 }
27662 _ACEOF
27663 rm -f conftest.$ac_objext conftest$ac_exeext
27664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27665   (eval $ac_link) 2>conftest.er1
27666   ac_status=$?
27667   grep -v '^ *+' conftest.er1 >conftest.err
27668   rm -f conftest.er1
27669   cat conftest.err >&5
27670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); } &&
27672          { ac_try='test -z "$ac_c_werror_flag"
27673                          || test ! -s conftest.err'
27674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27675   (eval $ac_try) 2>&5
27676   ac_status=$?
27677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678   (exit $ac_status); }; } &&
27679          { ac_try='test -s conftest$ac_exeext'
27680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681   (eval $ac_try) 2>&5
27682   ac_status=$?
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); }; }; then
27685   ac_cv_func_alloca_works=yes
27686 else
27687   echo "$as_me: failed program was:" >&5
27688 sed 's/^/| /' conftest.$ac_ext >&5
27689
27690 ac_cv_func_alloca_works=no
27691 fi
27692 rm -f conftest.err conftest.$ac_objext \
27693       conftest$ac_exeext conftest.$ac_ext
27694 fi
27695 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27696 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27697
27698 if test $ac_cv_func_alloca_works = yes; then
27699
27700 cat >>confdefs.h <<\_ACEOF
27701 #define HAVE_ALLOCA 1
27702 _ACEOF
27703
27704 else
27705   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27706 # that cause trouble.  Some versions do not even contain alloca or
27707 # contain a buggy version.  If you still want to use their alloca,
27708 # use ar to extract alloca.o from them instead of compiling alloca.c.
27709
27710 ALLOCA=alloca.$ac_objext
27711
27712 cat >>confdefs.h <<\_ACEOF
27713 #define C_ALLOCA 1
27714 _ACEOF
27715
27716
27717 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27718 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27719 if test "${ac_cv_os_cray+set}" = set; then
27720   echo $ECHO_N "(cached) $ECHO_C" >&6
27721 else
27722   cat >conftest.$ac_ext <<_ACEOF
27723 /* confdefs.h.  */
27724 _ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h.  */
27728 #if defined(CRAY) && ! defined(CRAY2)
27729 webecray
27730 #else
27731 wenotbecray
27732 #endif
27733
27734 _ACEOF
27735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27736   $EGREP "webecray" >/dev/null 2>&1; then
27737   ac_cv_os_cray=yes
27738 else
27739   ac_cv_os_cray=no
27740 fi
27741 rm -f conftest*
27742
27743 fi
27744 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27745 echo "${ECHO_T}$ac_cv_os_cray" >&6
27746 if test $ac_cv_os_cray = yes; then
27747   for ac_func in _getb67 GETB67 getb67; do
27748     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27749 echo "$as_me:$LINENO: checking for $ac_func" >&5
27750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27751 if eval "test \"\${$as_ac_var+set}\" = set"; then
27752   echo $ECHO_N "(cached) $ECHO_C" >&6
27753 else
27754   cat >conftest.$ac_ext <<_ACEOF
27755 /* confdefs.h.  */
27756 _ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h.  */
27760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27762 #define $ac_func innocuous_$ac_func
27763
27764 /* System header to define __stub macros and hopefully few prototypes,
27765     which can conflict with char $ac_func (); below.
27766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27767     <limits.h> exists even on freestanding compilers.  */
27768
27769 #ifdef __STDC__
27770 # include <limits.h>
27771 #else
27772 # include <assert.h>
27773 #endif
27774
27775 #undef $ac_func
27776
27777 /* Override any gcc2 internal prototype to avoid an error.  */
27778 #ifdef __cplusplus
27779 extern "C"
27780 {
27781 #endif
27782 /* We use char because int might match the return type of a gcc2
27783    builtin and then its argument prototype would still apply.  */
27784 char $ac_func ();
27785 /* The GNU C library defines this for functions which it implements
27786     to always fail with ENOSYS.  Some functions are actually named
27787     something starting with __ and the normal name is an alias.  */
27788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27789 choke me
27790 #else
27791 char (*f) () = $ac_func;
27792 #endif
27793 #ifdef __cplusplus
27794 }
27795 #endif
27796
27797 int
27798 main ()
27799 {
27800 return f != $ac_func;
27801   ;
27802   return 0;
27803 }
27804 _ACEOF
27805 rm -f conftest.$ac_objext conftest$ac_exeext
27806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27807   (eval $ac_link) 2>conftest.er1
27808   ac_status=$?
27809   grep -v '^ *+' conftest.er1 >conftest.err
27810   rm -f conftest.er1
27811   cat conftest.err >&5
27812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813   (exit $ac_status); } &&
27814          { ac_try='test -z "$ac_c_werror_flag"
27815                          || test ! -s conftest.err'
27816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817   (eval $ac_try) 2>&5
27818   ac_status=$?
27819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); }; } &&
27821          { ac_try='test -s conftest$ac_exeext'
27822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823   (eval $ac_try) 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); }; }; then
27827   eval "$as_ac_var=yes"
27828 else
27829   echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27831
27832 eval "$as_ac_var=no"
27833 fi
27834 rm -f conftest.err conftest.$ac_objext \
27835       conftest$ac_exeext conftest.$ac_ext
27836 fi
27837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27839 if test `eval echo '${'$as_ac_var'}'` = yes; then
27840
27841 cat >>confdefs.h <<_ACEOF
27842 #define CRAY_STACKSEG_END $ac_func
27843 _ACEOF
27844
27845     break
27846 fi
27847
27848   done
27849 fi
27850
27851 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27852 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27853 if test "${ac_cv_c_stack_direction+set}" = set; then
27854   echo $ECHO_N "(cached) $ECHO_C" >&6
27855 else
27856   if test "$cross_compiling" = yes; then
27857   ac_cv_c_stack_direction=0
27858 else
27859   cat >conftest.$ac_ext <<_ACEOF
27860 /* confdefs.h.  */
27861 _ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h.  */
27865 int
27866 find_stack_direction ()
27867 {
27868   static char *addr = 0;
27869   auto char dummy;
27870   if (addr == 0)
27871     {
27872       addr = &dummy;
27873       return find_stack_direction ();
27874     }
27875   else
27876     return (&dummy > addr) ? 1 : -1;
27877 }
27878
27879 int
27880 main ()
27881 {
27882   exit (find_stack_direction () < 0);
27883 }
27884 _ACEOF
27885 rm -f conftest$ac_exeext
27886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27887   (eval $ac_link) 2>&5
27888   ac_status=$?
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892   (eval $ac_try) 2>&5
27893   ac_status=$?
27894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895   (exit $ac_status); }; }; then
27896   ac_cv_c_stack_direction=1
27897 else
27898   echo "$as_me: program exited with status $ac_status" >&5
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902 ( exit $ac_status )
27903 ac_cv_c_stack_direction=-1
27904 fi
27905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27906 fi
27907 fi
27908 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27909 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27910
27911 cat >>confdefs.h <<_ACEOF
27912 #define STACK_DIRECTION $ac_cv_c_stack_direction
27913 _ACEOF
27914
27915
27916 fi
27917
27918
27919 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27920 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27921 if test "${ac_cv_func_rand48+set}" = set; then
27922   echo $ECHO_N "(cached) $ECHO_C" >&6
27923 else
27924   ac_ext=cc
27925 ac_cpp='$CXXCPP $CPPFLAGS'
27926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27929
27930    cat >conftest.$ac_ext <<_ACEOF
27931 /* confdefs.h.  */
27932 _ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h.  */
27936 #include <stdlib.h>
27937 int
27938 main ()
27939 {
27940 srand48(0);lrand48();drand48();
27941   ;
27942   return 0;
27943 }
27944 _ACEOF
27945 rm -f conftest.$ac_objext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27947   (eval $ac_compile) 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } &&
27954          { ac_try='test -z "$ac_cxx_werror_flag"
27955                          || test ! -s conftest.err'
27956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957   (eval $ac_try) 2>&5
27958   ac_status=$?
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); }; } &&
27961          { ac_try='test -s conftest.$ac_objext'
27962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963   (eval $ac_try) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; }; then
27967   ac_cv_func_rand48=yes
27968 else
27969   echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972 ac_cv_func_rand48=no
27973 fi
27974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27975   ac_ext=c
27976 ac_cpp='$CPP $CPPFLAGS'
27977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27980
27981 fi
27982 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27983 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27984
27985 if test "$ac_cv_func_rand48" = "yes" ; then
27986
27987 cat >>confdefs.h <<\_ACEOF
27988 #define HAVE_RAND48 1
27989 _ACEOF
27990
27991 fi
27992
27993
27994 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27995 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27996 if test "${ac_cv_cxx_namespaces+set}" = set; then
27997   echo $ECHO_N "(cached) $ECHO_C" >&6
27998 else
27999   ac_ext=cc
28000 ac_cpp='$CXXCPP $CPPFLAGS'
28001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28004
28005  cat >conftest.$ac_ext <<_ACEOF
28006 /* confdefs.h.  */
28007 _ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h.  */
28011 namespace Outer { namespace Inner { int i = 0; }}
28012 int
28013 main ()
28014 {
28015 using namespace Outer::Inner; return i;
28016   ;
28017   return 0;
28018 }
28019 _ACEOF
28020 rm -f conftest.$ac_objext
28021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28022   (eval $ac_compile) 2>conftest.er1
28023   ac_status=$?
28024   grep -v '^ *+' conftest.er1 >conftest.err
28025   rm -f conftest.er1
28026   cat conftest.err >&5
28027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028   (exit $ac_status); } &&
28029          { ac_try='test -z "$ac_cxx_werror_flag"
28030                          || test ! -s conftest.err'
28031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032   (eval $ac_try) 2>&5
28033   ac_status=$?
28034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); }; } &&
28036          { ac_try='test -s conftest.$ac_objext'
28037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038   (eval $ac_try) 2>&5
28039   ac_status=$?
28040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041   (exit $ac_status); }; }; then
28042   ac_cv_cxx_namespaces=yes
28043 else
28044   echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.$ac_ext >&5
28046
28047 ac_cv_cxx_namespaces=no
28048 fi
28049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28050  ac_ext=c
28051 ac_cpp='$CPP $CPPFLAGS'
28052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28055
28056
28057 fi
28058 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28059 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28060 if test "$ac_cv_cxx_namespaces" = yes; then
28061
28062 cat >>confdefs.h <<\_ACEOF
28063 #define HAVE_NAMESPACES
28064 _ACEOF
28065
28066 fi
28067
28068 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28069 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28070 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28071   echo $ECHO_N "(cached) $ECHO_C" >&6
28072 else
28073
28074   ac_ext=cc
28075 ac_cpp='$CXXCPP $CPPFLAGS'
28076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28079
28080   cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h.  */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h.  */
28086 #include <ext/hash_map>
28087 #ifdef HAVE_NAMESPACES
28088 using namespace std;
28089 #endif
28090 int
28091 main ()
28092 {
28093 hash_map<int, int> t;
28094   ;
28095   return 0;
28096 }
28097 _ACEOF
28098 rm -f conftest.$ac_objext
28099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28100   (eval $ac_compile) 2>conftest.er1
28101   ac_status=$?
28102   grep -v '^ *+' conftest.er1 >conftest.err
28103   rm -f conftest.er1
28104   cat conftest.err >&5
28105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106   (exit $ac_status); } &&
28107          { ac_try='test -z "$ac_cxx_werror_flag"
28108                          || test ! -s conftest.err'
28109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110   (eval $ac_try) 2>&5
28111   ac_status=$?
28112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113   (exit $ac_status); }; } &&
28114          { ac_try='test -s conftest.$ac_objext'
28115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116   (eval $ac_try) 2>&5
28117   ac_status=$?
28118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119   (exit $ac_status); }; }; then
28120   ac_cv_cxx_have_std_ext_hash_map=yes
28121 else
28122   echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125 ac_cv_cxx_have_std_ext_hash_map=no
28126 fi
28127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28128   ac_ext=c
28129 ac_cpp='$CPP $CPPFLAGS'
28130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28133
28134 fi
28135 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28136 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28137  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28138  then
28139
28140 cat >>confdefs.h <<\_ACEOF
28141 #define HAVE_STD_EXT_HASH_MAP 1
28142 _ACEOF
28143
28144  else
28145
28146 cat >>confdefs.h <<\_ACEOF
28147 #define HAVE_STD_EXT_HASH_MAP 0
28148 _ACEOF
28149
28150  fi
28151
28152  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28153 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28154 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28155   echo $ECHO_N "(cached) $ECHO_C" >&6
28156 else
28157
28158   ac_ext=cc
28159 ac_cpp='$CXXCPP $CPPFLAGS'
28160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28163
28164   cat >conftest.$ac_ext <<_ACEOF
28165 /* confdefs.h.  */
28166 _ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h.  */
28170 #include <ext/hash_map>
28171 #ifdef HAVE_NAMESPACES
28172 using namespace __gnu_cxx;
28173 #endif
28174 int
28175 main ()
28176 {
28177 hash_map<int,int> t;
28178   ;
28179   return 0;
28180 }
28181 _ACEOF
28182 rm -f conftest.$ac_objext
28183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28184   (eval $ac_compile) 2>conftest.er1
28185   ac_status=$?
28186   grep -v '^ *+' conftest.er1 >conftest.err
28187   rm -f conftest.er1
28188   cat conftest.err >&5
28189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190   (exit $ac_status); } &&
28191          { ac_try='test -z "$ac_cxx_werror_flag"
28192                          || test ! -s conftest.err'
28193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194   (eval $ac_try) 2>&5
28195   ac_status=$?
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); }; } &&
28198          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28204   ac_cv_cxx_have_gnu_ext_hash_map=yes
28205 else
28206   echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28208
28209 ac_cv_cxx_have_gnu_ext_hash_map=no
28210 fi
28211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28212   ac_ext=c
28213 ac_cpp='$CPP $CPPFLAGS'
28214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28217
28218 fi
28219 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28220 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28221  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28222  then
28223
28224 cat >>confdefs.h <<\_ACEOF
28225 #define HAVE_GNU_EXT_HASH_MAP 1
28226 _ACEOF
28227
28228  else
28229
28230 cat >>confdefs.h <<\_ACEOF
28231 #define HAVE_GNU_EXT_HASH_MAP 0
28232 _ACEOF
28233
28234  fi
28235
28236  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28237 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28238 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28239   echo $ECHO_N "(cached) $ECHO_C" >&6
28240 else
28241
28242   ac_ext=cc
28243 ac_cpp='$CXXCPP $CPPFLAGS'
28244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28247
28248   cat >conftest.$ac_ext <<_ACEOF
28249 /* confdefs.h.  */
28250 _ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h.  */
28254 #include <hash_map>
28255 int
28256 main ()
28257 {
28258 hash_map<int,int> t;
28259   ;
28260   return 0;
28261 }
28262 _ACEOF
28263 rm -f conftest.$ac_objext
28264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28265   (eval $ac_compile) 2>conftest.er1
28266   ac_status=$?
28267   grep -v '^ *+' conftest.er1 >conftest.err
28268   rm -f conftest.er1
28269   cat conftest.err >&5
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); } &&
28272          { ac_try='test -z "$ac_cxx_werror_flag"
28273                          || test ! -s conftest.err'
28274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275   (eval $ac_try) 2>&5
28276   ac_status=$?
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); }; } &&
28279          { ac_try='test -s conftest.$ac_objext'
28280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281   (eval $ac_try) 2>&5
28282   ac_status=$?
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); }; }; then
28285   ac_cv_cxx_have_global_hash_map=yes
28286 else
28287   echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28289
28290 ac_cv_cxx_have_global_hash_map=no
28291 fi
28292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28293   ac_ext=c
28294 ac_cpp='$CPP $CPPFLAGS'
28295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28298
28299 fi
28300 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28301 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28302  if test "$ac_cv_cxx_have_global_hash_map" = yes
28303  then
28304
28305 cat >>confdefs.h <<\_ACEOF
28306 #define HAVE_GLOBAL_HASH_MAP 1
28307 _ACEOF
28308
28309  else
28310
28311 cat >>confdefs.h <<\_ACEOF
28312 #define HAVE_GLOBAL_HASH_MAP 0
28313 _ACEOF
28314
28315  fi
28316
28317 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28318 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28319 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28320   echo $ECHO_N "(cached) $ECHO_C" >&6
28321 else
28322
28323   ac_ext=cc
28324 ac_cpp='$CXXCPP $CPPFLAGS'
28325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28328
28329   cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h.  */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h.  */
28335 #include <ext/hash_set>
28336 #ifdef HAVE_NAMESPACES
28337 using namespace std;
28338 #endif
28339 int
28340 main ()
28341 {
28342 hash_set<int> t;
28343   ;
28344   return 0;
28345 }
28346 _ACEOF
28347 rm -f conftest.$ac_objext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349   (eval $ac_compile) 2>conftest.er1
28350   ac_status=$?
28351   grep -v '^ *+' conftest.er1 >conftest.err
28352   rm -f conftest.er1
28353   cat conftest.err >&5
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); } &&
28356          { ac_try='test -z "$ac_cxx_werror_flag"
28357                          || test ! -s conftest.err'
28358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359   (eval $ac_try) 2>&5
28360   ac_status=$?
28361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362   (exit $ac_status); }; } &&
28363          { ac_try='test -s conftest.$ac_objext'
28364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365   (eval $ac_try) 2>&5
28366   ac_status=$?
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); }; }; then
28369   ac_cv_cxx_have_std_ext_hash_set=yes
28370 else
28371   echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374 ac_cv_cxx_have_std_ext_hash_set=no
28375 fi
28376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28377   ac_ext=c
28378 ac_cpp='$CPP $CPPFLAGS'
28379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28382
28383 fi
28384 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28385 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28386  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28387  then
28388
28389 cat >>confdefs.h <<\_ACEOF
28390 #define HAVE_STD_EXT_HASH_SET 1
28391 _ACEOF
28392
28393  else
28394
28395 cat >>confdefs.h <<\_ACEOF
28396 #define HAVE_STD_EXT_HASH_SET 0
28397 _ACEOF
28398
28399  fi
28400
28401  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28402 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28403 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28404   echo $ECHO_N "(cached) $ECHO_C" >&6
28405 else
28406
28407   ac_ext=cc
28408 ac_cpp='$CXXCPP $CPPFLAGS'
28409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28412
28413   cat >conftest.$ac_ext <<_ACEOF
28414 /* confdefs.h.  */
28415 _ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h.  */
28419 #include <ext/hash_set>
28420 #ifdef HAVE_NAMESPACES
28421 using namespace __gnu_cxx;
28422 #endif
28423 int
28424 main ()
28425 {
28426 hash_set<int> t;
28427   ;
28428   return 0;
28429 }
28430 _ACEOF
28431 rm -f conftest.$ac_objext
28432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28433   (eval $ac_compile) 2>conftest.er1
28434   ac_status=$?
28435   grep -v '^ *+' conftest.er1 >conftest.err
28436   rm -f conftest.er1
28437   cat conftest.err >&5
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); } &&
28440          { ac_try='test -z "$ac_cxx_werror_flag"
28441                          || test ! -s conftest.err'
28442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28443   (eval $ac_try) 2>&5
28444   ac_status=$?
28445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); }; } &&
28447          { ac_try='test -s conftest.$ac_objext'
28448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449   (eval $ac_try) 2>&5
28450   ac_status=$?
28451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); }; }; then
28453   ac_cv_cxx_have_gnu_ext_hash_set=yes
28454 else
28455   echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28457
28458 ac_cv_cxx_have_gnu_ext_hash_set=no
28459 fi
28460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28461   ac_ext=c
28462 ac_cpp='$CPP $CPPFLAGS'
28463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28466
28467 fi
28468 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28469 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28470  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28471  then
28472
28473 cat >>confdefs.h <<\_ACEOF
28474 #define HAVE_GNU_EXT_HASH_SET 1
28475 _ACEOF
28476
28477  else
28478
28479 cat >>confdefs.h <<\_ACEOF
28480 #define HAVE_GNU_EXT_HASH_SET 0
28481 _ACEOF
28482
28483  fi
28484
28485  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28486 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28487 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28488   echo $ECHO_N "(cached) $ECHO_C" >&6
28489 else
28490
28491   ac_ext=cc
28492 ac_cpp='$CXXCPP $CPPFLAGS'
28493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28496
28497   cat >conftest.$ac_ext <<_ACEOF
28498 /* confdefs.h.  */
28499 _ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h.  */
28503 #include <hash_set>
28504 int
28505 main ()
28506 {
28507 hash_set<int> t; return 0;
28508   ;
28509   return 0;
28510 }
28511 _ACEOF
28512 rm -f conftest.$ac_objext
28513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28514   (eval $ac_compile) 2>conftest.er1
28515   ac_status=$?
28516   grep -v '^ *+' conftest.er1 >conftest.err
28517   rm -f conftest.er1
28518   cat conftest.err >&5
28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520   (exit $ac_status); } &&
28521          { ac_try='test -z "$ac_cxx_werror_flag"
28522                          || test ! -s conftest.err'
28523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524   (eval $ac_try) 2>&5
28525   ac_status=$?
28526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527   (exit $ac_status); }; } &&
28528          { ac_try='test -s conftest.$ac_objext'
28529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530   (eval $ac_try) 2>&5
28531   ac_status=$?
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); }; }; then
28534   ac_cv_cxx_have_global_hash_set=yes
28535 else
28536   echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28538
28539 ac_cv_cxx_have_global_hash_set=no
28540 fi
28541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28542   ac_ext=c
28543 ac_cpp='$CPP $CPPFLAGS'
28544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28547
28548 fi
28549 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28550 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28551  if test "$ac_cv_cxx_have_global_hash_set" = yes
28552  then
28553
28554 cat >>confdefs.h <<\_ACEOF
28555 #define HAVE_GLOBAL_HASH_SET 1
28556 _ACEOF
28557
28558  else
28559
28560 cat >>confdefs.h <<\_ACEOF
28561 #define HAVE_GLOBAL_HASH_SET 0
28562 _ACEOF
28563
28564  fi
28565
28566 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28567 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28568 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28569   echo $ECHO_N "(cached) $ECHO_C" >&6
28570 else
28571
28572   ac_ext=cc
28573 ac_cpp='$CXXCPP $CPPFLAGS'
28574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28577
28578   cat >conftest.$ac_ext <<_ACEOF
28579 /* confdefs.h.  */
28580 _ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h.  */
28584 #include <iterator>
28585 #ifdef HAVE_NAMESPACES
28586 using namespace std;
28587 #endif
28588 int
28589 main ()
28590 {
28591 iterator<int,int,int> t; return 0;
28592   ;
28593   return 0;
28594 }
28595 _ACEOF
28596 rm -f conftest.$ac_objext
28597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28598   (eval $ac_compile) 2>conftest.er1
28599   ac_status=$?
28600   grep -v '^ *+' conftest.er1 >conftest.err
28601   rm -f conftest.er1
28602   cat conftest.err >&5
28603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604   (exit $ac_status); } &&
28605          { ac_try='test -z "$ac_cxx_werror_flag"
28606                          || test ! -s conftest.err'
28607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608   (eval $ac_try) 2>&5
28609   ac_status=$?
28610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); }; } &&
28612          { ac_try='test -s conftest.$ac_objext'
28613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614   (eval $ac_try) 2>&5
28615   ac_status=$?
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); }; }; then
28618   ac_cv_cxx_have_std_iterator=yes
28619 else
28620   echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28622
28623 ac_cv_cxx_have_std_iterator=no
28624 fi
28625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28626   ac_ext=c
28627 ac_cpp='$CPP $CPPFLAGS'
28628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28631
28632
28633 fi
28634 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28635 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28636 if test "$ac_cv_cxx_have_std_iterator" = yes
28637 then
28638
28639 cat >>confdefs.h <<\_ACEOF
28640 #define HAVE_STD_ITERATOR 1
28641 _ACEOF
28642
28643 else
28644
28645 cat >>confdefs.h <<\_ACEOF
28646 #define HAVE_STD_ITERATOR 0
28647 _ACEOF
28648
28649 fi
28650
28651 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28652 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28653 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 else
28656
28657   ac_ext=cc
28658 ac_cpp='$CXXCPP $CPPFLAGS'
28659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28662
28663   cat >conftest.$ac_ext <<_ACEOF
28664 /* confdefs.h.  */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h.  */
28669 #include <iterator>
28670 #ifdef HAVE_NAMESPACES
28671 using namespace std;
28672 #endif
28673 int
28674 main ()
28675 {
28676 bidirectional_iterator<int,int> t; return 0;
28677   ;
28678   return 0;
28679 }
28680 _ACEOF
28681 rm -f conftest.$ac_objext
28682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28683   (eval $ac_compile) 2>conftest.er1
28684   ac_status=$?
28685   grep -v '^ *+' conftest.er1 >conftest.err
28686   rm -f conftest.er1
28687   cat conftest.err >&5
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); } &&
28690          { ac_try='test -z "$ac_cxx_werror_flag"
28691                          || test ! -s conftest.err'
28692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693   (eval $ac_try) 2>&5
28694   ac_status=$?
28695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696   (exit $ac_status); }; } &&
28697          { ac_try='test -s conftest.$ac_objext'
28698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699   (eval $ac_try) 2>&5
28700   ac_status=$?
28701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702   (exit $ac_status); }; }; then
28703   ac_cv_cxx_have_bi_iterator=yes
28704 else
28705   echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28707
28708 ac_cv_cxx_have_bi_iterator=no
28709 fi
28710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28711   ac_ext=c
28712 ac_cpp='$CPP $CPPFLAGS'
28713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28716
28717
28718 fi
28719 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28720 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28721 if test "$ac_cv_cxx_have_bi_iterator" = yes
28722 then
28723
28724 cat >>confdefs.h <<\_ACEOF
28725 #define HAVE_BI_ITERATOR 1
28726 _ACEOF
28727
28728 else
28729
28730 cat >>confdefs.h <<\_ACEOF
28731 #define HAVE_BI_ITERATOR 0
28732 _ACEOF
28733
28734 fi
28735
28736 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28737 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28738 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28739   echo $ECHO_N "(cached) $ECHO_C" >&6
28740 else
28741
28742   ac_ext=cc
28743 ac_cpp='$CXXCPP $CPPFLAGS'
28744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28747
28748   cat >conftest.$ac_ext <<_ACEOF
28749 /* confdefs.h.  */
28750 _ACEOF
28751 cat confdefs.h >>conftest.$ac_ext
28752 cat >>conftest.$ac_ext <<_ACEOF
28753 /* end confdefs.h.  */
28754 #include <iterator>
28755 #ifdef HAVE_NAMESPACES
28756 using namespace std;
28757 #endif
28758 int
28759 main ()
28760 {
28761 forward_iterator<int,int> t; return 0;
28762   ;
28763   return 0;
28764 }
28765 _ACEOF
28766 rm -f conftest.$ac_objext
28767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28768   (eval $ac_compile) 2>conftest.er1
28769   ac_status=$?
28770   grep -v '^ *+' conftest.er1 >conftest.err
28771   rm -f conftest.er1
28772   cat conftest.err >&5
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); } &&
28775          { ac_try='test -z "$ac_cxx_werror_flag"
28776                          || test ! -s conftest.err'
28777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778   (eval $ac_try) 2>&5
28779   ac_status=$?
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); }; } &&
28782          { ac_try='test -s conftest.$ac_objext'
28783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784   (eval $ac_try) 2>&5
28785   ac_status=$?
28786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787   (exit $ac_status); }; }; then
28788   ac_cv_cxx_have_fwd_iterator=yes
28789 else
28790   echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28792
28793 ac_cv_cxx_have_fwd_iterator=no
28794 fi
28795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28796   ac_ext=c
28797 ac_cpp='$CPP $CPPFLAGS'
28798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28801
28802
28803 fi
28804 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28805 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28806 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28807 then
28808
28809 cat >>confdefs.h <<\_ACEOF
28810 #define HAVE_FWD_ITERATOR 1
28811 _ACEOF
28812
28813 else
28814
28815 cat >>confdefs.h <<\_ACEOF
28816 #define HAVE_FWD_ITERATOR 0
28817 _ACEOF
28818
28819 fi
28820
28821
28822 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28823 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28824 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28825   echo $ECHO_N "(cached) $ECHO_C" >&6
28826 else
28827   ac_ext=cc
28828 ac_cpp='$CXXCPP $CPPFLAGS'
28829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28832
28833    cat >conftest.$ac_ext <<_ACEOF
28834 /* confdefs.h.  */
28835 _ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h.  */
28839 #include <math.h>
28840 int
28841 main ()
28842 {
28843 float f; isnan(f);
28844   ;
28845   return 0;
28846 }
28847 _ACEOF
28848 rm -f conftest.$ac_objext
28849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28850   (eval $ac_compile) 2>conftest.er1
28851   ac_status=$?
28852   grep -v '^ *+' conftest.er1 >conftest.err
28853   rm -f conftest.er1
28854   cat conftest.err >&5
28855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856   (exit $ac_status); } &&
28857          { ac_try='test -z "$ac_cxx_werror_flag"
28858                          || test ! -s conftest.err'
28859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860   (eval $ac_try) 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; } &&
28864          { ac_try='test -s conftest.$ac_objext'
28865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866   (eval $ac_try) 2>&5
28867   ac_status=$?
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); }; }; then
28870   ac_cv_func_isnan_in_math_h=yes
28871 else
28872   echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875 ac_cv_func_isnan_in_math_h=no
28876 fi
28877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28878   ac_ext=c
28879 ac_cpp='$CPP $CPPFLAGS'
28880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28883
28884 fi
28885 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28886 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28887
28888
28889 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28890
28891 cat >>confdefs.h <<\_ACEOF
28892 #define HAVE_ISNAN_IN_MATH_H 1
28893 _ACEOF
28894
28895 fi
28896
28897 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28898 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28899 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28900   echo $ECHO_N "(cached) $ECHO_C" >&6
28901 else
28902   ac_ext=cc
28903 ac_cpp='$CXXCPP $CPPFLAGS'
28904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28907
28908    cat >conftest.$ac_ext <<_ACEOF
28909 /* confdefs.h.  */
28910 _ACEOF
28911 cat confdefs.h >>conftest.$ac_ext
28912 cat >>conftest.$ac_ext <<_ACEOF
28913 /* end confdefs.h.  */
28914 #include <cmath>
28915 int
28916 main ()
28917 {
28918 float f; isnan(f);
28919   ;
28920   return 0;
28921 }
28922 _ACEOF
28923 rm -f conftest.$ac_objext
28924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28925   (eval $ac_compile) 2>conftest.er1
28926   ac_status=$?
28927   grep -v '^ *+' conftest.er1 >conftest.err
28928   rm -f conftest.er1
28929   cat conftest.err >&5
28930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931   (exit $ac_status); } &&
28932          { ac_try='test -z "$ac_cxx_werror_flag"
28933                          || test ! -s conftest.err'
28934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935   (eval $ac_try) 2>&5
28936   ac_status=$?
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); }; } &&
28939          { ac_try='test -s conftest.$ac_objext'
28940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941   (eval $ac_try) 2>&5
28942   ac_status=$?
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); }; }; then
28945   ac_cv_func_isnan_in_cmath=yes
28946 else
28947   echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28949
28950 ac_cv_func_isnan_in_cmath=no
28951 fi
28952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28953   ac_ext=c
28954 ac_cpp='$CPP $CPPFLAGS'
28955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28958
28959 fi
28960 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28961 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28962
28963 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28964
28965 cat >>confdefs.h <<\_ACEOF
28966 #define HAVE_ISNAN_IN_CMATH 1
28967 _ACEOF
28968
28969 fi
28970
28971 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28972 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28973 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28974   echo $ECHO_N "(cached) $ECHO_C" >&6
28975 else
28976   ac_ext=cc
28977 ac_cpp='$CXXCPP $CPPFLAGS'
28978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28981
28982    cat >conftest.$ac_ext <<_ACEOF
28983 /* confdefs.h.  */
28984 _ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h.  */
28988 #include <cmath>
28989 int
28990 main ()
28991 {
28992 float f; std::isnan(f);
28993   ;
28994   return 0;
28995 }
28996 _ACEOF
28997 rm -f conftest.$ac_objext
28998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28999   (eval $ac_compile) 2>conftest.er1
29000   ac_status=$?
29001   grep -v '^ *+' conftest.er1 >conftest.err
29002   rm -f conftest.er1
29003   cat conftest.err >&5
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); } &&
29006          { ac_try='test -z "$ac_cxx_werror_flag"
29007                          || test ! -s conftest.err'
29008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29009   (eval $ac_try) 2>&5
29010   ac_status=$?
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); }; } &&
29013          { ac_try='test -s conftest.$ac_objext'
29014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015   (eval $ac_try) 2>&5
29016   ac_status=$?
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); }; }; then
29019   ac_cv_func_std_isnan_in_cmath=yes
29020 else
29021   echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29023
29024 ac_cv_func_std_isnan_in_cmath=no
29025 fi
29026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29027   ac_ext=c
29028 ac_cpp='$CPP $CPPFLAGS'
29029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29032
29033 fi
29034 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29035 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29036
29037 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29038
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_STD_ISNAN_IN_CMATH 1
29041 _ACEOF
29042
29043 fi
29044
29045
29046 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29047 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29048 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29049   echo $ECHO_N "(cached) $ECHO_C" >&6
29050 else
29051   ac_ext=cc
29052 ac_cpp='$CXXCPP $CPPFLAGS'
29053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29056
29057    cat >conftest.$ac_ext <<_ACEOF
29058 /* confdefs.h.  */
29059 _ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h.  */
29063 #include <math.h>
29064 int
29065 main ()
29066 {
29067 float f; isinf(f);
29068   ;
29069   return 0;
29070 }
29071 _ACEOF
29072 rm -f conftest.$ac_objext
29073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29074   (eval $ac_compile) 2>conftest.er1
29075   ac_status=$?
29076   grep -v '^ *+' conftest.er1 >conftest.err
29077   rm -f conftest.er1
29078   cat conftest.err >&5
29079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080   (exit $ac_status); } &&
29081          { ac_try='test -z "$ac_cxx_werror_flag"
29082                          || test ! -s conftest.err'
29083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084   (eval $ac_try) 2>&5
29085   ac_status=$?
29086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087   (exit $ac_status); }; } &&
29088          { ac_try='test -s conftest.$ac_objext'
29089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090   (eval $ac_try) 2>&5
29091   ac_status=$?
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); }; }; then
29094   ac_cv_func_isinf_in_math_h=yes
29095 else
29096   echo "$as_me: failed program was:" >&5
29097 sed 's/^/| /' conftest.$ac_ext >&5
29098
29099 ac_cv_func_isinf_in_math_h=no
29100 fi
29101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29102   ac_ext=c
29103 ac_cpp='$CPP $CPPFLAGS'
29104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29107
29108 fi
29109 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29110 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29111
29112 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29113
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_ISINF_IN_MATH_H 1
29116 _ACEOF
29117
29118 fi
29119
29120 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29121 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29122 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29123   echo $ECHO_N "(cached) $ECHO_C" >&6
29124 else
29125   ac_ext=cc
29126 ac_cpp='$CXXCPP $CPPFLAGS'
29127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29130
29131    cat >conftest.$ac_ext <<_ACEOF
29132 /* confdefs.h.  */
29133 _ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h.  */
29137 #include <cmath>
29138 int
29139 main ()
29140 {
29141 float f; isinf(f);
29142   ;
29143   return 0;
29144 }
29145 _ACEOF
29146 rm -f conftest.$ac_objext
29147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29148   (eval $ac_compile) 2>conftest.er1
29149   ac_status=$?
29150   grep -v '^ *+' conftest.er1 >conftest.err
29151   rm -f conftest.er1
29152   cat conftest.err >&5
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); } &&
29155          { ac_try='test -z "$ac_cxx_werror_flag"
29156                          || test ! -s conftest.err'
29157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158   (eval $ac_try) 2>&5
29159   ac_status=$?
29160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161   (exit $ac_status); }; } &&
29162          { ac_try='test -s conftest.$ac_objext'
29163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164   (eval $ac_try) 2>&5
29165   ac_status=$?
29166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167   (exit $ac_status); }; }; then
29168   ac_cv_func_isinf_in_cmath=yes
29169 else
29170   echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29172
29173 ac_cv_func_isinf_in_cmath=no
29174 fi
29175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29176   ac_ext=c
29177 ac_cpp='$CPP $CPPFLAGS'
29178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29181
29182 fi
29183 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29184 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29185
29186 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29187
29188 cat >>confdefs.h <<\_ACEOF
29189 #define HAVE_ISINF_IN_CMATH 1
29190 _ACEOF
29191
29192 fi
29193
29194 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29195 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29196 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29197   echo $ECHO_N "(cached) $ECHO_C" >&6
29198 else
29199   ac_ext=cc
29200 ac_cpp='$CXXCPP $CPPFLAGS'
29201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29204
29205    cat >conftest.$ac_ext <<_ACEOF
29206 /* confdefs.h.  */
29207 _ACEOF
29208 cat confdefs.h >>conftest.$ac_ext
29209 cat >>conftest.$ac_ext <<_ACEOF
29210 /* end confdefs.h.  */
29211 #include <cmath>
29212 int
29213 main ()
29214 {
29215 float f; std::isinf(f)}
29216   ;
29217   return 0;
29218 }
29219 _ACEOF
29220 rm -f conftest.$ac_objext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29222   (eval $ac_compile) 2>conftest.er1
29223   ac_status=$?
29224   grep -v '^ *+' conftest.er1 >conftest.err
29225   rm -f conftest.er1
29226   cat conftest.err >&5
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); } &&
29229          { ac_try='test -z "$ac_cxx_werror_flag"
29230                          || test ! -s conftest.err'
29231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232   (eval $ac_try) 2>&5
29233   ac_status=$?
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); }; } &&
29236          { ac_try='test -s conftest.$ac_objext'
29237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238   (eval $ac_try) 2>&5
29239   ac_status=$?
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); }; }; then
29242   ac_cv_func_std_isinf_in_cmath=yes
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247 ac_cv_func_std_isinf_in_cmath=no
29248 fi
29249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29250   ac_ext=c
29251 ac_cpp='$CPP $CPPFLAGS'
29252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29255
29256 fi
29257 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29258 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29259
29260 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29261
29262 cat >>confdefs.h <<\_ACEOF
29263 #define HAVE_STD_ISINF_IN_CMATH 1
29264 _ACEOF
29265
29266 fi
29267
29268 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29269 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29270 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29271   echo $ECHO_N "(cached) $ECHO_C" >&6
29272 else
29273   ac_ext=cc
29274 ac_cpp='$CXXCPP $CPPFLAGS'
29275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29278
29279    cat >conftest.$ac_ext <<_ACEOF
29280 /* confdefs.h.  */
29281 _ACEOF
29282 cat confdefs.h >>conftest.$ac_ext
29283 cat >>conftest.$ac_ext <<_ACEOF
29284 /* end confdefs.h.  */
29285 #include <ieeefp.h>
29286 int
29287 main ()
29288 {
29289 float f; finite(f);
29290   ;
29291   return 0;
29292 }
29293 _ACEOF
29294 rm -f conftest.$ac_objext
29295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29296   (eval $ac_compile) 2>conftest.er1
29297   ac_status=$?
29298   grep -v '^ *+' conftest.er1 >conftest.err
29299   rm -f conftest.er1
29300   cat conftest.err >&5
29301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302   (exit $ac_status); } &&
29303          { ac_try='test -z "$ac_cxx_werror_flag"
29304                          || test ! -s conftest.err'
29305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306   (eval $ac_try) 2>&5
29307   ac_status=$?
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); }; } &&
29310          { ac_try='test -s conftest.$ac_objext'
29311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312   (eval $ac_try) 2>&5
29313   ac_status=$?
29314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315   (exit $ac_status); }; }; then
29316   ac_cv_func_finite_in_ieeefp_h=yes
29317 else
29318   echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29320
29321 ac_cv_func_finite_in_ieeefp_h=no
29322 fi
29323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29324   ac_ext=c
29325 ac_cpp='$CPP $CPPFLAGS'
29326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29329
29330 fi
29331 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29332 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29333
29334 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29335
29336 cat >>confdefs.h <<\_ACEOF
29337 #define HAVE_FINITE_IN_IEEEFP_H 1
29338 _ACEOF
29339
29340 fi
29341
29342
29343
29344
29345
29346 for ac_header in stdlib.h unistd.h
29347 do
29348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29350   echo "$as_me:$LINENO: checking for $ac_header" >&5
29351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29353   echo $ECHO_N "(cached) $ECHO_C" >&6
29354 fi
29355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29357 else
29358   # Is the header compilable?
29359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29361 cat >conftest.$ac_ext <<_ACEOF
29362 /* confdefs.h.  */
29363 _ACEOF
29364 cat confdefs.h >>conftest.$ac_ext
29365 cat >>conftest.$ac_ext <<_ACEOF
29366 /* end confdefs.h.  */
29367 $ac_includes_default
29368 #include <$ac_header>
29369 _ACEOF
29370 rm -f conftest.$ac_objext
29371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29372   (eval $ac_compile) 2>conftest.er1
29373   ac_status=$?
29374   grep -v '^ *+' conftest.er1 >conftest.err
29375   rm -f conftest.er1
29376   cat conftest.err >&5
29377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378   (exit $ac_status); } &&
29379          { ac_try='test -z "$ac_c_werror_flag"
29380                          || test ! -s conftest.err'
29381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382   (eval $ac_try) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; } &&
29386          { ac_try='test -s conftest.$ac_objext'
29387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388   (eval $ac_try) 2>&5
29389   ac_status=$?
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); }; }; then
29392   ac_header_compiler=yes
29393 else
29394   echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29396
29397 ac_header_compiler=no
29398 fi
29399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29401 echo "${ECHO_T}$ac_header_compiler" >&6
29402
29403 # Is the header present?
29404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29406 cat >conftest.$ac_ext <<_ACEOF
29407 /* confdefs.h.  */
29408 _ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h.  */
29412 #include <$ac_header>
29413 _ACEOF
29414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29416   ac_status=$?
29417   grep -v '^ *+' conftest.er1 >conftest.err
29418   rm -f conftest.er1
29419   cat conftest.err >&5
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); } >/dev/null; then
29422   if test -s conftest.err; then
29423     ac_cpp_err=$ac_c_preproc_warn_flag
29424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29425   else
29426     ac_cpp_err=
29427   fi
29428 else
29429   ac_cpp_err=yes
29430 fi
29431 if test -z "$ac_cpp_err"; then
29432   ac_header_preproc=yes
29433 else
29434   echo "$as_me: failed program was:" >&5
29435 sed 's/^/| /' conftest.$ac_ext >&5
29436
29437   ac_header_preproc=no
29438 fi
29439 rm -f conftest.err conftest.$ac_ext
29440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29441 echo "${ECHO_T}$ac_header_preproc" >&6
29442
29443 # So?  What about this header?
29444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29445   yes:no: )
29446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29450     ac_header_preproc=yes
29451     ;;
29452   no:yes:* )
29453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29465     (
29466       cat <<\_ASBOX
29467 ## ----------------------------------- ##
29468 ## Report this to llvmbugs@cs.uiuc.edu ##
29469 ## ----------------------------------- ##
29470 _ASBOX
29471     ) |
29472       sed "s/^/$as_me: WARNING:     /" >&2
29473     ;;
29474 esac
29475 echo "$as_me:$LINENO: checking for $ac_header" >&5
29476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29478   echo $ECHO_N "(cached) $ECHO_C" >&6
29479 else
29480   eval "$as_ac_Header=\$ac_header_preproc"
29481 fi
29482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29484
29485 fi
29486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29487   cat >>confdefs.h <<_ACEOF
29488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29489 _ACEOF
29490
29491 fi
29492
29493 done
29494
29495
29496 for ac_func in getpagesize
29497 do
29498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29499 echo "$as_me:$LINENO: checking for $ac_func" >&5
29500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29501 if eval "test \"\${$as_ac_var+set}\" = set"; then
29502   echo $ECHO_N "(cached) $ECHO_C" >&6
29503 else
29504   cat >conftest.$ac_ext <<_ACEOF
29505 /* confdefs.h.  */
29506 _ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h.  */
29510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29512 #define $ac_func innocuous_$ac_func
29513
29514 /* System header to define __stub macros and hopefully few prototypes,
29515     which can conflict with char $ac_func (); below.
29516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29517     <limits.h> exists even on freestanding compilers.  */
29518
29519 #ifdef __STDC__
29520 # include <limits.h>
29521 #else
29522 # include <assert.h>
29523 #endif
29524
29525 #undef $ac_func
29526
29527 /* Override any gcc2 internal prototype to avoid an error.  */
29528 #ifdef __cplusplus
29529 extern "C"
29530 {
29531 #endif
29532 /* We use char because int might match the return type of a gcc2
29533    builtin and then its argument prototype would still apply.  */
29534 char $ac_func ();
29535 /* The GNU C library defines this for functions which it implements
29536     to always fail with ENOSYS.  Some functions are actually named
29537     something starting with __ and the normal name is an alias.  */
29538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29539 choke me
29540 #else
29541 char (*f) () = $ac_func;
29542 #endif
29543 #ifdef __cplusplus
29544 }
29545 #endif
29546
29547 int
29548 main ()
29549 {
29550 return f != $ac_func;
29551   ;
29552   return 0;
29553 }
29554 _ACEOF
29555 rm -f conftest.$ac_objext conftest$ac_exeext
29556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29557   (eval $ac_link) 2>conftest.er1
29558   ac_status=$?
29559   grep -v '^ *+' conftest.er1 >conftest.err
29560   rm -f conftest.er1
29561   cat conftest.err >&5
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); } &&
29564          { ac_try='test -z "$ac_c_werror_flag"
29565                          || test ! -s conftest.err'
29566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567   (eval $ac_try) 2>&5
29568   ac_status=$?
29569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570   (exit $ac_status); }; } &&
29571          { ac_try='test -s conftest$ac_exeext'
29572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29573   (eval $ac_try) 2>&5
29574   ac_status=$?
29575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576   (exit $ac_status); }; }; then
29577   eval "$as_ac_var=yes"
29578 else
29579   echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29581
29582 eval "$as_ac_var=no"
29583 fi
29584 rm -f conftest.err conftest.$ac_objext \
29585       conftest$ac_exeext conftest.$ac_ext
29586 fi
29587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29589 if test `eval echo '${'$as_ac_var'}'` = yes; then
29590   cat >>confdefs.h <<_ACEOF
29591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29592 _ACEOF
29593
29594 fi
29595 done
29596
29597 echo "$as_me:$LINENO: checking for working mmap" >&5
29598 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29599 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29600   echo $ECHO_N "(cached) $ECHO_C" >&6
29601 else
29602   if test "$cross_compiling" = yes; then
29603   ac_cv_func_mmap_fixed_mapped=no
29604 else
29605   cat >conftest.$ac_ext <<_ACEOF
29606 /* confdefs.h.  */
29607 _ACEOF
29608 cat confdefs.h >>conftest.$ac_ext
29609 cat >>conftest.$ac_ext <<_ACEOF
29610 /* end confdefs.h.  */
29611 $ac_includes_default
29612 /* malloc might have been renamed as rpl_malloc. */
29613 #undef malloc
29614
29615 /* Thanks to Mike Haertel and Jim Avera for this test.
29616    Here is a matrix of mmap possibilities:
29617         mmap private not fixed
29618         mmap private fixed at somewhere currently unmapped
29619         mmap private fixed at somewhere already mapped
29620         mmap shared not fixed
29621         mmap shared fixed at somewhere currently unmapped
29622         mmap shared fixed at somewhere already mapped
29623    For private mappings, we should verify that changes cannot be read()
29624    back from the file, nor mmap's back from the file at a different
29625    address.  (There have been systems where private was not correctly
29626    implemented like the infamous i386 svr4.0, and systems where the
29627    VM page cache was not coherent with the file system buffer cache
29628    like early versions of FreeBSD and possibly contemporary NetBSD.)
29629    For shared mappings, we should conversely verify that changes get
29630    propagated back to all the places they're supposed to be.
29631
29632    Grep wants private fixed already mapped.
29633    The main things grep needs to know about mmap are:
29634    * does it exist and is it safe to write into the mmap'd area
29635    * how to use it (BSD variants)  */
29636
29637 #include <fcntl.h>
29638 #include <sys/mman.h>
29639
29640 #if !STDC_HEADERS && !HAVE_STDLIB_H
29641 char *malloc ();
29642 #endif
29643
29644 /* This mess was copied from the GNU getpagesize.h.  */
29645 #if !HAVE_GETPAGESIZE
29646 /* Assume that all systems that can run configure have sys/param.h.  */
29647 # if !HAVE_SYS_PARAM_H
29648 #  define HAVE_SYS_PARAM_H 1
29649 # endif
29650
29651 # ifdef _SC_PAGESIZE
29652 #  define getpagesize() sysconf(_SC_PAGESIZE)
29653 # else /* no _SC_PAGESIZE */
29654 #  if HAVE_SYS_PARAM_H
29655 #   include <sys/param.h>
29656 #   ifdef EXEC_PAGESIZE
29657 #    define getpagesize() EXEC_PAGESIZE
29658 #   else /* no EXEC_PAGESIZE */
29659 #    ifdef NBPG
29660 #     define getpagesize() NBPG * CLSIZE
29661 #     ifndef CLSIZE
29662 #      define CLSIZE 1
29663 #     endif /* no CLSIZE */
29664 #    else /* no NBPG */
29665 #     ifdef NBPC
29666 #      define getpagesize() NBPC
29667 #     else /* no NBPC */
29668 #      ifdef PAGESIZE
29669 #       define getpagesize() PAGESIZE
29670 #      endif /* PAGESIZE */
29671 #     endif /* no NBPC */
29672 #    endif /* no NBPG */
29673 #   endif /* no EXEC_PAGESIZE */
29674 #  else /* no HAVE_SYS_PARAM_H */
29675 #   define getpagesize() 8192   /* punt totally */
29676 #  endif /* no HAVE_SYS_PARAM_H */
29677 # endif /* no _SC_PAGESIZE */
29678
29679 #endif /* no HAVE_GETPAGESIZE */
29680
29681 int
29682 main ()
29683 {
29684   char *data, *data2, *data3;
29685   int i, pagesize;
29686   int fd;
29687
29688   pagesize = getpagesize ();
29689
29690   /* First, make a file with some known garbage in it. */
29691   data = (char *) malloc (pagesize);
29692   if (!data)
29693     exit (1);
29694   for (i = 0; i < pagesize; ++i)
29695     *(data + i) = rand ();
29696   umask (0);
29697   fd = creat ("conftest.mmap", 0600);
29698   if (fd < 0)
29699     exit (1);
29700   if (write (fd, data, pagesize) != pagesize)
29701     exit (1);
29702   close (fd);
29703
29704   /* Next, try to mmap the file at a fixed address which already has
29705      something else allocated at it.  If we can, also make sure that
29706      we see the same garbage.  */
29707   fd = open ("conftest.mmap", O_RDWR);
29708   if (fd < 0)
29709     exit (1);
29710   data2 = (char *) malloc (2 * pagesize);
29711   if (!data2)
29712     exit (1);
29713   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29714   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29715                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29716     exit (1);
29717   for (i = 0; i < pagesize; ++i)
29718     if (*(data + i) != *(data2 + i))
29719       exit (1);
29720
29721   /* Finally, make sure that changes to the mapped area do not
29722      percolate back to the file as seen by read().  (This is a bug on
29723      some variants of i386 svr4.0.)  */
29724   for (i = 0; i < pagesize; ++i)
29725     *(data2 + i) = *(data2 + i) + 1;
29726   data3 = (char *) malloc (pagesize);
29727   if (!data3)
29728     exit (1);
29729   if (read (fd, data3, pagesize) != pagesize)
29730     exit (1);
29731   for (i = 0; i < pagesize; ++i)
29732     if (*(data + i) != *(data3 + i))
29733       exit (1);
29734   close (fd);
29735   exit (0);
29736 }
29737 _ACEOF
29738 rm -f conftest$ac_exeext
29739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29740   (eval $ac_link) 2>&5
29741   ac_status=$?
29742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29745   (eval $ac_try) 2>&5
29746   ac_status=$?
29747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748   (exit $ac_status); }; }; then
29749   ac_cv_func_mmap_fixed_mapped=yes
29750 else
29751   echo "$as_me: program exited with status $ac_status" >&5
29752 echo "$as_me: failed program was:" >&5
29753 sed 's/^/| /' conftest.$ac_ext >&5
29754
29755 ( exit $ac_status )
29756 ac_cv_func_mmap_fixed_mapped=no
29757 fi
29758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29759 fi
29760 fi
29761 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29762 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29763 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29764
29765 cat >>confdefs.h <<\_ACEOF
29766 #define HAVE_MMAP 1
29767 _ACEOF
29768
29769 fi
29770 rm -f conftest.mmap
29771
29772 echo "$as_me:$LINENO: checking for mmap of files" >&5
29773 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29774 if test "${ac_cv_func_mmap_file+set}" = set; then
29775   echo $ECHO_N "(cached) $ECHO_C" >&6
29776 else
29777    ac_ext=c
29778 ac_cpp='$CPP $CPPFLAGS'
29779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29782
29783   if test "$cross_compiling" = yes; then
29784   ac_cv_func_mmap_file=no
29785 else
29786   cat >conftest.$ac_ext <<_ACEOF
29787
29788     /* confdefs.h.  */
29789 _ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h.  */
29793
29794 #include <sys/types.h>
29795 #include <sys/mman.h>
29796 #include <fcntl.h>
29797
29798 int
29799 main ()
29800 {
29801
29802   int fd;
29803   fd = creat ("foo",0777);
29804   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29805   unlink ("foo");
29806   return (fd != (int) MAP_FAILED);
29807   ;
29808   return 0;
29809 }
29810 _ACEOF
29811 rm -f conftest$ac_exeext
29812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29813   (eval $ac_link) 2>&5
29814   ac_status=$?
29815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818   (eval $ac_try) 2>&5
29819   ac_status=$?
29820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821   (exit $ac_status); }; }; then
29822   ac_cv_func_mmap_file=yes
29823 else
29824   echo "$as_me: program exited with status $ac_status" >&5
29825 echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29827
29828 ( exit $ac_status )
29829 ac_cv_func_mmap_file=no
29830 fi
29831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29832 fi
29833   ac_ext=c
29834 ac_cpp='$CPP $CPPFLAGS'
29835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29838
29839
29840 fi
29841 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29842 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29843 if test "$ac_cv_func_mmap_file" = yes; then
29844
29845 cat >>confdefs.h <<\_ACEOF
29846 #define HAVE_MMAP_FILE
29847 _ACEOF
29848
29849    MMAP_FILE=yes
29850
29851 fi
29852
29853 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29854 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29855 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29856   echo $ECHO_N "(cached) $ECHO_C" >&6
29857 else
29858   if test "$llvm_cv_os_type" == "Interix" ; then
29859    ac_cv_need_dev_zero_for_mmap=yes
29860  else
29861    ac_cv_need_dev_zero_for_mmap=no
29862  fi
29863
29864 fi
29865 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29866 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29867 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29868
29869 cat >>confdefs.h <<\_ACEOF
29870 #define NEED_DEV_ZERO_FOR_MMAP 1
29871 _ACEOF
29872
29873 fi
29874 echo "$as_me:$LINENO: checking for mprotect" >&5
29875 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29876 if test "${ac_cv_func_mprotect+set}" = set; then
29877   echo $ECHO_N "(cached) $ECHO_C" >&6
29878 else
29879   cat >conftest.$ac_ext <<_ACEOF
29880 /* confdefs.h.  */
29881 _ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h.  */
29885 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29887 #define mprotect innocuous_mprotect
29888
29889 /* System header to define __stub macros and hopefully few prototypes,
29890     which can conflict with char mprotect (); below.
29891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29892     <limits.h> exists even on freestanding compilers.  */
29893
29894 #ifdef __STDC__
29895 # include <limits.h>
29896 #else
29897 # include <assert.h>
29898 #endif
29899
29900 #undef mprotect
29901
29902 /* Override any gcc2 internal prototype to avoid an error.  */
29903 #ifdef __cplusplus
29904 extern "C"
29905 {
29906 #endif
29907 /* We use char because int might match the return type of a gcc2
29908    builtin and then its argument prototype would still apply.  */
29909 char mprotect ();
29910 /* The GNU C library defines this for functions which it implements
29911     to always fail with ENOSYS.  Some functions are actually named
29912     something starting with __ and the normal name is an alias.  */
29913 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29914 choke me
29915 #else
29916 char (*f) () = mprotect;
29917 #endif
29918 #ifdef __cplusplus
29919 }
29920 #endif
29921
29922 int
29923 main ()
29924 {
29925 return f != mprotect;
29926   ;
29927   return 0;
29928 }
29929 _ACEOF
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29932   (eval $ac_link) 2>conftest.er1
29933   ac_status=$?
29934   grep -v '^ *+' conftest.er1 >conftest.err
29935   rm -f conftest.er1
29936   cat conftest.err >&5
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); } &&
29939          { ac_try='test -z "$ac_c_werror_flag"
29940                          || test ! -s conftest.err'
29941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942   (eval $ac_try) 2>&5
29943   ac_status=$?
29944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945   (exit $ac_status); }; } &&
29946          { ac_try='test -s conftest$ac_exeext'
29947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948   (eval $ac_try) 2>&5
29949   ac_status=$?
29950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951   (exit $ac_status); }; }; then
29952   ac_cv_func_mprotect=yes
29953 else
29954   echo "$as_me: failed program was:" >&5
29955 sed 's/^/| /' conftest.$ac_ext >&5
29956
29957 ac_cv_func_mprotect=no
29958 fi
29959 rm -f conftest.err conftest.$ac_objext \
29960       conftest$ac_exeext conftest.$ac_ext
29961 fi
29962 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29963 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29964 if test $ac_cv_func_mprotect = yes; then
29965   :
29966 else
29967   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29968 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29969    { (exit 1); exit 1; }; }
29970 fi
29971
29972
29973 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29974 then
29975   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29976 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29977 fi
29978 if test "$ac_cv_func_mmap_file" = "no"
29979 then
29980   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29981 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29982 fi
29983
29984
29985 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29986 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29987 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29988   echo $ECHO_N "(cached) $ECHO_C" >&6
29989 else
29990   llvm_cv_llvmgcc_sanity="no"
29991 if test -x "$LLVMGCC" ; then
29992   cp /dev/null conftest.c
29993   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29994   if test $? -eq 0 ; then
29995     llvm_cv_llvmgcc_sanity="yes"
29996   fi
29997   rm conftest.c
29998 fi
29999 fi
30000 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30001 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30002
30003 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30004   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30005   LLVMCC1=$llvmcc1path
30006
30007   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30008   LLVMCC1PLUS=$llvmcc1pluspath
30009
30010   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30011   LLVMGCCDIR=$llvmgccdir
30012
30013 fi
30014
30015 SHLIBEXT=$libltdl_cv_shlibext
30016
30017
30018 # Translate the various configuration directories and other basic
30019 # information into substitutions that will end up in Makefile.config.in
30020 # that these configured values can be used by the makefiles
30021 eval LLVM_PREFIX="${prefix}";
30022 eval LLVM_BINDIR="${prefix}/bin";
30023 eval LLVM_LIBDIR="${prefix}/lib";
30024 eval LLVM_DATADIR="${prefix}/share/llvm";
30025 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30026 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30027 eval LLVM_INCLUDEDIR="${prefix}/include";
30028 eval LLVM_INFODIR="${prefix}/info";
30029 eval LLVM_MANDIR="${prefix}/man";
30030 LLVM_CONFIGTIME=`date`
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042 # Place the various directores into the config.h file as #defines so that we
30043 # can know about the installation paths within LLVM.
30044
30045 cat >>confdefs.h <<_ACEOF
30046 #define LLVM_PREFIX "$LLVM_PREFIX"
30047 _ACEOF
30048
30049
30050 cat >>confdefs.h <<_ACEOF
30051 #define LLVM_BINDIR "$LLVM_BINDIR"
30052 _ACEOF
30053
30054
30055 cat >>confdefs.h <<_ACEOF
30056 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30057 _ACEOF
30058
30059
30060 cat >>confdefs.h <<_ACEOF
30061 #define LLVM_DATADIR "$LLVM_DATADIR"
30062 _ACEOF
30063
30064
30065 cat >>confdefs.h <<_ACEOF
30066 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30067 _ACEOF
30068
30069
30070 cat >>confdefs.h <<_ACEOF
30071 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30072 _ACEOF
30073
30074
30075 cat >>confdefs.h <<_ACEOF
30076 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30077 _ACEOF
30078
30079
30080 cat >>confdefs.h <<_ACEOF
30081 #define LLVM_INFODIR "$LLVM_INFODIR"
30082 _ACEOF
30083
30084
30085 cat >>confdefs.h <<_ACEOF
30086 #define LLVM_MANDIR "$LLVM_MANDIR"
30087 _ACEOF
30088
30089
30090 cat >>confdefs.h <<_ACEOF
30091 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30092 _ACEOF
30093
30094
30095
30096           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30097
30098
30099           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30100
30101           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30102
30103           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30104
30105           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30106
30107           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30108
30109
30110           ac_config_files="$ac_config_files Makefile.config"
30111
30112
30113                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30114
30115
30116           ac_config_files="$ac_config_files docs/doxygen.cfg"
30117
30118
30119           ac_config_commands="$ac_config_commands Makefile"
30120
30121
30122           ac_config_commands="$ac_config_commands Makefile.common"
30123
30124
30125           ac_config_commands="$ac_config_commands examples/Makefile"
30126
30127
30128           ac_config_commands="$ac_config_commands lib/Makefile"
30129
30130
30131           ac_config_commands="$ac_config_commands runtime/Makefile"
30132
30133
30134           ac_config_commands="$ac_config_commands test/Makefile"
30135
30136
30137           ac_config_commands="$ac_config_commands test/Makefile.tests"
30138
30139
30140           ac_config_commands="$ac_config_commands tools/Makefile"
30141
30142
30143           ac_config_commands="$ac_config_commands utils/Makefile"
30144
30145
30146           ac_config_commands="$ac_config_commands projects/Makefile"
30147
30148
30149
30150 cat >confcache <<\_ACEOF
30151 # This file is a shell script that caches the results of configure
30152 # tests run on this system so they can be shared between configure
30153 # scripts and configure runs, see configure's option --config-cache.
30154 # It is not useful on other systems.  If it contains results you don't
30155 # want to keep, you may remove or edit it.
30156 #
30157 # config.status only pays attention to the cache file if you give it
30158 # the --recheck option to rerun configure.
30159 #
30160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30162 # following values.
30163
30164 _ACEOF
30165
30166 # The following way of writing the cache mishandles newlines in values,
30167 # but we know of no workaround that is simple, portable, and efficient.
30168 # So, don't put newlines in cache variables' values.
30169 # Ultrix sh set writes to stderr and can't be redirected directly,
30170 # and sets the high bit in the cache file unless we assign to the vars.
30171 {
30172   (set) 2>&1 |
30173     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30174     *ac_space=\ *)
30175       # `set' does not quote correctly, so add quotes (double-quote
30176       # substitution turns \\\\ into \\, and sed turns \\ into \).
30177       sed -n \
30178         "s/'/'\\\\''/g;
30179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30180       ;;
30181     *)
30182       # `set' quotes correctly as required by POSIX, so do not add quotes.
30183       sed -n \
30184         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30185       ;;
30186     esac;
30187 } |
30188   sed '
30189      t clear
30190      : clear
30191      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30192      t end
30193      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30194      : end' >>confcache
30195 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30196   if test -w $cache_file; then
30197     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30198     cat confcache >$cache_file
30199   else
30200     echo "not updating unwritable cache $cache_file"
30201   fi
30202 fi
30203 rm -f confcache
30204
30205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30206 # Let make expand exec_prefix.
30207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30208
30209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30211 # trailing colons and then remove the whole line if VPATH becomes empty
30212 # (actually we leave an empty line to preserve line numbers).
30213 if test "x$srcdir" = x.; then
30214   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30215 s/:*\$(srcdir):*/:/;
30216 s/:*\${srcdir}:*/:/;
30217 s/:*@srcdir@:*/:/;
30218 s/^\([^=]*=[     ]*\):*/\1/;
30219 s/:*$//;
30220 s/^[^=]*=[       ]*$//;
30221 }'
30222 fi
30223
30224 DEFS=-DHAVE_CONFIG_H
30225
30226 ac_libobjs=
30227 ac_ltlibobjs=
30228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30229   # 1. Remove the extension, and $U if already installed.
30230   ac_i=`echo "$ac_i" |
30231          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30232   # 2. Add them.
30233   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30234   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30235 done
30236 LIBOBJS=$ac_libobjs
30237
30238 LTLIBOBJS=$ac_ltlibobjs
30239
30240
30241 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30242   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30243 Usually this means the macro was only invoked conditionally." >&5
30244 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30245 Usually this means the macro was only invoked conditionally." >&2;}
30246    { (exit 1); exit 1; }; }
30247 fi
30248 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30249   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30250 Usually this means the macro was only invoked conditionally." >&5
30251 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30252 Usually this means the macro was only invoked conditionally." >&2;}
30253    { (exit 1); exit 1; }; }
30254 fi
30255
30256 : ${CONFIG_STATUS=./config.status}
30257 ac_clean_files_save=$ac_clean_files
30258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30259 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30260 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30261 cat >$CONFIG_STATUS <<_ACEOF
30262 #! $SHELL
30263 # Generated by $as_me.
30264 # Run this file to recreate the current configuration.
30265 # Compiler output produced by configure, useful for debugging
30266 # configure, is in config.log if it exists.
30267
30268 debug=false
30269 ac_cs_recheck=false
30270 ac_cs_silent=false
30271 SHELL=\${CONFIG_SHELL-$SHELL}
30272 _ACEOF
30273
30274 cat >>$CONFIG_STATUS <<\_ACEOF
30275 ## --------------------- ##
30276 ## M4sh Initialization.  ##
30277 ## --------------------- ##
30278
30279 # Be Bourne compatible
30280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30281   emulate sh
30282   NULLCMD=:
30283   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30284   # is contrary to our usage.  Disable this feature.
30285   alias -g '${1+"$@"}'='"$@"'
30286 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30287   set -o posix
30288 fi
30289 DUALCASE=1; export DUALCASE # for MKS sh
30290
30291 # Support unset when possible.
30292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30293   as_unset=unset
30294 else
30295   as_unset=false
30296 fi
30297
30298
30299 # Work around bugs in pre-3.0 UWIN ksh.
30300 $as_unset ENV MAIL MAILPATH
30301 PS1='$ '
30302 PS2='> '
30303 PS4='+ '
30304
30305 # NLS nuisances.
30306 for as_var in \
30307   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30308   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30309   LC_TELEPHONE LC_TIME
30310 do
30311   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30312     eval $as_var=C; export $as_var
30313   else
30314     $as_unset $as_var
30315   fi
30316 done
30317
30318 # Required to use basename.
30319 if expr a : '\(a\)' >/dev/null 2>&1; then
30320   as_expr=expr
30321 else
30322   as_expr=false
30323 fi
30324
30325 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30326   as_basename=basename
30327 else
30328   as_basename=false
30329 fi
30330
30331
30332 # Name of the executable.
30333 as_me=`$as_basename "$0" ||
30334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30335          X"$0" : 'X\(//\)$' \| \
30336          X"$0" : 'X\(/\)$' \| \
30337          .     : '\(.\)' 2>/dev/null ||
30338 echo X/"$0" |
30339     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30340           /^X\/\(\/\/\)$/{ s//\1/; q; }
30341           /^X\/\(\/\).*/{ s//\1/; q; }
30342           s/.*/./; q'`
30343
30344
30345 # PATH needs CR, and LINENO needs CR and PATH.
30346 # Avoid depending upon Character Ranges.
30347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30350 as_cr_digits='0123456789'
30351 as_cr_alnum=$as_cr_Letters$as_cr_digits
30352
30353 # The user is always right.
30354 if test "${PATH_SEPARATOR+set}" != set; then
30355   echo "#! /bin/sh" >conf$$.sh
30356   echo  "exit 0"   >>conf$$.sh
30357   chmod +x conf$$.sh
30358   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30359     PATH_SEPARATOR=';'
30360   else
30361     PATH_SEPARATOR=:
30362   fi
30363   rm -f conf$$.sh
30364 fi
30365
30366
30367   as_lineno_1=$LINENO
30368   as_lineno_2=$LINENO
30369   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30370   test "x$as_lineno_1" != "x$as_lineno_2" &&
30371   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30372   # Find who we are.  Look in the path if we contain no path at all
30373   # relative or not.
30374   case $0 in
30375     *[\\/]* ) as_myself=$0 ;;
30376     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30377 for as_dir in $PATH
30378 do
30379   IFS=$as_save_IFS
30380   test -z "$as_dir" && as_dir=.
30381   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30382 done
30383
30384        ;;
30385   esac
30386   # We did not find ourselves, most probably we were run as `sh COMMAND'
30387   # in which case we are not to be found in the path.
30388   if test "x$as_myself" = x; then
30389     as_myself=$0
30390   fi
30391   if test ! -f "$as_myself"; then
30392     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30393 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30394    { (exit 1); exit 1; }; }
30395   fi
30396   case $CONFIG_SHELL in
30397   '')
30398     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30399 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30400 do
30401   IFS=$as_save_IFS
30402   test -z "$as_dir" && as_dir=.
30403   for as_base in sh bash ksh sh5; do
30404          case $as_dir in
30405          /*)
30406            if ("$as_dir/$as_base" -c '
30407   as_lineno_1=$LINENO
30408   as_lineno_2=$LINENO
30409   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30410   test "x$as_lineno_1" != "x$as_lineno_2" &&
30411   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30412              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30413              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30414              CONFIG_SHELL=$as_dir/$as_base
30415              export CONFIG_SHELL
30416              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30417            fi;;
30418          esac
30419        done
30420 done
30421 ;;
30422   esac
30423
30424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30425   # uniformly replaced by the line number.  The first 'sed' inserts a
30426   # line-number line before each line; the second 'sed' does the real
30427   # work.  The second script uses 'N' to pair each line-number line
30428   # with the numbered line, and appends trailing '-' during
30429   # substitution so that $LINENO is not a special case at line end.
30430   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30431   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30432   sed '=' <$as_myself |
30433     sed '
30434       N
30435       s,$,-,
30436       : loop
30437       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30438       t loop
30439       s,-$,,
30440       s,^['$as_cr_digits']*\n,,
30441     ' >$as_me.lineno &&
30442   chmod +x $as_me.lineno ||
30443     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30444 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30445    { (exit 1); exit 1; }; }
30446
30447   # Don't try to exec as it changes $[0], causing all sort of problems
30448   # (the dirname of $[0] is not the place where we might find the
30449   # original and so on.  Autoconf is especially sensible to this).
30450   . ./$as_me.lineno
30451   # Exit status is that of the last command.
30452   exit
30453 }
30454
30455
30456 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30457   *c*,-n*) ECHO_N= ECHO_C='
30458 ' ECHO_T='      ' ;;
30459   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30460   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30461 esac
30462
30463 if expr a : '\(a\)' >/dev/null 2>&1; then
30464   as_expr=expr
30465 else
30466   as_expr=false
30467 fi
30468
30469 rm -f conf$$ conf$$.exe conf$$.file
30470 echo >conf$$.file
30471 if ln -s conf$$.file conf$$ 2>/dev/null; then
30472   # We could just check for DJGPP; but this test a) works b) is more generic
30473   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30474   if test -f conf$$.exe; then
30475     # Don't use ln at all; we don't have any links
30476     as_ln_s='cp -p'
30477   else
30478     as_ln_s='ln -s'
30479   fi
30480 elif ln conf$$.file conf$$ 2>/dev/null; then
30481   as_ln_s=ln
30482 else
30483   as_ln_s='cp -p'
30484 fi
30485 rm -f conf$$ conf$$.exe conf$$.file
30486
30487 if mkdir -p . 2>/dev/null; then
30488   as_mkdir_p=:
30489 else
30490   test -d ./-p && rmdir ./-p
30491   as_mkdir_p=false
30492 fi
30493
30494 as_executable_p="test -f"
30495
30496 # Sed expression to map a string onto a valid CPP name.
30497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30498
30499 # Sed expression to map a string onto a valid variable name.
30500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30501
30502
30503 # IFS
30504 # We need space, tab and new line, in precisely that order.
30505 as_nl='
30506 '
30507 IFS="   $as_nl"
30508
30509 # CDPATH.
30510 $as_unset CDPATH
30511
30512 exec 6>&1
30513
30514 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30515 # report actual input values of CONFIG_FILES etc. instead of their
30516 # values after options handling.  Logging --version etc. is OK.
30517 exec 5>>config.log
30518 {
30519   echo
30520   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30521 ## Running $as_me. ##
30522 _ASBOX
30523 } >&5
30524 cat >&5 <<_CSEOF
30525
30526 This file was extended by llvm $as_me 1.4, which was
30527 generated by GNU Autoconf 2.59.  Invocation command line was
30528
30529   CONFIG_FILES    = $CONFIG_FILES
30530   CONFIG_HEADERS  = $CONFIG_HEADERS
30531   CONFIG_LINKS    = $CONFIG_LINKS
30532   CONFIG_COMMANDS = $CONFIG_COMMANDS
30533   $ $0 $@
30534
30535 _CSEOF
30536 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30537 echo >&5
30538 _ACEOF
30539
30540 # Files that config.status was made for.
30541 if test -n "$ac_config_files"; then
30542   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30543 fi
30544
30545 if test -n "$ac_config_headers"; then
30546   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30547 fi
30548
30549 if test -n "$ac_config_links"; then
30550   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30551 fi
30552
30553 if test -n "$ac_config_commands"; then
30554   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30555 fi
30556
30557 cat >>$CONFIG_STATUS <<\_ACEOF
30558
30559 ac_cs_usage="\
30560 \`$as_me' instantiates files from templates according to the
30561 current configuration.
30562
30563 Usage: $0 [OPTIONS] [FILE]...
30564
30565   -h, --help       print this help, then exit
30566   -V, --version    print version number, then exit
30567   -q, --quiet      do not print progress messages
30568   -d, --debug      don't remove temporary files
30569       --recheck    update $as_me by reconfiguring in the same conditions
30570   --file=FILE[:TEMPLATE]
30571                    instantiate the configuration file FILE
30572   --header=FILE[:TEMPLATE]
30573                    instantiate the configuration header FILE
30574
30575 Configuration files:
30576 $config_files
30577
30578 Configuration headers:
30579 $config_headers
30580
30581 Configuration links:
30582 $config_links
30583
30584 Configuration commands:
30585 $config_commands
30586
30587 Report bugs to <bug-autoconf@gnu.org>."
30588 _ACEOF
30589
30590 cat >>$CONFIG_STATUS <<_ACEOF
30591 ac_cs_version="\\
30592 llvm config.status 1.4
30593 configured by $0, generated by GNU Autoconf 2.59,
30594   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30595
30596 Copyright (C) 2003 Free Software Foundation, Inc.
30597 This config.status script is free software; the Free Software Foundation
30598 gives unlimited permission to copy, distribute and modify it."
30599 srcdir=$srcdir
30600 INSTALL="$INSTALL"
30601 _ACEOF
30602
30603 cat >>$CONFIG_STATUS <<\_ACEOF
30604 # If no file are specified by the user, then we need to provide default
30605 # value.  By we need to know if files were specified by the user.
30606 ac_need_defaults=:
30607 while test $# != 0
30608 do
30609   case $1 in
30610   --*=*)
30611     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30612     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30613     ac_shift=:
30614     ;;
30615   -*)
30616     ac_option=$1
30617     ac_optarg=$2
30618     ac_shift=shift
30619     ;;
30620   *) # This is not an option, so the user has probably given explicit
30621      # arguments.
30622      ac_option=$1
30623      ac_need_defaults=false;;
30624   esac
30625
30626   case $ac_option in
30627   # Handling of the options.
30628 _ACEOF
30629 cat >>$CONFIG_STATUS <<\_ACEOF
30630   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30631     ac_cs_recheck=: ;;
30632   --version | --vers* | -V )
30633     echo "$ac_cs_version"; exit 0 ;;
30634   --he | --h)
30635     # Conflict between --help and --header
30636     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30637 Try \`$0 --help' for more information." >&5
30638 echo "$as_me: error: ambiguous option: $1
30639 Try \`$0 --help' for more information." >&2;}
30640    { (exit 1); exit 1; }; };;
30641   --help | --hel | -h )
30642     echo "$ac_cs_usage"; exit 0 ;;
30643   --debug | --d* | -d )
30644     debug=: ;;
30645   --file | --fil | --fi | --f )
30646     $ac_shift
30647     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30648     ac_need_defaults=false;;
30649   --header | --heade | --head | --hea )
30650     $ac_shift
30651     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30652     ac_need_defaults=false;;
30653   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30654   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30655     ac_cs_silent=: ;;
30656
30657   # This is an error.
30658   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30659 Try \`$0 --help' for more information." >&5
30660 echo "$as_me: error: unrecognized option: $1
30661 Try \`$0 --help' for more information." >&2;}
30662    { (exit 1); exit 1; }; } ;;
30663
30664   *) ac_config_targets="$ac_config_targets $1" ;;
30665
30666   esac
30667   shift
30668 done
30669
30670 ac_configure_extra_args=
30671
30672 if $ac_cs_silent; then
30673   exec 6>/dev/null
30674   ac_configure_extra_args="$ac_configure_extra_args --silent"
30675 fi
30676
30677 _ACEOF
30678 cat >>$CONFIG_STATUS <<_ACEOF
30679 if \$ac_cs_recheck; then
30680   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30681   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30682 fi
30683
30684 _ACEOF
30685
30686 cat >>$CONFIG_STATUS <<_ACEOF
30687 #
30688 # INIT-COMMANDS section.
30689 #
30690
30691 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30692 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30693 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30694 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30695 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30696 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30697 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30698 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30699 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30700 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30701
30702 _ACEOF
30703
30704
30705
30706 cat >>$CONFIG_STATUS <<\_ACEOF
30707 for ac_config_target in $ac_config_targets
30708 do
30709   case "$ac_config_target" in
30710   # Handling of arguments.
30711   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30712   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30713   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30714   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30715   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30716   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30717   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_os_type" ;;
30718   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30719   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30720   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30721   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30722   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30723   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30724   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30725   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30726   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30727   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30728   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30729   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30730   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30731   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30732   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30733   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30734   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30735 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30736    { (exit 1); exit 1; }; };;
30737   esac
30738 done
30739
30740 # If the user did not use the arguments to specify the items to instantiate,
30741 # then the envvar interface is used.  Set only those that are not.
30742 # We use the long form for the default assignment because of an extremely
30743 # bizarre bug on SunOS 4.1.3.
30744 if $ac_need_defaults; then
30745   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30746   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30747   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30748   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30749 fi
30750
30751 # Have a temporary directory for convenience.  Make it in the build tree
30752 # simply because there is no reason to put it here, and in addition,
30753 # creating and moving files from /tmp can sometimes cause problems.
30754 # Create a temporary directory, and hook for its removal unless debugging.
30755 $debug ||
30756 {
30757   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30758   trap '{ (exit 1); exit 1; }' 1 2 13 15
30759 }
30760
30761 # Create a (secure) tmp directory for tmp files.
30762
30763 {
30764   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30765   test -n "$tmp" && test -d "$tmp"
30766 }  ||
30767 {
30768   tmp=./confstat$$-$RANDOM
30769   (umask 077 && mkdir $tmp)
30770 } ||
30771 {
30772    echo "$me: cannot create a temporary directory in ." >&2
30773    { (exit 1); exit 1; }
30774 }
30775
30776 _ACEOF
30777
30778 cat >>$CONFIG_STATUS <<_ACEOF
30779
30780 #
30781 # CONFIG_FILES section.
30782 #
30783
30784 # No need to generate the scripts if there are no CONFIG_FILES.
30785 # This happens for instance when ./config.status config.h
30786 if test -n "\$CONFIG_FILES"; then
30787   # Protect against being on the right side of a sed subst in config.status.
30788   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30789    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30790 s,@SHELL@,$SHELL,;t t
30791 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30792 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30793 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30794 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30795 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30796 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30797 s,@exec_prefix@,$exec_prefix,;t t
30798 s,@prefix@,$prefix,;t t
30799 s,@program_transform_name@,$program_transform_name,;t t
30800 s,@bindir@,$bindir,;t t
30801 s,@sbindir@,$sbindir,;t t
30802 s,@libexecdir@,$libexecdir,;t t
30803 s,@datadir@,$datadir,;t t
30804 s,@sysconfdir@,$sysconfdir,;t t
30805 s,@sharedstatedir@,$sharedstatedir,;t t
30806 s,@localstatedir@,$localstatedir,;t t
30807 s,@libdir@,$libdir,;t t
30808 s,@includedir@,$includedir,;t t
30809 s,@oldincludedir@,$oldincludedir,;t t
30810 s,@infodir@,$infodir,;t t
30811 s,@mandir@,$mandir,;t t
30812 s,@build_alias@,$build_alias,;t t
30813 s,@host_alias@,$host_alias,;t t
30814 s,@target_alias@,$target_alias,;t t
30815 s,@DEFS@,$DEFS,;t t
30816 s,@ECHO_C@,$ECHO_C,;t t
30817 s,@ECHO_N@,$ECHO_N,;t t
30818 s,@ECHO_T@,$ECHO_T,;t t
30819 s,@LIBS@,$LIBS,;t t
30820 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30821 s,@subdirs@,$subdirs,;t t
30822 s,@build@,$build,;t t
30823 s,@build_cpu@,$build_cpu,;t t
30824 s,@build_vendor@,$build_vendor,;t t
30825 s,@build_os@,$build_os,;t t
30826 s,@host@,$host,;t t
30827 s,@host_cpu@,$host_cpu,;t t
30828 s,@host_vendor@,$host_vendor,;t t
30829 s,@host_os@,$host_os,;t t
30830 s,@target@,$target,;t t
30831 s,@target_cpu@,$target_cpu,;t t
30832 s,@target_vendor@,$target_vendor,;t t
30833 s,@target_os@,$target_os,;t t
30834 s,@OS@,$OS,;t t
30835 s,@ARCH@,$ARCH,;t t
30836 s,@ENDIAN@,$ENDIAN,;t t
30837 s,@CC@,$CC,;t t
30838 s,@CFLAGS@,$CFLAGS,;t t
30839 s,@LDFLAGS@,$LDFLAGS,;t t
30840 s,@CPPFLAGS@,$CPPFLAGS,;t t
30841 s,@ac_ct_CC@,$ac_ct_CC,;t t
30842 s,@EXEEXT@,$EXEEXT,;t t
30843 s,@OBJEXT@,$OBJEXT,;t t
30844 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30845 s,@JIT@,$JIT,;t t
30846 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30847 s,@CPP@,$CPP,;t t
30848 s,@CXX@,$CXX,;t t
30849 s,@CXXFLAGS@,$CXXFLAGS,;t t
30850 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30851 s,@LEX@,$LEX,;t t
30852 s,@LEXLIB@,$LEXLIB,;t t
30853 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30854 s,@FLEX@,$FLEX,;t t
30855 s,@YACC@,$YACC,;t t
30856 s,@BISON@,$BISON,;t t
30857 s,@ifGNUmake@,$ifGNUmake,;t t
30858 s,@LN_S@,$LN_S,;t t
30859 s,@CMP@,$CMP,;t t
30860 s,@CP@,$CP,;t t
30861 s,@DATE@,$DATE,;t t
30862 s,@FIND@,$FIND,;t t
30863 s,@GREP@,$GREP,;t t
30864 s,@MKDIR@,$MKDIR,;t t
30865 s,@MV@,$MV,;t t
30866 s,@PAX@,$PAX,;t t
30867 s,@RANLIB@,$RANLIB,;t t
30868 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30869 s,@RM@,$RM,;t t
30870 s,@SED@,$SED,;t t
30871 s,@TAR@,$TAR,;t t
30872 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30873 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30874 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30875 s,@BZIP2@,$BZIP2,;t t
30876 s,@DOT@,$DOT,;t t
30877 s,@DOXYGEN@,$DOXYGEN,;t t
30878 s,@ETAGS@,$ETAGS,;t t
30879 s,@GROFF@,$GROFF,;t t
30880 s,@GZIP@,$GZIP,;t t
30881 s,@POD2HTML@,$POD2HTML,;t t
30882 s,@POD2MAN@,$POD2MAN,;t t
30883 s,@RUNTEST@,$RUNTEST,;t t
30884 s,@TCLSH@,$TCLSH,;t t
30885 s,@ZIP@,$ZIP,;t t
30886 s,@EGREP@,$EGREP,;t t
30887 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30888 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30889 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30890 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30891 s,@LIBADD_DL@,$LIBADD_DL,;t t
30892 s,@ECHO@,$ECHO,;t t
30893 s,@AR@,$AR,;t t
30894 s,@ac_ct_AR@,$ac_ct_AR,;t t
30895 s,@STRIP@,$STRIP,;t t
30896 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30897 s,@CXXCPP@,$CXXCPP,;t t
30898 s,@F77@,$F77,;t t
30899 s,@FFLAGS@,$FFLAGS,;t t
30900 s,@ac_ct_F77@,$ac_ct_F77,;t t
30901 s,@LIBTOOL@,$LIBTOOL,;t t
30902 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30903 s,@LLVMGCC@,$LLVMGCC,;t t
30904 s,@LLVMGXX@,$LLVMGXX,;t t
30905 s,@ALLOCA@,$ALLOCA,;t t
30906 s,@MMAP_FILE@,$MMAP_FILE,;t t
30907 s,@LLVMCC1@,$LLVMCC1,;t t
30908 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30909 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30910 s,@SHLIBEXT@,$SHLIBEXT,;t t
30911 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30912 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30913 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30914 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30915 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30916 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30917 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30918 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30919 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30920 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30921 s,@LIBOBJS@,$LIBOBJS,;t t
30922 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30923 CEOF
30924
30925 _ACEOF
30926
30927   cat >>$CONFIG_STATUS <<\_ACEOF
30928   # Split the substitutions into bite-sized pieces for seds with
30929   # small command number limits, like on Digital OSF/1 and HP-UX.
30930   ac_max_sed_lines=48
30931   ac_sed_frag=1 # Number of current file.
30932   ac_beg=1 # First line for current file.
30933   ac_end=$ac_max_sed_lines # Line after last line for current file.
30934   ac_more_lines=:
30935   ac_sed_cmds=
30936   while $ac_more_lines; do
30937     if test $ac_beg -gt 1; then
30938       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30939     else
30940       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30941     fi
30942     if test ! -s $tmp/subs.frag; then
30943       ac_more_lines=false
30944     else
30945       # The purpose of the label and of the branching condition is to
30946       # speed up the sed processing (if there are no `@' at all, there
30947       # is no need to browse any of the substitutions).
30948       # These are the two extra sed commands mentioned above.
30949       (echo ':t
30950   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30951       if test -z "$ac_sed_cmds"; then
30952         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30953       else
30954         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30955       fi
30956       ac_sed_frag=`expr $ac_sed_frag + 1`
30957       ac_beg=$ac_end
30958       ac_end=`expr $ac_end + $ac_max_sed_lines`
30959     fi
30960   done
30961   if test -z "$ac_sed_cmds"; then
30962     ac_sed_cmds=cat
30963   fi
30964 fi # test -n "$CONFIG_FILES"
30965
30966 _ACEOF
30967 cat >>$CONFIG_STATUS <<\_ACEOF
30968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30969   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30970   case $ac_file in
30971   - | *:- | *:-:* ) # input from stdin
30972         cat >$tmp/stdin
30973         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30974         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30975   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30976         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30977   * )   ac_file_in=$ac_file.in ;;
30978   esac
30979
30980   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30981   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30983          X"$ac_file" : 'X\(//\)[^/]' \| \
30984          X"$ac_file" : 'X\(//\)$' \| \
30985          X"$ac_file" : 'X\(/\)' \| \
30986          .     : '\(.\)' 2>/dev/null ||
30987 echo X"$ac_file" |
30988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30990           /^X\(\/\/\)$/{ s//\1/; q; }
30991           /^X\(\/\).*/{ s//\1/; q; }
30992           s/.*/./; q'`
30993   { if $as_mkdir_p; then
30994     mkdir -p "$ac_dir"
30995   else
30996     as_dir="$ac_dir"
30997     as_dirs=
30998     while test ! -d "$as_dir"; do
30999       as_dirs="$as_dir $as_dirs"
31000       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31002          X"$as_dir" : 'X\(//\)[^/]' \| \
31003          X"$as_dir" : 'X\(//\)$' \| \
31004          X"$as_dir" : 'X\(/\)' \| \
31005          .     : '\(.\)' 2>/dev/null ||
31006 echo X"$as_dir" |
31007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31008           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31009           /^X\(\/\/\)$/{ s//\1/; q; }
31010           /^X\(\/\).*/{ s//\1/; q; }
31011           s/.*/./; q'`
31012     done
31013     test ! -n "$as_dirs" || mkdir $as_dirs
31014   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31015 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31016    { (exit 1); exit 1; }; }; }
31017
31018   ac_builddir=.
31019
31020 if test "$ac_dir" != .; then
31021   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31022   # A "../" for each directory in $ac_dir_suffix.
31023   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31024 else
31025   ac_dir_suffix= ac_top_builddir=
31026 fi
31027
31028 case $srcdir in
31029   .)  # No --srcdir option.  We are building in place.
31030     ac_srcdir=.
31031     if test -z "$ac_top_builddir"; then
31032        ac_top_srcdir=.
31033     else
31034        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31035     fi ;;
31036   [\\/]* | ?:[\\/]* )  # Absolute path.
31037     ac_srcdir=$srcdir$ac_dir_suffix;
31038     ac_top_srcdir=$srcdir ;;
31039   *) # Relative path.
31040     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31041     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31042 esac
31043
31044 # Do not use `cd foo && pwd` to compute absolute paths, because
31045 # the directories may not exist.
31046 case `pwd` in
31047 .) ac_abs_builddir="$ac_dir";;
31048 *)
31049   case "$ac_dir" in
31050   .) ac_abs_builddir=`pwd`;;
31051   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31052   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31053   esac;;
31054 esac
31055 case $ac_abs_builddir in
31056 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31057 *)
31058   case ${ac_top_builddir}. in
31059   .) ac_abs_top_builddir=$ac_abs_builddir;;
31060   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31061   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31062   esac;;
31063 esac
31064 case $ac_abs_builddir in
31065 .) ac_abs_srcdir=$ac_srcdir;;
31066 *)
31067   case $ac_srcdir in
31068   .) ac_abs_srcdir=$ac_abs_builddir;;
31069   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31070   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31071   esac;;
31072 esac
31073 case $ac_abs_builddir in
31074 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31075 *)
31076   case $ac_top_srcdir in
31077   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31078   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31079   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31080   esac;;
31081 esac
31082
31083
31084   case $INSTALL in
31085   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31086   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31087   esac
31088
31089   if test x"$ac_file" != x-; then
31090     { echo "$as_me:$LINENO: creating $ac_file" >&5
31091 echo "$as_me: creating $ac_file" >&6;}
31092     rm -f "$ac_file"
31093   fi
31094   # Let's still pretend it is `configure' which instantiates (i.e., don't
31095   # use $as_me), people would be surprised to read:
31096   #    /* config.h.  Generated by config.status.  */
31097   if test x"$ac_file" = x-; then
31098     configure_input=
31099   else
31100     configure_input="$ac_file.  "
31101   fi
31102   configure_input=$configure_input"Generated from `echo $ac_file_in |
31103                                      sed 's,.*/,,'` by configure."
31104
31105   # First look for the input files in the build tree, otherwise in the
31106   # src tree.
31107   ac_file_inputs=`IFS=:
31108     for f in $ac_file_in; do
31109       case $f in
31110       -) echo $tmp/stdin ;;
31111       [\\/$]*)
31112          # Absolute (can't be DOS-style, as IFS=:)
31113          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31114 echo "$as_me: error: cannot find input file: $f" >&2;}
31115    { (exit 1); exit 1; }; }
31116          echo "$f";;
31117       *) # Relative
31118          if test -f "$f"; then
31119            # Build tree
31120            echo "$f"
31121          elif test -f "$srcdir/$f"; then
31122            # Source tree
31123            echo "$srcdir/$f"
31124          else
31125            # /dev/null tree
31126            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31127 echo "$as_me: error: cannot find input file: $f" >&2;}
31128    { (exit 1); exit 1; }; }
31129          fi;;
31130       esac
31131     done` || { (exit 1); exit 1; }
31132 _ACEOF
31133 cat >>$CONFIG_STATUS <<_ACEOF
31134   sed "$ac_vpsub
31135 $extrasub
31136 _ACEOF
31137 cat >>$CONFIG_STATUS <<\_ACEOF
31138 :t
31139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31140 s,@configure_input@,$configure_input,;t t
31141 s,@srcdir@,$ac_srcdir,;t t
31142 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31143 s,@top_srcdir@,$ac_top_srcdir,;t t
31144 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31145 s,@builddir@,$ac_builddir,;t t
31146 s,@abs_builddir@,$ac_abs_builddir,;t t
31147 s,@top_builddir@,$ac_top_builddir,;t t
31148 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31149 s,@INSTALL@,$ac_INSTALL,;t t
31150 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31151   rm -f $tmp/stdin
31152   if test x"$ac_file" != x-; then
31153     mv $tmp/out $ac_file
31154   else
31155     cat $tmp/out
31156     rm -f $tmp/out
31157   fi
31158
31159 done
31160 _ACEOF
31161 cat >>$CONFIG_STATUS <<\_ACEOF
31162
31163 #
31164 # CONFIG_HEADER section.
31165 #
31166
31167 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31168 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31169 #
31170 # ac_d sets the value in "#define NAME VALUE" lines.
31171 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31172 ac_dB='[         ].*$,\1#\2'
31173 ac_dC=' '
31174 ac_dD=',;t'
31175 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31176 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31177 ac_uB='$,\1#\2define\3'
31178 ac_uC=' '
31179 ac_uD=',;t'
31180
31181 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31182   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31183   case $ac_file in
31184   - | *:- | *:-:* ) # input from stdin
31185         cat >$tmp/stdin
31186         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31187         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31188   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31189         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31190   * )   ac_file_in=$ac_file.in ;;
31191   esac
31192
31193   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31194 echo "$as_me: creating $ac_file" >&6;}
31195
31196   # First look for the input files in the build tree, otherwise in the
31197   # src tree.
31198   ac_file_inputs=`IFS=:
31199     for f in $ac_file_in; do
31200       case $f in
31201       -) echo $tmp/stdin ;;
31202       [\\/$]*)
31203          # Absolute (can't be DOS-style, as IFS=:)
31204          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31205 echo "$as_me: error: cannot find input file: $f" >&2;}
31206    { (exit 1); exit 1; }; }
31207          # Do quote $f, to prevent DOS paths from being IFS'd.
31208          echo "$f";;
31209       *) # Relative
31210          if test -f "$f"; then
31211            # Build tree
31212            echo "$f"
31213          elif test -f "$srcdir/$f"; then
31214            # Source tree
31215            echo "$srcdir/$f"
31216          else
31217            # /dev/null tree
31218            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31219 echo "$as_me: error: cannot find input file: $f" >&2;}
31220    { (exit 1); exit 1; }; }
31221          fi;;
31222       esac
31223     done` || { (exit 1); exit 1; }
31224   # Remove the trailing spaces.
31225   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31226
31227 _ACEOF
31228
31229 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31230 # `conftest.undefs', that substitutes the proper values into
31231 # config.h.in to produce config.h.  The first handles `#define'
31232 # templates, and the second `#undef' templates.
31233 # And first: Protect against being on the right side of a sed subst in
31234 # config.status.  Protect against being in an unquoted here document
31235 # in config.status.
31236 rm -f conftest.defines conftest.undefs
31237 # Using a here document instead of a string reduces the quoting nightmare.
31238 # Putting comments in sed scripts is not portable.
31239 #
31240 # `end' is used to avoid that the second main sed command (meant for
31241 # 0-ary CPP macros) applies to n-ary macro definitions.
31242 # See the Autoconf documentation for `clear'.
31243 cat >confdef2sed.sed <<\_ACEOF
31244 s/[\\&,]/\\&/g
31245 s,[\\$`],\\&,g
31246 t clear
31247 : clear
31248 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31249 t end
31250 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31251 : end
31252 _ACEOF
31253 # If some macros were called several times there might be several times
31254 # the same #defines, which is useless.  Nevertheless, we may not want to
31255 # sort them, since we want the *last* AC-DEFINE to be honored.
31256 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31257 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31258 rm -f confdef2sed.sed
31259
31260 # This sed command replaces #undef with comments.  This is necessary, for
31261 # example, in the case of _POSIX_SOURCE, which is predefined and required
31262 # on some systems where configure will not decide to define it.
31263 cat >>conftest.undefs <<\_ACEOF
31264 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31265 _ACEOF
31266
31267 # Break up conftest.defines because some shells have a limit on the size
31268 # of here documents, and old seds have small limits too (100 cmds).
31269 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31270 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31271 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31272 echo '  :' >>$CONFIG_STATUS
31273 rm -f conftest.tail
31274 while grep . conftest.defines >/dev/null
31275 do
31276   # Write a limited-size here document to $tmp/defines.sed.
31277   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31278   # Speed up: don't consider the non `#define' lines.
31279   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31280   # Work around the forget-to-reset-the-flag bug.
31281   echo 't clr' >>$CONFIG_STATUS
31282   echo ': clr' >>$CONFIG_STATUS
31283   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31284   echo 'CEOF
31285   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31286   rm -f $tmp/in
31287   mv $tmp/out $tmp/in
31288 ' >>$CONFIG_STATUS
31289   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31290   rm -f conftest.defines
31291   mv conftest.tail conftest.defines
31292 done
31293 rm -f conftest.defines
31294 echo '  fi # grep' >>$CONFIG_STATUS
31295 echo >>$CONFIG_STATUS
31296
31297 # Break up conftest.undefs because some shells have a limit on the size
31298 # of here documents, and old seds have small limits too (100 cmds).
31299 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31300 rm -f conftest.tail
31301 while grep . conftest.undefs >/dev/null
31302 do
31303   # Write a limited-size here document to $tmp/undefs.sed.
31304   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31305   # Speed up: don't consider the non `#undef'
31306   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31307   # Work around the forget-to-reset-the-flag bug.
31308   echo 't clr' >>$CONFIG_STATUS
31309   echo ': clr' >>$CONFIG_STATUS
31310   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31311   echo 'CEOF
31312   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31313   rm -f $tmp/in
31314   mv $tmp/out $tmp/in
31315 ' >>$CONFIG_STATUS
31316   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31317   rm -f conftest.undefs
31318   mv conftest.tail conftest.undefs
31319 done
31320 rm -f conftest.undefs
31321
31322 cat >>$CONFIG_STATUS <<\_ACEOF
31323   # Let's still pretend it is `configure' which instantiates (i.e., don't
31324   # use $as_me), people would be surprised to read:
31325   #    /* config.h.  Generated by config.status.  */
31326   if test x"$ac_file" = x-; then
31327     echo "/* Generated by configure.  */" >$tmp/config.h
31328   else
31329     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31330   fi
31331   cat $tmp/in >>$tmp/config.h
31332   rm -f $tmp/in
31333   if test x"$ac_file" != x-; then
31334     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31335       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31336 echo "$as_me: $ac_file is unchanged" >&6;}
31337     else
31338       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31340          X"$ac_file" : 'X\(//\)[^/]' \| \
31341          X"$ac_file" : 'X\(//\)$' \| \
31342          X"$ac_file" : 'X\(/\)' \| \
31343          .     : '\(.\)' 2>/dev/null ||
31344 echo X"$ac_file" |
31345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31346           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31347           /^X\(\/\/\)$/{ s//\1/; q; }
31348           /^X\(\/\).*/{ s//\1/; q; }
31349           s/.*/./; q'`
31350       { if $as_mkdir_p; then
31351     mkdir -p "$ac_dir"
31352   else
31353     as_dir="$ac_dir"
31354     as_dirs=
31355     while test ! -d "$as_dir"; do
31356       as_dirs="$as_dir $as_dirs"
31357       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31359          X"$as_dir" : 'X\(//\)[^/]' \| \
31360          X"$as_dir" : 'X\(//\)$' \| \
31361          X"$as_dir" : 'X\(/\)' \| \
31362          .     : '\(.\)' 2>/dev/null ||
31363 echo X"$as_dir" |
31364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31365           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31366           /^X\(\/\/\)$/{ s//\1/; q; }
31367           /^X\(\/\).*/{ s//\1/; q; }
31368           s/.*/./; q'`
31369     done
31370     test ! -n "$as_dirs" || mkdir $as_dirs
31371   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31372 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31373    { (exit 1); exit 1; }; }; }
31374
31375       rm -f $ac_file
31376       mv $tmp/config.h $ac_file
31377     fi
31378   else
31379     cat $tmp/config.h
31380     rm -f $tmp/config.h
31381   fi
31382 done
31383 _ACEOF
31384 cat >>$CONFIG_STATUS <<\_ACEOF
31385
31386 #
31387 # CONFIG_LINKS section.
31388 #
31389
31390 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
31391   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31392   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31393
31394   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
31395 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
31396
31397   if test ! -r $srcdir/$ac_source; then
31398     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
31399 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
31400    { (exit 1); exit 1; }; }
31401   fi
31402   rm -f $ac_dest
31403
31404   # Make relative symlinks.
31405   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
31406 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31407          X"$ac_dest" : 'X\(//\)[^/]' \| \
31408          X"$ac_dest" : 'X\(//\)$' \| \
31409          X"$ac_dest" : 'X\(/\)' \| \
31410          .     : '\(.\)' 2>/dev/null ||
31411 echo X"$ac_dest" |
31412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31414           /^X\(\/\/\)$/{ s//\1/; q; }
31415           /^X\(\/\).*/{ s//\1/; q; }
31416           s/.*/./; q'`
31417   { if $as_mkdir_p; then
31418     mkdir -p "$ac_dest_dir"
31419   else
31420     as_dir="$ac_dest_dir"
31421     as_dirs=
31422     while test ! -d "$as_dir"; do
31423       as_dirs="$as_dir $as_dirs"
31424       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31426          X"$as_dir" : 'X\(//\)[^/]' \| \
31427          X"$as_dir" : 'X\(//\)$' \| \
31428          X"$as_dir" : 'X\(/\)' \| \
31429          .     : '\(.\)' 2>/dev/null ||
31430 echo X"$as_dir" |
31431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31432           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31433           /^X\(\/\/\)$/{ s//\1/; q; }
31434           /^X\(\/\).*/{ s//\1/; q; }
31435           s/.*/./; q'`
31436     done
31437     test ! -n "$as_dirs" || mkdir $as_dirs
31438   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31439 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31440    { (exit 1); exit 1; }; }; }
31441
31442   ac_builddir=.
31443
31444 if test "$ac_dest_dir" != .; then
31445   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31446   # A "../" for each directory in $ac_dir_suffix.
31447   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31448 else
31449   ac_dir_suffix= ac_top_builddir=
31450 fi
31451
31452 case $srcdir in
31453   .)  # No --srcdir option.  We are building in place.
31454     ac_srcdir=.
31455     if test -z "$ac_top_builddir"; then
31456        ac_top_srcdir=.
31457     else
31458        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31459     fi ;;
31460   [\\/]* | ?:[\\/]* )  # Absolute path.
31461     ac_srcdir=$srcdir$ac_dir_suffix;
31462     ac_top_srcdir=$srcdir ;;
31463   *) # Relative path.
31464     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31465     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31466 esac
31467
31468 # Do not use `cd foo && pwd` to compute absolute paths, because
31469 # the directories may not exist.
31470 case `pwd` in
31471 .) ac_abs_builddir="$ac_dest_dir";;
31472 *)
31473   case "$ac_dest_dir" in
31474   .) ac_abs_builddir=`pwd`;;
31475   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31476   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31477   esac;;
31478 esac
31479 case $ac_abs_builddir in
31480 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31481 *)
31482   case ${ac_top_builddir}. in
31483   .) ac_abs_top_builddir=$ac_abs_builddir;;
31484   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31485   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31486   esac;;
31487 esac
31488 case $ac_abs_builddir in
31489 .) ac_abs_srcdir=$ac_srcdir;;
31490 *)
31491   case $ac_srcdir in
31492   .) ac_abs_srcdir=$ac_abs_builddir;;
31493   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31494   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31495   esac;;
31496 esac
31497 case $ac_abs_builddir in
31498 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31499 *)
31500   case $ac_top_srcdir in
31501   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31502   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31503   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31504   esac;;
31505 esac
31506
31507
31508   case $srcdir in
31509   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31510       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31511   esac
31512
31513   # Try a symlink, then a hard link, then a copy.
31514   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31515     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31516     cp -p $srcdir/$ac_source $ac_dest ||
31517     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31518 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31519    { (exit 1); exit 1; }; }
31520 done
31521 _ACEOF
31522 cat >>$CONFIG_STATUS <<\_ACEOF
31523
31524 #
31525 # CONFIG_COMMANDS section.
31526 #
31527 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31528   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31529   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31530   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31532          X"$ac_dest" : 'X\(//\)[^/]' \| \
31533          X"$ac_dest" : 'X\(//\)$' \| \
31534          X"$ac_dest" : 'X\(/\)' \| \
31535          .     : '\(.\)' 2>/dev/null ||
31536 echo X"$ac_dest" |
31537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31538           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31539           /^X\(\/\/\)$/{ s//\1/; q; }
31540           /^X\(\/\).*/{ s//\1/; q; }
31541           s/.*/./; q'`
31542   { if $as_mkdir_p; then
31543     mkdir -p "$ac_dir"
31544   else
31545     as_dir="$ac_dir"
31546     as_dirs=
31547     while test ! -d "$as_dir"; do
31548       as_dirs="$as_dir $as_dirs"
31549       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31551          X"$as_dir" : 'X\(//\)[^/]' \| \
31552          X"$as_dir" : 'X\(//\)$' \| \
31553          X"$as_dir" : 'X\(/\)' \| \
31554          .     : '\(.\)' 2>/dev/null ||
31555 echo X"$as_dir" |
31556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31557           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31558           /^X\(\/\/\)$/{ s//\1/; q; }
31559           /^X\(\/\).*/{ s//\1/; q; }
31560           s/.*/./; q'`
31561     done
31562     test ! -n "$as_dirs" || mkdir $as_dirs
31563   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31565    { (exit 1); exit 1; }; }; }
31566
31567   ac_builddir=.
31568
31569 if test "$ac_dir" != .; then
31570   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31571   # A "../" for each directory in $ac_dir_suffix.
31572   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31573 else
31574   ac_dir_suffix= ac_top_builddir=
31575 fi
31576
31577 case $srcdir in
31578   .)  # No --srcdir option.  We are building in place.
31579     ac_srcdir=.
31580     if test -z "$ac_top_builddir"; then
31581        ac_top_srcdir=.
31582     else
31583        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31584     fi ;;
31585   [\\/]* | ?:[\\/]* )  # Absolute path.
31586     ac_srcdir=$srcdir$ac_dir_suffix;
31587     ac_top_srcdir=$srcdir ;;
31588   *) # Relative path.
31589     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31590     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31591 esac
31592
31593 # Do not use `cd foo && pwd` to compute absolute paths, because
31594 # the directories may not exist.
31595 case `pwd` in
31596 .) ac_abs_builddir="$ac_dir";;
31597 *)
31598   case "$ac_dir" in
31599   .) ac_abs_builddir=`pwd`;;
31600   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31601   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31602   esac;;
31603 esac
31604 case $ac_abs_builddir in
31605 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31606 *)
31607   case ${ac_top_builddir}. in
31608   .) ac_abs_top_builddir=$ac_abs_builddir;;
31609   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31610   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31611   esac;;
31612 esac
31613 case $ac_abs_builddir in
31614 .) ac_abs_srcdir=$ac_srcdir;;
31615 *)
31616   case $ac_srcdir in
31617   .) ac_abs_srcdir=$ac_abs_builddir;;
31618   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31619   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31620   esac;;
31621 esac
31622 case $ac_abs_builddir in
31623 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31624 *)
31625   case $ac_top_srcdir in
31626   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31627   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31628   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31629   esac;;
31630 esac
31631
31632
31633   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31634 echo "$as_me: executing $ac_dest commands" >&6;}
31635   case $ac_dest in
31636     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31637     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31638     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31639     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31640     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31641     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31642     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31643     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31644     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31645     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31646   esac
31647 done
31648 _ACEOF
31649
31650 cat >>$CONFIG_STATUS <<\_ACEOF
31651
31652 { (exit 0); exit 0; }
31653 _ACEOF
31654 chmod +x $CONFIG_STATUS
31655 ac_clean_files=$ac_clean_files_save
31656
31657
31658 # configure is writing to config.log, and then calls config.status.
31659 # config.status does its own redirection, appending to config.log.
31660 # Unfortunately, on DOS this fails, as config.log is still kept open
31661 # by configure, so config.status won't be able to write to it; its
31662 # output is simply discarded.  So we exec the FD to /dev/null,
31663 # effectively closing config.log, so it can be properly (re)opened and
31664 # appended to by config.status.  When coming back to configure, we
31665 # need to make the FD available again.
31666 if test "$no_create" != yes; then
31667   ac_cs_success=:
31668   ac_config_status_args=
31669   test "$silent" = yes &&
31670     ac_config_status_args="$ac_config_status_args --quiet"
31671   exec 5>/dev/null
31672   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31673   exec 5>>config.log
31674   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31675   # would make configure fail if this is the last instruction.
31676   $ac_cs_success || { (exit 1); exit 1; }
31677 fi
31678
31679 #
31680 # CONFIG_SUBDIRS section.
31681 #
31682 if test "$no_recursion" != yes; then
31683
31684   # Remove --cache-file and --srcdir arguments so they do not pile up.
31685   ac_sub_configure_args=
31686   ac_prev=
31687   for ac_arg in $ac_configure_args; do
31688     if test -n "$ac_prev"; then
31689       ac_prev=
31690       continue
31691     fi
31692     case $ac_arg in
31693     -cache-file | --cache-file | --cache-fil | --cache-fi \
31694     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31695       ac_prev=cache_file ;;
31696     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31697     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31698     | --c=*)
31699       ;;
31700     --config-cache | -C)
31701       ;;
31702     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31703       ac_prev=srcdir ;;
31704     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31705       ;;
31706     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31707       ac_prev=prefix ;;
31708     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31709       ;;
31710     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31711     esac
31712   done
31713
31714   # Always prepend --prefix to ensure using the same prefix
31715   # in subdir configurations.
31716   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31717
31718   ac_popdir=`pwd`
31719   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31720
31721     # Do not complain, so a configure script can configure whichever
31722     # parts of a large source tree are present.
31723     test -d $srcdir/$ac_dir || continue
31724
31725     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31726 echo "$as_me: configuring in $ac_dir" >&6;}
31727     { if $as_mkdir_p; then
31728     mkdir -p "$ac_dir"
31729   else
31730     as_dir="$ac_dir"
31731     as_dirs=
31732     while test ! -d "$as_dir"; do
31733       as_dirs="$as_dir $as_dirs"
31734       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31736          X"$as_dir" : 'X\(//\)[^/]' \| \
31737          X"$as_dir" : 'X\(//\)$' \| \
31738          X"$as_dir" : 'X\(/\)' \| \
31739          .     : '\(.\)' 2>/dev/null ||
31740 echo X"$as_dir" |
31741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31742           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31743           /^X\(\/\/\)$/{ s//\1/; q; }
31744           /^X\(\/\).*/{ s//\1/; q; }
31745           s/.*/./; q'`
31746     done
31747     test ! -n "$as_dirs" || mkdir $as_dirs
31748   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31750    { (exit 1); exit 1; }; }; }
31751
31752     ac_builddir=.
31753
31754 if test "$ac_dir" != .; then
31755   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31756   # A "../" for each directory in $ac_dir_suffix.
31757   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31758 else
31759   ac_dir_suffix= ac_top_builddir=
31760 fi
31761
31762 case $srcdir in
31763   .)  # No --srcdir option.  We are building in place.
31764     ac_srcdir=.
31765     if test -z "$ac_top_builddir"; then
31766        ac_top_srcdir=.
31767     else
31768        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31769     fi ;;
31770   [\\/]* | ?:[\\/]* )  # Absolute path.
31771     ac_srcdir=$srcdir$ac_dir_suffix;
31772     ac_top_srcdir=$srcdir ;;
31773   *) # Relative path.
31774     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31775     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31776 esac
31777
31778 # Do not use `cd foo && pwd` to compute absolute paths, because
31779 # the directories may not exist.
31780 case `pwd` in
31781 .) ac_abs_builddir="$ac_dir";;
31782 *)
31783   case "$ac_dir" in
31784   .) ac_abs_builddir=`pwd`;;
31785   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31786   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31787   esac;;
31788 esac
31789 case $ac_abs_builddir in
31790 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31791 *)
31792   case ${ac_top_builddir}. in
31793   .) ac_abs_top_builddir=$ac_abs_builddir;;
31794   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31795   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31796   esac;;
31797 esac
31798 case $ac_abs_builddir in
31799 .) ac_abs_srcdir=$ac_srcdir;;
31800 *)
31801   case $ac_srcdir in
31802   .) ac_abs_srcdir=$ac_abs_builddir;;
31803   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31804   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31805   esac;;
31806 esac
31807 case $ac_abs_builddir in
31808 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31809 *)
31810   case $ac_top_srcdir in
31811   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31812   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31813   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31814   esac;;
31815 esac
31816
31817
31818     cd $ac_dir
31819
31820     # Check for guested configure; otherwise get Cygnus style configure.
31821     if test -f $ac_srcdir/configure.gnu; then
31822       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31823     elif test -f $ac_srcdir/configure; then
31824       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31825     elif test -f $ac_srcdir/configure.in; then
31826       ac_sub_configure=$ac_configure
31827     else
31828       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31829 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31830       ac_sub_configure=
31831     fi
31832
31833     # The recursion is here.
31834     if test -n "$ac_sub_configure"; then
31835       # Make the cache file name correct relative to the subdirectory.
31836       case $cache_file in
31837       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31838       *) # Relative path.
31839         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31840       esac
31841
31842       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31843 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31844       # The eval makes quoting arguments work.
31845       eval $ac_sub_configure $ac_sub_configure_args \
31846            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31847         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31848 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31849    { (exit 1); exit 1; }; }
31850     fi
31851
31852     cd $ac_popdir
31853   done
31854 fi
31855
31856
31857 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31858  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31859 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31860  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31861 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31862  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31863 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31864  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31865 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31866  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31867 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31868 fi