The noreturn GCC extension is now supported.
[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 LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S 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 PYTHON QMTEST 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 ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS 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       Location of LLVM GCC front-end
1053   --with-tclinclude       directory where tcl headers are
1054   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055   --with-pic              try to use only PIC/non-PIC objects [default=use
1056                           both]
1057   --with-tags[=TAGS]
1058                           include additional configurations [automatic]
1059
1060 Some influential environment variables:
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064               nonstandard directory <lib dir>
1065   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066               headers in a nonstandard directory <include dir>
1067   CPP         C preprocessor
1068   CXX         C++ compiler command
1069   CXXFLAGS    C++ compiler flags
1070   CXXCPP      C++ preprocessor
1071   F77         Fortran 77 compiler command
1072   FFLAGS      Fortran 77 compiler flags
1073
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1076
1077 Report bugs to <llvmbugs@cs.uiuc.edu>.
1078 _ACEOF
1079 fi
1080
1081 if test "$ac_init_help" = "recursive"; then
1082   # If there are subdirs, report their specific --help.
1083   ac_popdir=`pwd`
1084   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085     test -d $ac_dir || continue
1086     ac_builddir=.
1087
1088 if test "$ac_dir" != .; then
1089   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090   # A "../" for each directory in $ac_dir_suffix.
1091   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 else
1093   ac_dir_suffix= ac_top_builddir=
1094 fi
1095
1096 case $srcdir in
1097   .)  # No --srcdir option.  We are building in place.
1098     ac_srcdir=.
1099     if test -z "$ac_top_builddir"; then
1100        ac_top_srcdir=.
1101     else
1102        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103     fi ;;
1104   [\\/]* | ?:[\\/]* )  # Absolute path.
1105     ac_srcdir=$srcdir$ac_dir_suffix;
1106     ac_top_srcdir=$srcdir ;;
1107   *) # Relative path.
1108     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 esac
1111
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1114 case `pwd` in
1115 .) ac_abs_builddir="$ac_dir";;
1116 *)
1117   case "$ac_dir" in
1118   .) ac_abs_builddir=`pwd`;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *)
1126   case ${ac_top_builddir}. in
1127   .) ac_abs_top_builddir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1134 *)
1135   case $ac_srcdir in
1136   .) ac_abs_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139   esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *)
1144   case $ac_top_srcdir in
1145   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148   esac;;
1149 esac
1150
1151     cd $ac_dir
1152     # Check for guested configure; otherwise get Cygnus style configure.
1153     if test -f $ac_srcdir/configure.gnu; then
1154       echo
1155       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156     elif test -f $ac_srcdir/configure; then
1157       echo
1158       $SHELL $ac_srcdir/configure  --help=recursive
1159     elif test -f $ac_srcdir/configure.ac ||
1160            test -f $ac_srcdir/configure.in; then
1161       echo
1162       $ac_configure --help
1163     else
1164       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165     fi
1166     cd $ac_popdir
1167   done
1168 fi
1169
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1172   cat <<\_ACEOF
1173 llvm configure 1.4
1174 generated by GNU Autoconf 2.59
1175
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1179
1180 $LLVM_COPYRIGHT
1181 _ACEOF
1182   exit 0
1183 fi
1184 exec 5>config.log
1185 cat >&5 <<_ACEOF
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1188
1189 It was created by llvm $as_me 1.4, which was
1190 generated by GNU Autoconf 2.59.  Invocation command line was
1191
1192   $ $0 $@
1193
1194 _ACEOF
1195 {
1196 cat <<_ASUNAME
1197 ## --------- ##
1198 ## Platform. ##
1199 ## --------- ##
1200
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1209
1210 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1211 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1214 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1215 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1216 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1217
1218 _ASUNAME
1219
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221 for as_dir in $PATH
1222 do
1223   IFS=$as_save_IFS
1224   test -z "$as_dir" && as_dir=.
1225   echo "PATH: $as_dir"
1226 done
1227
1228 } >&5
1229
1230 cat >&5 <<_ACEOF
1231
1232
1233 ## ----------- ##
1234 ## Core tests. ##
1235 ## ----------- ##
1236
1237 _ACEOF
1238
1239
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1245 ac_configure_args=
1246 ac_configure_args0=
1247 ac_configure_args1=
1248 ac_sep=
1249 ac_must_keep_next=false
1250 for ac_pass in 1 2
1251 do
1252   for ac_arg
1253   do
1254     case $ac_arg in
1255     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257     | -silent | --silent | --silen | --sile | --sil)
1258       continue ;;
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     esac
1262     case $ac_pass in
1263     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264     2)
1265       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266       if test $ac_must_keep_next = true; then
1267         ac_must_keep_next=false # Got value, back to normal.
1268       else
1269         case $ac_arg in
1270           *=* | --config-cache | -C | -disable-* | --disable-* \
1271           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273           | -with-* | --with-* | -without-* | --without-* | --x)
1274             case "$ac_configure_args0 " in
1275               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276             esac
1277             ;;
1278           -* ) ac_must_keep_next=true ;;
1279         esac
1280       fi
1281       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282       # Get rid of the leading space.
1283       ac_sep=" "
1284       ;;
1285     esac
1286   done
1287 done
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log.  We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297   # Save into config.log some information that might help in debugging.
1298   {
1299     echo
1300
1301     cat <<\_ASBOX
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1305 _ASBOX
1306     echo
1307     # The following way of writing the cache mishandles newlines in values,
1308 {
1309   (set) 2>&1 |
1310     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311     *ac_space=\ *)
1312       sed -n \
1313         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315       ;;
1316     *)
1317       sed -n \
1318         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319       ;;
1320     esac;
1321 }
1322     echo
1323
1324     cat <<\_ASBOX
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1328 _ASBOX
1329     echo
1330     for ac_var in $ac_subst_vars
1331     do
1332       eval ac_val=$`echo $ac_var`
1333       echo "$ac_var='"'"'$ac_val'"'"'"
1334     done | sort
1335     echo
1336
1337     if test -n "$ac_subst_files"; then
1338       cat <<\_ASBOX
1339 ## ------------- ##
1340 ## Output files. ##
1341 ## ------------- ##
1342 _ASBOX
1343       echo
1344       for ac_var in $ac_subst_files
1345       do
1346         eval ac_val=$`echo $ac_var`
1347         echo "$ac_var='"'"'$ac_val'"'"'"
1348       done | sort
1349       echo
1350     fi
1351
1352     if test -s confdefs.h; then
1353       cat <<\_ASBOX
1354 ## ----------- ##
1355 ## confdefs.h. ##
1356 ## ----------- ##
1357 _ASBOX
1358       echo
1359       sed "/^$/d" confdefs.h | sort
1360       echo
1361     fi
1362     test "$ac_signal" != 0 &&
1363       echo "$as_me: caught signal $ac_signal"
1364     echo "$as_me: exit $exit_status"
1365   } >&5
1366   rm -f core *.core &&
1367   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368     exit $exit_status
1369      ' 0
1370 for ac_signal in 1 2 13 15; do
1371   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372 done
1373 ac_signal=0
1374
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378 echo >confdefs.h
1379
1380 # Predefined preprocessor variables.
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404 _ACEOF
1405
1406
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410   if test "x$prefix" != xNONE; then
1411     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412   else
1413     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414   fi
1415 fi
1416 for ac_site_file in $CONFIG_SITE; do
1417   if test -r "$ac_site_file"; then
1418     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420     sed 's/^/| /' "$ac_site_file" >&5
1421     . "$ac_site_file"
1422   fi
1423 done
1424
1425 if test -r "$cache_file"; then
1426   # Some versions of bash will fail to source /dev/null (special
1427   # files actually), so we avoid doing that.
1428   if test -f "$cache_file"; then
1429     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1431     case $cache_file in
1432       [\\/]* | ?:[\\/]* ) . $cache_file;;
1433       *)                      . ./$cache_file;;
1434     esac
1435   fi
1436 else
1437   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1439   >$cache_file
1440 fi
1441
1442 # Check that the precious variables saved in the cache have kept the same
1443 # value.
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448   eval ac_new_set=\$ac_env_${ac_var}_set
1449   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450   eval ac_new_val="\$ac_env_${ac_var}_value"
1451   case $ac_old_set,$ac_new_set in
1452     set,)
1453       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455       ac_cache_corrupted=: ;;
1456     ,set)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,);;
1461     *)
1462       if test "x$ac_old_val" != "x$ac_new_val"; then
1463         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1466 echo "$as_me:   former value:  $ac_old_val" >&2;}
1467         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1468 echo "$as_me:   current value: $ac_new_val" >&2;}
1469         ac_cache_corrupted=:
1470       fi;;
1471   esac
1472   # Pass precious variables to config.status.
1473   if test "$ac_new_set" = set; then
1474     case $ac_new_val in
1475     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477     *) ac_arg=$ac_var=$ac_new_val ;;
1478     esac
1479     case " $ac_configure_args " in
1480       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1481       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482     esac
1483   fi
1484 done
1485 if $ac_cache_corrupted; then
1486   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492
1493 ac_ext=c
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
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 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1527
1528
1529
1530
1531
1532
1533
1534 ac_aux_dir=
1535 for ac_dir in autoconf $srcdir/autoconf; do
1536   if test -f $ac_dir/install-sh; then
1537     ac_aux_dir=$ac_dir
1538     ac_install_sh="$ac_aux_dir/install-sh -c"
1539     break
1540   elif test -f $ac_dir/install.sh; then
1541     ac_aux_dir=$ac_dir
1542     ac_install_sh="$ac_aux_dir/install.sh -c"
1543     break
1544   elif test -f $ac_dir/shtool; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/shtool install -c"
1547     break
1548   fi
1549 done
1550 if test -z "$ac_aux_dir"; then
1551   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1553    { (exit 1); exit 1; }; }
1554 fi
1555 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
1559
1560 if test ${srcdir} != "." ; then
1561   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1563 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564    { (exit 1); exit 1; }; }
1565   fi
1566 fi
1567
1568 for i in `ls ${srcdir}/projects`
1569 do
1570   if test -d ${srcdir}/projects/${i} ; then
1571     case ${i} in
1572       "CVS") ;;
1573       "sample")
1574
1575 subdirs="$subdirs projects/sample"
1576     ;;
1577       "Stacker")
1578
1579 subdirs="$subdirs projects/Stacker"
1580    ;;
1581       "llvm-test")
1582
1583 subdirs="$subdirs projects/llvm-test"
1584  ;;
1585       "llvm-reopt")
1586
1587 subdirs="$subdirs projects/llvm-reopt"
1588 ;;
1589       "llvm-gcc")
1590
1591 subdirs="$subdirs projects/llvm-gcc"
1592   ;;
1593       "Java")
1594
1595 subdirs="$subdirs projects/Java"
1596       ;;
1597       "llvm-tv")
1598
1599 subdirs="$subdirs projects/llvm-tv"
1600    ;;
1601       "llvm-fefw")
1602
1603 subdirs="$subdirs projects/llvm-fefw"
1604  ;;
1605       "poolalloc")
1606
1607 subdirs="$subdirs projects/poolalloc"
1608  ;;
1609       *)
1610         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1612         ;;
1613     esac
1614   fi
1615 done
1616
1617
1618 # Make sure we can run config.sub.
1619 $ac_config_sub sun4 >/dev/null 2>&1 ||
1620   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622    { (exit 1); exit 1; }; }
1623
1624 echo "$as_me:$LINENO: checking build system type" >&5
1625 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626 if test "${ac_cv_build+set}" = set; then
1627   echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629   ac_cv_build_alias=$build_alias
1630 test -z "$ac_cv_build_alias" &&
1631   ac_cv_build_alias=`$ac_config_guess`
1632 test -z "$ac_cv_build_alias" &&
1633   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635    { (exit 1); exit 1; }; }
1636 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639    { (exit 1); exit 1; }; }
1640
1641 fi
1642 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643 echo "${ECHO_T}$ac_cv_build" >&6
1644 build=$ac_cv_build
1645 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650 echo "$as_me:$LINENO: checking host system type" >&5
1651 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652 if test "${ac_cv_host+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   ac_cv_host_alias=$host_alias
1656 test -z "$ac_cv_host_alias" &&
1657   ac_cv_host_alias=$ac_cv_build_alias
1658 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661    { (exit 1); exit 1; }; }
1662
1663 fi
1664 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665 echo "${ECHO_T}$ac_cv_host" >&6
1666 host=$ac_cv_host
1667 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672 echo "$as_me:$LINENO: checking target system type" >&5
1673 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674 if test "${ac_cv_target+set}" = set; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   ac_cv_target_alias=$target_alias
1678 test "x$ac_cv_target_alias" = "x" &&
1679   ac_cv_target_alias=$ac_cv_host_alias
1680 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683    { (exit 1); exit 1; }; }
1684
1685 fi
1686 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687 echo "${ECHO_T}$ac_cv_target" >&6
1688 target=$ac_cv_target
1689 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694 # The aliases save the names the user supplied, while $host etc.
1695 # will get canonicalized.
1696 test -n "$target_alias" &&
1697   test "$program_prefix$program_suffix$program_transform_name" = \
1698     NONENONEs,x,x, &&
1699   program_prefix=${target_alias}-
1700
1701 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1703 if test "${llvm_cv_platform_type+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   case $build in
1707   *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708   *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709   *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710   *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711   *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712   *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713   *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714   *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715   *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716   *) llvm_cv_platform_type="Unknown" ;;
1717 esac
1718 fi
1719 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1721
1722 if test "$llvm_cv_platform_type" = "Unknown" ; then
1723   { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1725    { (exit 1); exit 1; }; }
1726 fi
1727
1728 OS=$llvm_cv_platform_type
1729
1730
1731           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1732
1733
1734 case $target in
1735   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1736
1737   ;;
1738 esac
1739
1740 echo "$as_me:$LINENO: checking target architecture" >&5
1741 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1742 if test "${llvm_cv_target_arch+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   case $target in
1746   i*86-*)      llvm_cv_target_arch="x86" ;;
1747   sparc*-*)    llvm_cv_target_arch="Sparc" ;;
1748   powerpc*-*)  llvm_cv_target_arch="PowerPC" ;;
1749   *)           llvm_cv_target_arch="Unknown" ;;
1750 esac
1751 fi
1752 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1754
1755 if test "$llvm_cv_target_arch" = "Unknown" ; then
1756   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758 fi
1759
1760 ARCH=$llvm_cv_target_arch
1761
1762
1763 ac_ext=c
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   if test -n "$CC"; then
1777   ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   for ac_exec_ext in '' $ac_executable_extensions; do
1785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788     break 2
1789   fi
1790 done
1791 done
1792
1793 fi
1794 fi
1795 CC=$ac_cv_prog_CC
1796 if test -n "$CC"; then
1797   echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1799 else
1800   echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804 fi
1805 if test -z "$ac_cv_prog_CC"; then
1806   ac_ct_CC=$CC
1807   # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$ac_ct_CC"; then
1815   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     ac_cv_prog_ac_ct_CC="gcc"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830
1831 fi
1832 fi
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842   CC=$ac_ct_CC
1843 else
1844   CC="$ac_cv_prog_CC"
1845 fi
1846
1847 if test -z "$CC"; then
1848   if test -n "$ac_tool_prefix"; then
1849   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854   echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856   if test -n "$CC"; then
1857   ac_cv_prog_CC="$CC" # Let the user override the test.
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862   IFS=$as_save_IFS
1863   test -z "$as_dir" && as_dir=.
1864   for ac_exec_ext in '' $ac_executable_extensions; do
1865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866     ac_cv_prog_CC="${ac_tool_prefix}cc"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872
1873 fi
1874 fi
1875 CC=$ac_cv_prog_CC
1876 if test -n "$CC"; then
1877   echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1879 else
1880   echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1882 fi
1883
1884 fi
1885 if test -z "$ac_cv_prog_CC"; then
1886   ac_ct_CC=$CC
1887   # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   if test -n "$ac_ct_CC"; then
1895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900   IFS=$as_save_IFS
1901   test -z "$as_dir" && as_dir=.
1902   for ac_exec_ext in '' $ac_executable_extensions; do
1903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904     ac_cv_prog_ac_ct_CC="cc"
1905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906     break 2
1907   fi
1908 done
1909 done
1910
1911 fi
1912 fi
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1917 else
1918   echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1920 fi
1921
1922   CC=$ac_ct_CC
1923 else
1924   CC="$ac_cv_prog_CC"
1925 fi
1926
1927 fi
1928 if test -z "$CC"; then
1929   # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$CC"; then
1937   ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939   ac_prog_rejected=no
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943   IFS=$as_save_IFS
1944   test -z "$as_dir" && as_dir=.
1945   for ac_exec_ext in '' $ac_executable_extensions; do
1946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948        ac_prog_rejected=yes
1949        continue
1950      fi
1951     ac_cv_prog_CC="cc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 if test $ac_prog_rejected = yes; then
1959   # We found a bogon in the path, so make sure we never use it.
1960   set dummy $ac_cv_prog_CC
1961   shift
1962   if test $# != 0; then
1963     # We chose a different compiler from the bogus one.
1964     # However, it has the same basename, so the bogon will be chosen
1965     # first if we set CC to just the basename; use the full file name.
1966     shift
1967     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968   fi
1969 fi
1970 fi
1971 fi
1972 CC=$ac_cv_prog_CC
1973 if test -n "$CC"; then
1974   echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1976 else
1977   echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 fi
1980
1981 fi
1982 if test -z "$CC"; then
1983   if test -n "$ac_tool_prefix"; then
1984   for ac_prog in cl
1985   do
1986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005     break 2
2006   fi
2007 done
2008 done
2009
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014   echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017   echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2019 fi
2020
2021     test -n "$CC" && break
2022   done
2023 fi
2024 if test -z "$CC"; then
2025   ac_ct_CC=$CC
2026   for ac_prog in cl
2027 do
2028   # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$ac_ct_CC"; then
2036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_ac_ct_CC="$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063   test -n "$ac_ct_CC" && break
2064 done
2065
2066   CC=$ac_ct_CC
2067 fi
2068
2069 fi
2070
2071
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO:" \
2080      "checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083   (eval $ac_compiler --version </dev/null >&5) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088   (eval $ac_compiler -v </dev/null >&5) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093   (eval $ac_compiler -V </dev/null >&5) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }
2097
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h.  */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h.  */
2104
2105 int
2106 main ()
2107 {
2108
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2117 # of exeext.
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122   (eval $ac_link_default) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }; then
2126   # Find the output, starting from the most likely.  This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128 # resort.
2129
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132 ac_cv_exeext=
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135 do
2136   test -f "$ac_file" || continue
2137   case $ac_file in
2138     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2139         ;;
2140     conftest.$ac_ext )
2141         # This is the source file.
2142         ;;
2143     [ab].out )
2144         # We found the default executable, but exeext='' is most
2145         # certainly right.
2146         break;;
2147     *.* )
2148         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149         # FIXME: I believe we export ac_cv_exeext for Libtool,
2150         # but it would be cool to find out if it's true.  Does anybody
2151         # maintain Libtool? --akim.
2152         export ac_cv_exeext
2153         break;;
2154     * )
2155         break;;
2156   esac
2157 done
2158 else
2159   echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166    { (exit 77); exit 77; }; }
2167 fi
2168
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2172
2173 # Check the compiler produces executables we can run.  If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180   if { ac_try='./$ac_file'
2181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182   (eval $ac_try) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }; }; then
2186     cross_compiling=no
2187   else
2188     if test "$cross_compiling" = maybe; then
2189         cross_compiling=yes
2190     else
2191         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197    { (exit 1); exit 1; }; }
2198     fi
2199   fi
2200 fi
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2203
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run.  If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2212
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216   (eval $ac_link) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; then
2220   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 # `rm'.
2224 for ac_file in conftest.exe conftest conftest.*; do
2225   test -f "$ac_file" || continue
2226   case $ac_file in
2227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229           export ac_cv_exeext
2230           break;;
2231     * ) break;;
2232   esac
2233 done
2234 else
2235   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }
2240 fi
2241
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2248 ac_exeext=$EXEEXT
2249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 if test "${ac_cv_objext+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h.  */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h.  */
2260
2261 int
2262 main ()
2263 {
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.o conftest.obj
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276   case $ac_file in
2277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279        break;;
2280   esac
2281 done
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294 fi
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2298 ac_objext=$OBJEXT
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310
2311 int
2312 main ()
2313 {
2314 #ifndef __GNUC__
2315        choke me
2316 #endif
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>conftest.er1
2325   ac_status=$?
2326   grep -v '^ *+' conftest.er1 >conftest.err
2327   rm -f conftest.er1
2328   cat conftest.err >&5
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); } &&
2331          { ac_try='test -z "$ac_c_werror_flag"
2332                          || test ! -s conftest.err'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; } &&
2338          { ac_try='test -s conftest.$ac_objext'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; }; then
2344   ac_compiler_gnu=yes
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_compiler_gnu=no
2350 fi
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353
2354 fi
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2360 CFLAGS="-g"
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383   (eval $ac_compile) 2>conftest.er1
2384   ac_status=$?
2385   grep -v '^ *+' conftest.er1 >conftest.err
2386   rm -f conftest.er1
2387   cat conftest.err >&5
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); } &&
2390          { ac_try='test -z "$ac_c_werror_flag"
2391                          || test ! -s conftest.err'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; } &&
2397          { ac_try='test -s conftest.$ac_objext'
2398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399   (eval $ac_try) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; }; then
2403   ac_cv_prog_cc_g=yes
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 ac_cv_prog_cc_g=no
2409 fi
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415   CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417   if test "$GCC" = yes; then
2418     CFLAGS="-g -O2"
2419   else
2420     CFLAGS="-g"
2421   fi
2422 else
2423   if test "$GCC" = yes; then
2424     CFLAGS="-O2"
2425   else
2426     CFLAGS=
2427   fi
2428 fi
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   ac_cv_prog_cc_stdc=no
2435 ac_save_CC=$CC
2436 cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442 #include <stdarg.h>
2443 #include <stdio.h>
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2450      char **p;
2451      int i;
2452 {
2453   return p[i];
2454 }
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2456 {
2457   char *s;
2458   va_list v;
2459   va_start (v,p);
2460   s = g (p, va_arg (v,int));
2461   va_end (v);
2462   return s;
2463 }
2464
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2466    function prototypes and stuff, but not '\xHH' hex character constants.
2467    These don't provoke an error unfortunately, instead are silently treated
2468    as 'x'.  The following induces an error, until -std1 is added to get
2469    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2470    array size at least.  It's necessary to write '\x00'==0 to get something
2471    that's true only with -std1.  */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478 int argc;
2479 char **argv;
2480 int
2481 main ()
2482 {
2483 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX                   -qlanglvl=ansi
2491 # Ultrix and OSF/1      -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2494 # SVR4                  -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496 do
2497   CC="$ac_save_CC $ac_arg"
2498   rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500   (eval $ac_compile) 2>conftest.er1
2501   ac_status=$?
2502   grep -v '^ *+' conftest.er1 >conftest.err
2503   rm -f conftest.er1
2504   cat conftest.err >&5
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -z "$ac_c_werror_flag"
2508                          || test ! -s conftest.err'
2509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510   (eval $ac_try) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; } &&
2514          { ac_try='test -s conftest.$ac_objext'
2515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516   (eval $ac_try) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; }; then
2520   ac_cv_prog_cc_stdc=$ac_arg
2521 break
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 fi
2527 rm -f conftest.err conftest.$ac_objext
2528 done
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2530 CC=$ac_save_CC
2531
2532 fi
2533
2534 case "x$ac_cv_prog_cc_stdc" in
2535   x|xno)
2536     echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2538   *)
2539     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541     CC="$CC $ac_cv_prog_cc_stdc" ;;
2542 esac
2543
2544 # Some people use a C++ compiler to compile C.  Since we use `exit',
2545 # in C++ we need to declare it.  In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.$ac_ext <<_ACEOF
2549 #ifndef __cplusplus
2550   choke me
2551 #endif
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555   (eval $ac_compile) 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
2559   cat conftest.err >&5
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -z "$ac_c_werror_flag"
2563                          || test ! -s conftest.err'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   for ac_declaration in \
2576    '' \
2577    'extern "C" void std::exit (int) throw (); using std::exit;' \
2578    'extern "C" void std::exit (int); using std::exit;' \
2579    'extern "C" void exit (int) throw ();' \
2580    'extern "C" void exit (int);' \
2581    'void exit (int);'
2582 do
2583   cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589 $ac_declaration
2590 #include <stdlib.h>
2591 int
2592 main ()
2593 {
2594 exit (42);
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -z "$ac_c_werror_flag"
2609                          || test ! -s conftest.err'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   :
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 continue
2627 fi
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635 $ac_declaration
2636 int
2637 main ()
2638 {
2639 exit (42);
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -z "$ac_c_werror_flag"
2654                          || test ! -s conftest.err'
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); }; } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   break
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 fi
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 done
2674 rm -f conftest*
2675 if test -n "$ac_declaration"; then
2676   echo '#ifdef __cplusplus' >>confdefs.h
2677   echo $ac_declaration      >>confdefs.h
2678   echo '#endif'             >>confdefs.h
2679 fi
2680
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 fi
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696 if test "${ac_cv_c_bigendian+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   # See if sys/param.h defines the BYTE_ORDER macro.
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 #include <sys/types.h>
2707 #include <sys/param.h>
2708
2709 int
2710 main ()
2711 {
2712 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2713  bogus endian macros
2714 #endif
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_c_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   # It does; now see whether it defined to BIG_ENDIAN or not.
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2751
2752 int
2753 main ()
2754 {
2755 #if BYTE_ORDER != BIG_ENDIAN
2756  not big endian
2757 #endif
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_c_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   ac_cv_c_bigendian=yes
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 ac_cv_c_bigendian=no
2791 fi
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 # It does not; compile a test program.
2798 if test "$cross_compiling" = yes; then
2799   # try to guess the endianness by grepping values into an object file
2800   ac_cv_c_bigendian=unknown
2801   cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813 int
2814 main ()
2815 {
2816  _ascii (); _ebcdic ();
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823   (eval $ac_compile) 2>conftest.er1
2824   ac_status=$?
2825   grep -v '^ *+' conftest.er1 >conftest.err
2826   rm -f conftest.er1
2827   cat conftest.err >&5
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); } &&
2830          { ac_try='test -z "$ac_c_werror_flag"
2831                          || test ! -s conftest.err'
2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; } &&
2837          { ac_try='test -s conftest.$ac_objext'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; }; then
2843   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844   ac_cv_c_bigendian=yes
2845 fi
2846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847   if test "$ac_cv_c_bigendian" = unknown; then
2848     ac_cv_c_bigendian=no
2849   else
2850     # finding both strings is unlikely to happen, but who knows?
2851     ac_cv_c_bigendian=unknown
2852   fi
2853 fi
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 fi
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 else
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 int
2868 main ()
2869 {
2870   /* Are we little or big endian?  From Harbison&Steele.  */
2871   union
2872   {
2873     long l;
2874     char c[sizeof (long)];
2875   } u;
2876   u.l = 1;
2877   exit (u.c[sizeof (long) - 1] == 1);
2878 }
2879 _ACEOF
2880 rm -f conftest$ac_exeext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882   (eval $ac_link) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   ac_cv_c_bigendian=no
2892 else
2893   echo "$as_me: program exited with status $ac_status" >&5
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 ( exit $ac_status )
2898 ac_cv_c_bigendian=yes
2899 fi
2900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901 fi
2902 fi
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 fi
2905 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907 case $ac_cv_c_bigendian in
2908   yes)
2909     ENDIAN=big
2910  ;;
2911   no)
2912     ENDIAN=little
2913  ;;
2914   *)
2915     { { echo "$as_me:$LINENO: error: unknown endianness
2916 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917 echo "$as_me: error: unknown endianness
2918 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919    { (exit 1); exit 1; }; } ;;
2920 esac
2921
2922
2923
2924 # Check whether --enable-optimized or --disable-optimized was given.
2925 if test "${enable_optimized+set}" = set; then
2926   enableval="$enable_optimized"
2927
2928 else
2929   enableval=no
2930 fi;
2931 if test ${enableval} = "no" ; then
2932   ENABLE_OPTIMIZED=
2933
2934 else
2935   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936
2937 fi
2938
2939 # Check whether --enable-jit or --disable-jit was given.
2940 if test "${enable_jit+set}" = set; then
2941   enableval="$enable_jit"
2942
2943 else
2944   enableval=default
2945 fi;
2946 if test ${enableval} = "no"
2947 then
2948   JIT=
2949
2950 else
2951   case "$llvm_cv_target_arch" in
2952     x86)     JIT=TARGET_HAS_JIT=1
2953  ;;
2954     Sparc)   JIT=TARGET_HAS_JIT=1
2955  ;;
2956     PowerPC) JIT=TARGET_HAS_JIT=1
2957  ;;
2958     *)       JIT=
2959  ;;
2960   esac
2961 fi
2962
2963 # Check whether --enable-doxygen or --disable-doxygen was given.
2964 if test "${enable_doxygen+set}" = set; then
2965   enableval="$enable_doxygen"
2966
2967 else
2968   enableval=default
2969 fi;
2970 case "$enableval" in
2971   yes) ENABLE_DOXYGEN=1
2972  ;;
2973   no)  ENABLE_DOXYGEN=0
2974  ;;
2975   default) ENABLE_DOXYGEN=0
2976  ;;
2977   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979    { (exit 1); exit 1; }; } ;;
2980 esac
2981
2982
2983 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984 if test "${with_llvmgccdir+set}" = set; then
2985   withval="$with_llvmgccdir"
2986   LLVMGCCDIR=$withval
2987
2988 fi;
2989
2990 if test "x$LLVMGCCDIR" = x ; then
2991   case "$llvm_cv_platform_type" in
2992     Linux)
2993       if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994         LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995
2996       fi
2997       ;;
2998     SunOS)
2999       if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000         LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3001
3002       fi
3003       ;;
3004   esac
3005 fi
3006
3007
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015 # On Suns, sometimes $CPP names a directory.
3016 if test -n "$CPP" && test -d "$CPP"; then
3017   CPP=
3018 fi
3019 if test -z "$CPP"; then
3020   if test "${ac_cv_prog_CPP+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023       # Double quotes because CPP needs to be expanded
3024     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025     do
3026       ac_preproc_ok=false
3027 for ac_c_preproc_warn_flag in '' yes
3028 do
3029   # Use a header file that comes with gcc, so configuring glibc
3030   # with a fresh cross-compiler works.
3031   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032   # <limits.h> exists even on freestanding compilers.
3033   # On the NeXT, cc -E runs the code through the compiler's parser,
3034   # not just through cpp. "Syntax error" is here to catch this case.
3035   cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041 #ifdef __STDC__
3042 # include <limits.h>
3043 #else
3044 # include <assert.h>
3045 #endif
3046                      Syntax error
3047 _ACEOF
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } >/dev/null; then
3056   if test -s conftest.err; then
3057     ac_cpp_err=$ac_c_preproc_warn_flag
3058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3059   else
3060     ac_cpp_err=
3061   fi
3062 else
3063   ac_cpp_err=yes
3064 fi
3065 if test -z "$ac_cpp_err"; then
3066   :
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071   # Broken: fails on valid input.
3072 continue
3073 fi
3074 rm -f conftest.err conftest.$ac_ext
3075
3076   # OK, works on sane cases.  Now check whether non-existent headers
3077   # can be detected and how.
3078   cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #include <ac_nonexistent.h>
3085 _ACEOF
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } >/dev/null; then
3094   if test -s conftest.err; then
3095     ac_cpp_err=$ac_c_preproc_warn_flag
3096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097   else
3098     ac_cpp_err=
3099   fi
3100 else
3101   ac_cpp_err=yes
3102 fi
3103 if test -z "$ac_cpp_err"; then
3104   # Broken: success on invalid input.
3105 continue
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110   # Passes both tests.
3111 ac_preproc_ok=:
3112 break
3113 fi
3114 rm -f conftest.err conftest.$ac_ext
3115
3116 done
3117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118 rm -f conftest.err conftest.$ac_ext
3119 if $ac_preproc_ok; then
3120   break
3121 fi
3122
3123     done
3124     ac_cv_prog_CPP=$CPP
3125
3126 fi
3127   CPP=$ac_cv_prog_CPP
3128 else
3129   ac_cv_prog_CPP=$CPP
3130 fi
3131 echo "$as_me:$LINENO: result: $CPP" >&5
3132 echo "${ECHO_T}$CPP" >&6
3133 ac_preproc_ok=false
3134 for ac_c_preproc_warn_flag in '' yes
3135 do
3136   # Use a header file that comes with gcc, so configuring glibc
3137   # with a fresh cross-compiler works.
3138   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139   # <limits.h> exists even on freestanding compilers.
3140   # On the NeXT, cc -E runs the code through the compiler's parser,
3141   # not just through cpp. "Syntax error" is here to catch this case.
3142   cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148 #ifdef __STDC__
3149 # include <limits.h>
3150 #else
3151 # include <assert.h>
3152 #endif
3153                      Syntax error
3154 _ACEOF
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } >/dev/null; then
3163   if test -s conftest.err; then
3164     ac_cpp_err=$ac_c_preproc_warn_flag
3165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166   else
3167     ac_cpp_err=
3168   fi
3169 else
3170   ac_cpp_err=yes
3171 fi
3172 if test -z "$ac_cpp_err"; then
3173   :
3174 else
3175   echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178   # Broken: fails on valid input.
3179 continue
3180 fi
3181 rm -f conftest.err conftest.$ac_ext
3182
3183   # OK, works on sane cases.  Now check whether non-existent headers
3184   # can be detected and how.
3185   cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #include <ac_nonexistent.h>
3192 _ACEOF
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } >/dev/null; then
3201   if test -s conftest.err; then
3202     ac_cpp_err=$ac_c_preproc_warn_flag
3203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204   else
3205     ac_cpp_err=
3206   fi
3207 else
3208   ac_cpp_err=yes
3209 fi
3210 if test -z "$ac_cpp_err"; then
3211   # Broken: success on invalid input.
3212 continue
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217   # Passes both tests.
3218 ac_preproc_ok=:
3219 break
3220 fi
3221 rm -f conftest.err conftest.$ac_ext
3222
3223 done
3224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225 rm -f conftest.err conftest.$ac_ext
3226 if $ac_preproc_ok; then
3227   :
3228 else
3229   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232 See \`config.log' for more details." >&2;}
3233    { (exit 1); exit 1; }; }
3234 fi
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 if test -n "$ac_tool_prefix"; then
3248   for ac_prog in gcc
3249   do
3250     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252 echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   if test -n "$CC"; then
3258   ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265   for ac_exec_ext in '' $ac_executable_extensions; do
3266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272 done
3273
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278   echo "$as_me:$LINENO: result: $CC" >&5
3279 echo "${ECHO_T}$CC" >&6
3280 else
3281   echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6
3283 fi
3284
3285     test -n "$CC" && break
3286   done
3287 fi
3288 if test -z "$CC"; then
3289   ac_ct_CC=$CC
3290   for ac_prog in gcc
3291 do
3292   # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   if test -n "$ac_ct_CC"; then
3300   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307   for ac_exec_ext in '' $ac_executable_extensions; do
3308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_prog_ac_ct_CC="$ac_prog"
3310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314 done
3315
3316 fi
3317 fi
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3321 echo "${ECHO_T}$ac_ct_CC" >&6
3322 else
3323   echo "$as_me:$LINENO: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3325 fi
3326
3327   test -n "$ac_ct_CC" && break
3328 done
3329
3330   CC=$ac_ct_CC
3331 fi
3332
3333
3334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&2;}
3338    { (exit 1); exit 1; }; }
3339
3340 # Provide some information about the compiler.
3341 echo "$as_me:$LINENO:" \
3342      "checking for C compiler version" >&5
3343 ac_compiler=`set X $ac_compile; echo $2`
3344 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3345   (eval $ac_compiler --version </dev/null >&5) 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }
3349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3350   (eval $ac_compiler -v </dev/null >&5) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }
3354 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3355   (eval $ac_compiler -V </dev/null >&5) 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }
3359
3360 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371
3372 int
3373 main ()
3374 {
3375 #ifndef __GNUC__
3376        choke me
3377 #endif
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385   (eval $ac_compile) 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } &&
3392          { ac_try='test -z "$ac_c_werror_flag"
3393                          || test ! -s conftest.err'
3394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395   (eval $ac_try) 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); }; } &&
3399          { ac_try='test -s conftest.$ac_objext'
3400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401   (eval $ac_try) 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; }; then
3405   ac_compiler_gnu=yes
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 ac_compiler_gnu=no
3411 fi
3412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414
3415 fi
3416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3418 GCC=`test $ac_compiler_gnu = yes && echo yes`
3419 ac_test_CFLAGS=${CFLAGS+set}
3420 ac_save_CFLAGS=$CFLAGS
3421 CFLAGS="-g"
3422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3424 if test "${ac_cv_prog_cc_g+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444   (eval $ac_compile) 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } &&
3451          { ac_try='test -z "$ac_c_werror_flag"
3452                          || test ! -s conftest.err'
3453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454   (eval $ac_try) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }; } &&
3458          { ac_try='test -s conftest.$ac_objext'
3459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460   (eval $ac_try) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); }; }; then
3464   ac_cv_prog_cc_g=yes
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 ac_cv_prog_cc_g=no
3470 fi
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3475 if test "$ac_test_CFLAGS" = set; then
3476   CFLAGS=$ac_save_CFLAGS
3477 elif test $ac_cv_prog_cc_g = yes; then
3478   if test "$GCC" = yes; then
3479     CFLAGS="-g -O2"
3480   else
3481     CFLAGS="-g"
3482   fi
3483 else
3484   if test "$GCC" = yes; then
3485     CFLAGS="-O2"
3486   else
3487     CFLAGS=
3488   fi
3489 fi
3490 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3491 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3492 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   ac_cv_prog_cc_stdc=no
3496 ac_save_CC=$CC
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 #include <stdarg.h>
3504 #include <stdio.h>
3505 #include <sys/types.h>
3506 #include <sys/stat.h>
3507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3508 struct buf { int x; };
3509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510 static char *e (p, i)
3511      char **p;
3512      int i;
3513 {
3514   return p[i];
3515 }
3516 static char *f (char * (*g) (char **, int), char **p, ...)
3517 {
3518   char *s;
3519   va_list v;
3520   va_start (v,p);
3521   s = g (p, va_arg (v,int));
3522   va_end (v);
3523   return s;
3524 }
3525
3526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3527    function prototypes and stuff, but not '\xHH' hex character constants.
3528    These don't provoke an error unfortunately, instead are silently treated
3529    as 'x'.  The following induces an error, until -std1 is added to get
3530    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3531    array size at least.  It's necessary to write '\x00'==0 to get something
3532    that's true only with -std1.  */
3533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539 int argc;
3540 char **argv;
3541 int
3542 main ()
3543 {
3544 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 # Don't try gcc -ansi; that turns off useful extensions and
3550 # breaks some systems' header files.
3551 # AIX                   -qlanglvl=ansi
3552 # Ultrix and OSF/1      -std1
3553 # HP-UX 10.20 and later -Ae
3554 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3555 # SVR4                  -Xc -D__EXTENSIONS__
3556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3557 do
3558   CC="$ac_save_CC $ac_arg"
3559   rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561   (eval $ac_compile) 2>conftest.er1
3562   ac_status=$?
3563   grep -v '^ *+' conftest.er1 >conftest.err
3564   rm -f conftest.er1
3565   cat conftest.err >&5
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } &&
3568          { ac_try='test -z "$ac_c_werror_flag"
3569                          || test ! -s conftest.err'
3570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571   (eval $ac_try) 2>&5
3572   ac_status=$?
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); }; } &&
3575          { ac_try='test -s conftest.$ac_objext'
3576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577   (eval $ac_try) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }; }; then
3581   ac_cv_prog_cc_stdc=$ac_arg
3582 break
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 fi
3588 rm -f conftest.err conftest.$ac_objext
3589 done
3590 rm -f conftest.$ac_ext conftest.$ac_objext
3591 CC=$ac_save_CC
3592
3593 fi
3594
3595 case "x$ac_cv_prog_cc_stdc" in
3596   x|xno)
3597     echo "$as_me:$LINENO: result: none needed" >&5
3598 echo "${ECHO_T}none needed" >&6 ;;
3599   *)
3600     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3602     CC="$CC $ac_cv_prog_cc_stdc" ;;
3603 esac
3604
3605 # Some people use a C++ compiler to compile C.  Since we use `exit',
3606 # in C++ we need to declare it.  In case someone uses the same compiler
3607 # for both compiling C and C++ we need to have the C++ compiler decide
3608 # the declaration of exit, since it's the most demanding environment.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #ifndef __cplusplus
3611   choke me
3612 #endif
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616   (eval $ac_compile) 2>conftest.er1
3617   ac_status=$?
3618   grep -v '^ *+' conftest.er1 >conftest.err
3619   rm -f conftest.er1
3620   cat conftest.err >&5
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } &&
3623          { ac_try='test -z "$ac_c_werror_flag"
3624                          || test ! -s conftest.err'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; } &&
3630          { ac_try='test -s conftest.$ac_objext'
3631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632   (eval $ac_try) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; }; then
3636   for ac_declaration in \
3637    '' \
3638    'extern "C" void std::exit (int) throw (); using std::exit;' \
3639    'extern "C" void std::exit (int); using std::exit;' \
3640    'extern "C" void exit (int) throw ();' \
3641    'extern "C" void exit (int);' \
3642    'void exit (int);'
3643 do
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 $ac_declaration
3651 #include <stdlib.h>
3652 int
3653 main ()
3654 {
3655 exit (42);
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -z "$ac_c_werror_flag"
3670                          || test ! -s conftest.err'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; } &&
3676          { ac_try='test -s conftest.$ac_objext'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682   :
3683 else
3684   echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 continue
3688 fi
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 $ac_declaration
3697 int
3698 main ()
3699 {
3700 exit (42);
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707   (eval $ac_compile) 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -z "$ac_c_werror_flag"
3715                          || test ! -s conftest.err'
3716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717   (eval $ac_try) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; } &&
3721          { ac_try='test -s conftest.$ac_objext'
3722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723   (eval $ac_try) 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); }; }; then
3727   break
3728 else
3729   echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 fi
3733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 done
3735 rm -f conftest*
3736 if test -n "$ac_declaration"; then
3737   echo '#ifdef __cplusplus' >>confdefs.h
3738   echo $ac_declaration      >>confdefs.h
3739   echo '#endif'             >>confdefs.h
3740 fi
3741
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 fi
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754 ac_ext=cc
3755 ac_cpp='$CXXCPP $CPPFLAGS'
3756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 if test -n "$ac_tool_prefix"; then
3760   for ac_prog in $CCC g++
3761   do
3762     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_CXX+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if test -n "$CXX"; then
3770   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   for ac_exec_ext in '' $ac_executable_extensions; do
3778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781     break 2
3782   fi
3783 done
3784 done
3785
3786 fi
3787 fi
3788 CXX=$ac_cv_prog_CXX
3789 if test -n "$CXX"; then
3790   echo "$as_me:$LINENO: result: $CXX" >&5
3791 echo "${ECHO_T}$CXX" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797     test -n "$CXX" && break
3798   done
3799 fi
3800 if test -z "$CXX"; then
3801   ac_ct_CXX=$CXX
3802   for ac_prog in $CCC g++
3803 do
3804   # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   if test -n "$ac_ct_CXX"; then
3812   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817   IFS=$as_save_IFS
3818   test -z "$as_dir" && as_dir=.
3819   for ac_exec_ext in '' $ac_executable_extensions; do
3820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821     ac_cv_prog_ac_ct_CXX="$ac_prog"
3822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823     break 2
3824   fi
3825 done
3826 done
3827
3828 fi
3829 fi
3830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831 if test -n "$ac_ct_CXX"; then
3832   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833 echo "${ECHO_T}$ac_ct_CXX" >&6
3834 else
3835   echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3837 fi
3838
3839   test -n "$ac_ct_CXX" && break
3840 done
3841 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3842
3843   CXX=$ac_ct_CXX
3844 fi
3845
3846
3847 # Provide some information about the compiler.
3848 echo "$as_me:$LINENO:" \
3849      "checking for C++ compiler version" >&5
3850 ac_compiler=`set X $ac_compile; echo $2`
3851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852   (eval $ac_compiler --version </dev/null >&5) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }
3856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857   (eval $ac_compiler -v </dev/null >&5) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }
3861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862   (eval $ac_compiler -V </dev/null >&5) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }
3866
3867 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882 #ifndef __GNUC__
3883        choke me
3884 #endif
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892   (eval $ac_compile) 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } &&
3899          { ac_try='test -z "$ac_cxx_werror_flag"
3900                          || test ! -s conftest.err'
3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902   (eval $ac_try) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; } &&
3906          { ac_try='test -s conftest.$ac_objext'
3907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908   (eval $ac_try) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   ac_compiler_gnu=yes
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 ac_compiler_gnu=no
3918 fi
3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3921
3922 fi
3923 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925 GXX=`test $ac_compiler_gnu = yes && echo yes`
3926 ac_test_CXXFLAGS=${CXXFLAGS+set}
3927 ac_save_CXXFLAGS=$CXXFLAGS
3928 CXXFLAGS="-g"
3929 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931 if test "${ac_cv_prog_cxx_g+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951   (eval $ac_compile) 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } &&
3958          { ac_try='test -z "$ac_cxx_werror_flag"
3959                          || test ! -s conftest.err'
3960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961   (eval $ac_try) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; } &&
3965          { ac_try='test -s conftest.$ac_objext'
3966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967   (eval $ac_try) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); }; }; then
3971   ac_cv_prog_cxx_g=yes
3972 else
3973   echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 ac_cv_prog_cxx_g=no
3977 fi
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 fi
3980 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982 if test "$ac_test_CXXFLAGS" = set; then
3983   CXXFLAGS=$ac_save_CXXFLAGS
3984 elif test $ac_cv_prog_cxx_g = yes; then
3985   if test "$GXX" = yes; then
3986     CXXFLAGS="-g -O2"
3987   else
3988     CXXFLAGS="-g"
3989   fi
3990 else
3991   if test "$GXX" = yes; then
3992     CXXFLAGS="-O2"
3993   else
3994     CXXFLAGS=
3995   fi
3996 fi
3997 for ac_declaration in \
3998    '' \
3999    'extern "C" void std::exit (int) throw (); using std::exit;' \
4000    'extern "C" void std::exit (int); using std::exit;' \
4001    'extern "C" void exit (int) throw ();' \
4002    'extern "C" void exit (int);' \
4003    'void exit (int);'
4004 do
4005   cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h.  */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h.  */
4011 $ac_declaration
4012 #include <stdlib.h>
4013 int
4014 main ()
4015 {
4016 exit (42);
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023   (eval $ac_compile) 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } &&
4030          { ac_try='test -z "$ac_cxx_werror_flag"
4031                          || test ! -s conftest.err'
4032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; } &&
4037          { ac_try='test -s conftest.$ac_objext'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   :
4044 else
4045   echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048 continue
4049 fi
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 $ac_declaration
4058 int
4059 main ()
4060 {
4061 exit (42);
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068   (eval $ac_compile) 2>conftest.er1
4069   ac_status=$?
4070   grep -v '^ *+' conftest.er1 >conftest.err
4071   rm -f conftest.er1
4072   cat conftest.err >&5
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); } &&
4075          { ac_try='test -z "$ac_cxx_werror_flag"
4076                          || test ! -s conftest.err'
4077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; } &&
4082          { ac_try='test -s conftest.$ac_objext'
4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084   (eval $ac_try) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; }; then
4088   break
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 fi
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 done
4096 rm -f conftest*
4097 if test -n "$ac_declaration"; then
4098   echo '#ifdef __cplusplus' >>confdefs.h
4099   echo $ac_declaration      >>confdefs.h
4100   echo '#endif'             >>confdefs.h
4101 fi
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109 echo "$as_me:$LINENO: checking " >&5
4110 echo $ECHO_N "checking ... $ECHO_C" >&6
4111 if test "${ac_cv_has_flex+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   for ac_prog in flex lex
4115 do
4116   # Extract the first word of "$ac_prog", so it can be a program name with args.
4117 set dummy $ac_prog; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_LEX+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   if test -n "$LEX"; then
4124   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_prog_LEX="$ac_prog"
4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138 done
4139
4140 fi
4141 fi
4142 LEX=$ac_cv_prog_LEX
4143 if test -n "$LEX"; then
4144   echo "$as_me:$LINENO: result: $LEX" >&5
4145 echo "${ECHO_T}$LEX" >&6
4146 else
4147   echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4149 fi
4150
4151   test -n "$LEX" && break
4152 done
4153 test -n "$LEX" || LEX=":"
4154
4155 if test -z "$LEXLIB"
4156 then
4157   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   ac_check_lib_save_LIBS=$LIBS
4163 LIBS="-lfl  $LIBS"
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170
4171 /* Override any gcc2 internal prototype to avoid an error.  */
4172 #ifdef __cplusplus
4173 extern "C"
4174 #endif
4175 /* We use char because int might match the return type of a gcc2
4176    builtin and then its argument prototype would still apply.  */
4177 char yywrap ();
4178 int
4179 main ()
4180 {
4181 yywrap ();
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188   (eval $ac_link) 2>conftest.er1
4189   ac_status=$?
4190   grep -v '^ *+' conftest.er1 >conftest.err
4191   rm -f conftest.er1
4192   cat conftest.err >&5
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); } &&
4195          { ac_try='test -z "$ac_c_werror_flag"
4196                          || test ! -s conftest.err'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; } &&
4202          { ac_try='test -s conftest$ac_exeext'
4203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204   (eval $ac_try) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; }; then
4208   ac_cv_lib_fl_yywrap=yes
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 ac_cv_lib_fl_yywrap=no
4214 fi
4215 rm -f conftest.err conftest.$ac_objext \
4216       conftest$ac_exeext conftest.$ac_ext
4217 LIBS=$ac_check_lib_save_LIBS
4218 fi
4219 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4220 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4221 if test $ac_cv_lib_fl_yywrap = yes; then
4222   LEXLIB="-lfl"
4223 else
4224   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4225 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4226 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4227   echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229   ac_check_lib_save_LIBS=$LIBS
4230 LIBS="-ll  $LIBS"
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237
4238 /* Override any gcc2 internal prototype to avoid an error.  */
4239 #ifdef __cplusplus
4240 extern "C"
4241 #endif
4242 /* We use char because int might match the return type of a gcc2
4243    builtin and then its argument prototype would still apply.  */
4244 char yywrap ();
4245 int
4246 main ()
4247 {
4248 yywrap ();
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255   (eval $ac_link) 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag"
4263                          || test ! -s conftest.err'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest$ac_exeext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   ac_cv_lib_l_yywrap=yes
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ac_cv_lib_l_yywrap=no
4281 fi
4282 rm -f conftest.err conftest.$ac_objext \
4283       conftest$ac_exeext conftest.$ac_ext
4284 LIBS=$ac_check_lib_save_LIBS
4285 fi
4286 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4287 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4288 if test $ac_cv_lib_l_yywrap = yes; then
4289   LEXLIB="-ll"
4290 fi
4291
4292 fi
4293
4294 fi
4295
4296 if test "x$LEX" != "x:"; then
4297   echo "$as_me:$LINENO: checking lex output file root" >&5
4298 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4299 if test "${ac_cv_prog_lex_root+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   # The minimal lex program is just a single line: %%.  But some broken lexes
4303 # (Solaris, I think it was) want two %% lines, so accommodate them.
4304 cat >conftest.l <<_ACEOF
4305 %%
4306 %%
4307 _ACEOF
4308 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4309   (eval $LEX conftest.l) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }
4313 if test -f lex.yy.c; then
4314   ac_cv_prog_lex_root=lex.yy
4315 elif test -f lexyy.c; then
4316   ac_cv_prog_lex_root=lexyy
4317 else
4318   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4319 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4320    { (exit 1); exit 1; }; }
4321 fi
4322 fi
4323 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4324 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4325 rm -f conftest.l
4326 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4327
4328 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4329 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4330 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   # POSIX says lex can declare yytext either as a pointer or an array; the
4334 # default is implementation-dependent. Figure out which it is, since
4335 # not all implementations provide the %pointer and %array declarations.
4336 ac_cv_prog_lex_yytext_pointer=no
4337 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4338 ac_save_LIBS=$LIBS
4339 LIBS="$LIBS $LEXLIB"
4340 cat >conftest.$ac_ext <<_ACEOF
4341 `cat $LEX_OUTPUT_ROOT.c`
4342 _ACEOF
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345   (eval $ac_link) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_c_werror_flag"
4353                          || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest$ac_exeext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_cv_prog_lex_yytext_pointer=yes
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 fi
4371 rm -f conftest.err conftest.$ac_objext \
4372       conftest$ac_exeext conftest.$ac_ext
4373 LIBS=$ac_save_LIBS
4374 rm -f "${LEX_OUTPUT_ROOT}.c"
4375
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4378 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4379 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4380
4381 cat >>confdefs.h <<\_ACEOF
4382 #define YYTEXT_POINTER 1
4383 _ACEOF
4384
4385 fi
4386
4387 fi
4388
4389 fi
4390 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4391 echo "${ECHO_T}$ac_cv_has_flex" >&6
4392 if test "$LEX" != "flex"; then
4393   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4394 echo "$as_me: error: flex not found but required" >&2;}
4395    { (exit 1); exit 1; }; }
4396 else
4397   FLEX=flex
4398
4399 fi
4400
4401 echo "$as_me:$LINENO: checking " >&5
4402 echo $ECHO_N "checking ... $ECHO_C" >&6
4403 if test "${llvm_cv_has_bison+set}" = set; then
4404   echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406   for ac_prog in 'bison -y' byacc
4407 do
4408   # Extract the first word of "$ac_prog", so it can be a program name with args.
4409 set dummy $ac_prog; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_YACC+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test -n "$YACC"; then
4416   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425     ac_cv_prog_YACC="$ac_prog"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431
4432 fi
4433 fi
4434 YACC=$ac_cv_prog_YACC
4435 if test -n "$YACC"; then
4436   echo "$as_me:$LINENO: result: $YACC" >&5
4437 echo "${ECHO_T}$YACC" >&6
4438 else
4439   echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4441 fi
4442
4443   test -n "$YACC" && break
4444 done
4445 test -n "$YACC" || YACC="yacc"
4446
4447
4448 fi
4449 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4451 if test "$YACC" != "bison -y"; then
4452   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453 echo "$as_me: error: bison not found but required" >&2;}
4454    { (exit 1); exit 1; }; }
4455 else
4456   BISON=bison
4457
4458 fi
4459
4460
4461 echo "$as_me:$LINENO: checking for GNU make" >&5
4462 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4463 if test "${llvm_cv_gnu_make_command+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   llvm_cv_gnu_make_command=''
4467  for a in "$MAKE" make gmake gnumake ; do
4468   if test -z "$a" ; then continue ; fi ;
4469   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470   then
4471    llvm_cv_gnu_make_command=$a ;
4472    break;
4473   fi
4474  done
4475 fi
4476 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4477 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4478  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4479    ifGNUmake='' ;
4480  else
4481    ifGNUmake='#' ;
4482    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4483 echo "${ECHO_T}\"Not found\"" >&6;
4484  fi
4485
4486
4487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489 LN_S=$as_ln_s
4490 if test "$LN_S" = "ln -s"; then
4491   echo "$as_me:$LINENO: result: yes" >&5
4492 echo "${ECHO_T}yes" >&6
4493 else
4494   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495 echo "${ECHO_T}no, using $LN_S" >&6
4496 fi
4497
4498 # Extract the first word of "date", so it can be a program name with args.
4499 set dummy date; ac_word=$2
4500 echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502 if test "${ac_cv_path_DATE+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   case $DATE in
4506   [\\/]* | ?:[\\/]*)
4507   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4508   ;;
4509   *)
4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515   for ac_exec_ext in '' $ac_executable_extensions; do
4516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522 done
4523
4524   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4525   ;;
4526 esac
4527 fi
4528 DATE=$ac_cv_path_DATE
4529
4530 if test -n "$DATE"; then
4531   echo "$as_me:$LINENO: result: $DATE" >&5
4532 echo "${ECHO_T}$DATE" >&6
4533 else
4534   echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4536 fi
4537
4538 # Extract the first word of "find", so it can be a program name with args.
4539 set dummy find; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_path_FIND+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   case $FIND in
4546   [\\/]* | ?:[\\/]*)
4547   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4548   ;;
4549   *)
4550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555   for ac_exec_ext in '' $ac_executable_extensions; do
4556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562 done
4563
4564   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4565   ;;
4566 esac
4567 fi
4568 FIND=$ac_cv_path_FIND
4569
4570 if test -n "$FIND"; then
4571   echo "$as_me:$LINENO: result: $FIND" >&5
4572 echo "${ECHO_T}$FIND" >&6
4573 else
4574   echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4576 fi
4577
4578 # Extract the first word of "grep", so it can be a program name with args.
4579 set dummy grep; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_path_GREP+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   case $GREP in
4586   [\\/]* | ?:[\\/]*)
4587   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4588   ;;
4589   *)
4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595   for ac_exec_ext in '' $ac_executable_extensions; do
4596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602 done
4603
4604   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4605   ;;
4606 esac
4607 fi
4608 GREP=$ac_cv_path_GREP
4609
4610 if test -n "$GREP"; then
4611   echo "$as_me:$LINENO: result: $GREP" >&5
4612 echo "${ECHO_T}$GREP" >&6
4613 else
4614   echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6
4616 fi
4617
4618 # Extract the first word of "mkdir", so it can be a program name with args.
4619 set dummy mkdir; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_path_MKDIR+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   case $MKDIR in
4626   [\\/]* | ?:[\\/]*)
4627   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4628   ;;
4629   *)
4630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635   for ac_exec_ext in '' $ac_executable_extensions; do
4636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642 done
4643
4644   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4645   ;;
4646 esac
4647 fi
4648 MKDIR=$ac_cv_path_MKDIR
4649
4650 if test -n "$MKDIR"; then
4651   echo "$as_me:$LINENO: result: $MKDIR" >&5
4652 echo "${ECHO_T}$MKDIR" >&6
4653 else
4654   echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4656 fi
4657
4658 # Extract the first word of "mv", so it can be a program name with args.
4659 set dummy mv; ac_word=$2
4660 echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662 if test "${ac_cv_path_MV+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   case $MV in
4666   [\\/]* | ?:[\\/]*)
4667   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4668   ;;
4669   *)
4670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683
4684   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4685   ;;
4686 esac
4687 fi
4688 MV=$ac_cv_path_MV
4689
4690 if test -n "$MV"; then
4691   echo "$as_me:$LINENO: result: $MV" >&5
4692 echo "${ECHO_T}$MV" >&6
4693 else
4694   echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6
4696 fi
4697
4698 # Extract the first word of "pax", so it can be a program name with args.
4699 set dummy pax; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_path_PAX+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   case $PAX in
4706   [\\/]* | ?:[\\/]*)
4707   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4708   ;;
4709   *)
4710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715   for ac_exec_ext in '' $ac_executable_extensions; do
4716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722 done
4723
4724   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4725   ;;
4726 esac
4727 fi
4728 PAX=$ac_cv_path_PAX
4729
4730 if test -n "$PAX"; then
4731   echo "$as_me:$LINENO: result: $PAX" >&5
4732 echo "${ECHO_T}$PAX" >&6
4733 else
4734   echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738 if test -n "$ac_tool_prefix"; then
4739   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_RANLIB+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if test -n "$RANLIB"; then
4747   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762
4763 fi
4764 fi
4765 RANLIB=$ac_cv_prog_RANLIB
4766 if test -n "$RANLIB"; then
4767   echo "$as_me:$LINENO: result: $RANLIB" >&5
4768 echo "${ECHO_T}$RANLIB" >&6
4769 else
4770   echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4772 fi
4773
4774 fi
4775 if test -z "$ac_cv_prog_RANLIB"; then
4776   ac_ct_RANLIB=$RANLIB
4777   # Extract the first word of "ranlib", so it can be a program name with args.
4778 set dummy ranlib; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   if test -n "$ac_ct_RANLIB"; then
4785   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_ac_ct_RANLIB="ranlib"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800
4801   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4802 fi
4803 fi
4804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805 if test -n "$ac_ct_RANLIB"; then
4806   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4807 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4808 else
4809   echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811 fi
4812
4813   RANLIB=$ac_ct_RANLIB
4814 else
4815   RANLIB="$ac_cv_prog_RANLIB"
4816 fi
4817
4818 # Extract the first word of "rm", so it can be a program name with args.
4819 set dummy rm; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_path_RM+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   case $RM in
4826   [\\/]* | ?:[\\/]*)
4827   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4828   ;;
4829   *)
4830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835   for ac_exec_ext in '' $ac_executable_extensions; do
4836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842 done
4843
4844   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4845   ;;
4846 esac
4847 fi
4848 RM=$ac_cv_path_RM
4849
4850 if test -n "$RM"; then
4851   echo "$as_me:$LINENO: result: $RM" >&5
4852 echo "${ECHO_T}$RM" >&6
4853 else
4854   echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4856 fi
4857
4858 # Extract the first word of "sed", so it can be a program name with args.
4859 set dummy sed; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_path_SED+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   case $SED in
4866   [\\/]* | ?:[\\/]*)
4867   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4868   ;;
4869   *)
4870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883
4884   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4885   ;;
4886 esac
4887 fi
4888 SED=$ac_cv_path_SED
4889
4890 if test -n "$SED"; then
4891   echo "$as_me:$LINENO: result: $SED" >&5
4892 echo "${ECHO_T}$SED" >&6
4893 else
4894   echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4896 fi
4897
4898 # Extract the first word of "tar", so it can be a program name with args.
4899 set dummy tar; ac_word=$2
4900 echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902 if test "${ac_cv_path_TAR+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case $TAR in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923
4924   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4925   ;;
4926 esac
4927 fi
4928 TAR=$ac_cv_path_TAR
4929
4930 if test -n "$TAR"; then
4931   echo "$as_me:$LINENO: result: $TAR" >&5
4932 echo "${ECHO_T}$TAR" >&6
4933 else
4934   echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4936 fi
4937
4938
4939 # Find a good install program.  We prefer a C program (faster),
4940 # so one script is as good as another.  But avoid the broken or
4941 # incompatible versions:
4942 # SysV /etc/install, /usr/sbin/install
4943 # SunOS /usr/etc/install
4944 # IRIX /sbin/install
4945 # AIX /bin/install
4946 # AmigaOS /C/install, which installs bootblocks on floppy discs
4947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950 # OS/2's system install, which has a completely different semantic
4951 # ./install, which can be erroneously created by make from ./install.sh.
4952 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4954 if test -z "$INSTALL"; then
4955 if test "${ac_cv_path_install+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963   # Account for people who put trailing slashes in PATH elements.
4964 case $as_dir/ in
4965   ./ | .// | /cC/* | \
4966   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4967   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4968   /usr/ucb/* ) ;;
4969   *)
4970     # OSF1 and SCO ODT 3.0 have their own names for install.
4971     # Don't use installbsd from OSF since it installs stuff as root
4972     # by default.
4973     for ac_prog in ginstall scoinst install; do
4974       for ac_exec_ext in '' $ac_executable_extensions; do
4975         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4976           if test $ac_prog = install &&
4977             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978             # AIX install.  It has an incompatible calling convention.
4979             :
4980           elif test $ac_prog = install &&
4981             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4982             # program-specific install script used by HP pwplus--don't use.
4983             :
4984           else
4985             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4986             break 3
4987           fi
4988         fi
4989       done
4990     done
4991     ;;
4992 esac
4993 done
4994
4995
4996 fi
4997   if test "${ac_cv_path_install+set}" = set; then
4998     INSTALL=$ac_cv_path_install
4999   else
5000     # As a last resort, use the slow shell script.  We don't cache a
5001     # path for INSTALL within a source directory, because that will
5002     # break other packages using the cache if that directory is
5003     # removed, or if the path is relative.
5004     INSTALL=$ac_install_sh
5005   fi
5006 fi
5007 echo "$as_me:$LINENO: result: $INSTALL" >&5
5008 echo "${ECHO_T}$INSTALL" >&6
5009
5010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5011 # It thinks the first close brace ends the variable substitution.
5012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5013
5014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5015
5016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5017
5018
5019 # Extract the first word of "bzip2", so it can be a program name with args.
5020 set dummy bzip2; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_path_BZIP2+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   case $BZIP2 in
5027   [\\/]* | ?:[\\/]*)
5028   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5029   ;;
5030   *)
5031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036   for ac_exec_ext in '' $ac_executable_extensions; do
5037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044
5045   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5046   ;;
5047 esac
5048 fi
5049 BZIP2=$ac_cv_path_BZIP2
5050
5051 if test -n "$BZIP2"; then
5052   echo "$as_me:$LINENO: result: $BZIP2" >&5
5053 echo "${ECHO_T}$BZIP2" >&6
5054 else
5055   echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5057 fi
5058
5059 # Extract the first word of "dot", so it can be a program name with args.
5060 set dummy dot; ac_word=$2
5061 echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 if test "${ac_cv_path_DOT+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   case $DOT in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084
5085   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5086   ;;
5087 esac
5088 fi
5089 DOT=$ac_cv_path_DOT
5090
5091 if test -n "$DOT"; then
5092   echo "$as_me:$LINENO: result: $DOT" >&5
5093 echo "${ECHO_T}$DOT" >&6
5094 else
5095   echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5097 fi
5098
5099 # Extract the first word of "doxygen", so it can be a program name with args.
5100 set dummy doxygen; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   case $DOXYGEN in
5107   [\\/]* | ?:[\\/]*)
5108   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5109   ;;
5110   *)
5111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116   for ac_exec_ext in '' $ac_executable_extensions; do
5117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123 done
5124
5125   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5126   ;;
5127 esac
5128 fi
5129 DOXYGEN=$ac_cv_path_DOXYGEN
5130
5131 if test -n "$DOXYGEN"; then
5132   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5133 echo "${ECHO_T}$DOXYGEN" >&6
5134 else
5135   echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5137 fi
5138
5139 # Extract the first word of "etags", so it can be a program name with args.
5140 set dummy etags; ac_word=$2
5141 echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143 if test "${ac_cv_path_ETAGS+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   case $ETAGS in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164
5165   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5166   ;;
5167 esac
5168 fi
5169 ETAGS=$ac_cv_path_ETAGS
5170
5171 if test -n "$ETAGS"; then
5172   echo "$as_me:$LINENO: result: $ETAGS" >&5
5173 echo "${ECHO_T}$ETAGS" >&6
5174 else
5175   echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179 # Extract the first word of "groff", so it can be a program name with args.
5180 set dummy groff; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_path_GROFF+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   case $GROFF in
5187   [\\/]* | ?:[\\/]*)
5188   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5189   ;;
5190   *)
5191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196   for ac_exec_ext in '' $ac_executable_extensions; do
5197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203 done
5204
5205   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5206   ;;
5207 esac
5208 fi
5209 GROFF=$ac_cv_path_GROFF
5210
5211 if test -n "$GROFF"; then
5212   echo "$as_me:$LINENO: result: $GROFF" >&5
5213 echo "${ECHO_T}$GROFF" >&6
5214 else
5215   echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5217 fi
5218
5219 # Extract the first word of "gzip", so it can be a program name with args.
5220 set dummy gzip; ac_word=$2
5221 echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 if test "${ac_cv_path_GZIP+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   case $GZIP in
5227   [\\/]* | ?:[\\/]*)
5228   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5229   ;;
5230   *)
5231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for ac_exec_ext in '' $ac_executable_extensions; do
5237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243 done
5244
5245   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5246   ;;
5247 esac
5248 fi
5249 GZIP=$ac_cv_path_GZIP
5250
5251 if test -n "$GZIP"; then
5252   echo "$as_me:$LINENO: result: $GZIP" >&5
5253 echo "${ECHO_T}$GZIP" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259 # Extract the first word of "pod2html", so it can be a program name with args.
5260 set dummy pod2html; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_path_POD2HTML+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   case $POD2HTML in
5267   [\\/]* | ?:[\\/]*)
5268   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5269   ;;
5270   *)
5271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276   for ac_exec_ext in '' $ac_executable_extensions; do
5277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283 done
5284
5285   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5286   ;;
5287 esac
5288 fi
5289 POD2HTML=$ac_cv_path_POD2HTML
5290
5291 if test -n "$POD2HTML"; then
5292   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5293 echo "${ECHO_T}$POD2HTML" >&6
5294 else
5295   echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5297 fi
5298
5299 # Extract the first word of "pod2man", so it can be a program name with args.
5300 set dummy pod2man; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_path_POD2MAN+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   case $POD2MAN in
5307   [\\/]* | ?:[\\/]*)
5308   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5309   ;;
5310   *)
5311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316   for ac_exec_ext in '' $ac_executable_extensions; do
5317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323 done
5324
5325   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5326   ;;
5327 esac
5328 fi
5329 POD2MAN=$ac_cv_path_POD2MAN
5330
5331 if test -n "$POD2MAN"; then
5332   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5333 echo "${ECHO_T}$POD2MAN" >&6
5334 else
5335   echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5337 fi
5338
5339 # Extract the first word of "python", so it can be a program name with args.
5340 set dummy python; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_path_PYTHON+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   case $PYTHON in
5347   [\\/]* | ?:[\\/]*)
5348   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5349   ;;
5350   *)
5351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356   for ac_exec_ext in '' $ac_executable_extensions; do
5357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363 done
5364
5365   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
5366   ;;
5367 esac
5368 fi
5369 PYTHON=$ac_cv_path_PYTHON
5370
5371 if test -n "$PYTHON"; then
5372   echo "$as_me:$LINENO: result: $PYTHON" >&5
5373 echo "${ECHO_T}$PYTHON" >&6
5374 else
5375   echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379 # Extract the first word of "qmtest", so it can be a program name with args.
5380 set dummy qmtest; ac_word=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_path_QMTEST+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   case $QMTEST in
5387   [\\/]* | ?:[\\/]*)
5388   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
5389   ;;
5390   *)
5391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396   for ac_exec_ext in '' $ac_executable_extensions; do
5397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
5399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403 done
5404
5405   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
5406   ;;
5407 esac
5408 fi
5409 QMTEST=$ac_cv_path_QMTEST
5410
5411 if test -n "$QMTEST"; then
5412   echo "$as_me:$LINENO: result: $QMTEST" >&5
5413 echo "${ECHO_T}$QMTEST" >&6
5414 else
5415   echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5417 fi
5418
5419 # Extract the first word of "runtest", so it can be a program name with args.
5420 set dummy runtest; ac_word=$2
5421 echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423 if test "${ac_cv_path_RUNTEST+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   case $RUNTEST in
5427   [\\/]* | ?:[\\/]*)
5428   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5429   ;;
5430   *)
5431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436   for ac_exec_ext in '' $ac_executable_extensions; do
5437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440     break 2
5441   fi
5442 done
5443 done
5444
5445   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5446   ;;
5447 esac
5448 fi
5449 RUNTEST=$ac_cv_path_RUNTEST
5450
5451 if test -n "$RUNTEST"; then
5452   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5453 echo "${ECHO_T}$RUNTEST" >&6
5454 else
5455   echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5457 fi
5458
5459
5460 no_itcl=true
5461 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5462 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5463
5464 # Check whether --with-tclinclude or --without-tclinclude was given.
5465 if test "${with_tclinclude+set}" = set; then
5466   withval="$with_tclinclude"
5467   with_tclinclude=${withval}
5468 else
5469   with_tclinclude=''
5470 fi;
5471 if test "${ac_cv_path_tclsh+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474
5475 if test x"${with_tclinclude}" != x ; then
5476   if test -f ${with_tclinclude}/tclsh ; then
5477     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5478   elif test -f ${with_tclinclude}/src/tclsh ; then
5479     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5480   else
5481     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5482 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5483    { (exit 1); exit 1; }; }
5484   fi
5485 fi
5486
5487 if test x"${ac_cv_path_tclsh}" = x ; then
5488   echo "$as_me:$LINENO: result: none" >&5
5489 echo "${ECHO_T}none" >&6
5490   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
5491 do
5492   # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5496 if test "${ac_cv_path_TCLSH+set}" = set; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499   case $TCLSH in
5500   [\\/]* | ?:[\\/]*)
5501   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5502   ;;
5503   *)
5504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509   for ac_exec_ext in '' $ac_executable_extensions; do
5510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516 done
5517
5518   ;;
5519 esac
5520 fi
5521 TCLSH=$ac_cv_path_TCLSH
5522
5523 if test -n "$TCLSH"; then
5524   echo "$as_me:$LINENO: result: $TCLSH" >&5
5525 echo "${ECHO_T}$TCLSH" >&6
5526 else
5527   echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5529 fi
5530
5531   test -n "$TCLSH" && break
5532 done
5533
5534   if test x"${TCLSH}" = x ; then
5535     ac_cv_path_tclsh='';
5536   else
5537     ac_cv_path_tclsh="${TCLSH}";
5538   fi
5539 else
5540   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5541 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5542   TCLSH="${ac_cv_path_tclsh}"
5543
5544 fi
5545
5546 fi
5547
5548 # Extract the first word of "zip", so it can be a program name with args.
5549 set dummy zip; ac_word=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_path_ZIP+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   case $ZIP in
5556   [\\/]* | ?:[\\/]*)
5557   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5558   ;;
5559   *)
5560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565   for ac_exec_ext in '' $ac_executable_extensions; do
5566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569     break 2
5570   fi
5571 done
5572 done
5573
5574   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5575   ;;
5576 esac
5577 fi
5578 ZIP=$ac_cv_path_ZIP
5579
5580 if test -n "$ZIP"; then
5581   echo "$as_me:$LINENO: result: $ZIP" >&5
5582 echo "${ECHO_T}$ZIP" >&6
5583 else
5584   echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5586 fi
5587
5588
5589 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5590 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5591 if test "${llvm_cv_link_use_r+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594    ac_ext=c
5595 ac_cpp='$CPP $CPPFLAGS'
5596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5599
5600   oldcflags="$CFLAGS"
5601   CFLAGS="$CFLAGS -Wl,-R."
5602   cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608
5609 int
5610 main ()
5611 {
5612 int main() { return 0; }
5613   ;
5614   return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619   (eval $ac_link) 2>conftest.er1
5620   ac_status=$?
5621   grep -v '^ *+' conftest.er1 >conftest.err
5622   rm -f conftest.er1
5623   cat conftest.err >&5
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } &&
5626          { ac_try='test -z "$ac_c_werror_flag"
5627                          || test ! -s conftest.err'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; } &&
5633          { ac_try='test -s conftest$ac_exeext'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; }; then
5639   llvm_cv_link_use_r=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 llvm_cv_link_use_r=no
5645 fi
5646 rm -f conftest.err conftest.$ac_objext \
5647       conftest$ac_exeext conftest.$ac_ext
5648   CFLAGS="$oldcflags"
5649   ac_ext=c
5650 ac_cpp='$CPP $CPPFLAGS'
5651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
5655
5656 fi
5657 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5658 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5659 if test "$llvm_cv_link_use_r" = yes ; then
5660
5661 cat >>confdefs.h <<\_ACEOF
5662 #define HAVE_LINK_R 1
5663 _ACEOF
5664
5665   fi
5666
5667
5668
5669
5670 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5671 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5672 if test "${ac_cv_c_const+set}" = set; then
5673   echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675   cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h.  */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h.  */
5681
5682 int
5683 main ()
5684 {
5685 /* FIXME: Include the comments suggested by Paul. */
5686 #ifndef __cplusplus
5687   /* Ultrix mips cc rejects this.  */
5688   typedef int charset[2];
5689   const charset x;
5690   /* SunOS 4.1.1 cc rejects this.  */
5691   char const *const *ccp;
5692   char **p;
5693   /* NEC SVR4.0.2 mips cc rejects this.  */
5694   struct point {int x, y;};
5695   static struct point const zero = {0,0};
5696   /* AIX XL C 1.02.0.0 rejects this.
5697      It does not let you subtract one const X* pointer from another in
5698      an arm of an if-expression whose if-part is not a constant
5699      expression */
5700   const char *g = "string";
5701   ccp = &g + (g ? g-g : 0);
5702   /* HPUX 7.0 cc rejects these. */
5703   ++ccp;
5704   p = (char**) ccp;
5705   ccp = (char const *const *) p;
5706   { /* SCO 3.2v4 cc rejects this.  */
5707     char *t;
5708     char const *s = 0 ? (char *) 0 : (char const *) 0;
5709
5710     *t++ = 0;
5711   }
5712   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5713     int x[] = {25, 17};
5714     const int *foo = &x[0];
5715     ++foo;
5716   }
5717   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5718     typedef const int *iptr;
5719     iptr p = 0;
5720     ++p;
5721   }
5722   { /* AIX XL C 1.02.0.0 rejects this saying
5723        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5724     struct s { int j; const int *ap[3]; };
5725     struct s *b; b->j = 5;
5726   }
5727   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5728     const int foo = 10;
5729   }
5730 #endif
5731
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738   (eval $ac_compile) 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } &&
5745          { ac_try='test -z "$ac_c_werror_flag"
5746                          || test ! -s conftest.err'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; } &&
5752          { ac_try='test -s conftest.$ac_objext'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   ac_cv_c_const=yes
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 ac_cv_c_const=no
5764 fi
5765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5768 echo "${ECHO_T}$ac_cv_c_const" >&6
5769 if test $ac_cv_c_const = no; then
5770
5771 cat >>confdefs.h <<\_ACEOF
5772 #define const
5773 _ACEOF
5774
5775 fi
5776
5777
5778 echo "$as_me:$LINENO: checking for egrep" >&5
5779 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5780 if test "${ac_cv_prog_egrep+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5784     then ac_cv_prog_egrep='grep -E'
5785     else ac_cv_prog_egrep='egrep'
5786     fi
5787 fi
5788 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5789 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5790  EGREP=$ac_cv_prog_egrep
5791
5792
5793 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5794 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5795 if test "${ac_cv_header_stdc+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 #include <stdlib.h>
5805 #include <stdarg.h>
5806 #include <string.h>
5807 #include <float.h>
5808
5809 int
5810 main ()
5811 {
5812
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819   (eval $ac_compile) 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -z "$ac_c_werror_flag"
5827                          || test ! -s conftest.err'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; } &&
5833          { ac_try='test -s conftest.$ac_objext'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   ac_cv_header_stdc=yes
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_cv_header_stdc=no
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847
5848 if test $ac_cv_header_stdc = yes; then
5849   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5850   cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856 #include <string.h>
5857
5858 _ACEOF
5859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5860   $EGREP "memchr" >/dev/null 2>&1; then
5861   :
5862 else
5863   ac_cv_header_stdc=no
5864 fi
5865 rm -f conftest*
5866
5867 fi
5868
5869 if test $ac_cv_header_stdc = yes; then
5870   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5871   cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h.  */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h.  */
5877 #include <stdlib.h>
5878
5879 _ACEOF
5880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5881   $EGREP "free" >/dev/null 2>&1; then
5882   :
5883 else
5884   ac_cv_header_stdc=no
5885 fi
5886 rm -f conftest*
5887
5888 fi
5889
5890 if test $ac_cv_header_stdc = yes; then
5891   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5892   if test "$cross_compiling" = yes; then
5893   :
5894 else
5895   cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901 #include <ctype.h>
5902 #if ((' ' & 0x0FF) == 0x020)
5903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5905 #else
5906 # define ISLOWER(c) \
5907                    (('a' <= (c) && (c) <= 'i') \
5908                      || ('j' <= (c) && (c) <= 'r') \
5909                      || ('s' <= (c) && (c) <= 'z'))
5910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5911 #endif
5912
5913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5914 int
5915 main ()
5916 {
5917   int i;
5918   for (i = 0; i < 256; i++)
5919     if (XOR (islower (i), ISLOWER (i))
5920         || toupper (i) != TOUPPER (i))
5921       exit(2);
5922   exit (0);
5923 }
5924 _ACEOF
5925 rm -f conftest$ac_exeext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5927   (eval $ac_link) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; }; then
5936   :
5937 else
5938   echo "$as_me: program exited with status $ac_status" >&5
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ( exit $ac_status )
5943 ac_cv_header_stdc=no
5944 fi
5945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5946 fi
5947 fi
5948 fi
5949 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5950 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5951 if test $ac_cv_header_stdc = yes; then
5952
5953 cat >>confdefs.h <<\_ACEOF
5954 #define STDC_HEADERS 1
5955 _ACEOF
5956
5957 fi
5958
5959
5960
5961
5962
5963
5964 ac_header_dirent=no
5965 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5966   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5967 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5968 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 #include <sys/types.h>
5979 #include <$ac_hdr>
5980
5981 int
5982 main ()
5983 {
5984 if ((DIR *) 0)
5985 return 0;
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992   (eval $ac_compile) 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } &&
5999          { ac_try='test -z "$ac_c_werror_flag"
6000                          || test ! -s conftest.err'
6001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002   (eval $ac_try) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }; } &&
6006          { ac_try='test -s conftest.$ac_objext'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; }; then
6012   eval "$as_ac_Header=yes"
6013 else
6014   echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 eval "$as_ac_Header=no"
6018 fi
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020 fi
6021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6024   cat >>confdefs.h <<_ACEOF
6025 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6026 _ACEOF
6027
6028 ac_header_dirent=$ac_hdr; break
6029 fi
6030
6031 done
6032 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6033 if test $ac_header_dirent = dirent.h; then
6034   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6035 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6036 if test "${ac_cv_search_opendir+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   ac_func_search_save_LIBS=$LIBS
6040 ac_cv_search_opendir=no
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047
6048 /* Override any gcc2 internal prototype to avoid an error.  */
6049 #ifdef __cplusplus
6050 extern "C"
6051 #endif
6052 /* We use char because int might match the return type of a gcc2
6053    builtin and then its argument prototype would still apply.  */
6054 char opendir ();
6055 int
6056 main ()
6057 {
6058 opendir ();
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065   (eval $ac_link) 2>conftest.er1
6066   ac_status=$?
6067   grep -v '^ *+' conftest.er1 >conftest.err
6068   rm -f conftest.er1
6069   cat conftest.err >&5
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); } &&
6072          { ac_try='test -z "$ac_c_werror_flag"
6073                          || test ! -s conftest.err'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; } &&
6079          { ac_try='test -s conftest$ac_exeext'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; }; then
6085   ac_cv_search_opendir="none required"
6086 else
6087   echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090 fi
6091 rm -f conftest.err conftest.$ac_objext \
6092       conftest$ac_exeext conftest.$ac_ext
6093 if test "$ac_cv_search_opendir" = no; then
6094   for ac_lib in dir; do
6095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6096     cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102
6103 /* Override any gcc2 internal prototype to avoid an error.  */
6104 #ifdef __cplusplus
6105 extern "C"
6106 #endif
6107 /* We use char because int might match the return type of a gcc2
6108    builtin and then its argument prototype would still apply.  */
6109 char opendir ();
6110 int
6111 main ()
6112 {
6113 opendir ();
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120   (eval $ac_link) 2>conftest.er1
6121   ac_status=$?
6122   grep -v '^ *+' conftest.er1 >conftest.err
6123   rm -f conftest.er1
6124   cat conftest.err >&5
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); } &&
6127          { ac_try='test -z "$ac_c_werror_flag"
6128                          || test ! -s conftest.err'
6129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130   (eval $ac_try) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; } &&
6134          { ac_try='test -s conftest$ac_exeext'
6135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136   (eval $ac_try) 2>&5
6137   ac_status=$?
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); }; }; then
6140   ac_cv_search_opendir="-l$ac_lib"
6141 break
6142 else
6143   echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 fi
6147 rm -f conftest.err conftest.$ac_objext \
6148       conftest$ac_exeext conftest.$ac_ext
6149   done
6150 fi
6151 LIBS=$ac_func_search_save_LIBS
6152 fi
6153 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6154 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6155 if test "$ac_cv_search_opendir" != no; then
6156   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6157
6158 fi
6159
6160 else
6161   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6162 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6163 if test "${ac_cv_search_opendir+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   ac_func_search_save_LIBS=$LIBS
6167 ac_cv_search_opendir=no
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174
6175 /* Override any gcc2 internal prototype to avoid an error.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180    builtin and then its argument prototype would still apply.  */
6181 char opendir ();
6182 int
6183 main ()
6184 {
6185 opendir ();
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } &&
6199          { ac_try='test -z "$ac_c_werror_flag"
6200                          || test ! -s conftest.err'
6201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }; } &&
6206          { ac_try='test -s conftest$ac_exeext'
6207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208   (eval $ac_try) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; }; then
6212   ac_cv_search_opendir="none required"
6213 else
6214   echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 fi
6218 rm -f conftest.err conftest.$ac_objext \
6219       conftest$ac_exeext conftest.$ac_ext
6220 if test "$ac_cv_search_opendir" = no; then
6221   for ac_lib in x; do
6222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6223     cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h.  */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h.  */
6229
6230 /* Override any gcc2 internal prototype to avoid an error.  */
6231 #ifdef __cplusplus
6232 extern "C"
6233 #endif
6234 /* We use char because int might match the return type of a gcc2
6235    builtin and then its argument prototype would still apply.  */
6236 char opendir ();
6237 int
6238 main ()
6239 {
6240 opendir ();
6241   ;
6242   return 0;
6243 }
6244 _ACEOF
6245 rm -f conftest.$ac_objext conftest$ac_exeext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247   (eval $ac_link) 2>conftest.er1
6248   ac_status=$?
6249   grep -v '^ *+' conftest.er1 >conftest.err
6250   rm -f conftest.er1
6251   cat conftest.err >&5
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -z "$ac_c_werror_flag"
6255                          || test ! -s conftest.err'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; } &&
6261          { ac_try='test -s conftest$ac_exeext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   ac_cv_search_opendir="-l$ac_lib"
6268 break
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 fi
6274 rm -f conftest.err conftest.$ac_objext \
6275       conftest$ac_exeext conftest.$ac_ext
6276   done
6277 fi
6278 LIBS=$ac_func_search_save_LIBS
6279 fi
6280 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6281 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6282 if test "$ac_cv_search_opendir" != no; then
6283   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6284
6285 fi
6286
6287 fi
6288
6289 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6300                   inttypes.h stdint.h unistd.h
6301 do
6302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6303 echo "$as_me:$LINENO: checking for $ac_header" >&5
6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 $ac_includes_default
6315
6316 #include <$ac_header>
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320   (eval $ac_compile) 2>conftest.er1
6321   ac_status=$?
6322   grep -v '^ *+' conftest.er1 >conftest.err
6323   rm -f conftest.er1
6324   cat conftest.err >&5
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } &&
6327          { ac_try='test -z "$ac_c_werror_flag"
6328                          || test ! -s conftest.err'
6329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330   (eval $ac_try) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); }; } &&
6334          { ac_try='test -s conftest.$ac_objext'
6335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336   (eval $ac_try) 2>&5
6337   ac_status=$?
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); }; }; then
6340   eval "$as_ac_Header=yes"
6341 else
6342   echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 eval "$as_ac_Header=no"
6346 fi
6347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6352   cat >>confdefs.h <<_ACEOF
6353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6354 _ACEOF
6355
6356 fi
6357
6358 done
6359
6360
6361
6362 for ac_header in dlfcn.h
6363 do
6364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366   echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 fi
6371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373 else
6374   # Is the header compilable?
6375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h.  */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h.  */
6383 $ac_includes_default
6384 #include <$ac_header>
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388   (eval $ac_compile) 2>conftest.er1
6389   ac_status=$?
6390   grep -v '^ *+' conftest.er1 >conftest.err
6391   rm -f conftest.er1
6392   cat conftest.err >&5
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); } &&
6395          { ac_try='test -z "$ac_c_werror_flag"
6396                          || test ! -s conftest.err'
6397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398   (eval $ac_try) 2>&5
6399   ac_status=$?
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); }; } &&
6402          { ac_try='test -s conftest.$ac_objext'
6403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404   (eval $ac_try) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); }; }; then
6408   ac_header_compiler=yes
6409 else
6410   echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 ac_header_compiler=no
6414 fi
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417 echo "${ECHO_T}$ac_header_compiler" >&6
6418
6419 # Is the header present?
6420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h.  */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h.  */
6428 #include <$ac_header>
6429 _ACEOF
6430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432   ac_status=$?
6433   grep -v '^ *+' conftest.er1 >conftest.err
6434   rm -f conftest.er1
6435   cat conftest.err >&5
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); } >/dev/null; then
6438   if test -s conftest.err; then
6439     ac_cpp_err=$ac_c_preproc_warn_flag
6440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6441   else
6442     ac_cpp_err=
6443   fi
6444 else
6445   ac_cpp_err=yes
6446 fi
6447 if test -z "$ac_cpp_err"; then
6448   ac_header_preproc=yes
6449 else
6450   echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453   ac_header_preproc=no
6454 fi
6455 rm -f conftest.err conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457 echo "${ECHO_T}$ac_header_preproc" >&6
6458
6459 # So?  What about this header?
6460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6461   yes:no: )
6462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466     ac_header_preproc=yes
6467     ;;
6468   no:yes:* )
6469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6481     (
6482       cat <<\_ASBOX
6483 ## ----------------------------------- ##
6484 ## Report this to llvmbugs@cs.uiuc.edu ##
6485 ## ----------------------------------- ##
6486 _ASBOX
6487     ) |
6488       sed "s/^/$as_me: WARNING:     /" >&2
6489     ;;
6490 esac
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   eval "$as_ac_Header=\$ac_header_preproc"
6497 fi
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500
6501 fi
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503   cat >>confdefs.h <<_ACEOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 _ACEOF
6506
6507 fi
6508
6509 done
6510
6511 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6512 if test "${enable_ltdl_install+set}" = set; then
6513   enableval="$enable_ltdl_install"
6514
6515 fi;
6516
6517
6518
6519 if test x"${enable_ltdl_install-no}" != xno; then
6520   INSTALL_LTDL_TRUE=
6521   INSTALL_LTDL_FALSE='#'
6522 else
6523   INSTALL_LTDL_TRUE='#'
6524   INSTALL_LTDL_FALSE=
6525 fi
6526
6527
6528
6529 if test x"${enable_ltdl_convenience-no}" != xno; then
6530   CONVENIENCE_LTDL_TRUE=
6531   CONVENIENCE_LTDL_FALSE='#'
6532 else
6533   CONVENIENCE_LTDL_TRUE='#'
6534   CONVENIENCE_LTDL_FALSE=
6535 fi
6536
6537
6538 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6539 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6540 library_names_spec=
6541 libname_spec='lib$name'
6542 soname_spec=
6543 shrext_cmds=".so"
6544 postinstall_cmds=
6545 postuninstall_cmds=
6546 finish_cmds=
6547 finish_eval=
6548 shlibpath_var=
6549 shlibpath_overrides_runpath=unknown
6550 version_type=none
6551 dynamic_linker="$host_os ld.so"
6552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6553 if test "$GCC" = yes; then
6554   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6555   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6556     # if the path contains ";" then we assume it to be the separator
6557     # otherwise default to the standard path separator (i.e. ":") - it is
6558     # assumed that no part of a normal pathname contains ";" but that should
6559     # okay in the real world where ";" in dirpaths is itself problematic.
6560     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6561   else
6562     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6563   fi
6564 else
6565   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6566 fi
6567 need_lib_prefix=unknown
6568 hardcode_into_libs=no
6569
6570 # when you set need_version to no, make sure it does not cause -set_version
6571 # flags to be left without arguments
6572 need_version=unknown
6573
6574 case $host_os in
6575 aix3*)
6576   version_type=linux
6577   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6578   shlibpath_var=LIBPATH
6579
6580   # AIX 3 has no versioning support, so we append a major version to the name.
6581   soname_spec='${libname}${release}${shared_ext}$major'
6582   ;;
6583
6584 aix4* | aix5*)
6585   version_type=linux
6586   need_lib_prefix=no
6587   need_version=no
6588   hardcode_into_libs=yes
6589   if test "$host_cpu" = ia64; then
6590     # AIX 5 supports IA64
6591     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6592     shlibpath_var=LD_LIBRARY_PATH
6593   else
6594     # With GCC up to 2.95.x, collect2 would create an import file
6595     # for dependence libraries.  The import file would start with
6596     # the line `#! .'.  This would cause the generated library to
6597     # depend on `.', always an invalid library.  This was fixed in
6598     # development snapshots of GCC prior to 3.0.
6599     case $host_os in
6600       aix4 | aix4.[01] | aix4.[01].*)
6601       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6602            echo ' yes '
6603            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6604         :
6605       else
6606         can_build_shared=no
6607       fi
6608       ;;
6609     esac
6610     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6611     # soname into executable. Probably we can add versioning support to
6612     # collect2, so additional links can be useful in future.
6613     if test "$aix_use_runtimelinking" = yes; then
6614       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6615       # instead of lib<name>.a to let people know that these are not
6616       # typical AIX shared libraries.
6617       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6618     else
6619       # We preserve .a as extension for shared libraries through AIX4.2
6620       # and later when we are not doing run time linking.
6621       library_names_spec='${libname}${release}.a $libname.a'
6622       soname_spec='${libname}${release}${shared_ext}$major'
6623     fi
6624     shlibpath_var=LIBPATH
6625   fi
6626   ;;
6627
6628 amigaos*)
6629   library_names_spec='$libname.ixlibrary $libname.a'
6630   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6631   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'
6632   ;;
6633
6634 beos*)
6635   library_names_spec='${libname}${shared_ext}'
6636   dynamic_linker="$host_os ld.so"
6637   shlibpath_var=LIBRARY_PATH
6638   ;;
6639
6640 bsdi[45]*)
6641   version_type=linux
6642   need_version=no
6643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6644   soname_spec='${libname}${release}${shared_ext}$major'
6645   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6646   shlibpath_var=LD_LIBRARY_PATH
6647   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6648   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6649   # the default ld.so.conf also contains /usr/contrib/lib and
6650   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6651   # libtool to hard-code these into programs
6652   ;;
6653
6654 cygwin* | mingw* | pw32*)
6655   version_type=windows
6656   shrext_cmds=".dll"
6657   need_version=no
6658   need_lib_prefix=no
6659
6660   case $GCC,$host_os in
6661   yes,cygwin* | yes,mingw* | yes,pw32*)
6662     library_names_spec='$libname.dll.a'
6663     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6664     postinstall_cmds='base_file=`basename \${file}`~
6665       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6666       dldir=$destdir/`dirname \$dlpath`~
6667       test -d \$dldir || mkdir -p \$dldir~
6668       $install_prog $dir/$dlname \$dldir/$dlname'
6669     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6670       dlpath=$dir/\$dldll~
6671        $rm \$dlpath'
6672     shlibpath_overrides_runpath=yes
6673
6674     case $host_os in
6675     cygwin*)
6676       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6677       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6678       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6679       ;;
6680     mingw*)
6681       # MinGW DLLs use traditional 'lib' prefix
6682       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6683       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6684       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6685         # It is most probably a Windows format PATH printed by
6686         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6687         # path with ; separators, and with drive letters. We can handle the
6688         # drive letters (cygwin fileutils understands them), so leave them,
6689         # especially as we might pass files found there to a mingw objdump,
6690         # which wouldn't understand a cygwinified path. Ahh.
6691         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6692       else
6693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6694       fi
6695       ;;
6696     pw32*)
6697       # pw32 DLLs use 'pw' prefix rather than 'lib'
6698       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6699       ;;
6700     esac
6701     ;;
6702
6703   *)
6704     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6705     ;;
6706   esac
6707   dynamic_linker='Win32 ld.exe'
6708   # FIXME: first we should search . and the directory the executable is in
6709   shlibpath_var=PATH
6710   ;;
6711
6712 darwin* | rhapsody*)
6713   dynamic_linker="$host_os dyld"
6714   version_type=darwin
6715   need_lib_prefix=no
6716   need_version=no
6717   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6718   soname_spec='${libname}${release}${major}$shared_ext'
6719   shlibpath_overrides_runpath=yes
6720   shlibpath_var=DYLD_LIBRARY_PATH
6721   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6722   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6723   if test "$GCC" = yes; then
6724     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"`
6725   else
6726     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6727   fi
6728   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6729   ;;
6730
6731 dgux*)
6732   version_type=linux
6733   need_lib_prefix=no
6734   need_version=no
6735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6736   soname_spec='${libname}${release}${shared_ext}$major'
6737   shlibpath_var=LD_LIBRARY_PATH
6738   ;;
6739
6740 freebsd1*)
6741   dynamic_linker=no
6742   ;;
6743
6744 kfreebsd*-gnu)
6745   version_type=linux
6746   need_lib_prefix=no
6747   need_version=no
6748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6749   soname_spec='${libname}${release}${shared_ext}$major'
6750   shlibpath_var=LD_LIBRARY_PATH
6751   shlibpath_overrides_runpath=no
6752   hardcode_into_libs=yes
6753   dynamic_linker='GNU ld.so'
6754   ;;
6755
6756 freebsd*)
6757   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6758   version_type=freebsd-$objformat
6759   case $version_type in
6760     freebsd-elf*)
6761       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6762       need_version=no
6763       need_lib_prefix=no
6764       ;;
6765     freebsd-*)
6766       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6767       need_version=yes
6768       ;;
6769   esac
6770   shlibpath_var=LD_LIBRARY_PATH
6771   case $host_os in
6772   freebsd2*)
6773     shlibpath_overrides_runpath=yes
6774     ;;
6775   freebsd3.01* | freebsdelf3.01*)
6776     shlibpath_overrides_runpath=yes
6777     hardcode_into_libs=yes
6778     ;;
6779   *) # from 3.2 on
6780     shlibpath_overrides_runpath=no
6781     hardcode_into_libs=yes
6782     ;;
6783   esac
6784   ;;
6785
6786 gnu*)
6787   version_type=linux
6788   need_lib_prefix=no
6789   need_version=no
6790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6791   soname_spec='${libname}${release}${shared_ext}$major'
6792   shlibpath_var=LD_LIBRARY_PATH
6793   hardcode_into_libs=yes
6794   ;;
6795
6796 hpux9* | hpux10* | hpux11*)
6797   # Give a soname corresponding to the major version so that dld.sl refuses to
6798   # link against other versions.
6799   version_type=sunos
6800   need_lib_prefix=no
6801   need_version=no
6802   case "$host_cpu" in
6803   ia64*)
6804     shrext_cmds='.so'
6805     hardcode_into_libs=yes
6806     dynamic_linker="$host_os dld.so"
6807     shlibpath_var=LD_LIBRARY_PATH
6808     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6810     soname_spec='${libname}${release}${shared_ext}$major'
6811     if test "X$HPUX_IA64_MODE" = X32; then
6812       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6813     else
6814       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6815     fi
6816     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6817     ;;
6818    hppa*64*)
6819      shrext_cmds='.sl'
6820      hardcode_into_libs=yes
6821      dynamic_linker="$host_os dld.sl"
6822      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6823      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6824      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6825      soname_spec='${libname}${release}${shared_ext}$major'
6826      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6827      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6828      ;;
6829    *)
6830     shrext_cmds='.sl'
6831     dynamic_linker="$host_os dld.sl"
6832     shlibpath_var=SHLIB_PATH
6833     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6835     soname_spec='${libname}${release}${shared_ext}$major'
6836     ;;
6837   esac
6838   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6839   postinstall_cmds='chmod 555 $lib'
6840   ;;
6841
6842 irix5* | irix6* | nonstopux*)
6843   case $host_os in
6844     nonstopux*) version_type=nonstopux ;;
6845     *)
6846         if test "$lt_cv_prog_gnu_ld" = yes; then
6847                 version_type=linux
6848         else
6849                 version_type=irix
6850         fi ;;
6851   esac
6852   need_lib_prefix=no
6853   need_version=no
6854   soname_spec='${libname}${release}${shared_ext}$major'
6855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6856   case $host_os in
6857   irix5* | nonstopux*)
6858     libsuff= shlibsuff=
6859     ;;
6860   *)
6861     case $LD in # libtool.m4 will add one of these switches to LD
6862     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6863       libsuff= shlibsuff= libmagic=32-bit;;
6864     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6865       libsuff=32 shlibsuff=N32 libmagic=N32;;
6866     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6867       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6868     *) libsuff= shlibsuff= libmagic=never-match;;
6869     esac
6870     ;;
6871   esac
6872   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6873   shlibpath_overrides_runpath=no
6874   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6875   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6876   hardcode_into_libs=yes
6877   ;;
6878
6879 # No shared lib support for Linux oldld, aout, or coff.
6880 linux*oldld* | linux*aout* | linux*coff*)
6881   dynamic_linker=no
6882   ;;
6883
6884 # This must be Linux ELF.
6885 linux*)
6886   version_type=linux
6887   need_lib_prefix=no
6888   need_version=no
6889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6890   soname_spec='${libname}${release}${shared_ext}$major'
6891   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6892   shlibpath_var=LD_LIBRARY_PATH
6893   shlibpath_overrides_runpath=no
6894   # This implies no fast_install, which is unacceptable.
6895   # Some rework will be needed to allow for fast_install
6896   # before this can be enabled.
6897   hardcode_into_libs=yes
6898
6899   # Append ld.so.conf contents to the search path
6900   if test -f /etc/ld.so.conf; then
6901     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6902     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6903   fi
6904
6905   # We used to test for /lib/ld.so.1 and disable shared libraries on
6906   # powerpc, because MkLinux only supported shared libraries with the
6907   # GNU dynamic linker.  Since this was broken with cross compilers,
6908   # most powerpc-linux boxes support dynamic linking these days and
6909   # people can always --disable-shared, the test was removed, and we
6910   # assume the GNU/Linux dynamic linker is in use.
6911   dynamic_linker='GNU/Linux ld.so'
6912   ;;
6913
6914 knetbsd*-gnu)
6915   version_type=linux
6916   need_lib_prefix=no
6917   need_version=no
6918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6919   soname_spec='${libname}${release}${shared_ext}$major'
6920   shlibpath_var=LD_LIBRARY_PATH
6921   shlibpath_overrides_runpath=no
6922   hardcode_into_libs=yes
6923   dynamic_linker='GNU ld.so'
6924   ;;
6925
6926 netbsd*)
6927   version_type=sunos
6928   need_lib_prefix=no
6929   need_version=no
6930   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6932     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6933     dynamic_linker='NetBSD (a.out) ld.so'
6934   else
6935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6936     soname_spec='${libname}${release}${shared_ext}$major'
6937     dynamic_linker='NetBSD ld.elf_so'
6938   fi
6939   shlibpath_var=LD_LIBRARY_PATH
6940   shlibpath_overrides_runpath=yes
6941   hardcode_into_libs=yes
6942   ;;
6943
6944 newsos6)
6945   version_type=linux
6946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6947   shlibpath_var=LD_LIBRARY_PATH
6948   shlibpath_overrides_runpath=yes
6949   ;;
6950
6951 nto-qnx*)
6952   version_type=linux
6953   need_lib_prefix=no
6954   need_version=no
6955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6956   soname_spec='${libname}${release}${shared_ext}$major'
6957   shlibpath_var=LD_LIBRARY_PATH
6958   shlibpath_overrides_runpath=yes
6959   ;;
6960
6961 openbsd*)
6962   version_type=sunos
6963   need_lib_prefix=no
6964   need_version=no
6965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6967   shlibpath_var=LD_LIBRARY_PATH
6968   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6969     case $host_os in
6970       openbsd2.[89] | openbsd2.[89].*)
6971         shlibpath_overrides_runpath=no
6972         ;;
6973       *)
6974         shlibpath_overrides_runpath=yes
6975         ;;
6976       esac
6977   else
6978     shlibpath_overrides_runpath=yes
6979   fi
6980   ;;
6981
6982 os2*)
6983   libname_spec='$name'
6984   shrext_cmds=".dll"
6985   need_lib_prefix=no
6986   library_names_spec='$libname${shared_ext} $libname.a'
6987   dynamic_linker='OS/2 ld.exe'
6988   shlibpath_var=LIBPATH
6989   ;;
6990
6991 osf3* | osf4* | osf5*)
6992   version_type=osf
6993   need_lib_prefix=no
6994   need_version=no
6995   soname_spec='${libname}${release}${shared_ext}$major'
6996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6997   shlibpath_var=LD_LIBRARY_PATH
6998   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6999   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7000   ;;
7001
7002 sco3.2v5*)
7003   version_type=osf
7004   soname_spec='${libname}${release}${shared_ext}$major'
7005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7006   shlibpath_var=LD_LIBRARY_PATH
7007   ;;
7008
7009 solaris*)
7010   version_type=linux
7011   need_lib_prefix=no
7012   need_version=no
7013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7014   soname_spec='${libname}${release}${shared_ext}$major'
7015   shlibpath_var=LD_LIBRARY_PATH
7016   shlibpath_overrides_runpath=yes
7017   hardcode_into_libs=yes
7018   # ldd complains unless libraries are executable
7019   postinstall_cmds='chmod +x $lib'
7020   ;;
7021
7022 sunos4*)
7023   version_type=sunos
7024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7025   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7026   shlibpath_var=LD_LIBRARY_PATH
7027   shlibpath_overrides_runpath=yes
7028   if test "$with_gnu_ld" = yes; then
7029     need_lib_prefix=no
7030   fi
7031   need_version=yes
7032   ;;
7033
7034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7035   version_type=linux
7036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7037   soname_spec='${libname}${release}${shared_ext}$major'
7038   shlibpath_var=LD_LIBRARY_PATH
7039   case $host_vendor in
7040     sni)
7041       shlibpath_overrides_runpath=no
7042       need_lib_prefix=no
7043       export_dynamic_flag_spec='${wl}-Blargedynsym'
7044       runpath_var=LD_RUN_PATH
7045       ;;
7046     siemens)
7047       need_lib_prefix=no
7048       ;;
7049     motorola)
7050       need_lib_prefix=no
7051       need_version=no
7052       shlibpath_overrides_runpath=no
7053       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7054       ;;
7055   esac
7056   ;;
7057
7058 sysv4*MP*)
7059   if test -d /usr/nec ;then
7060     version_type=linux
7061     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7062     soname_spec='$libname${shared_ext}.$major'
7063     shlibpath_var=LD_LIBRARY_PATH
7064   fi
7065   ;;
7066
7067 uts4*)
7068   version_type=linux
7069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7070   soname_spec='${libname}${release}${shared_ext}$major'
7071   shlibpath_var=LD_LIBRARY_PATH
7072   ;;
7073
7074 *)
7075   dynamic_linker=no
7076   ;;
7077 esac
7078 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7079 echo "${ECHO_T}$dynamic_linker" >&6
7080 test "$dynamic_linker" = no && can_build_shared=no
7081
7082
7083 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7084 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7085 if test "${libltdl_cv_shlibext+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088
7089 module=yes
7090 eval libltdl_cv_shlibext=$shrext_cmds
7091
7092 fi
7093 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7094 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7095 if test -n "$libltdl_cv_shlibext"; then
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7099 _ACEOF
7100
7101 fi
7102
7103
7104 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7105 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7106 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   libltdl_cv_shlibpath_var="$shlibpath_var"
7110 fi
7111 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7112 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7113 if test -n "$libltdl_cv_shlibpath_var"; then
7114
7115 cat >>confdefs.h <<_ACEOF
7116 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7117 _ACEOF
7118
7119 fi
7120
7121
7122 echo "$as_me:$LINENO: checking for the default library search path" >&5
7123 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7124 if test "${libltdl_cv_sys_search_path+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7128 fi
7129 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7130 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7131 if test -n "$libltdl_cv_sys_search_path"; then
7132   sys_search_path=
7133   for dir in $libltdl_cv_sys_search_path; do
7134     if test -z "$sys_search_path"; then
7135       sys_search_path="$dir"
7136     else
7137       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7138     fi
7139   done
7140
7141 cat >>confdefs.h <<_ACEOF
7142 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7143 _ACEOF
7144
7145 fi
7146
7147 echo "$as_me:$LINENO: checking for objdir" >&5
7148 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7149 if test "${libltdl_cv_objdir+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   libltdl_cv_objdir="$objdir"
7153   if test -n "$objdir"; then
7154     :
7155   else
7156     rm -f .libs 2>/dev/null
7157     mkdir .libs 2>/dev/null
7158     if test -d .libs; then
7159       libltdl_cv_objdir=.libs
7160     else
7161       # MS-DOS does not allow filenames that begin with a dot.
7162       libltdl_cv_objdir=_libs
7163     fi
7164   rmdir .libs 2>/dev/null
7165   fi
7166
7167 fi
7168 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7169 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7170
7171 cat >>confdefs.h <<_ACEOF
7172 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7173 _ACEOF
7174
7175
7176 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7177 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7178 if test "${lt_cv_path_NM+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   if test -n "$NM"; then
7182   # Let the user override the test.
7183   lt_cv_path_NM="$NM"
7184 else
7185   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7186   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7187     IFS="$lt_save_ifs"
7188     test -z "$ac_dir" && ac_dir=.
7189     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7190     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7191       # Check to see if the nm accepts a BSD-compat flag.
7192       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7193       #   nm: unknown option "B" ignored
7194       # Tru64's nm complains that /dev/null is an invalid object file
7195       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7196       */dev/null* | *'Invalid file or object type'*)
7197         lt_cv_path_NM="$tmp_nm -B"
7198         break
7199         ;;
7200       *)
7201         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7202         */dev/null*)
7203           lt_cv_path_NM="$tmp_nm -p"
7204           break
7205           ;;
7206         *)
7207           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7208           continue # so that we can try to find one that supports BSD flags
7209           ;;
7210         esac
7211       esac
7212     fi
7213   done
7214   IFS="$lt_save_ifs"
7215   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7216 fi
7217 fi
7218 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7219 echo "${ECHO_T}$lt_cv_path_NM" >&6
7220 NM="$lt_cv_path_NM"
7221
7222
7223
7224
7225
7226 # Check for command to grab the raw symbol name followed by C symbol from nm.
7227 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7228 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7229 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232
7233 # These are sane defaults that work on at least a few old systems.
7234 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7235
7236 # Character class describing NM global symbol codes.
7237 symcode='[BCDEGRST]'
7238
7239 # Regexp to match symbols that can be accessed directly from C.
7240 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7241
7242 # Transform the above into a raw symbol and a C symbol.
7243 symxfrm='\1 \2\3 \3'
7244
7245 # Transform an extracted symbol line into a proper C declaration
7246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7247
7248 # Transform an extracted symbol line into symbol name and symbol address
7249 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'"
7250
7251 # Define system-specific variables.
7252 case $host_os in
7253 aix*)
7254   symcode='[BCDT]'
7255   ;;
7256 cygwin* | mingw* | pw32*)
7257   symcode='[ABCDGISTW]'
7258   ;;
7259 hpux*) # Its linker distinguishes data from code symbols
7260   if test "$host_cpu" = ia64; then
7261     symcode='[ABCDEGRST]'
7262   fi
7263   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7264   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'"
7265   ;;
7266 linux*)
7267   if test "$host_cpu" = ia64; then
7268     symcode='[ABCDGIRSTW]'
7269     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7270     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'"
7271   fi
7272   ;;
7273 irix* | nonstopux*)
7274   symcode='[BCDEGRST]'
7275   ;;
7276 osf*)
7277   symcode='[BCDEGQRST]'
7278   ;;
7279 solaris* | sysv5*)
7280   symcode='[BDRT]'
7281   ;;
7282 sysv4)
7283   symcode='[DFNSTU]'
7284   ;;
7285 esac
7286
7287 # Handle CRLF in mingw tool chain
7288 opt_cr=
7289 case $build_os in
7290 mingw*)
7291   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7292   ;;
7293 esac
7294
7295 # If we're using GNU nm, then use its standard symbol codes.
7296 case `$NM -V 2>&1` in
7297 *GNU* | *'with BFD'*)
7298   symcode='[ABCDGIRSTW]' ;;
7299 esac
7300
7301 # Try without a prefix undercore, then with it.
7302 for ac_symprfx in "" "_"; do
7303
7304   # Write the raw and C identifiers.
7305   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7306
7307   # Check to see that the pipe works correctly.
7308   pipe_works=no
7309
7310   rm -f conftest*
7311   cat > conftest.$ac_ext <<EOF
7312 #ifdef __cplusplus
7313 extern "C" {
7314 #endif
7315 char nm_test_var;
7316 void nm_test_func(){}
7317 #ifdef __cplusplus
7318 }
7319 #endif
7320 int main(){nm_test_var='a';nm_test_func();return(0);}
7321 EOF
7322
7323   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7324   (eval $ac_compile) 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); }; then
7328     # Now try to grab the symbols.
7329     nlist=conftest.nm
7330     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7331   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7332   ac_status=$?
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); } && test -s "$nlist"; then
7335       # Try sorting and uniquifying the output.
7336       if sort "$nlist" | uniq > "$nlist"T; then
7337         mv -f "$nlist"T "$nlist"
7338       else
7339         rm -f "$nlist"T
7340       fi
7341
7342       # Make sure that we snagged all the symbols we need.
7343       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7344         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7345           cat <<EOF > conftest.$ac_ext
7346 #ifdef __cplusplus
7347 extern "C" {
7348 #endif
7349
7350 EOF
7351           # Now generate the symbol file.
7352           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7353
7354           cat <<EOF >> conftest.$ac_ext
7355 #if defined (__STDC__) && __STDC__
7356 # define lt_ptr_t void *
7357 #else
7358 # define lt_ptr_t char *
7359 # define const
7360 #endif
7361
7362 /* The mapping between symbol names and symbols. */
7363 const struct {
7364   const char *name;
7365   lt_ptr_t address;
7366 }
7367 lt_preloaded_symbols[] =
7368 {
7369 EOF
7370           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7371           cat <<\EOF >> conftest.$ac_ext
7372   {0, (lt_ptr_t) 0}
7373 };
7374
7375 #ifdef __cplusplus
7376 }
7377 #endif
7378 EOF
7379           # Now try linking the two files.
7380           mv conftest.$ac_objext conftstm.$ac_objext
7381           lt_save_LIBS="$LIBS"
7382           lt_save_CFLAGS="$CFLAGS"
7383           LIBS="conftstm.$ac_objext"
7384           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7385           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386   (eval $ac_link) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7390             pipe_works=yes
7391           fi
7392           LIBS="$lt_save_LIBS"
7393           CFLAGS="$lt_save_CFLAGS"
7394         else
7395           echo "cannot find nm_test_func in $nlist" >&5
7396         fi
7397       else
7398         echo "cannot find nm_test_var in $nlist" >&5
7399       fi
7400     else
7401       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7402     fi
7403   else
7404     echo "$progname: failed program was:" >&5
7405     cat conftest.$ac_ext >&5
7406   fi
7407   rm -f conftest* conftst*
7408
7409   # Do not use the global_symbol_pipe unless it works.
7410   if test "$pipe_works" = yes; then
7411     break
7412   else
7413     lt_cv_sys_global_symbol_pipe=
7414   fi
7415 done
7416
7417 fi
7418
7419 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7420   lt_cv_sys_global_symbol_to_cdecl=
7421 fi
7422 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7423   echo "$as_me:$LINENO: result: failed" >&5
7424 echo "${ECHO_T}failed" >&6
7425 else
7426   echo "$as_me:$LINENO: result: ok" >&5
7427 echo "${ECHO_T}ok" >&6
7428 fi
7429
7430
7431 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7432 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7433 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7437     libltdl_cv_preloaded_symbols=yes
7438   else
7439     libltdl_cv_preloaded_symbols=no
7440   fi
7441
7442 fi
7443 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7444 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7445 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_PRELOADED_SYMBOLS 1
7449 _ACEOF
7450
7451 fi
7452
7453 LIBADD_DL=
7454
7455 ac_ext=c
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
7461
7462 echo "$as_me:$LINENO: checking for shl_load" >&5
7463 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7464 if test "${ac_cv_func_shl_load+set}" = set; then
7465   echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467   cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h.  */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h.  */
7473 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7475 #define shl_load innocuous_shl_load
7476
7477 /* System header to define __stub macros and hopefully few prototypes,
7478     which can conflict with char shl_load (); below.
7479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480     <limits.h> exists even on freestanding compilers.  */
7481
7482 #ifdef __STDC__
7483 # include <limits.h>
7484 #else
7485 # include <assert.h>
7486 #endif
7487
7488 #undef shl_load
7489
7490 /* Override any gcc2 internal prototype to avoid an error.  */
7491 #ifdef __cplusplus
7492 extern "C"
7493 {
7494 #endif
7495 /* We use char because int might match the return type of a gcc2
7496    builtin and then its argument prototype would still apply.  */
7497 char shl_load ();
7498 /* The GNU C library defines this for functions which it implements
7499     to always fail with ENOSYS.  Some functions are actually named
7500     something starting with __ and the normal name is an alias.  */
7501 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7502 choke me
7503 #else
7504 char (*f) () = shl_load;
7505 #endif
7506 #ifdef __cplusplus
7507 }
7508 #endif
7509
7510 int
7511 main ()
7512 {
7513 return f != shl_load;
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext conftest$ac_exeext
7519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7520   (eval $ac_link) 2>conftest.er1
7521   ac_status=$?
7522   grep -v '^ *+' conftest.er1 >conftest.err
7523   rm -f conftest.er1
7524   cat conftest.err >&5
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); } &&
7527          { ac_try='test -z "$ac_c_werror_flag"
7528                          || test ! -s conftest.err'
7529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530   (eval $ac_try) 2>&5
7531   ac_status=$?
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); }; } &&
7534          { ac_try='test -s conftest$ac_exeext'
7535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536   (eval $ac_try) 2>&5
7537   ac_status=$?
7538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539   (exit $ac_status); }; }; then
7540   ac_cv_func_shl_load=yes
7541 else
7542   echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7544
7545 ac_cv_func_shl_load=no
7546 fi
7547 rm -f conftest.err conftest.$ac_objext \
7548       conftest$ac_exeext conftest.$ac_ext
7549 fi
7550 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7551 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7552 if test $ac_cv_func_shl_load = yes; then
7553
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_SHL_LOAD 1
7556 _ACEOF
7557
7558 else
7559   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7560 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7561 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564   ac_check_lib_save_LIBS=$LIBS
7565 LIBS="-ldld  $LIBS"
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h.  */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h.  */
7572
7573 /* Override any gcc2 internal prototype to avoid an error.  */
7574 #ifdef __cplusplus
7575 extern "C"
7576 #endif
7577 /* We use char because int might match the return type of a gcc2
7578    builtin and then its argument prototype would still apply.  */
7579 char shl_load ();
7580 int
7581 main ()
7582 {
7583 shl_load ();
7584   ;
7585   return 0;
7586 }
7587 _ACEOF
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590   (eval $ac_link) 2>conftest.er1
7591   ac_status=$?
7592   grep -v '^ *+' conftest.er1 >conftest.err
7593   rm -f conftest.er1
7594   cat conftest.err >&5
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } &&
7597          { ac_try='test -z "$ac_c_werror_flag"
7598                          || test ! -s conftest.err'
7599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600   (eval $ac_try) 2>&5
7601   ac_status=$?
7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603   (exit $ac_status); }; } &&
7604          { ac_try='test -s conftest$ac_exeext'
7605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606   (eval $ac_try) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; }; then
7610   ac_cv_lib_dld_shl_load=yes
7611 else
7612   echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615 ac_cv_lib_dld_shl_load=no
7616 fi
7617 rm -f conftest.err conftest.$ac_objext \
7618       conftest$ac_exeext conftest.$ac_ext
7619 LIBS=$ac_check_lib_save_LIBS
7620 fi
7621 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7622 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7623 if test $ac_cv_lib_dld_shl_load = yes; then
7624
7625 cat >>confdefs.h <<\_ACEOF
7626 #define HAVE_SHL_LOAD 1
7627 _ACEOF
7628
7629         LIBADD_DL="$LIBADD_DL -ldld"
7630 else
7631   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7632 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7633 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   ac_check_lib_save_LIBS=$LIBS
7637 LIBS="-ldl  $LIBS"
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644
7645 /* Override any gcc2 internal prototype to avoid an error.  */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 /* We use char because int might match the return type of a gcc2
7650    builtin and then its argument prototype would still apply.  */
7651 char dlopen ();
7652 int
7653 main ()
7654 {
7655 dlopen ();
7656   ;
7657   return 0;
7658 }
7659 _ACEOF
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662   (eval $ac_link) 2>conftest.er1
7663   ac_status=$?
7664   grep -v '^ *+' conftest.er1 >conftest.err
7665   rm -f conftest.er1
7666   cat conftest.err >&5
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } &&
7669          { ac_try='test -z "$ac_c_werror_flag"
7670                          || test ! -s conftest.err'
7671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; } &&
7676          { ac_try='test -s conftest$ac_exeext'
7677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678   (eval $ac_try) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); }; }; then
7682   ac_cv_lib_dl_dlopen=yes
7683 else
7684   echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7686
7687 ac_cv_lib_dl_dlopen=no
7688 fi
7689 rm -f conftest.err conftest.$ac_objext \
7690       conftest$ac_exeext conftest.$ac_ext
7691 LIBS=$ac_check_lib_save_LIBS
7692 fi
7693 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7694 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7695 if test $ac_cv_lib_dl_dlopen = yes; then
7696
7697 cat >>confdefs.h <<\_ACEOF
7698 #define HAVE_LIBDL 1
7699 _ACEOF
7700
7701                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7702 else
7703   cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709 #if HAVE_DLFCN_H
7710 #  include <dlfcn.h>
7711 #endif
7712
7713 int
7714 main ()
7715 {
7716 dlopen(0, 0);
7717   ;
7718   return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext conftest$ac_exeext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723   (eval $ac_link) 2>conftest.er1
7724   ac_status=$?
7725   grep -v '^ *+' conftest.er1 >conftest.err
7726   rm -f conftest.er1
7727   cat conftest.err >&5
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); } &&
7730          { ac_try='test -z "$ac_c_werror_flag"
7731                          || test ! -s conftest.err'
7732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733   (eval $ac_try) 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); }; } &&
7737          { ac_try='test -s conftest$ac_exeext'
7738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739   (eval $ac_try) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); }; }; then
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_LIBDL 1
7746 _ACEOF
7747  libltdl_cv_func_dlopen="yes"
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7753 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7754 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   ac_check_lib_save_LIBS=$LIBS
7758 LIBS="-lsvld  $LIBS"
7759 cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h.  */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h.  */
7765
7766 /* Override any gcc2 internal prototype to avoid an error.  */
7767 #ifdef __cplusplus
7768 extern "C"
7769 #endif
7770 /* We use char because int might match the return type of a gcc2
7771    builtin and then its argument prototype would still apply.  */
7772 char dlopen ();
7773 int
7774 main ()
7775 {
7776 dlopen ();
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7783   (eval $ac_link) 2>conftest.er1
7784   ac_status=$?
7785   grep -v '^ *+' conftest.er1 >conftest.err
7786   rm -f conftest.er1
7787   cat conftest.err >&5
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); } &&
7790          { ac_try='test -z "$ac_c_werror_flag"
7791                          || test ! -s conftest.err'
7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; } &&
7797          { ac_try='test -s conftest$ac_exeext'
7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   ac_cv_lib_svld_dlopen=yes
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808 ac_cv_lib_svld_dlopen=no
7809 fi
7810 rm -f conftest.err conftest.$ac_objext \
7811       conftest$ac_exeext conftest.$ac_ext
7812 LIBS=$ac_check_lib_save_LIBS
7813 fi
7814 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7815 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7816 if test $ac_cv_lib_svld_dlopen = yes; then
7817
7818 cat >>confdefs.h <<\_ACEOF
7819 #define HAVE_LIBDL 1
7820 _ACEOF
7821
7822                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7823 else
7824   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7825 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7826 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   ac_check_lib_save_LIBS=$LIBS
7830 LIBS="-ldld  $LIBS"
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837
7838 /* Override any gcc2 internal prototype to avoid an error.  */
7839 #ifdef __cplusplus
7840 extern "C"
7841 #endif
7842 /* We use char because int might match the return type of a gcc2
7843    builtin and then its argument prototype would still apply.  */
7844 char dld_link ();
7845 int
7846 main ()
7847 {
7848 dld_link ();
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855   (eval $ac_link) 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } &&
7862          { ac_try='test -z "$ac_c_werror_flag"
7863                          || test ! -s conftest.err'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; } &&
7869          { ac_try='test -s conftest$ac_exeext'
7870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871   (eval $ac_try) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; }; then
7875   ac_cv_lib_dld_dld_link=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 ac_cv_lib_dld_dld_link=no
7881 fi
7882 rm -f conftest.err conftest.$ac_objext \
7883       conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7885 fi
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7887 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7888 if test $ac_cv_lib_dld_dld_link = yes; then
7889
7890 cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_DLD 1
7892 _ACEOF
7893
7894                 LIBADD_DL="$LIBADD_DL -ldld"
7895 else
7896   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7897 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7898 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901   cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h.  */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h.  */
7907 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7909 #define _dyld_func_lookup innocuous__dyld_func_lookup
7910
7911 /* System header to define __stub macros and hopefully few prototypes,
7912     which can conflict with char _dyld_func_lookup (); below.
7913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7914     <limits.h> exists even on freestanding compilers.  */
7915
7916 #ifdef __STDC__
7917 # include <limits.h>
7918 #else
7919 # include <assert.h>
7920 #endif
7921
7922 #undef _dyld_func_lookup
7923
7924 /* Override any gcc2 internal prototype to avoid an error.  */
7925 #ifdef __cplusplus
7926 extern "C"
7927 {
7928 #endif
7929 /* We use char because int might match the return type of a gcc2
7930    builtin and then its argument prototype would still apply.  */
7931 char _dyld_func_lookup ();
7932 /* The GNU C library defines this for functions which it implements
7933     to always fail with ENOSYS.  Some functions are actually named
7934     something starting with __ and the normal name is an alias.  */
7935 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7936 choke me
7937 #else
7938 char (*f) () = _dyld_func_lookup;
7939 #endif
7940 #ifdef __cplusplus
7941 }
7942 #endif
7943
7944 int
7945 main ()
7946 {
7947 return f != _dyld_func_lookup;
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7954   (eval $ac_link) 2>conftest.er1
7955   ac_status=$?
7956   grep -v '^ *+' conftest.er1 >conftest.err
7957   rm -f conftest.er1
7958   cat conftest.err >&5
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } &&
7961          { ac_try='test -z "$ac_c_werror_flag"
7962                          || test ! -s conftest.err'
7963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964   (eval $ac_try) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; } &&
7968          { ac_try='test -s conftest$ac_exeext'
7969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970   (eval $ac_try) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; }; then
7974   ac_cv_func__dyld_func_lookup=yes
7975 else
7976   echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 ac_cv_func__dyld_func_lookup=no
7980 fi
7981 rm -f conftest.err conftest.$ac_objext \
7982       conftest$ac_exeext conftest.$ac_ext
7983 fi
7984 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7985 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7986 if test $ac_cv_func__dyld_func_lookup = yes; then
7987
7988 cat >>confdefs.h <<\_ACEOF
7989 #define HAVE_DYLD 1
7990 _ACEOF
7991
7992 fi
7993
7994
7995 fi
7996
7997
7998 fi
7999
8000
8001 fi
8002 rm -f conftest.err conftest.$ac_objext \
8003       conftest$ac_exeext conftest.$ac_ext
8004
8005 fi
8006
8007
8008 fi
8009
8010
8011 fi
8012
8013
8014 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8015 then
8016   lt_save_LIBS="$LIBS"
8017   LIBS="$LIBS $LIBADD_DL"
8018
8019 for ac_func in dlerror
8020 do
8021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8022 echo "$as_me:$LINENO: checking for $ac_func" >&5
8023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8024 if eval "test \"\${$as_ac_var+set}\" = set"; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8035 #define $ac_func innocuous_$ac_func
8036
8037 /* System header to define __stub macros and hopefully few prototypes,
8038     which can conflict with char $ac_func (); below.
8039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8040     <limits.h> exists even on freestanding compilers.  */
8041
8042 #ifdef __STDC__
8043 # include <limits.h>
8044 #else
8045 # include <assert.h>
8046 #endif
8047
8048 #undef $ac_func
8049
8050 /* Override any gcc2 internal prototype to avoid an error.  */
8051 #ifdef __cplusplus
8052 extern "C"
8053 {
8054 #endif
8055 /* We use char because int might match the return type of a gcc2
8056    builtin and then its argument prototype would still apply.  */
8057 char $ac_func ();
8058 /* The GNU C library defines this for functions which it implements
8059     to always fail with ENOSYS.  Some functions are actually named
8060     something starting with __ and the normal name is an alias.  */
8061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8062 choke me
8063 #else
8064 char (*f) () = $ac_func;
8065 #endif
8066 #ifdef __cplusplus
8067 }
8068 #endif
8069
8070 int
8071 main ()
8072 {
8073 return f != $ac_func;
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080   (eval $ac_link) 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } &&
8087          { ac_try='test -z "$ac_c_werror_flag"
8088                          || test ! -s conftest.err'
8089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090   (eval $ac_try) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; } &&
8094          { ac_try='test -s conftest$ac_exeext'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; }; then
8100   eval "$as_ac_var=yes"
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 eval "$as_ac_var=no"
8106 fi
8107 rm -f conftest.err conftest.$ac_objext \
8108       conftest$ac_exeext conftest.$ac_ext
8109 fi
8110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8112 if test `eval echo '${'$as_ac_var'}'` = yes; then
8113   cat >>confdefs.h <<_ACEOF
8114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8115 _ACEOF
8116
8117 fi
8118 done
8119
8120   LIBS="$lt_save_LIBS"
8121 fi
8122 ac_ext=c
8123 ac_cpp='$CPP $CPPFLAGS'
8124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128
8129
8130 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8131 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8132 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   ac_cv_sys_symbol_underscore=no
8136   cat > conftest.$ac_ext <<EOF
8137 void nm_test_func(){}
8138 int main(){nm_test_func;return 0;}
8139 EOF
8140   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8141   (eval $ac_compile) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; then
8145     # Now try to grab the symbols.
8146     ac_nlist=conftest.nm
8147     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8148   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); } && test -s "$ac_nlist"; then
8152       # See whether the symbols have a leading underscore.
8153       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8154         ac_cv_sys_symbol_underscore=yes
8155       else
8156         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8157           :
8158         else
8159           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8160         fi
8161       fi
8162     else
8163       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8164     fi
8165   else
8166     echo "configure: failed program was:" >&5
8167     cat conftest.c >&5
8168   fi
8169   rm -rf conftest*
8170
8171 fi
8172 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8173 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8174
8175
8176 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8177   if test x"$libltdl_cv_func_dlopen" = xyes ||
8178      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8179         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8180 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8181 if test "${libltdl_cv_need_uscore+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   libltdl_cv_need_uscore=unknown
8185           save_LIBS="$LIBS"
8186           LIBS="$LIBS $LIBADD_DL"
8187           if test "$cross_compiling" = yes; then :
8188   libltdl_cv_need_uscore=cross
8189 else
8190   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8191   lt_status=$lt_dlunknown
8192   cat > conftest.$ac_ext <<EOF
8193 #line 8193 "configure"
8194 #include "confdefs.h"
8195
8196 #if HAVE_DLFCN_H
8197 #include <dlfcn.h>
8198 #endif
8199
8200 #include <stdio.h>
8201
8202 #ifdef RTLD_GLOBAL
8203 #  define LT_DLGLOBAL           RTLD_GLOBAL
8204 #else
8205 #  ifdef DL_GLOBAL
8206 #    define LT_DLGLOBAL         DL_GLOBAL
8207 #  else
8208 #    define LT_DLGLOBAL         0
8209 #  endif
8210 #endif
8211
8212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8213    find out it does not work in some platform. */
8214 #ifndef LT_DLLAZY_OR_NOW
8215 #  ifdef RTLD_LAZY
8216 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8217 #  else
8218 #    ifdef DL_LAZY
8219 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8220 #    else
8221 #      ifdef RTLD_NOW
8222 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8223 #      else
8224 #        ifdef DL_NOW
8225 #          define LT_DLLAZY_OR_NOW      DL_NOW
8226 #        else
8227 #          define LT_DLLAZY_OR_NOW      0
8228 #        endif
8229 #      endif
8230 #    endif
8231 #  endif
8232 #endif
8233
8234 #ifdef __cplusplus
8235 extern "C" void exit (int);
8236 #endif
8237
8238 void fnord() { int i=42;}
8239 int main ()
8240 {
8241   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8242   int status = $lt_dlunknown;
8243
8244   if (self)
8245     {
8246       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8247       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8248       /* dlclose (self); */
8249     }
8250
8251     exit (status);
8252 }
8253 EOF
8254   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255   (eval $ac_link) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8259     (./conftest; exit; ) 2>/dev/null
8260     lt_status=$?
8261     case x$lt_status in
8262       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8263       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8264       x$lt_unknown|x*)  ;;
8265     esac
8266   else :
8267     # compilation failed
8268
8269   fi
8270 fi
8271 rm -fr conftest*
8272
8273           LIBS="$save_LIBS"
8274
8275 fi
8276 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8277 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8278   fi
8279 fi
8280
8281 if test x"$libltdl_cv_need_uscore" = xyes; then
8282
8283 cat >>confdefs.h <<\_ACEOF
8284 #define NEED_USCORE 1
8285 _ACEOF
8286
8287 fi
8288
8289
8290 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8291 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8292 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8293   echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295   # PORTME does your system automatically load deplibs for dlopen?
8296   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8297   # For now, we just catch OSes we know something about -- in the
8298   # future, we'll try test this programmatically.
8299   libltdl_cv_sys_dlopen_deplibs=unknown
8300   case "$host_os" in
8301   aix3*|aix4.1.*|aix4.2.*)
8302     # Unknown whether this is true for these versions of AIX, but
8303     # we want this `case' here to explicitly catch those versions.
8304     libltdl_cv_sys_dlopen_deplibs=unknown
8305     ;;
8306   aix[45]*)
8307     libltdl_cv_sys_dlopen_deplibs=yes
8308     ;;
8309   darwin*)
8310     # Assuming the user has installed a libdl from somewhere, this is true
8311     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8312     libltdl_cv_sys_dlopen_deplibs=yes
8313     ;;
8314   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8315     # GNU and its variants, using gnu ld.so (Glibc)
8316     libltdl_cv_sys_dlopen_deplibs=yes
8317     ;;
8318   hpux10*|hpux11*)
8319     libltdl_cv_sys_dlopen_deplibs=yes
8320     ;;
8321   irix[12345]*|irix6.[01]*)
8322     # Catch all versions of IRIX before 6.2, and indicate that we don't
8323     # know how it worked for any of those versions.
8324     libltdl_cv_sys_dlopen_deplibs=unknown
8325     ;;
8326   irix*)
8327     # The case above catches anything before 6.2, and it's known that
8328     # at 6.2 and later dlopen does load deplibs.
8329     libltdl_cv_sys_dlopen_deplibs=yes
8330     ;;
8331   netbsd*)
8332     libltdl_cv_sys_dlopen_deplibs=yes
8333     ;;
8334   openbsd*)
8335     libltdl_cv_sys_dlopen_deplibs=yes
8336     ;;
8337   osf[1234]*)
8338     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8339     # it did *not* use an RPATH in a shared library to find objects the
8340     # library depends on, so we explictly say `no'.
8341     libltdl_cv_sys_dlopen_deplibs=no
8342     ;;
8343   osf5.0|osf5.0a|osf5.1)
8344     # dlopen *does* load deplibs and with the right loader patch applied
8345     # it even uses RPATH in a shared library to search for shared objects
8346     # that the library depends on, but there's no easy way to know if that
8347     # patch is installed.  Since this is the case, all we can really
8348     # say is unknown -- it depends on the patch being installed.  If
8349     # it is, this changes to `yes'.  Without it, it would be `no'.
8350     libltdl_cv_sys_dlopen_deplibs=unknown
8351     ;;
8352   osf*)
8353     # the two cases above should catch all versions of osf <= 5.1.  Read
8354     # the comments above for what we know about them.
8355     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8356     # is used to find them so we can finally say `yes'.
8357     libltdl_cv_sys_dlopen_deplibs=yes
8358     ;;
8359   solaris*)
8360     libltdl_cv_sys_dlopen_deplibs=yes
8361     ;;
8362   esac
8363
8364 fi
8365 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8366 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8367 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8368
8369 cat >>confdefs.h <<\_ACEOF
8370 #define LTDL_DLOPEN_DEPLIBS 1
8371 _ACEOF
8372
8373 fi
8374
8375
8376 for ac_header in argz.h
8377 do
8378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8380   echo "$as_me:$LINENO: checking for $ac_header" >&5
8381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8383   echo $ECHO_N "(cached) $ECHO_C" >&6
8384 fi
8385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8387 else
8388   # Is the header compilable?
8389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 $ac_includes_default
8398 #include <$ac_header>
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402   (eval $ac_compile) 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -z "$ac_c_werror_flag"
8410                          || test ! -s conftest.err'
8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412   (eval $ac_try) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest.$ac_objext'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422   ac_header_compiler=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_header_compiler=no
8428 fi
8429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8431 echo "${ECHO_T}$ac_header_compiler" >&6
8432
8433 # Is the header present?
8434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442 #include <$ac_header>
8443 _ACEOF
8444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } >/dev/null; then
8452   if test -s conftest.err; then
8453     ac_cpp_err=$ac_c_preproc_warn_flag
8454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8455   else
8456     ac_cpp_err=
8457   fi
8458 else
8459   ac_cpp_err=yes
8460 fi
8461 if test -z "$ac_cpp_err"; then
8462   ac_header_preproc=yes
8463 else
8464   echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8466
8467   ac_header_preproc=no
8468 fi
8469 rm -f conftest.err conftest.$ac_ext
8470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8471 echo "${ECHO_T}$ac_header_preproc" >&6
8472
8473 # So?  What about this header?
8474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8475   yes:no: )
8476     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8480     ac_header_preproc=yes
8481     ;;
8482   no:yes:* )
8483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8485     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8486 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8487     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8489     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8490 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8493     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8495     (
8496       cat <<\_ASBOX
8497 ## ----------------------------------- ##
8498 ## Report this to llvmbugs@cs.uiuc.edu ##
8499 ## ----------------------------------- ##
8500 _ASBOX
8501     ) |
8502       sed "s/^/$as_me: WARNING:     /" >&2
8503     ;;
8504 esac
8505 echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   eval "$as_ac_Header=\$ac_header_preproc"
8511 fi
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514
8515 fi
8516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8517   cat >>confdefs.h <<_ACEOF
8518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8519 _ACEOF
8520
8521 fi
8522
8523 done
8524
8525
8526 echo "$as_me:$LINENO: checking for error_t" >&5
8527 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8528 if test "${ac_cv_type_error_t+set}" = set; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531   cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h.  */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h.  */
8537 #if HAVE_ARGZ_H
8538 #  include <argz.h>
8539 #endif
8540
8541 int
8542 main ()
8543 {
8544 if ((error_t *) 0)
8545   return 0;
8546 if (sizeof (error_t))
8547   return 0;
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554   (eval $ac_compile) 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } &&
8561          { ac_try='test -z "$ac_c_werror_flag"
8562                          || test ! -s conftest.err'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; } &&
8568          { ac_try='test -s conftest.$ac_objext'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; }; then
8574   ac_cv_type_error_t=yes
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8578
8579 ac_cv_type_error_t=no
8580 fi
8581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582 fi
8583 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8584 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8585 if test $ac_cv_type_error_t = yes; then
8586
8587 cat >>confdefs.h <<_ACEOF
8588 #define HAVE_ERROR_T 1
8589 _ACEOF
8590
8591
8592 else
8593
8594 cat >>confdefs.h <<\_ACEOF
8595 #define error_t int
8596 _ACEOF
8597
8598 fi
8599
8600
8601
8602
8603
8604
8605
8606 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8607 do
8608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8609 echo "$as_me:$LINENO: checking for $ac_func" >&5
8610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8611 if eval "test \"\${$as_ac_var+set}\" = set"; then
8612   echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614   cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h.  */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h.  */
8620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8622 #define $ac_func innocuous_$ac_func
8623
8624 /* System header to define __stub macros and hopefully few prototypes,
8625     which can conflict with char $ac_func (); below.
8626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8627     <limits.h> exists even on freestanding compilers.  */
8628
8629 #ifdef __STDC__
8630 # include <limits.h>
8631 #else
8632 # include <assert.h>
8633 #endif
8634
8635 #undef $ac_func
8636
8637 /* Override any gcc2 internal prototype to avoid an error.  */
8638 #ifdef __cplusplus
8639 extern "C"
8640 {
8641 #endif
8642 /* We use char because int might match the return type of a gcc2
8643    builtin and then its argument prototype would still apply.  */
8644 char $ac_func ();
8645 /* The GNU C library defines this for functions which it implements
8646     to always fail with ENOSYS.  Some functions are actually named
8647     something starting with __ and the normal name is an alias.  */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649 choke me
8650 #else
8651 char (*f) () = $ac_func;
8652 #endif
8653 #ifdef __cplusplus
8654 }
8655 #endif
8656
8657 int
8658 main ()
8659 {
8660 return f != $ac_func;
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } &&
8674          { ac_try='test -z "$ac_c_werror_flag"
8675                          || test ! -s conftest.err'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; } &&
8681          { ac_try='test -s conftest$ac_exeext'
8682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683   (eval $ac_try) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; }; then
8687   eval "$as_ac_var=yes"
8688 else
8689   echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 eval "$as_ac_var=no"
8693 fi
8694 rm -f conftest.err conftest.$ac_objext \
8695       conftest$ac_exeext conftest.$ac_ext
8696 fi
8697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8699 if test `eval echo '${'$as_ac_var'}'` = yes; then
8700   cat >>confdefs.h <<_ACEOF
8701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8702 _ACEOF
8703
8704 fi
8705 done
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8735                   stdio.h unistd.h
8736 do
8737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739   echo "$as_me:$LINENO: checking for $ac_header" >&5
8740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 fi
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8746 else
8747   # Is the header compilable?
8748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h.  */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h.  */
8756 $ac_includes_default
8757 #include <$ac_header>
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761   (eval $ac_compile) 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -z "$ac_c_werror_flag"
8769                          || test ! -s conftest.err'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; } &&
8775          { ac_try='test -s conftest.$ac_objext'
8776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777   (eval $ac_try) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; }; then
8781   ac_header_compiler=yes
8782 else
8783   echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8785
8786 ac_header_compiler=no
8787 fi
8788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8790 echo "${ECHO_T}$ac_header_compiler" >&6
8791
8792 # Is the header present?
8793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801 #include <$ac_header>
8802 _ACEOF
8803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8805   ac_status=$?
8806   grep -v '^ *+' conftest.er1 >conftest.err
8807   rm -f conftest.er1
8808   cat conftest.err >&5
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); } >/dev/null; then
8811   if test -s conftest.err; then
8812     ac_cpp_err=$ac_c_preproc_warn_flag
8813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8814   else
8815     ac_cpp_err=
8816   fi
8817 else
8818   ac_cpp_err=yes
8819 fi
8820 if test -z "$ac_cpp_err"; then
8821   ac_header_preproc=yes
8822 else
8823   echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8825
8826   ac_header_preproc=no
8827 fi
8828 rm -f conftest.err conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8830 echo "${ECHO_T}$ac_header_preproc" >&6
8831
8832 # So?  What about this header?
8833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8834   yes:no: )
8835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8839     ac_header_preproc=yes
8840     ;;
8841   no:yes:* )
8842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8854     (
8855       cat <<\_ASBOX
8856 ## ----------------------------------- ##
8857 ## Report this to llvmbugs@cs.uiuc.edu ##
8858 ## ----------------------------------- ##
8859 _ASBOX
8860     ) |
8861       sed "s/^/$as_me: WARNING:     /" >&2
8862     ;;
8863 esac
8864 echo "$as_me:$LINENO: checking for $ac_header" >&5
8865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8867   echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869   eval "$as_ac_Header=\$ac_header_preproc"
8870 fi
8871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8873
8874 fi
8875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8876   cat >>confdefs.h <<_ACEOF
8877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8878 _ACEOF
8879
8880 fi
8881
8882 done
8883
8884
8885
8886
8887
8888 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8889 do
8890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892   echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 fi
8897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899 else
8900   # Is the header compilable?
8901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909 $ac_includes_default
8910 #include <$ac_header>
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914   (eval $ac_compile) 2>conftest.er1
8915   ac_status=$?
8916   grep -v '^ *+' conftest.er1 >conftest.err
8917   rm -f conftest.er1
8918   cat conftest.err >&5
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); } &&
8921          { ac_try='test -z "$ac_c_werror_flag"
8922                          || test ! -s conftest.err'
8923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924   (eval $ac_try) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; } &&
8928          { ac_try='test -s conftest.$ac_objext'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; }; then
8934   ac_header_compiler=yes
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 ac_header_compiler=no
8940 fi
8941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943 echo "${ECHO_T}$ac_header_compiler" >&6
8944
8945 # Is the header present?
8946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954 #include <$ac_header>
8955 _ACEOF
8956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8958   ac_status=$?
8959   grep -v '^ *+' conftest.er1 >conftest.err
8960   rm -f conftest.er1
8961   cat conftest.err >&5
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); } >/dev/null; then
8964   if test -s conftest.err; then
8965     ac_cpp_err=$ac_c_preproc_warn_flag
8966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8967   else
8968     ac_cpp_err=
8969   fi
8970 else
8971   ac_cpp_err=yes
8972 fi
8973 if test -z "$ac_cpp_err"; then
8974   ac_header_preproc=yes
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979   ac_header_preproc=no
8980 fi
8981 rm -f conftest.err conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983 echo "${ECHO_T}$ac_header_preproc" >&6
8984
8985 # So?  What about this header?
8986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8987   yes:no: )
8988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8992     ac_header_preproc=yes
8993     ;;
8994   no:yes:* )
8995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9007     (
9008       cat <<\_ASBOX
9009 ## ----------------------------------- ##
9010 ## Report this to llvmbugs@cs.uiuc.edu ##
9011 ## ----------------------------------- ##
9012 _ASBOX
9013     ) |
9014       sed "s/^/$as_me: WARNING:     /" >&2
9015     ;;
9016 esac
9017 echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   eval "$as_ac_Header=\$ac_header_preproc"
9023 fi
9024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9026
9027 fi
9028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029   cat >>confdefs.h <<_ACEOF
9030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 _ACEOF
9032
9033 fi
9034
9035 done
9036
9037
9038
9039 for ac_header in string.h strings.h
9040 do
9041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043   echo "$as_me:$LINENO: checking for $ac_header" >&5
9044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 fi
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 else
9051   # Is the header compilable?
9052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060 $ac_includes_default
9061 #include <$ac_header>
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065   (eval $ac_compile) 2>conftest.er1
9066   ac_status=$?
9067   grep -v '^ *+' conftest.er1 >conftest.err
9068   rm -f conftest.er1
9069   cat conftest.err >&5
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -z "$ac_c_werror_flag"
9073                          || test ! -s conftest.err'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; } &&
9079          { ac_try='test -s conftest.$ac_objext'
9080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081   (eval $ac_try) 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; }; then
9085   ac_header_compiler=yes
9086 else
9087   echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9089
9090 ac_header_compiler=no
9091 fi
9092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6
9095
9096 # Is the header present?
9097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105 #include <$ac_header>
9106 _ACEOF
9107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9109   ac_status=$?
9110   grep -v '^ *+' conftest.er1 >conftest.err
9111   rm -f conftest.er1
9112   cat conftest.err >&5
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); } >/dev/null; then
9115   if test -s conftest.err; then
9116     ac_cpp_err=$ac_c_preproc_warn_flag
9117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9118   else
9119     ac_cpp_err=
9120   fi
9121 else
9122   ac_cpp_err=yes
9123 fi
9124 if test -z "$ac_cpp_err"; then
9125   ac_header_preproc=yes
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130   ac_header_preproc=no
9131 fi
9132 rm -f conftest.err conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9134 echo "${ECHO_T}$ac_header_preproc" >&6
9135
9136 # So?  What about this header?
9137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138   yes:no: )
9139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9143     ac_header_preproc=yes
9144     ;;
9145   no:yes:* )
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9158     (
9159       cat <<\_ASBOX
9160 ## ----------------------------------- ##
9161 ## Report this to llvmbugs@cs.uiuc.edu ##
9162 ## ----------------------------------- ##
9163 _ASBOX
9164     ) |
9165       sed "s/^/$as_me: WARNING:     /" >&2
9166     ;;
9167 esac
9168 echo "$as_me:$LINENO: checking for $ac_header" >&5
9169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   eval "$as_ac_Header=\$ac_header_preproc"
9174 fi
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177
9178 fi
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180   cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 _ACEOF
9183  break
9184 fi
9185
9186 done
9187
9188
9189
9190
9191 for ac_func in strchr index
9192 do
9193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9194 echo "$as_me:$LINENO: checking for $ac_func" >&5
9195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9196 if eval "test \"\${$as_ac_var+set}\" = set"; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h.  */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h.  */
9205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9207 #define $ac_func innocuous_$ac_func
9208
9209 /* System header to define __stub macros and hopefully few prototypes,
9210     which can conflict with char $ac_func (); below.
9211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212     <limits.h> exists even on freestanding compilers.  */
9213
9214 #ifdef __STDC__
9215 # include <limits.h>
9216 #else
9217 # include <assert.h>
9218 #endif
9219
9220 #undef $ac_func
9221
9222 /* Override any gcc2 internal prototype to avoid an error.  */
9223 #ifdef __cplusplus
9224 extern "C"
9225 {
9226 #endif
9227 /* We use char because int might match the return type of a gcc2
9228    builtin and then its argument prototype would still apply.  */
9229 char $ac_func ();
9230 /* The GNU C library defines this for functions which it implements
9231     to always fail with ENOSYS.  Some functions are actually named
9232     something starting with __ and the normal name is an alias.  */
9233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9234 choke me
9235 #else
9236 char (*f) () = $ac_func;
9237 #endif
9238 #ifdef __cplusplus
9239 }
9240 #endif
9241
9242 int
9243 main ()
9244 {
9245 return f != $ac_func;
9246   ;
9247   return 0;
9248 }
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252   (eval $ac_link) 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag"
9260                          || test ! -s conftest.err'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; } &&
9266          { ac_try='test -s conftest$ac_exeext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   eval "$as_ac_var=yes"
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 eval "$as_ac_var=no"
9278 fi
9279 rm -f conftest.err conftest.$ac_objext \
9280       conftest$ac_exeext conftest.$ac_ext
9281 fi
9282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9284 if test `eval echo '${'$as_ac_var'}'` = yes; then
9285   cat >>confdefs.h <<_ACEOF
9286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9287 _ACEOF
9288  break
9289 fi
9290 done
9291
9292
9293
9294 for ac_func in strrchr rindex
9295 do
9296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9297 echo "$as_me:$LINENO: checking for $ac_func" >&5
9298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9299 if eval "test \"\${$as_ac_var+set}\" = set"; then
9300   echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302   cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9310 #define $ac_func innocuous_$ac_func
9311
9312 /* System header to define __stub macros and hopefully few prototypes,
9313     which can conflict with char $ac_func (); below.
9314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9315     <limits.h> exists even on freestanding compilers.  */
9316
9317 #ifdef __STDC__
9318 # include <limits.h>
9319 #else
9320 # include <assert.h>
9321 #endif
9322
9323 #undef $ac_func
9324
9325 /* Override any gcc2 internal prototype to avoid an error.  */
9326 #ifdef __cplusplus
9327 extern "C"
9328 {
9329 #endif
9330 /* We use char because int might match the return type of a gcc2
9331    builtin and then its argument prototype would still apply.  */
9332 char $ac_func ();
9333 /* The GNU C library defines this for functions which it implements
9334     to always fail with ENOSYS.  Some functions are actually named
9335     something starting with __ and the normal name is an alias.  */
9336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9337 choke me
9338 #else
9339 char (*f) () = $ac_func;
9340 #endif
9341 #ifdef __cplusplus
9342 }
9343 #endif
9344
9345 int
9346 main ()
9347 {
9348 return f != $ac_func;
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355   (eval $ac_link) 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } &&
9362          { ac_try='test -z "$ac_c_werror_flag"
9363                          || test ! -s conftest.err'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; } &&
9369          { ac_try='test -s conftest$ac_exeext'
9370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371   (eval $ac_try) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; }; then
9375   eval "$as_ac_var=yes"
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 eval "$as_ac_var=no"
9381 fi
9382 rm -f conftest.err conftest.$ac_objext \
9383       conftest$ac_exeext conftest.$ac_ext
9384 fi
9385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9387 if test `eval echo '${'$as_ac_var'}'` = yes; then
9388   cat >>confdefs.h <<_ACEOF
9389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9390 _ACEOF
9391  break
9392 fi
9393 done
9394
9395
9396
9397 for ac_func in memcpy bcopy
9398 do
9399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9400 echo "$as_me:$LINENO: checking for $ac_func" >&5
9401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9402 if eval "test \"\${$as_ac_var+set}\" = set"; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405   cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9413 #define $ac_func innocuous_$ac_func
9414
9415 /* System header to define __stub macros and hopefully few prototypes,
9416     which can conflict with char $ac_func (); below.
9417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9418     <limits.h> exists even on freestanding compilers.  */
9419
9420 #ifdef __STDC__
9421 # include <limits.h>
9422 #else
9423 # include <assert.h>
9424 #endif
9425
9426 #undef $ac_func
9427
9428 /* Override any gcc2 internal prototype to avoid an error.  */
9429 #ifdef __cplusplus
9430 extern "C"
9431 {
9432 #endif
9433 /* We use char because int might match the return type of a gcc2
9434    builtin and then its argument prototype would still apply.  */
9435 char $ac_func ();
9436 /* The GNU C library defines this for functions which it implements
9437     to always fail with ENOSYS.  Some functions are actually named
9438     something starting with __ and the normal name is an alias.  */
9439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9440 choke me
9441 #else
9442 char (*f) () = $ac_func;
9443 #endif
9444 #ifdef __cplusplus
9445 }
9446 #endif
9447
9448 int
9449 main ()
9450 {
9451 return f != $ac_func;
9452   ;
9453   return 0;
9454 }
9455 _ACEOF
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458   (eval $ac_link) 2>conftest.er1
9459   ac_status=$?
9460   grep -v '^ *+' conftest.er1 >conftest.err
9461   rm -f conftest.er1
9462   cat conftest.err >&5
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); } &&
9465          { ac_try='test -z "$ac_c_werror_flag"
9466                          || test ! -s conftest.err'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; } &&
9472          { ac_try='test -s conftest$ac_exeext'
9473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474   (eval $ac_try) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); }; }; then
9478   eval "$as_ac_var=yes"
9479 else
9480   echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 eval "$as_ac_var=no"
9484 fi
9485 rm -f conftest.err conftest.$ac_objext \
9486       conftest$ac_exeext conftest.$ac_ext
9487 fi
9488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9490 if test `eval echo '${'$as_ac_var'}'` = yes; then
9491   cat >>confdefs.h <<_ACEOF
9492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9493 _ACEOF
9494  break
9495 fi
9496 done
9497
9498
9499
9500 for ac_func in memmove strcmp
9501 do
9502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9503 echo "$as_me:$LINENO: checking for $ac_func" >&5
9504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9505 if eval "test \"\${$as_ac_var+set}\" = set"; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h.  */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h.  */
9514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9516 #define $ac_func innocuous_$ac_func
9517
9518 /* System header to define __stub macros and hopefully few prototypes,
9519     which can conflict with char $ac_func (); below.
9520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9521     <limits.h> exists even on freestanding compilers.  */
9522
9523 #ifdef __STDC__
9524 # include <limits.h>
9525 #else
9526 # include <assert.h>
9527 #endif
9528
9529 #undef $ac_func
9530
9531 /* Override any gcc2 internal prototype to avoid an error.  */
9532 #ifdef __cplusplus
9533 extern "C"
9534 {
9535 #endif
9536 /* We use char because int might match the return type of a gcc2
9537    builtin and then its argument prototype would still apply.  */
9538 char $ac_func ();
9539 /* The GNU C library defines this for functions which it implements
9540     to always fail with ENOSYS.  Some functions are actually named
9541     something starting with __ and the normal name is an alias.  */
9542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9543 choke me
9544 #else
9545 char (*f) () = $ac_func;
9546 #endif
9547 #ifdef __cplusplus
9548 }
9549 #endif
9550
9551 int
9552 main ()
9553 {
9554 return f != $ac_func;
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561   (eval $ac_link) 2>conftest.er1
9562   ac_status=$?
9563   grep -v '^ *+' conftest.er1 >conftest.err
9564   rm -f conftest.er1
9565   cat conftest.err >&5
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); } &&
9568          { ac_try='test -z "$ac_c_werror_flag"
9569                          || test ! -s conftest.err'
9570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571   (eval $ac_try) 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); }; } &&
9575          { ac_try='test -s conftest$ac_exeext'
9576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577   (eval $ac_try) 2>&5
9578   ac_status=$?
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); }; }; then
9581   eval "$as_ac_var=yes"
9582 else
9583   echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586 eval "$as_ac_var=no"
9587 fi
9588 rm -f conftest.err conftest.$ac_objext \
9589       conftest$ac_exeext conftest.$ac_ext
9590 fi
9591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9593 if test `eval echo '${'$as_ac_var'}'` = yes; then
9594   cat >>confdefs.h <<_ACEOF
9595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9596 _ACEOF
9597
9598 fi
9599 done
9600
9601
9602
9603
9604 for ac_func in closedir opendir readdir
9605 do
9606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9607 echo "$as_me:$LINENO: checking for $ac_func" >&5
9608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9609 if eval "test \"\${$as_ac_var+set}\" = set"; then
9610   echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612   cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9620 #define $ac_func innocuous_$ac_func
9621
9622 /* System header to define __stub macros and hopefully few prototypes,
9623     which can conflict with char $ac_func (); below.
9624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9625     <limits.h> exists even on freestanding compilers.  */
9626
9627 #ifdef __STDC__
9628 # include <limits.h>
9629 #else
9630 # include <assert.h>
9631 #endif
9632
9633 #undef $ac_func
9634
9635 /* Override any gcc2 internal prototype to avoid an error.  */
9636 #ifdef __cplusplus
9637 extern "C"
9638 {
9639 #endif
9640 /* We use char because int might match the return type of a gcc2
9641    builtin and then its argument prototype would still apply.  */
9642 char $ac_func ();
9643 /* The GNU C library defines this for functions which it implements
9644     to always fail with ENOSYS.  Some functions are actually named
9645     something starting with __ and the normal name is an alias.  */
9646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9647 choke me
9648 #else
9649 char (*f) () = $ac_func;
9650 #endif
9651 #ifdef __cplusplus
9652 }
9653 #endif
9654
9655 int
9656 main ()
9657 {
9658 return f != $ac_func;
9659   ;
9660   return 0;
9661 }
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665   (eval $ac_link) 2>conftest.er1
9666   ac_status=$?
9667   grep -v '^ *+' conftest.er1 >conftest.err
9668   rm -f conftest.er1
9669   cat conftest.err >&5
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } &&
9672          { ac_try='test -z "$ac_c_werror_flag"
9673                          || test ! -s conftest.err'
9674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675   (eval $ac_try) 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; } &&
9679          { ac_try='test -s conftest$ac_exeext'
9680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681   (eval $ac_try) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; }; then
9685   eval "$as_ac_var=yes"
9686 else
9687   echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9689
9690 eval "$as_ac_var=no"
9691 fi
9692 rm -f conftest.err conftest.$ac_objext \
9693       conftest$ac_exeext conftest.$ac_ext
9694 fi
9695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9697 if test `eval echo '${'$as_ac_var'}'` = yes; then
9698   cat >>confdefs.h <<_ACEOF
9699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9700 _ACEOF
9701
9702 fi
9703 done
9704
9705
9706 # Check whether --enable-shared or --disable-shared was given.
9707 if test "${enable_shared+set}" = set; then
9708   enableval="$enable_shared"
9709   p=${PACKAGE-default}
9710     case $enableval in
9711     yes) enable_shared=yes ;;
9712     no) enable_shared=no ;;
9713     *)
9714       enable_shared=no
9715       # Look at the argument we got.  We use all the common list separators.
9716       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9717       for pkg in $enableval; do
9718         IFS="$lt_save_ifs"
9719         if test "X$pkg" = "X$p"; then
9720           enable_shared=yes
9721         fi
9722       done
9723       IFS="$lt_save_ifs"
9724       ;;
9725     esac
9726 else
9727   enable_shared=yes
9728 fi;
9729
9730 # Check whether --enable-static or --disable-static was given.
9731 if test "${enable_static+set}" = set; then
9732   enableval="$enable_static"
9733   p=${PACKAGE-default}
9734     case $enableval in
9735     yes) enable_static=yes ;;
9736     no) enable_static=no ;;
9737     *)
9738      enable_static=no
9739       # Look at the argument we got.  We use all the common list separators.
9740       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9741       for pkg in $enableval; do
9742         IFS="$lt_save_ifs"
9743         if test "X$pkg" = "X$p"; then
9744           enable_static=yes
9745         fi
9746       done
9747       IFS="$lt_save_ifs"
9748       ;;
9749     esac
9750 else
9751   enable_static=yes
9752 fi;
9753
9754 # Check whether --enable-fast-install or --disable-fast-install was given.
9755 if test "${enable_fast_install+set}" = set; then
9756   enableval="$enable_fast_install"
9757   p=${PACKAGE-default}
9758     case $enableval in
9759     yes) enable_fast_install=yes ;;
9760     no) enable_fast_install=no ;;
9761     *)
9762       enable_fast_install=no
9763       # Look at the argument we got.  We use all the common list separators.
9764       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9765       for pkg in $enableval; do
9766         IFS="$lt_save_ifs"
9767         if test "X$pkg" = "X$p"; then
9768           enable_fast_install=yes
9769         fi
9770       done
9771       IFS="$lt_save_ifs"
9772       ;;
9773     esac
9774 else
9775   enable_fast_install=yes
9776 fi;
9777
9778 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9779 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9780 if test "${lt_cv_path_SED+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   # Loop through the user's path and test for sed and gsed.
9784 # Then use that list of sed's as ones to test for truncation.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9787 do
9788   IFS=$as_save_IFS
9789   test -z "$as_dir" && as_dir=.
9790   for lt_ac_prog in sed gsed; do
9791     for ac_exec_ext in '' $ac_executable_extensions; do
9792       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9793         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9794       fi
9795     done
9796   done
9797 done
9798 lt_ac_max=0
9799 lt_ac_count=0
9800 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9801 # along with /bin/sed that truncates output.
9802 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9803   test ! -f $lt_ac_sed && break
9804   cat /dev/null > conftest.in
9805   lt_ac_count=0
9806   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9807   # Check for GNU sed and select it if it is found.
9808   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9809     lt_cv_path_SED=$lt_ac_sed
9810     break
9811   fi
9812   while true; do
9813     cat conftest.in conftest.in >conftest.tmp
9814     mv conftest.tmp conftest.in
9815     cp conftest.in conftest.nl
9816     echo >>conftest.nl
9817     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9818     cmp -s conftest.out conftest.nl || break
9819     # 10000 chars as input seems more than enough
9820     test $lt_ac_count -gt 10 && break
9821     lt_ac_count=`expr $lt_ac_count + 1`
9822     if test $lt_ac_count -gt $lt_ac_max; then
9823       lt_ac_max=$lt_ac_count
9824       lt_cv_path_SED=$lt_ac_sed
9825     fi
9826   done
9827 done
9828
9829 fi
9830
9831 SED=$lt_cv_path_SED
9832 echo "$as_me:$LINENO: result: $SED" >&5
9833 echo "${ECHO_T}$SED" >&6
9834
9835
9836 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9837 if test "${with_gnu_ld+set}" = set; then
9838   withval="$with_gnu_ld"
9839   test "$withval" = no || with_gnu_ld=yes
9840 else
9841   with_gnu_ld=no
9842 fi;
9843 ac_prog=ld
9844 if test "$GCC" = yes; then
9845   # Check if gcc -print-prog-name=ld gives a path.
9846   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9847 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9848   case $host in
9849   *-*-mingw*)
9850     # gcc leaves a trailing carriage return which upsets mingw
9851     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9852   *)
9853     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9854   esac
9855   case $ac_prog in
9856     # Accept absolute paths.
9857     [\\/]* | ?:[\\/]*)
9858       re_direlt='/[^/][^/]*/\.\./'
9859       # Canonicalize the pathname of ld
9860       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9861       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9862         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9863       done
9864       test -z "$LD" && LD="$ac_prog"
9865       ;;
9866   "")
9867     # If it fails, then pretend we aren't using GCC.
9868     ac_prog=ld
9869     ;;
9870   *)
9871     # If it is relative, then search for the first ld in PATH.
9872     with_gnu_ld=unknown
9873     ;;
9874   esac
9875 elif test "$with_gnu_ld" = yes; then
9876   echo "$as_me:$LINENO: checking for GNU ld" >&5
9877 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9878 else
9879   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9880 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9881 fi
9882 if test "${lt_cv_path_LD+set}" = set; then
9883   echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885   if test -z "$LD"; then
9886   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9887   for ac_dir in $PATH; do
9888     IFS="$lt_save_ifs"
9889     test -z "$ac_dir" && ac_dir=.
9890     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9891       lt_cv_path_LD="$ac_dir/$ac_prog"
9892       # Check to see if the program is GNU ld.  I'd rather use --version,
9893       # but apparently some GNU ld's only accept -v.
9894       # Break only if it was the GNU/non-GNU ld that we prefer.
9895       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9896       *GNU* | *'with BFD'*)
9897         test "$with_gnu_ld" != no && break
9898         ;;
9899       *)
9900         test "$with_gnu_ld" != yes && break
9901         ;;
9902       esac
9903     fi
9904   done
9905   IFS="$lt_save_ifs"
9906 else
9907   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9908 fi
9909 fi
9910
9911 LD="$lt_cv_path_LD"
9912 if test -n "$LD"; then
9913   echo "$as_me:$LINENO: result: $LD" >&5
9914 echo "${ECHO_T}$LD" >&6
9915 else
9916   echo "$as_me:$LINENO: result: no" >&5
9917 echo "${ECHO_T}no" >&6
9918 fi
9919 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9920 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9921    { (exit 1); exit 1; }; }
9922 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9923 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9924 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9928 case `$LD -v 2>&1 </dev/null` in
9929 *GNU* | *'with BFD'*)
9930   lt_cv_prog_gnu_ld=yes
9931   ;;
9932 *)
9933   lt_cv_prog_gnu_ld=no
9934   ;;
9935 esac
9936 fi
9937 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9938 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9939 with_gnu_ld=$lt_cv_prog_gnu_ld
9940
9941
9942 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9943 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9944 if test "${lt_cv_ld_reload_flag+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947   lt_cv_ld_reload_flag='-r'
9948 fi
9949 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9950 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9951 reload_flag=$lt_cv_ld_reload_flag
9952 case $reload_flag in
9953 "" | " "*) ;;
9954 *) reload_flag=" $reload_flag" ;;
9955 esac
9956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9957 case $host_os in
9958   darwin*)
9959     if test "$GCC" = yes; then
9960       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9961     else
9962       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9963     fi
9964     ;;
9965 esac
9966
9967 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9968 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9969 if test "${lt_cv_deplibs_check_method+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   lt_cv_file_magic_cmd='$MAGIC_CMD'
9973 lt_cv_file_magic_test_file=
9974 lt_cv_deplibs_check_method='unknown'
9975 # Need to set the preceding variable on all platforms that support
9976 # interlibrary dependencies.
9977 # 'none' -- dependencies not supported.
9978 # `unknown' -- same as none, but documents that we really don't know.
9979 # 'pass_all' -- all dependencies passed with no checks.
9980 # 'test_compile' -- check by making test program.
9981 # 'file_magic [[regex]]' -- check by looking for files in library path
9982 # which responds to the $file_magic_cmd with a given extended regex.
9983 # If you have `file' or equivalent on your system and you're not sure
9984 # whether `pass_all' will *always* work, you probably want this one.
9985
9986 case $host_os in
9987 aix4* | aix5*)
9988   lt_cv_deplibs_check_method=pass_all
9989   ;;
9990
9991 beos*)
9992   lt_cv_deplibs_check_method=pass_all
9993   ;;
9994
9995 bsdi[45]*)
9996   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9997   lt_cv_file_magic_cmd='/usr/bin/file -L'
9998   lt_cv_file_magic_test_file=/shlib/libc.so
9999   ;;
10000
10001 cygwin*)
10002   # func_win32_libid is a shell function defined in ltmain.sh
10003   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10004   lt_cv_file_magic_cmd='func_win32_libid'
10005   ;;
10006
10007 mingw* | pw32*)
10008   # Base MSYS/MinGW do not provide the 'file' command needed by
10009   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10010   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10011   lt_cv_file_magic_cmd='$OBJDUMP -f'
10012   ;;
10013
10014 darwin* | rhapsody*)
10015   lt_cv_deplibs_check_method=pass_all
10016   ;;
10017
10018 freebsd* | kfreebsd*-gnu)
10019   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10020     case $host_cpu in
10021     i*86 )
10022       # Not sure whether the presence of OpenBSD here was a mistake.
10023       # Let's accept both of them until this is cleared up.
10024       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10025       lt_cv_file_magic_cmd=/usr/bin/file
10026       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10027       ;;
10028     esac
10029   else
10030     lt_cv_deplibs_check_method=pass_all
10031   fi
10032   ;;
10033
10034 gnu*)
10035   lt_cv_deplibs_check_method=pass_all
10036   ;;
10037
10038 hpux10.20* | hpux11*)
10039   lt_cv_file_magic_cmd=/usr/bin/file
10040   case "$host_cpu" in
10041   ia64*)
10042     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10043     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10044     ;;
10045   hppa*64*)
10046     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]'
10047     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10048     ;;
10049   *)
10050     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10051     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10052     ;;
10053   esac
10054   ;;
10055
10056 irix5* | irix6* | nonstopux*)
10057   case $LD in
10058   *-32|*"-32 ") libmagic=32-bit;;
10059   *-n32|*"-n32 ") libmagic=N32;;
10060   *-64|*"-64 ") libmagic=64-bit;;
10061   *) libmagic=never-match;;
10062   esac
10063   lt_cv_deplibs_check_method=pass_all
10064   ;;
10065
10066 # This must be Linux ELF.
10067 linux*)
10068   lt_cv_deplibs_check_method=pass_all
10069   ;;
10070
10071 netbsd*)
10072   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10074   else
10075     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10076   fi
10077   ;;
10078
10079 newos6*)
10080   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10081   lt_cv_file_magic_cmd=/usr/bin/file
10082   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10083   ;;
10084
10085 nto-qnx*)
10086   lt_cv_deplibs_check_method=unknown
10087   ;;
10088
10089 openbsd*)
10090   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10092   else
10093     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10094   fi
10095   ;;
10096
10097 osf3* | osf4* | osf5*)
10098   lt_cv_deplibs_check_method=pass_all
10099   ;;
10100
10101 sco3.2v5*)
10102   lt_cv_deplibs_check_method=pass_all
10103   ;;
10104
10105 solaris*)
10106   lt_cv_deplibs_check_method=pass_all
10107   ;;
10108
10109 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10110   case $host_vendor in
10111   motorola)
10112     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]'
10113     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10114     ;;
10115   ncr)
10116     lt_cv_deplibs_check_method=pass_all
10117     ;;
10118   sequent)
10119     lt_cv_file_magic_cmd='/bin/file'
10120     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10121     ;;
10122   sni)
10123     lt_cv_file_magic_cmd='/bin/file'
10124     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10125     lt_cv_file_magic_test_file=/lib/libc.so
10126     ;;
10127   siemens)
10128     lt_cv_deplibs_check_method=pass_all
10129     ;;
10130   esac
10131   ;;
10132
10133 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10134   lt_cv_deplibs_check_method=pass_all
10135   ;;
10136 esac
10137
10138 fi
10139 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10140 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10141 file_magic_cmd=$lt_cv_file_magic_cmd
10142 deplibs_check_method=$lt_cv_deplibs_check_method
10143 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10144
10145
10146
10147 # If no C compiler was specified, use CC.
10148 LTCC=${LTCC-"$CC"}
10149
10150 # Allow CC to be a program name with arguments.
10151 compiler=$CC
10152
10153 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10154 if test "${enable_libtool_lock+set}" = set; then
10155   enableval="$enable_libtool_lock"
10156
10157 fi;
10158 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10159
10160 # Some flags need to be propagated to the compiler or linker for good
10161 # libtool support.
10162 case $host in
10163 ia64-*-hpux*)
10164   # Find out which ABI we are using.
10165   echo 'int i;' > conftest.$ac_ext
10166   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167   (eval $ac_compile) 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); }; then
10171     case `/usr/bin/file conftest.$ac_objext` in
10172     *ELF-32*)
10173       HPUX_IA64_MODE="32"
10174       ;;
10175     *ELF-64*)
10176       HPUX_IA64_MODE="64"
10177       ;;
10178     esac
10179   fi
10180   rm -rf conftest*
10181   ;;
10182 *-*-irix6*)
10183   # Find out which ABI we are using.
10184   echo '#line 10184 "configure"' > conftest.$ac_ext
10185   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186   (eval $ac_compile) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; then
10190    if test "$lt_cv_prog_gnu_ld" = yes; then
10191     case `/usr/bin/file conftest.$ac_objext` in
10192     *32-bit*)
10193       LD="${LD-ld} -melf32bsmip"
10194       ;;
10195     *N32*)
10196       LD="${LD-ld} -melf32bmipn32"
10197       ;;
10198     *64-bit*)
10199       LD="${LD-ld} -melf64bmip"
10200       ;;
10201     esac
10202    else
10203     case `/usr/bin/file conftest.$ac_objext` in
10204     *32-bit*)
10205       LD="${LD-ld} -32"
10206       ;;
10207     *N32*)
10208       LD="${LD-ld} -n32"
10209       ;;
10210     *64-bit*)
10211       LD="${LD-ld} -64"
10212       ;;
10213     esac
10214    fi
10215   fi
10216   rm -rf conftest*
10217   ;;
10218
10219 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10220   # Find out which ABI we are using.
10221   echo 'int i;' > conftest.$ac_ext
10222   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223   (eval $ac_compile) 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); }; then
10227     case "`/usr/bin/file conftest.o`" in
10228     *32-bit*)
10229       case $host in
10230         x86_64-*linux*)
10231           LD="${LD-ld} -m elf_i386"
10232           ;;
10233         ppc64-*linux*|powerpc64-*linux*)
10234           LD="${LD-ld} -m elf32ppclinux"
10235           ;;
10236         s390x-*linux*)
10237           LD="${LD-ld} -m elf_s390"
10238           ;;
10239         sparc64-*linux*)
10240           LD="${LD-ld} -m elf32_sparc"
10241           ;;
10242       esac
10243       ;;
10244     *64-bit*)
10245       case $host in
10246         x86_64-*linux*)
10247           LD="${LD-ld} -m elf_x86_64"
10248           ;;
10249         ppc*-*linux*|powerpc*-*linux*)
10250           LD="${LD-ld} -m elf64ppc"
10251           ;;
10252         s390*-*linux*)
10253           LD="${LD-ld} -m elf64_s390"
10254           ;;
10255         sparc*-*linux*)
10256           LD="${LD-ld} -m elf64_sparc"
10257           ;;
10258       esac
10259       ;;
10260     esac
10261   fi
10262   rm -rf conftest*
10263   ;;
10264
10265 *-*-sco3.2v5*)
10266   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10267   SAVE_CFLAGS="$CFLAGS"
10268   CFLAGS="$CFLAGS -belf"
10269   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10270 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10271 if test "${lt_cv_cc_needs_belf+set}" = set; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274   ac_ext=c
10275 ac_cpp='$CPP $CPPFLAGS'
10276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10279
10280      cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290   (eval $ac_link) 2>conftest.er1
10291   ac_status=$?
10292   grep -v '^ *+' conftest.er1 >conftest.err
10293   rm -f conftest.er1
10294   cat conftest.err >&5
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } &&
10297          { ac_try='test -z "$ac_c_werror_flag"
10298                          || test ! -s conftest.err'
10299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300   (eval $ac_try) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; } &&
10304          { ac_try='test -s conftest$ac_exeext'
10305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306   (eval $ac_try) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); }; }; then
10310   lt_cv_cc_needs_belf=yes
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 lt_cv_cc_needs_belf=no
10316 fi
10317 rm -f conftest.err conftest.$ac_objext \
10318       conftest$ac_exeext conftest.$ac_ext
10319      ac_ext=c
10320 ac_cpp='$CPP $CPPFLAGS'
10321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10324
10325 fi
10326 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10327 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10328   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10329     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10330     CFLAGS="$SAVE_CFLAGS"
10331   fi
10332   ;;
10333
10334 esac
10335
10336 need_locks="$enable_libtool_lock"
10337
10338
10339
10340
10341 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10342     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10343     (test "X$CXX" != "Xg++"))) ; then
10344   ac_ext=cc
10345 ac_cpp='$CXXCPP $CPPFLAGS'
10346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10349 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10350 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10351 if test -z "$CXXCPP"; then
10352   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355       # Double quotes because CXXCPP needs to be expanded
10356     for CXXCPP in "$CXX -E" "/lib/cpp"
10357     do
10358       ac_preproc_ok=false
10359 for ac_cxx_preproc_warn_flag in '' yes
10360 do
10361   # Use a header file that comes with gcc, so configuring glibc
10362   # with a fresh cross-compiler works.
10363   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10364   # <limits.h> exists even on freestanding compilers.
10365   # On the NeXT, cc -E runs the code through the compiler's parser,
10366   # not just through cpp. "Syntax error" is here to catch this case.
10367   cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10373 #ifdef __STDC__
10374 # include <limits.h>
10375 #else
10376 # include <assert.h>
10377 #endif
10378                      Syntax error
10379 _ACEOF
10380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } >/dev/null; then
10388   if test -s conftest.err; then
10389     ac_cpp_err=$ac_cxx_preproc_warn_flag
10390     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10391   else
10392     ac_cpp_err=
10393   fi
10394 else
10395   ac_cpp_err=yes
10396 fi
10397 if test -z "$ac_cpp_err"; then
10398   :
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403   # Broken: fails on valid input.
10404 continue
10405 fi
10406 rm -f conftest.err conftest.$ac_ext
10407
10408   # OK, works on sane cases.  Now check whether non-existent headers
10409   # can be detected and how.
10410   cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h.  */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h.  */
10416 #include <ac_nonexistent.h>
10417 _ACEOF
10418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10420   ac_status=$?
10421   grep -v '^ *+' conftest.er1 >conftest.err
10422   rm -f conftest.er1
10423   cat conftest.err >&5
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } >/dev/null; then
10426   if test -s conftest.err; then
10427     ac_cpp_err=$ac_cxx_preproc_warn_flag
10428     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10429   else
10430     ac_cpp_err=
10431   fi
10432 else
10433   ac_cpp_err=yes
10434 fi
10435 if test -z "$ac_cpp_err"; then
10436   # Broken: success on invalid input.
10437 continue
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442   # Passes both tests.
10443 ac_preproc_ok=:
10444 break
10445 fi
10446 rm -f conftest.err conftest.$ac_ext
10447
10448 done
10449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10450 rm -f conftest.err conftest.$ac_ext
10451 if $ac_preproc_ok; then
10452   break
10453 fi
10454
10455     done
10456     ac_cv_prog_CXXCPP=$CXXCPP
10457
10458 fi
10459   CXXCPP=$ac_cv_prog_CXXCPP
10460 else
10461   ac_cv_prog_CXXCPP=$CXXCPP
10462 fi
10463 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10464 echo "${ECHO_T}$CXXCPP" >&6
10465 ac_preproc_ok=false
10466 for ac_cxx_preproc_warn_flag in '' yes
10467 do
10468   # Use a header file that comes with gcc, so configuring glibc
10469   # with a fresh cross-compiler works.
10470   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10471   # <limits.h> exists even on freestanding compilers.
10472   # On the NeXT, cc -E runs the code through the compiler's parser,
10473   # not just through cpp. "Syntax error" is here to catch this case.
10474   cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h.  */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h.  */
10480 #ifdef __STDC__
10481 # include <limits.h>
10482 #else
10483 # include <assert.h>
10484 #endif
10485                      Syntax error
10486 _ACEOF
10487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10489   ac_status=$?
10490   grep -v '^ *+' conftest.er1 >conftest.err
10491   rm -f conftest.er1
10492   cat conftest.err >&5
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); } >/dev/null; then
10495   if test -s conftest.err; then
10496     ac_cpp_err=$ac_cxx_preproc_warn_flag
10497     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10498   else
10499     ac_cpp_err=
10500   fi
10501 else
10502   ac_cpp_err=yes
10503 fi
10504 if test -z "$ac_cpp_err"; then
10505   :
10506 else
10507   echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510   # Broken: fails on valid input.
10511 continue
10512 fi
10513 rm -f conftest.err conftest.$ac_ext
10514
10515   # OK, works on sane cases.  Now check whether non-existent headers
10516   # can be detected and how.
10517   cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523 #include <ac_nonexistent.h>
10524 _ACEOF
10525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } >/dev/null; then
10533   if test -s conftest.err; then
10534     ac_cpp_err=$ac_cxx_preproc_warn_flag
10535     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10536   else
10537     ac_cpp_err=
10538   fi
10539 else
10540   ac_cpp_err=yes
10541 fi
10542 if test -z "$ac_cpp_err"; then
10543   # Broken: success on invalid input.
10544 continue
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549   # Passes both tests.
10550 ac_preproc_ok=:
10551 break
10552 fi
10553 rm -f conftest.err conftest.$ac_ext
10554
10555 done
10556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10557 rm -f conftest.err conftest.$ac_ext
10558 if $ac_preproc_ok; then
10559   :
10560 else
10561   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10562 See \`config.log' for more details." >&5
10563 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10564 See \`config.log' for more details." >&2;}
10565    { (exit 1); exit 1; }; }
10566 fi
10567
10568 ac_ext=cc
10569 ac_cpp='$CXXCPP $CPPFLAGS'
10570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10573
10574 fi
10575
10576
10577 ac_ext=f
10578 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10579 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10581 if test -n "$ac_tool_prefix"; then
10582   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10583   do
10584     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10586 echo "$as_me:$LINENO: checking for $ac_word" >&5
10587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10588 if test "${ac_cv_prog_F77+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   if test -n "$F77"; then
10592   ac_cv_prog_F77="$F77" # Let the user override the test.
10593 else
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10596 do
10597   IFS=$as_save_IFS
10598   test -z "$as_dir" && as_dir=.
10599   for ac_exec_ext in '' $ac_executable_extensions; do
10600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10603     break 2
10604   fi
10605 done
10606 done
10607
10608 fi
10609 fi
10610 F77=$ac_cv_prog_F77
10611 if test -n "$F77"; then
10612   echo "$as_me:$LINENO: result: $F77" >&5
10613 echo "${ECHO_T}$F77" >&6
10614 else
10615   echo "$as_me:$LINENO: result: no" >&5
10616 echo "${ECHO_T}no" >&6
10617 fi
10618
10619     test -n "$F77" && break
10620   done
10621 fi
10622 if test -z "$F77"; then
10623   ac_ct_F77=$F77
10624   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10625 do
10626   # Extract the first word of "$ac_prog", so it can be a program name with args.
10627 set dummy $ac_prog; ac_word=$2
10628 echo "$as_me:$LINENO: checking for $ac_word" >&5
10629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10630 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   if test -n "$ac_ct_F77"; then
10634   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10635 else
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637 for as_dir in $PATH
10638 do
10639   IFS=$as_save_IFS
10640   test -z "$as_dir" && as_dir=.
10641   for ac_exec_ext in '' $ac_executable_extensions; do
10642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10643     ac_cv_prog_ac_ct_F77="$ac_prog"
10644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10645     break 2
10646   fi
10647 done
10648 done
10649
10650 fi
10651 fi
10652 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10653 if test -n "$ac_ct_F77"; then
10654   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10655 echo "${ECHO_T}$ac_ct_F77" >&6
10656 else
10657   echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6
10659 fi
10660
10661   test -n "$ac_ct_F77" && break
10662 done
10663
10664   F77=$ac_ct_F77
10665 fi
10666
10667
10668 # Provide some information about the compiler.
10669 echo "$as_me:10669:" \
10670      "checking for Fortran 77 compiler version" >&5
10671 ac_compiler=`set X $ac_compile; echo $2`
10672 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10673   (eval $ac_compiler --version </dev/null >&5) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }
10677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10678   (eval $ac_compiler -v </dev/null >&5) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }
10682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10683   (eval $ac_compiler -V </dev/null >&5) 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); }
10687 rm -f a.out
10688
10689 # If we don't use `.F' as extension, the preprocessor is not run on the
10690 # input file.  (Note that this only needs to work for GNU compilers.)
10691 ac_save_ext=$ac_ext
10692 ac_ext=F
10693 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10694 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10695 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10696   echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698   cat >conftest.$ac_ext <<_ACEOF
10699       program main
10700 #ifndef __GNUC__
10701        choke me
10702 #endif
10703
10704       end
10705 _ACEOF
10706 rm -f conftest.$ac_objext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10708   (eval $ac_compile) 2>conftest.er1
10709   ac_status=$?
10710   grep -v '^ *+' conftest.er1 >conftest.err
10711   rm -f conftest.er1
10712   cat conftest.err >&5
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); } &&
10715          { ac_try='test -z "$ac_f77_werror_flag"
10716                          || test ! -s conftest.err'
10717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718   (eval $ac_try) 2>&5
10719   ac_status=$?
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); }; } &&
10722          { ac_try='test -s conftest.$ac_objext'
10723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724   (eval $ac_try) 2>&5
10725   ac_status=$?
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); }; }; then
10728   ac_compiler_gnu=yes
10729 else
10730   echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733 ac_compiler_gnu=no
10734 fi
10735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10736 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10737
10738 fi
10739 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10740 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10741 ac_ext=$ac_save_ext
10742 ac_test_FFLAGS=${FFLAGS+set}
10743 ac_save_FFLAGS=$FFLAGS
10744 FFLAGS=
10745 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10746 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10747 if test "${ac_cv_prog_f77_g+set}" = set; then
10748   echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750   FFLAGS=-g
10751 cat >conftest.$ac_ext <<_ACEOF
10752       program main
10753
10754       end
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758   (eval $ac_compile) 2>conftest.er1
10759   ac_status=$?
10760   grep -v '^ *+' conftest.er1 >conftest.err
10761   rm -f conftest.er1
10762   cat conftest.err >&5
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); } &&
10765          { ac_try='test -z "$ac_f77_werror_flag"
10766                          || test ! -s conftest.err'
10767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768   (eval $ac_try) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); }; } &&
10772          { ac_try='test -s conftest.$ac_objext'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; }; then
10778   ac_cv_prog_f77_g=yes
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_cv_prog_f77_g=no
10784 fi
10785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10786
10787 fi
10788 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10789 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10790 if test "$ac_test_FFLAGS" = set; then
10791   FFLAGS=$ac_save_FFLAGS
10792 elif test $ac_cv_prog_f77_g = yes; then
10793   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10794     FFLAGS="-g -O2"
10795   else
10796     FFLAGS="-g"
10797   fi
10798 else
10799   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10800     FFLAGS="-O2"
10801   else
10802     FFLAGS=
10803   fi
10804 fi
10805
10806 G77=`test $ac_compiler_gnu = yes && echo yes`
10807 ac_ext=c
10808 ac_cpp='$CPP $CPPFLAGS'
10809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10812
10813
10814
10815 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10816
10817 # find the maximum length of command line arguments
10818 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10819 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10820 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823     i=0
10824   teststring="ABCD"
10825
10826   case $build_os in
10827   msdosdjgpp*)
10828     # On DJGPP, this test can blow up pretty badly due to problems in libc
10829     # (any single argument exceeding 2000 bytes causes a buffer overrun
10830     # during glob expansion).  Even if it were fixed, the result of this
10831     # check would be larger than it should be.
10832     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10833     ;;
10834
10835   gnu*)
10836     # Under GNU Hurd, this test is not required because there is
10837     # no limit to the length of command line arguments.
10838     # Libtool will interpret -1 as no limit whatsoever
10839     lt_cv_sys_max_cmd_len=-1;
10840     ;;
10841
10842   cygwin* | mingw*)
10843     # On Win9x/ME, this test blows up -- it succeeds, but takes
10844     # about 5 minutes as the teststring grows exponentially.
10845     # Worse, since 9x/ME are not pre-emptively multitasking,
10846     # you end up with a "frozen" computer, even though with patience
10847     # the test eventually succeeds (with a max line length of 256k).
10848     # Instead, let's just punt: use the minimum linelength reported by
10849     # all of the supported platforms: 8192 (on NT/2K/XP).
10850     lt_cv_sys_max_cmd_len=8192;
10851     ;;
10852
10853   amigaos*)
10854     # On AmigaOS with pdksh, this test takes hours, literally.
10855     # So we just punt and use a minimum line length of 8192.
10856     lt_cv_sys_max_cmd_len=8192;
10857     ;;
10858
10859   netbsd* | freebsd* | openbsd* | darwin* )
10860     # This has been around since 386BSD, at least.  Likely further.
10861     if test -x /sbin/sysctl; then
10862       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10863     elif test -x /usr/sbin/sysctl; then
10864       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10865     else
10866       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10867     fi
10868     # And add a safety zone
10869     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10870     ;;
10871
10872  *)
10873     # If test is not a shell built-in, we'll probably end up computing a
10874     # maximum length that is only half of the actual maximum length, but
10875     # we can't tell.
10876     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10877     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10878                = "XX$teststring") >/dev/null 2>&1 &&
10879             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10880             lt_cv_sys_max_cmd_len=$new_result &&
10881             test $i != 17 # 1/2 MB should be enough
10882     do
10883       i=`expr $i + 1`
10884       teststring=$teststring$teststring
10885     done
10886     teststring=
10887     # Add a significant safety factor because C++ compilers can tack on massive
10888     # amounts of additional arguments before passing them to the linker.
10889     # It appears as though 1/2 is a usable value.
10890     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10891     ;;
10892   esac
10893
10894 fi
10895
10896 if test -n $lt_cv_sys_max_cmd_len ; then
10897   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10898 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10899 else
10900   echo "$as_me:$LINENO: result: none" >&5
10901 echo "${ECHO_T}none" >&6
10902 fi
10903
10904
10905
10906
10907 # Check for command to grab the raw symbol name followed by C symbol from nm.
10908 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10909 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10910 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913
10914 # These are sane defaults that work on at least a few old systems.
10915 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10916
10917 # Character class describing NM global symbol codes.
10918 symcode='[BCDEGRST]'
10919
10920 # Regexp to match symbols that can be accessed directly from C.
10921 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10922
10923 # Transform the above into a raw symbol and a C symbol.
10924 symxfrm='\1 \2\3 \3'
10925
10926 # Transform an extracted symbol line into a proper C declaration
10927 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10928
10929 # Transform an extracted symbol line into symbol name and symbol address
10930 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'"
10931
10932 # Define system-specific variables.
10933 case $host_os in
10934 aix*)
10935   symcode='[BCDT]'
10936   ;;
10937 cygwin* | mingw* | pw32*)
10938   symcode='[ABCDGISTW]'
10939   ;;
10940 hpux*) # Its linker distinguishes data from code symbols
10941   if test "$host_cpu" = ia64; then
10942     symcode='[ABCDEGRST]'
10943   fi
10944   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10945   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'"
10946   ;;
10947 linux*)
10948   if test "$host_cpu" = ia64; then
10949     symcode='[ABCDGIRSTW]'
10950     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10951     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'"
10952   fi
10953   ;;
10954 irix* | nonstopux*)
10955   symcode='[BCDEGRST]'
10956   ;;
10957 osf*)
10958   symcode='[BCDEGQRST]'
10959   ;;
10960 solaris* | sysv5*)
10961   symcode='[BDRT]'
10962   ;;
10963 sysv4)
10964   symcode='[DFNSTU]'
10965   ;;
10966 esac
10967
10968 # Handle CRLF in mingw tool chain
10969 opt_cr=
10970 case $build_os in
10971 mingw*)
10972   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10973   ;;
10974 esac
10975
10976 # If we're using GNU nm, then use its standard symbol codes.
10977 case `$NM -V 2>&1` in
10978 *GNU* | *'with BFD'*)
10979   symcode='[ABCDGIRSTW]' ;;
10980 esac
10981
10982 # Try without a prefix undercore, then with it.
10983 for ac_symprfx in "" "_"; do
10984
10985   # Write the raw and C identifiers.
10986   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10987
10988   # Check to see that the pipe works correctly.
10989   pipe_works=no
10990
10991   rm -f conftest*
10992   cat > conftest.$ac_ext <<EOF
10993 #ifdef __cplusplus
10994 extern "C" {
10995 #endif
10996 char nm_test_var;
10997 void nm_test_func(){}
10998 #ifdef __cplusplus
10999 }
11000 #endif
11001 int main(){nm_test_var='a';nm_test_func();return(0);}
11002 EOF
11003
11004   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005   (eval $ac_compile) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; then
11009     # Now try to grab the symbols.
11010     nlist=conftest.nm
11011     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11012   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } && test -s "$nlist"; then
11016       # Try sorting and uniquifying the output.
11017       if sort "$nlist" | uniq > "$nlist"T; then
11018         mv -f "$nlist"T "$nlist"
11019       else
11020         rm -f "$nlist"T
11021       fi
11022
11023       # Make sure that we snagged all the symbols we need.
11024       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11025         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11026           cat <<EOF > conftest.$ac_ext
11027 #ifdef __cplusplus
11028 extern "C" {
11029 #endif
11030
11031 EOF
11032           # Now generate the symbol file.
11033           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11034
11035           cat <<EOF >> conftest.$ac_ext
11036 #if defined (__STDC__) && __STDC__
11037 # define lt_ptr_t void *
11038 #else
11039 # define lt_ptr_t char *
11040 # define const
11041 #endif
11042
11043 /* The mapping between symbol names and symbols. */
11044 const struct {
11045   const char *name;
11046   lt_ptr_t address;
11047 }
11048 lt_preloaded_symbols[] =
11049 {
11050 EOF
11051           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11052           cat <<\EOF >> conftest.$ac_ext
11053   {0, (lt_ptr_t) 0}
11054 };
11055
11056 #ifdef __cplusplus
11057 }
11058 #endif
11059 EOF
11060           # Now try linking the two files.
11061           mv conftest.$ac_objext conftstm.$ac_objext
11062           lt_save_LIBS="$LIBS"
11063           lt_save_CFLAGS="$CFLAGS"
11064           LIBS="conftstm.$ac_objext"
11065           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11066           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067   (eval $ac_link) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11071             pipe_works=yes
11072           fi
11073           LIBS="$lt_save_LIBS"
11074           CFLAGS="$lt_save_CFLAGS"
11075         else
11076           echo "cannot find nm_test_func in $nlist" >&5
11077         fi
11078       else
11079         echo "cannot find nm_test_var in $nlist" >&5
11080       fi
11081     else
11082       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11083     fi
11084   else
11085     echo "$progname: failed program was:" >&5
11086     cat conftest.$ac_ext >&5
11087   fi
11088   rm -f conftest* conftst*
11089
11090   # Do not use the global_symbol_pipe unless it works.
11091   if test "$pipe_works" = yes; then
11092     break
11093   else
11094     lt_cv_sys_global_symbol_pipe=
11095   fi
11096 done
11097
11098 fi
11099
11100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11101   lt_cv_sys_global_symbol_to_cdecl=
11102 fi
11103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11104   echo "$as_me:$LINENO: result: failed" >&5
11105 echo "${ECHO_T}failed" >&6
11106 else
11107   echo "$as_me:$LINENO: result: ok" >&5
11108 echo "${ECHO_T}ok" >&6
11109 fi
11110
11111 echo "$as_me:$LINENO: checking for objdir" >&5
11112 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11113 if test "${lt_cv_objdir+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   rm -f .libs 2>/dev/null
11117 mkdir .libs 2>/dev/null
11118 if test -d .libs; then
11119   lt_cv_objdir=.libs
11120 else
11121   # MS-DOS does not allow filenames that begin with a dot.
11122   lt_cv_objdir=_libs
11123 fi
11124 rmdir .libs 2>/dev/null
11125 fi
11126 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11127 echo "${ECHO_T}$lt_cv_objdir" >&6
11128 objdir=$lt_cv_objdir
11129
11130
11131
11132
11133
11134 case $host_os in
11135 aix3*)
11136   # AIX sometimes has problems with the GCC collect2 program.  For some
11137   # reason, if we set the COLLECT_NAMES environment variable, the problems
11138   # vanish in a puff of smoke.
11139   if test "X${COLLECT_NAMES+set}" != Xset; then
11140     COLLECT_NAMES=
11141     export COLLECT_NAMES
11142   fi
11143   ;;
11144 esac
11145
11146 # Sed substitution that helps us do robust quoting.  It backslashifies
11147 # metacharacters that are still active within double-quoted strings.
11148 Xsed='sed -e s/^X//'
11149 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11150
11151 # Same as above, but do not quote variable references.
11152 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11153
11154 # Sed substitution to delay expansion of an escaped shell variable in a
11155 # double_quote_subst'ed string.
11156 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11157
11158 # Sed substitution to avoid accidental globbing in evaled expressions
11159 no_glob_subst='s/\*/\\\*/g'
11160
11161 # Constants:
11162 rm="rm -f"
11163
11164 # Global variables:
11165 default_ofile=mklib
11166 can_build_shared=yes
11167
11168 # All known linkers require a `.a' archive for static linking (except M$VC,
11169 # which needs '.lib').
11170 libext=a
11171 ltmain="$ac_aux_dir/ltmain.sh"
11172 ofile="$default_ofile"
11173 with_gnu_ld="$lt_cv_prog_gnu_ld"
11174
11175 if test -n "$ac_tool_prefix"; then
11176   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11177 set dummy ${ac_tool_prefix}ar; ac_word=$2
11178 echo "$as_me:$LINENO: checking for $ac_word" >&5
11179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11180 if test "${ac_cv_prog_AR+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   if test -n "$AR"; then
11184   ac_cv_prog_AR="$AR" # Let the user override the test.
11185 else
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189   IFS=$as_save_IFS
11190   test -z "$as_dir" && as_dir=.
11191   for ac_exec_ext in '' $ac_executable_extensions; do
11192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193     ac_cv_prog_AR="${ac_tool_prefix}ar"
11194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11195     break 2
11196   fi
11197 done
11198 done
11199
11200 fi
11201 fi
11202 AR=$ac_cv_prog_AR
11203 if test -n "$AR"; then
11204   echo "$as_me:$LINENO: result: $AR" >&5
11205 echo "${ECHO_T}$AR" >&6
11206 else
11207   echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11209 fi
11210
11211 fi
11212 if test -z "$ac_cv_prog_AR"; then
11213   ac_ct_AR=$AR
11214   # Extract the first word of "ar", so it can be a program name with args.
11215 set dummy ar; ac_word=$2
11216 echo "$as_me:$LINENO: checking for $ac_word" >&5
11217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11218 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11219   echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221   if test -n "$ac_ct_AR"; then
11222   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11223 else
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11226 do
11227   IFS=$as_save_IFS
11228   test -z "$as_dir" && as_dir=.
11229   for ac_exec_ext in '' $ac_executable_extensions; do
11230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231     ac_cv_prog_ac_ct_AR="ar"
11232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11233     break 2
11234   fi
11235 done
11236 done
11237
11238   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11239 fi
11240 fi
11241 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11242 if test -n "$ac_ct_AR"; then
11243   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11244 echo "${ECHO_T}$ac_ct_AR" >&6
11245 else
11246   echo "$as_me:$LINENO: result: no" >&5
11247 echo "${ECHO_T}no" >&6
11248 fi
11249
11250   AR=$ac_ct_AR
11251 else
11252   AR="$ac_cv_prog_AR"
11253 fi
11254
11255 if test -n "$ac_tool_prefix"; then
11256   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11258 echo "$as_me:$LINENO: checking for $ac_word" >&5
11259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11260 if test "${ac_cv_prog_RANLIB+set}" = set; then
11261   echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263   if test -n "$RANLIB"; then
11264   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11265 else
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11268 do
11269   IFS=$as_save_IFS
11270   test -z "$as_dir" && as_dir=.
11271   for ac_exec_ext in '' $ac_executable_extensions; do
11272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11275     break 2
11276   fi
11277 done
11278 done
11279
11280 fi
11281 fi
11282 RANLIB=$ac_cv_prog_RANLIB
11283 if test -n "$RANLIB"; then
11284   echo "$as_me:$LINENO: result: $RANLIB" >&5
11285 echo "${ECHO_T}$RANLIB" >&6
11286 else
11287   echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6
11289 fi
11290
11291 fi
11292 if test -z "$ac_cv_prog_RANLIB"; then
11293   ac_ct_RANLIB=$RANLIB
11294   # Extract the first word of "ranlib", so it can be a program name with args.
11295 set dummy ranlib; ac_word=$2
11296 echo "$as_me:$LINENO: checking for $ac_word" >&5
11297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11298 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   if test -n "$ac_ct_RANLIB"; then
11302   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11303 else
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   test -z "$as_dir" && as_dir=.
11309   for ac_exec_ext in '' $ac_executable_extensions; do
11310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311     ac_cv_prog_ac_ct_RANLIB="ranlib"
11312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316 done
11317
11318   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11319 fi
11320 fi
11321 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11322 if test -n "$ac_ct_RANLIB"; then
11323   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11324 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11325 else
11326   echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6
11328 fi
11329
11330   RANLIB=$ac_ct_RANLIB
11331 else
11332   RANLIB="$ac_cv_prog_RANLIB"
11333 fi
11334
11335 if test -n "$ac_tool_prefix"; then
11336   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11337 set dummy ${ac_tool_prefix}strip; ac_word=$2
11338 echo "$as_me:$LINENO: checking for $ac_word" >&5
11339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11340 if test "${ac_cv_prog_STRIP+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   if test -n "$STRIP"; then
11344   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11345 else
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11348 do
11349   IFS=$as_save_IFS
11350   test -z "$as_dir" && as_dir=.
11351   for ac_exec_ext in '' $ac_executable_extensions; do
11352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11353     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11355     break 2
11356   fi
11357 done
11358 done
11359
11360 fi
11361 fi
11362 STRIP=$ac_cv_prog_STRIP
11363 if test -n "$STRIP"; then
11364   echo "$as_me:$LINENO: result: $STRIP" >&5
11365 echo "${ECHO_T}$STRIP" >&6
11366 else
11367   echo "$as_me:$LINENO: result: no" >&5
11368 echo "${ECHO_T}no" >&6
11369 fi
11370
11371 fi
11372 if test -z "$ac_cv_prog_STRIP"; then
11373   ac_ct_STRIP=$STRIP
11374   # Extract the first word of "strip", so it can be a program name with args.
11375 set dummy strip; ac_word=$2
11376 echo "$as_me:$LINENO: checking for $ac_word" >&5
11377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   if test -n "$ac_ct_STRIP"; then
11382   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11383 else
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11386 do
11387   IFS=$as_save_IFS
11388   test -z "$as_dir" && as_dir=.
11389   for ac_exec_ext in '' $ac_executable_extensions; do
11390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11391     ac_cv_prog_ac_ct_STRIP="strip"
11392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11393     break 2
11394   fi
11395 done
11396 done
11397
11398   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11399 fi
11400 fi
11401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11402 if test -n "$ac_ct_STRIP"; then
11403   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11404 echo "${ECHO_T}$ac_ct_STRIP" >&6
11405 else
11406   echo "$as_me:$LINENO: result: no" >&5
11407 echo "${ECHO_T}no" >&6
11408 fi
11409
11410   STRIP=$ac_ct_STRIP
11411 else
11412   STRIP="$ac_cv_prog_STRIP"
11413 fi
11414
11415
11416 old_CC="$CC"
11417 old_CFLAGS="$CFLAGS"
11418
11419 # Set sane defaults for various variables
11420 test -z "$AR" && AR=ar
11421 test -z "$AR_FLAGS" && AR_FLAGS=cru
11422 test -z "$AS" && AS=as
11423 test -z "$CC" && CC=cc
11424 test -z "$LTCC" && LTCC=$CC
11425 test -z "$DLLTOOL" && DLLTOOL=dlltool
11426 test -z "$LD" && LD=ld
11427 test -z "$LN_S" && LN_S="ln -s"
11428 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11429 test -z "$NM" && NM=nm
11430 test -z "$SED" && SED=sed
11431 test -z "$OBJDUMP" && OBJDUMP=objdump
11432 test -z "$RANLIB" && RANLIB=:
11433 test -z "$STRIP" && STRIP=:
11434 test -z "$ac_objext" && ac_objext=o
11435
11436 # Determine commands to create old-style static archives.
11437 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11438 old_postinstall_cmds='chmod 644 $oldlib'
11439 old_postuninstall_cmds=
11440
11441 if test -n "$RANLIB"; then
11442   case $host_os in
11443   openbsd*)
11444     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11445     ;;
11446   *)
11447     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11448     ;;
11449   esac
11450   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11451 fi
11452
11453 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11454
11455 # Only perform the check for file, if the check method requires it
11456 case $deplibs_check_method in
11457 file_magic*)
11458   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11459     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11460 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11461 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   case $MAGIC_CMD in
11465 [\\/*] |  ?:[\\/]*)
11466   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11467   ;;
11468 *)
11469   lt_save_MAGIC_CMD="$MAGIC_CMD"
11470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11471   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11472   for ac_dir in $ac_dummy; do
11473     IFS="$lt_save_ifs"
11474     test -z "$ac_dir" && ac_dir=.
11475     if test -f $ac_dir/${ac_tool_prefix}file; then
11476       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11477       if test -n "$file_magic_test_file"; then
11478         case $deplibs_check_method in
11479         "file_magic "*)
11480           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11481           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11482           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11483             $EGREP "$file_magic_regex" > /dev/null; then
11484             :
11485           else
11486             cat <<EOF 1>&2
11487
11488 *** Warning: the command libtool uses to detect shared libraries,
11489 *** $file_magic_cmd, produces output that libtool cannot recognize.
11490 *** The result is that libtool may fail to recognize shared libraries
11491 *** as such.  This will affect the creation of libtool libraries that
11492 *** depend on shared libraries, but programs linked with such libtool
11493 *** libraries will work regardless of this problem.  Nevertheless, you
11494 *** may want to report the problem to your system manager and/or to
11495 *** bug-libtool@gnu.org
11496
11497 EOF
11498           fi ;;
11499         esac
11500       fi
11501       break
11502     fi
11503   done
11504   IFS="$lt_save_ifs"
11505   MAGIC_CMD="$lt_save_MAGIC_CMD"
11506   ;;
11507 esac
11508 fi
11509
11510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11511 if test -n "$MAGIC_CMD"; then
11512   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11513 echo "${ECHO_T}$MAGIC_CMD" >&6
11514 else
11515   echo "$as_me:$LINENO: result: no" >&5
11516 echo "${ECHO_T}no" >&6
11517 fi
11518
11519 if test -z "$lt_cv_path_MAGIC_CMD"; then
11520   if test -n "$ac_tool_prefix"; then
11521     echo "$as_me:$LINENO: checking for file" >&5
11522 echo $ECHO_N "checking for file... $ECHO_C" >&6
11523 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11524   echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526   case $MAGIC_CMD in
11527 [\\/*] |  ?:[\\/]*)
11528   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11529   ;;
11530 *)
11531   lt_save_MAGIC_CMD="$MAGIC_CMD"
11532   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11533   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11534   for ac_dir in $ac_dummy; do
11535     IFS="$lt_save_ifs"
11536     test -z "$ac_dir" && ac_dir=.
11537     if test -f $ac_dir/file; then
11538       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11539       if test -n "$file_magic_test_file"; then
11540         case $deplibs_check_method in
11541         "file_magic "*)
11542           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11543           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11544           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11545             $EGREP "$file_magic_regex" > /dev/null; then
11546             :
11547           else
11548             cat <<EOF 1>&2
11549
11550 *** Warning: the command libtool uses to detect shared libraries,
11551 *** $file_magic_cmd, produces output that libtool cannot recognize.
11552 *** The result is that libtool may fail to recognize shared libraries
11553 *** as such.  This will affect the creation of libtool libraries that
11554 *** depend on shared libraries, but programs linked with such libtool
11555 *** libraries will work regardless of this problem.  Nevertheless, you
11556 *** may want to report the problem to your system manager and/or to
11557 *** bug-libtool@gnu.org
11558
11559 EOF
11560           fi ;;
11561         esac
11562       fi
11563       break
11564     fi
11565   done
11566   IFS="$lt_save_ifs"
11567   MAGIC_CMD="$lt_save_MAGIC_CMD"
11568   ;;
11569 esac
11570 fi
11571
11572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11573 if test -n "$MAGIC_CMD"; then
11574   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11575 echo "${ECHO_T}$MAGIC_CMD" >&6
11576 else
11577   echo "$as_me:$LINENO: result: no" >&5
11578 echo "${ECHO_T}no" >&6
11579 fi
11580
11581   else
11582     MAGIC_CMD=:
11583   fi
11584 fi
11585
11586   fi
11587   ;;
11588 esac
11589
11590 enable_dlopen=yes
11591 enable_win32_dll=no
11592
11593 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11594 if test "${enable_libtool_lock+set}" = set; then
11595   enableval="$enable_libtool_lock"
11596
11597 fi;
11598 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11599
11600
11601 # Check whether --with-pic or --without-pic was given.
11602 if test "${with_pic+set}" = set; then
11603   withval="$with_pic"
11604   pic_mode="$withval"
11605 else
11606   pic_mode=default
11607 fi;
11608 test -z "$pic_mode" && pic_mode=default
11609
11610 # Use C for the default configuration in the libtool script
11611 tagname=
11612 lt_save_CC="$CC"
11613 ac_ext=c
11614 ac_cpp='$CPP $CPPFLAGS'
11615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618
11619
11620 # Source file extension for C test sources.
11621 ac_ext=c
11622
11623 # Object file extension for compiled C test sources.
11624 objext=o
11625 objext=$objext
11626
11627 # Code to be used in simple compile tests
11628 lt_simple_compile_test_code="int some_variable = 0;\n"
11629
11630 # Code to be used in simple link tests
11631 lt_simple_link_test_code='int main(){return(0);}\n'
11632
11633
11634 # If no C compiler was specified, use CC.
11635 LTCC=${LTCC-"$CC"}
11636
11637 # Allow CC to be a program name with arguments.
11638 compiler=$CC
11639
11640
11641 #
11642 # Check for any special shared library compilation flags.
11643 #
11644 lt_prog_cc_shlib=
11645 if test "$GCC" = no; then
11646   case $host_os in
11647   sco3.2v5*)
11648     lt_prog_cc_shlib='-belf'
11649     ;;
11650   esac
11651 fi
11652 if test -n "$lt_prog_cc_shlib"; then
11653   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11654 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11655   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11656   else
11657     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11658 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11659     lt_cv_prog_cc_can_build_shared=no
11660   fi
11661 fi
11662
11663
11664 #
11665 # Check to make sure the static flag actually works.
11666 #
11667 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11668 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11669 if test "${lt_prog_compiler_static_works+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   lt_prog_compiler_static_works=no
11673    save_LDFLAGS="$LDFLAGS"
11674    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11675    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11676    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11677      # The compiler can only warn and ignore the option if not recognized
11678      # So say no if there are warnings
11679      if test -s conftest.err; then
11680        # Append any errors to the config.log.
11681        cat conftest.err 1>&5
11682      else
11683        lt_prog_compiler_static_works=yes
11684      fi
11685    fi
11686    $rm conftest*
11687    LDFLAGS="$save_LDFLAGS"
11688
11689 fi
11690 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11691 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11692
11693 if test x"$lt_prog_compiler_static_works" = xyes; then
11694     :
11695 else
11696     lt_prog_compiler_static=
11697 fi
11698
11699
11700
11701
11702 lt_prog_compiler_no_builtin_flag=
11703
11704 if test "$GCC" = yes; then
11705   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11706
11707
11708 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11709 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11710 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   lt_cv_prog_compiler_rtti_exceptions=no
11714   ac_outfile=conftest.$ac_objext
11715    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11716    lt_compiler_flag="-fno-rtti -fno-exceptions"
11717    # Insert the option either (1) after the last *FLAGS variable, or
11718    # (2) before a word containing "conftest.", or (3) at the end.
11719    # Note that $ac_compile itself does not contain backslashes and begins
11720    # with a dollar sign (not a hyphen), so the echo should work correctly.
11721    # The option is referenced via a variable to avoid confusing sed.
11722    lt_compile=`echo "$ac_compile" | $SED \
11723    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11725    -e 's:$: $lt_compiler_flag:'`
11726    (eval echo "\"\$as_me:11726: $lt_compile\"" >&5)
11727    (eval "$lt_compile" 2>conftest.err)
11728    ac_status=$?
11729    cat conftest.err >&5
11730    echo "$as_me:11730: \$? = $ac_status" >&5
11731    if (exit $ac_status) && test -s "$ac_outfile"; then
11732      # The compiler can only warn and ignore the option if not recognized
11733      # So say no if there are warnings
11734      if test ! -s conftest.err; then
11735        lt_cv_prog_compiler_rtti_exceptions=yes
11736      fi
11737    fi
11738    $rm conftest*
11739
11740 fi
11741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11742 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11743
11744 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11745     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11746 else
11747     :
11748 fi
11749
11750 fi
11751
11752 lt_prog_compiler_wl=
11753 lt_prog_compiler_pic=
11754 lt_prog_compiler_static=
11755
11756 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11757 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11758
11759   if test "$GCC" = yes; then
11760     lt_prog_compiler_wl='-Wl,'
11761     lt_prog_compiler_static='-static'
11762
11763     case $host_os in
11764       aix*)
11765       # All AIX code is PIC.
11766       if test "$host_cpu" = ia64; then
11767         # AIX 5 now supports IA64 processor
11768         lt_prog_compiler_static='-Bstatic'
11769       fi
11770       ;;
11771
11772     amigaos*)
11773       # FIXME: we need at least 68020 code to build shared libraries, but
11774       # adding the `-m68020' flag to GCC prevents building anything better,
11775       # like `-m68040'.
11776       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11777       ;;
11778
11779     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11780       # PIC is the default for these OSes.
11781       ;;
11782
11783     mingw* | pw32* | os2*)
11784       # This hack is so that the source file can tell whether it is being
11785       # built for inclusion in a dll (and should export symbols for example).
11786       lt_prog_compiler_pic='-DDLL_EXPORT'
11787       ;;
11788
11789     darwin* | rhapsody*)
11790       # PIC is the default on this platform
11791       # Common symbols not allowed in MH_DYLIB files
11792       lt_prog_compiler_pic='-fno-common'
11793       ;;
11794
11795     msdosdjgpp*)
11796       # Just because we use GCC doesn't mean we suddenly get shared libraries
11797       # on systems that don't support them.
11798       lt_prog_compiler_can_build_shared=no
11799       enable_shared=no
11800       ;;
11801
11802     sysv4*MP*)
11803       if test -d /usr/nec; then
11804         lt_prog_compiler_pic=-Kconform_pic
11805       fi
11806       ;;
11807
11808     hpux*)
11809       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11810       # not for PA HP-UX.
11811       case "$host_cpu" in
11812       hppa*64*|ia64*)
11813         # +Z the default
11814         ;;
11815       *)
11816         lt_prog_compiler_pic='-fPIC'
11817         ;;
11818       esac
11819       ;;
11820
11821     *)
11822       lt_prog_compiler_pic='-fPIC'
11823       ;;
11824     esac
11825   else
11826     # PORTME Check for flag to pass linker flags through the system compiler.
11827     case $host_os in
11828     aix*)
11829       lt_prog_compiler_wl='-Wl,'
11830       if test "$host_cpu" = ia64; then
11831         # AIX 5 now supports IA64 processor
11832         lt_prog_compiler_static='-Bstatic'
11833       else
11834         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11835       fi
11836       ;;
11837       darwin*)
11838         # PIC is the default on this platform
11839         # Common symbols not allowed in MH_DYLIB files
11840        case "$cc_basename" in
11841          xlc*)
11842          lt_prog_compiler_pic='-qnocommon'
11843          lt_prog_compiler_wl='-Wl,'
11844          ;;
11845        esac
11846        ;;
11847
11848     mingw* | pw32* | os2*)
11849       # This hack is so that the source file can tell whether it is being
11850       # built for inclusion in a dll (and should export symbols for example).
11851       lt_prog_compiler_pic='-DDLL_EXPORT'
11852       ;;
11853
11854     hpux9* | hpux10* | hpux11*)
11855       lt_prog_compiler_wl='-Wl,'
11856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11857       # not for PA HP-UX.
11858       case "$host_cpu" in
11859       hppa*64*|ia64*)
11860         # +Z the default
11861         ;;
11862       *)
11863         lt_prog_compiler_pic='+Z'
11864         ;;
11865       esac
11866       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11867       lt_prog_compiler_static='${wl}-a ${wl}archive'
11868       ;;
11869
11870     irix5* | irix6* | nonstopux*)
11871       lt_prog_compiler_wl='-Wl,'
11872       # PIC (with -KPIC) is the default.
11873       lt_prog_compiler_static='-non_shared'
11874       ;;
11875
11876     newsos6)
11877       lt_prog_compiler_pic='-KPIC'
11878       lt_prog_compiler_static='-Bstatic'
11879       ;;
11880
11881     linux*)
11882       case $CC in
11883       icc* | ecc*)
11884         lt_prog_compiler_wl='-Wl,'
11885         lt_prog_compiler_pic='-KPIC'
11886         lt_prog_compiler_static='-static'
11887         ;;
11888       ccc*)
11889         lt_prog_compiler_wl='-Wl,'
11890         # All Alpha code is PIC.
11891         lt_prog_compiler_static='-non_shared'
11892         ;;
11893       esac
11894       ;;
11895
11896     osf3* | osf4* | osf5*)
11897       lt_prog_compiler_wl='-Wl,'
11898       # All OSF/1 code is PIC.
11899       lt_prog_compiler_static='-non_shared'
11900       ;;
11901
11902     sco3.2v5*)
11903       lt_prog_compiler_pic='-Kpic'
11904       lt_prog_compiler_static='-dn'
11905       ;;
11906
11907     solaris*)
11908       lt_prog_compiler_wl='-Wl,'
11909       lt_prog_compiler_pic='-KPIC'
11910       lt_prog_compiler_static='-Bstatic'
11911       ;;
11912
11913     sunos4*)
11914       lt_prog_compiler_wl='-Qoption ld '
11915       lt_prog_compiler_pic='-PIC'
11916       lt_prog_compiler_static='-Bstatic'
11917       ;;
11918
11919     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11920       lt_prog_compiler_wl='-Wl,'
11921       lt_prog_compiler_pic='-KPIC'
11922       lt_prog_compiler_static='-Bstatic'
11923       ;;
11924
11925     sysv4*MP*)
11926       if test -d /usr/nec ;then
11927         lt_prog_compiler_pic='-Kconform_pic'
11928         lt_prog_compiler_static='-Bstatic'
11929       fi
11930       ;;
11931
11932     uts4*)
11933       lt_prog_compiler_pic='-pic'
11934       lt_prog_compiler_static='-Bstatic'
11935       ;;
11936
11937     *)
11938       lt_prog_compiler_can_build_shared=no
11939       ;;
11940     esac
11941   fi
11942
11943 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11944 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11945
11946 #
11947 # Check to make sure the PIC flag actually works.
11948 #
11949 if test -n "$lt_prog_compiler_pic"; then
11950
11951 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11952 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11953 if test "${lt_prog_compiler_pic_works+set}" = set; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956   lt_prog_compiler_pic_works=no
11957   ac_outfile=conftest.$ac_objext
11958    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11959    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11960    # Insert the option either (1) after the last *FLAGS variable, or
11961    # (2) before a word containing "conftest.", or (3) at the end.
11962    # Note that $ac_compile itself does not contain backslashes and begins
11963    # with a dollar sign (not a hyphen), so the echo should work correctly.
11964    # The option is referenced via a variable to avoid confusing sed.
11965    lt_compile=`echo "$ac_compile" | $SED \
11966    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11968    -e 's:$: $lt_compiler_flag:'`
11969    (eval echo "\"\$as_me:11969: $lt_compile\"" >&5)
11970    (eval "$lt_compile" 2>conftest.err)
11971    ac_status=$?
11972    cat conftest.err >&5
11973    echo "$as_me:11973: \$? = $ac_status" >&5
11974    if (exit $ac_status) && test -s "$ac_outfile"; then
11975      # The compiler can only warn and ignore the option if not recognized
11976      # So say no if there are warnings
11977      if test ! -s conftest.err; then
11978        lt_prog_compiler_pic_works=yes
11979      fi
11980    fi
11981    $rm conftest*
11982
11983 fi
11984 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11985 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11986
11987 if test x"$lt_prog_compiler_pic_works" = xyes; then
11988     case $lt_prog_compiler_pic in
11989      "" | " "*) ;;
11990      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11991      esac
11992 else
11993     lt_prog_compiler_pic=
11994      lt_prog_compiler_can_build_shared=no
11995 fi
11996
11997 fi
11998 case "$host_os" in
11999   # For platforms which do not support PIC, -DPIC is meaningless:
12000   *djgpp*)
12001     lt_prog_compiler_pic=
12002     ;;
12003   *)
12004     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12005     ;;
12006 esac
12007
12008 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   lt_cv_prog_compiler_c_o=no
12014    $rm -r conftest 2>/dev/null
12015    mkdir conftest
12016    cd conftest
12017    mkdir out
12018    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12019
12020    lt_compiler_flag="-o out/conftest2.$ac_objext"
12021    # Insert the option either (1) after the last *FLAGS variable, or
12022    # (2) before a word containing "conftest.", or (3) at the end.
12023    # Note that $ac_compile itself does not contain backslashes and begins
12024    # with a dollar sign (not a hyphen), so the echo should work correctly.
12025    lt_compile=`echo "$ac_compile" | $SED \
12026    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12028    -e 's:$: $lt_compiler_flag:'`
12029    (eval echo "\"\$as_me:12029: $lt_compile\"" >&5)
12030    (eval "$lt_compile" 2>out/conftest.err)
12031    ac_status=$?
12032    cat out/conftest.err >&5
12033    echo "$as_me:12033: \$? = $ac_status" >&5
12034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12035    then
12036      # The compiler can only warn and ignore the option if not recognized
12037      # So say no if there are warnings
12038      if test ! -s out/conftest.err; then
12039        lt_cv_prog_compiler_c_o=yes
12040      fi
12041    fi
12042    chmod u+w .
12043    $rm conftest*
12044    # SGI C++ compiler will create directory out/ii_files/ for
12045    # template instantiation
12046    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12047    $rm out/* && rmdir out
12048    cd ..
12049    rmdir conftest
12050    $rm conftest*
12051
12052 fi
12053 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12055
12056
12057 hard_links="nottested"
12058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12059   # do not overwrite the value of need_locks provided by the user
12060   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12062   hard_links=yes
12063   $rm conftest*
12064   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12065   touch conftest.a
12066   ln conftest.a conftest.b 2>&5 || hard_links=no
12067   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12068   echo "$as_me:$LINENO: result: $hard_links" >&5
12069 echo "${ECHO_T}$hard_links" >&6
12070   if test "$hard_links" = no; then
12071     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12073     need_locks=warn
12074   fi
12075 else
12076   need_locks=no
12077 fi
12078
12079 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12081
12082   runpath_var=
12083   allow_undefined_flag=
12084   enable_shared_with_static_runtimes=no
12085   archive_cmds=
12086   archive_expsym_cmds=
12087   old_archive_From_new_cmds=
12088   old_archive_from_expsyms_cmds=
12089   export_dynamic_flag_spec=
12090   whole_archive_flag_spec=
12091   thread_safe_flag_spec=
12092   hardcode_libdir_flag_spec=
12093   hardcode_libdir_flag_spec_ld=
12094   hardcode_libdir_separator=
12095   hardcode_direct=no
12096   hardcode_minus_L=no
12097   hardcode_shlibpath_var=unsupported
12098   link_all_deplibs=unknown
12099   hardcode_automatic=no
12100   module_cmds=
12101   module_expsym_cmds=
12102   always_export_symbols=no
12103   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12104   # include_expsyms should be a list of space-separated symbols to be *always*
12105   # included in the symbol list
12106   include_expsyms=
12107   # exclude_expsyms can be an extended regexp of symbols to exclude
12108   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12109   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12110   # as well as any symbol that contains `d'.
12111   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12112   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12113   # platforms (ab)use it in PIC code, but their linkers get confused if
12114   # the symbol is explicitly referenced.  Since portable code cannot
12115   # rely on this symbol name, it's probably fine to never include it in
12116   # preloaded symbol tables.
12117   extract_expsyms_cmds=
12118
12119   case $host_os in
12120   cygwin* | mingw* | pw32*)
12121     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12122     # When not using gcc, we currently assume that we are using
12123     # Microsoft Visual C++.
12124     if test "$GCC" != yes; then
12125       with_gnu_ld=no
12126     fi
12127     ;;
12128   openbsd*)
12129     with_gnu_ld=no
12130     ;;
12131   esac
12132
12133   ld_shlibs=yes
12134   if test "$with_gnu_ld" = yes; then
12135     # If archive_cmds runs LD, not CC, wlarc should be empty
12136     wlarc='${wl}'
12137
12138     # See if GNU ld supports shared libraries.
12139     case $host_os in
12140     aix3* | aix4* | aix5*)
12141       # On AIX/PPC, the GNU linker is very broken
12142       if test "$host_cpu" != ia64; then
12143         ld_shlibs=no
12144         cat <<EOF 1>&2
12145
12146 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12147 *** to be unable to reliably create shared libraries on AIX.
12148 *** Therefore, libtool is disabling shared libraries support.  If you
12149 *** really care for shared libraries, you may want to modify your PATH
12150 *** so that a non-GNU linker is found, and then restart.
12151
12152 EOF
12153       fi
12154       ;;
12155
12156     amigaos*)
12157       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)'
12158       hardcode_libdir_flag_spec='-L$libdir'
12159       hardcode_minus_L=yes
12160
12161       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12162       # that the semantics of dynamic libraries on AmigaOS, at least up
12163       # to version 4, is to share data among multiple programs linked
12164       # with the same dynamic library.  Since this doesn't match the
12165       # behavior of shared libraries on other platforms, we can't use
12166       # them.
12167       ld_shlibs=no
12168       ;;
12169
12170     beos*)
12171       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12172         allow_undefined_flag=unsupported
12173         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12174         # support --undefined.  This deserves some investigation.  FIXME
12175         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12176       else
12177         ld_shlibs=no
12178       fi
12179       ;;
12180
12181     cygwin* | mingw* | pw32*)
12182       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12183       # as there is no search path for DLLs.
12184       hardcode_libdir_flag_spec='-L$libdir'
12185       allow_undefined_flag=unsupported
12186       always_export_symbols=no
12187       enable_shared_with_static_runtimes=yes
12188       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12189
12190       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12192         # If the export-symbols file already is a .def file (1st line
12193         # is EXPORTS), use it as is; otherwise, prepend...
12194         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12195           cp $export_symbols $output_objdir/$soname.def;
12196         else
12197           echo EXPORTS > $output_objdir/$soname.def;
12198           cat $export_symbols >> $output_objdir/$soname.def;
12199         fi~
12200         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12201       else
12202         ld_shlibs=no
12203       fi
12204       ;;
12205
12206     netbsd*)
12207       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12208         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12209         wlarc=
12210       else
12211         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12212         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12213       fi
12214       ;;
12215
12216     solaris* | sysv5*)
12217       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12218         ld_shlibs=no
12219         cat <<EOF 1>&2
12220
12221 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12222 *** create shared libraries on Solaris systems.  Therefore, libtool
12223 *** is disabling shared libraries support.  We urge you to upgrade GNU
12224 *** binutils to release 2.9.1 or newer.  Another option is to modify
12225 *** your PATH or compiler configuration so that the native linker is
12226 *** used, and then restart.
12227
12228 EOF
12229       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12232       else
12233         ld_shlibs=no
12234       fi
12235       ;;
12236
12237     sunos4*)
12238       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12239       wlarc=
12240       hardcode_direct=yes
12241       hardcode_shlibpath_var=no
12242       ;;
12243
12244   linux*)
12245     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12246         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247         archive_cmds="$tmp_archive_cmds"
12248       supports_anon_versioning=no
12249       case `$LD -v 2>/dev/null` in
12250         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12251         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12252         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12253         *\ 2.11.*) ;; # other 2.11 versions
12254         *) supports_anon_versioning=yes ;;
12255       esac
12256       if test $supports_anon_versioning = yes; then
12257         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12259 $echo "local: *; };" >> $output_objdir/$libname.ver~
12260         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12261       else
12262         archive_expsym_cmds="$tmp_archive_cmds"
12263       fi
12264     else
12265       ld_shlibs=no
12266     fi
12267     ;;
12268
12269     *)
12270       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12271         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12273       else
12274         ld_shlibs=no
12275       fi
12276       ;;
12277     esac
12278
12279     if test "$ld_shlibs" = yes; then
12280       runpath_var=LD_RUN_PATH
12281       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12282       export_dynamic_flag_spec='${wl}--export-dynamic'
12283       # ancient GNU ld didn't support --whole-archive et. al.
12284       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12285         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12286       else
12287         whole_archive_flag_spec=
12288       fi
12289     fi
12290   else
12291     # PORTME fill in a description of your system's linker (not GNU ld)
12292     case $host_os in
12293     aix3*)
12294       allow_undefined_flag=unsupported
12295       always_export_symbols=yes
12296       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'
12297       # Note: this linker hardcodes the directories in LIBPATH if there
12298       # are no directories specified by -L.
12299       hardcode_minus_L=yes
12300       if test "$GCC" = yes && test -z "$link_static_flag"; then
12301         # Neither direct hardcoding nor static linking is supported with a
12302         # broken collect2.
12303         hardcode_direct=unsupported
12304       fi
12305       ;;
12306
12307     aix4* | aix5*)
12308       if test "$host_cpu" = ia64; then
12309         # On IA64, the linker does run time linking by default, so we don't
12310         # have to do anything special.
12311         aix_use_runtimelinking=no
12312         exp_sym_flag='-Bexport'
12313         no_entry_flag=""
12314       else
12315         # If we're using GNU nm, then we don't want the "-C" option.
12316         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12317         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12318           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'
12319         else
12320           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'
12321         fi
12322         aix_use_runtimelinking=no
12323
12324         # Test if we are trying to use run time linking or normal
12325         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12326         # need to do runtime linking.
12327         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12328           for ld_flag in $LDFLAGS; do
12329           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12330             aix_use_runtimelinking=yes
12331             break
12332           fi
12333           done
12334         esac
12335
12336         exp_sym_flag='-bexport'
12337         no_entry_flag='-bnoentry'
12338       fi
12339
12340       # When large executables or shared objects are built, AIX ld can
12341       # have problems creating the table of contents.  If linking a library
12342       # or program results in "error TOC overflow" add -mminimal-toc to
12343       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12344       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12345
12346       archive_cmds=''
12347       hardcode_direct=yes
12348       hardcode_libdir_separator=':'
12349       link_all_deplibs=yes
12350
12351       if test "$GCC" = yes; then
12352         case $host_os in aix4.012|aix4.012.*)
12353         # We only want to do this on AIX 4.2 and lower, the check
12354         # below for broken collect2 doesn't work under 4.3+
12355           collect2name=`${CC} -print-prog-name=collect2`
12356           if test -f "$collect2name" && \
12357            strings "$collect2name" | grep resolve_lib_name >/dev/null
12358           then
12359           # We have reworked collect2
12360           hardcode_direct=yes
12361           else
12362           # We have old collect2
12363           hardcode_direct=unsupported
12364           # It fails to find uninstalled libraries when the uninstalled
12365           # path is not listed in the libpath.  Setting hardcode_minus_L
12366           # to unsupported forces relinking
12367           hardcode_minus_L=yes
12368           hardcode_libdir_flag_spec='-L$libdir'
12369           hardcode_libdir_separator=
12370           fi
12371         esac
12372         shared_flag='-shared'
12373       else
12374         # not using gcc
12375         if test "$host_cpu" = ia64; then
12376         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12377         # chokes on -Wl,-G. The following line is correct:
12378           shared_flag='-G'
12379         else
12380         if test "$aix_use_runtimelinking" = yes; then
12381             shared_flag='${wl}-G'
12382           else
12383             shared_flag='${wl}-bM:SRE'
12384         fi
12385         fi
12386       fi
12387
12388       # It seems that -bexpall does not export symbols beginning with
12389       # underscore (_), so it is better to generate a list of symbols to export.
12390       always_export_symbols=yes
12391       if test "$aix_use_runtimelinking" = yes; then
12392         # Warning - without using the other runtime loading flags (-brtl),
12393         # -berok will link without error, but may produce a broken library.
12394         allow_undefined_flag='-berok'
12395        # Determine the default libpath from the value encoded in an empty executable.
12396        cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402
12403 int
12404 main ()
12405 {
12406
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413   (eval $ac_link) 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } &&
12420          { ac_try='test -z "$ac_c_werror_flag"
12421                          || test ! -s conftest.err'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest$ac_exeext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433
12434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12435 }'`
12436 # Check for a 64-bit object if we didn't find anything.
12437 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; }
12438 }'`; fi
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 fi
12444 rm -f conftest.err conftest.$ac_objext \
12445       conftest$ac_exeext conftest.$ac_ext
12446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12447
12448        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12449         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"
12450        else
12451         if test "$host_cpu" = ia64; then
12452           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12453           allow_undefined_flag="-z nodefs"
12454           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"
12455         else
12456          # Determine the default libpath from the value encoded in an empty executable.
12457          cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463
12464 int
12465 main ()
12466 {
12467
12468   ;
12469   return 0;
12470 }
12471 _ACEOF
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474   (eval $ac_link) 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } &&
12481          { ac_try='test -z "$ac_c_werror_flag"
12482                          || test ! -s conftest.err'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; } &&
12488          { ac_try='test -s conftest$ac_exeext'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; }; then
12494
12495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12496 }'`
12497 # Check for a 64-bit object if we didn't find anything.
12498 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; }
12499 }'`; fi
12500 else
12501   echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504 fi
12505 rm -f conftest.err conftest.$ac_objext \
12506       conftest$ac_exeext conftest.$ac_ext
12507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12508
12509          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12510           # Warning - without using the other run time loading flags,
12511           # -berok will link without error, but may produce a broken library.
12512           no_undefined_flag=' ${wl}-bernotok'
12513           allow_undefined_flag=' ${wl}-berok'
12514           # -bexpall does not export symbols beginning with underscore (_)
12515           always_export_symbols=yes
12516           # Exported symbols can be pulled into shared objects from archives
12517           whole_archive_flag_spec=' '
12518           archive_cmds_need_lc=yes
12519           # This is similar to how AIX traditionally builds it's shared libraries.
12520           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'
12521         fi
12522       fi
12523       ;;
12524
12525     amigaos*)
12526       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)'
12527       hardcode_libdir_flag_spec='-L$libdir'
12528       hardcode_minus_L=yes
12529       # see comment about different semantics on the GNU ld section
12530       ld_shlibs=no
12531       ;;
12532
12533     bsdi[45]*)
12534       export_dynamic_flag_spec=-rdynamic
12535       ;;
12536
12537     cygwin* | mingw* | pw32*)
12538       # When not using gcc, we currently assume that we are using
12539       # Microsoft Visual C++.
12540       # hardcode_libdir_flag_spec is actually meaningless, as there is
12541       # no search path for DLLs.
12542       hardcode_libdir_flag_spec=' '
12543       allow_undefined_flag=unsupported
12544       # Tell ltmain to make .lib files, not .a files.
12545       libext=lib
12546       # Tell ltmain to make .dll files, not .so files.
12547       shrext_cmds=".dll"
12548       # FIXME: Setting linknames here is a bad hack.
12549       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12550       # The linker will automatically build a .lib file if we build a DLL.
12551       old_archive_From_new_cmds='true'
12552       # FIXME: Should let the user specify the lib program.
12553       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12554       fix_srcfile_path='`cygpath -w "$srcfile"`'
12555       enable_shared_with_static_runtimes=yes
12556       ;;
12557
12558     darwin* | rhapsody*)
12559       case "$host_os" in
12560         rhapsody* | darwin1.[012])
12561          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12562          ;;
12563        *) # Darwin 1.3 on
12564          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12565            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12566          else
12567            case ${MACOSX_DEPLOYMENT_TARGET} in
12568              10.[012])
12569                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12570                ;;
12571              10.*)
12572                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12573                ;;
12574            esac
12575          fi
12576          ;;
12577       esac
12578       archive_cmds_need_lc=no
12579       hardcode_direct=no
12580       hardcode_automatic=yes
12581       hardcode_shlibpath_var=unsupported
12582       whole_archive_flag_spec=''
12583       link_all_deplibs=yes
12584     if test "$GCC" = yes ; then
12585         output_verbose_link_cmd='echo'
12586         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12587       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12588       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12589       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}'
12590       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}'
12591     else
12592       case "$cc_basename" in
12593         xlc*)
12594          output_verbose_link_cmd='echo'
12595          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12596          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12597           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12598          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}'
12599           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}'
12600           ;;
12601        *)
12602          ld_shlibs=no
12603           ;;
12604       esac
12605     fi
12606       ;;
12607
12608     dgux*)
12609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12610       hardcode_libdir_flag_spec='-L$libdir'
12611       hardcode_shlibpath_var=no
12612       ;;
12613
12614     freebsd1*)
12615       ld_shlibs=no
12616       ;;
12617
12618     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12619     # support.  Future versions do this automatically, but an explicit c++rt0.o
12620     # does not break anything, and helps significantly (at the cost of a little
12621     # extra space).
12622     freebsd2.2*)
12623       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12624       hardcode_libdir_flag_spec='-R$libdir'
12625       hardcode_direct=yes
12626       hardcode_shlibpath_var=no
12627       ;;
12628
12629     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12630     freebsd2*)
12631       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12632       hardcode_direct=yes
12633       hardcode_minus_L=yes
12634       hardcode_shlibpath_var=no
12635       ;;
12636
12637     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12638     freebsd* | kfreebsd*-gnu)
12639       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12640       hardcode_libdir_flag_spec='-R$libdir'
12641       hardcode_direct=yes
12642       hardcode_shlibpath_var=no
12643       ;;
12644
12645     hpux9*)
12646       if test "$GCC" = yes; then
12647         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'
12648       else
12649         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'
12650       fi
12651       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12652       hardcode_libdir_separator=:
12653       hardcode_direct=yes
12654
12655       # hardcode_minus_L: Not really in the search PATH,
12656       # but as the default location of the library.
12657       hardcode_minus_L=yes
12658       export_dynamic_flag_spec='${wl}-E'
12659       ;;
12660
12661     hpux10* | hpux11*)
12662       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12663         case "$host_cpu" in
12664         hppa*64*|ia64*)
12665           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12666           ;;
12667         *)
12668           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12669           ;;
12670         esac
12671       else
12672         case "$host_cpu" in
12673         hppa*64*|ia64*)
12674           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12675           ;;
12676         *)
12677           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12678           ;;
12679         esac
12680       fi
12681       if test "$with_gnu_ld" = no; then
12682         case "$host_cpu" in
12683         hppa*64*)
12684           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12685           hardcode_libdir_flag_spec_ld='+b $libdir'
12686           hardcode_libdir_separator=:
12687           hardcode_direct=no
12688           hardcode_shlibpath_var=no
12689           ;;
12690         ia64*)
12691           hardcode_libdir_flag_spec='-L$libdir'
12692           hardcode_direct=no
12693           hardcode_shlibpath_var=no
12694
12695           # hardcode_minus_L: Not really in the search PATH,
12696           # but as the default location of the library.
12697           hardcode_minus_L=yes
12698           ;;
12699         *)
12700           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12701           hardcode_libdir_separator=:
12702           hardcode_direct=yes
12703           export_dynamic_flag_spec='${wl}-E'
12704
12705           # hardcode_minus_L: Not really in the search PATH,
12706           # but as the default location of the library.
12707           hardcode_minus_L=yes
12708           ;;
12709         esac
12710       fi
12711       ;;
12712
12713     irix5* | irix6* | nonstopux*)
12714       if test "$GCC" = yes; then
12715         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'
12716       else
12717         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'
12718         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12719       fi
12720       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12721       hardcode_libdir_separator=:
12722       link_all_deplibs=yes
12723       ;;
12724
12725     netbsd*)
12726       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12727         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12728       else
12729         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12730       fi
12731       hardcode_libdir_flag_spec='-R$libdir'
12732       hardcode_direct=yes
12733       hardcode_shlibpath_var=no
12734       ;;
12735
12736     newsos6)
12737       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12738       hardcode_direct=yes
12739       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12740       hardcode_libdir_separator=:
12741       hardcode_shlibpath_var=no
12742       ;;
12743
12744     openbsd*)
12745       hardcode_direct=yes
12746       hardcode_shlibpath_var=no
12747       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12748         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12749         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12750         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12751         export_dynamic_flag_spec='${wl}-E'
12752       else
12753        case $host_os in
12754          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12755            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12756            hardcode_libdir_flag_spec='-R$libdir'
12757            ;;
12758          *)
12759            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12760            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12761            ;;
12762        esac
12763       fi
12764       ;;
12765
12766     os2*)
12767       hardcode_libdir_flag_spec='-L$libdir'
12768       hardcode_minus_L=yes
12769       allow_undefined_flag=unsupported
12770       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'
12771       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12772       ;;
12773
12774     osf3*)
12775       if test "$GCC" = yes; then
12776         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12777         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'
12778       else
12779         allow_undefined_flag=' -expect_unresolved \*'
12780         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'
12781       fi
12782       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12783       hardcode_libdir_separator=:
12784       ;;
12785
12786     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12787       if test "$GCC" = yes; then
12788         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12789         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'
12790         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12791       else
12792         allow_undefined_flag=' -expect_unresolved \*'
12793         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'
12794         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12795         $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'
12796
12797         # Both c and cxx compiler support -rpath directly
12798         hardcode_libdir_flag_spec='-rpath $libdir'
12799       fi
12800       hardcode_libdir_separator=:
12801       ;;
12802
12803     sco3.2v5*)
12804       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12805       hardcode_shlibpath_var=no
12806       export_dynamic_flag_spec='${wl}-Bexport'
12807       runpath_var=LD_RUN_PATH
12808       hardcode_runpath_var=yes
12809       ;;
12810
12811     solaris*)
12812       no_undefined_flag=' -z text'
12813       if test "$GCC" = yes; then
12814         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12815         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12817       else
12818         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12819         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12820         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12821       fi
12822       hardcode_libdir_flag_spec='-R$libdir'
12823       hardcode_shlibpath_var=no
12824       case $host_os in
12825       solaris2.[0-5] | solaris2.[0-5].*) ;;
12826       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12827         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12828       esac
12829       link_all_deplibs=yes
12830       ;;
12831
12832     sunos4*)
12833       if test "x$host_vendor" = xsequent; then
12834         # Use $CC to link under sequent, because it throws in some extra .o
12835         # files that make .init and .fini sections work.
12836         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12837       else
12838         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12839       fi
12840       hardcode_libdir_flag_spec='-L$libdir'
12841       hardcode_direct=yes
12842       hardcode_minus_L=yes
12843       hardcode_shlibpath_var=no
12844       ;;
12845
12846     sysv4)
12847       case $host_vendor in
12848         sni)
12849           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12850           hardcode_direct=yes # is this really true???
12851         ;;
12852         siemens)
12853           ## LD is ld it makes a PLAMLIB
12854           ## CC just makes a GrossModule.
12855           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12856           reload_cmds='$CC -r -o $output$reload_objs'
12857           hardcode_direct=no
12858         ;;
12859         motorola)
12860           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12862         ;;
12863       esac
12864       runpath_var='LD_RUN_PATH'
12865       hardcode_shlibpath_var=no
12866       ;;
12867
12868     sysv4.3*)
12869       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12870       hardcode_shlibpath_var=no
12871       export_dynamic_flag_spec='-Bexport'
12872       ;;
12873
12874     sysv4*MP*)
12875       if test -d /usr/nec; then
12876         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12877         hardcode_shlibpath_var=no
12878         runpath_var=LD_RUN_PATH
12879         hardcode_runpath_var=yes
12880         ld_shlibs=yes
12881       fi
12882       ;;
12883
12884     sysv4.2uw2*)
12885       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12886       hardcode_direct=yes
12887       hardcode_minus_L=no
12888       hardcode_shlibpath_var=no
12889       hardcode_runpath_var=yes
12890       runpath_var=LD_RUN_PATH
12891       ;;
12892
12893    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12894       no_undefined_flag='${wl}-z ${wl}text'
12895       if test "$GCC" = yes; then
12896         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12897       else
12898         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12899       fi
12900       runpath_var='LD_RUN_PATH'
12901       hardcode_shlibpath_var=no
12902       ;;
12903
12904     sysv5*)
12905       no_undefined_flag=' -z text'
12906       # $CC -shared without GNU ld will not create a library from C++
12907       # object files and a static libstdc++, better avoid it by now
12908       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12909       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12910                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12911       hardcode_libdir_flag_spec=
12912       hardcode_shlibpath_var=no
12913       runpath_var='LD_RUN_PATH'
12914       ;;
12915
12916     uts4*)
12917       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12918       hardcode_libdir_flag_spec='-L$libdir'
12919       hardcode_shlibpath_var=no
12920       ;;
12921
12922     *)
12923       ld_shlibs=no
12924       ;;
12925     esac
12926   fi
12927
12928 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12929 echo "${ECHO_T}$ld_shlibs" >&6
12930 test "$ld_shlibs" = no && can_build_shared=no
12931
12932 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12933 if test "$GCC" = yes; then
12934   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12935 fi
12936
12937 #
12938 # Do we need to explicitly link libc?
12939 #
12940 case "x$archive_cmds_need_lc" in
12941 x|xyes)
12942   # Assume -lc should be added
12943   archive_cmds_need_lc=yes
12944
12945   if test "$enable_shared" = yes && test "$GCC" = yes; then
12946     case $archive_cmds in
12947     *'~'*)
12948       # FIXME: we may have to deal with multi-command sequences.
12949       ;;
12950     '$CC '*)
12951       # Test whether the compiler implicitly links with -lc since on some
12952       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12953       # to ld, don't add -lc before -lgcc.
12954       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12955 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12956       $rm conftest*
12957       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12958
12959       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960   (eval $ac_compile) 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); } 2>conftest.err; then
12964         soname=conftest
12965         lib=conftest
12966         libobjs=conftest.$ac_objext
12967         deplibs=
12968         wl=$lt_prog_compiler_wl
12969         compiler_flags=-v
12970         linker_flags=-v
12971         verstring=
12972         output_objdir=.
12973         libname=conftest
12974         lt_save_allow_undefined_flag=$allow_undefined_flag
12975         allow_undefined_flag=
12976         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12977   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }
12981         then
12982           archive_cmds_need_lc=no
12983         else
12984           archive_cmds_need_lc=yes
12985         fi
12986         allow_undefined_flag=$lt_save_allow_undefined_flag
12987       else
12988         cat conftest.err 1>&5
12989       fi
12990       $rm conftest*
12991       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12992 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12993       ;;
12994     esac
12995   fi
12996   ;;
12997 esac
12998
12999 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13000 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13001 library_names_spec=
13002 libname_spec='lib$name'
13003 soname_spec=
13004 shrext_cmds=".so"
13005 postinstall_cmds=
13006 postuninstall_cmds=
13007 finish_cmds=
13008 finish_eval=
13009 shlibpath_var=
13010 shlibpath_overrides_runpath=unknown
13011 version_type=none
13012 dynamic_linker="$host_os ld.so"
13013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13014 if test "$GCC" = yes; then
13015   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13016   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13017     # if the path contains ";" then we assume it to be the separator
13018     # otherwise default to the standard path separator (i.e. ":") - it is
13019     # assumed that no part of a normal pathname contains ";" but that should
13020     # okay in the real world where ";" in dirpaths is itself problematic.
13021     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13022   else
13023     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13024   fi
13025 else
13026   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13027 fi
13028 need_lib_prefix=unknown
13029 hardcode_into_libs=no
13030
13031 # when you set need_version to no, make sure it does not cause -set_version
13032 # flags to be left without arguments
13033 need_version=unknown
13034
13035 case $host_os in
13036 aix3*)
13037   version_type=linux
13038   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13039   shlibpath_var=LIBPATH
13040
13041   # AIX 3 has no versioning support, so we append a major version to the name.
13042   soname_spec='${libname}${release}${shared_ext}$major'
13043   ;;
13044
13045 aix4* | aix5*)
13046   version_type=linux
13047   need_lib_prefix=no
13048   need_version=no
13049   hardcode_into_libs=yes
13050   if test "$host_cpu" = ia64; then
13051     # AIX 5 supports IA64
13052     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13053     shlibpath_var=LD_LIBRARY_PATH
13054   else
13055     # With GCC up to 2.95.x, collect2 would create an import file
13056     # for dependence libraries.  The import file would start with
13057     # the line `#! .'.  This would cause the generated library to
13058     # depend on `.', always an invalid library.  This was fixed in
13059     # development snapshots of GCC prior to 3.0.
13060     case $host_os in
13061       aix4 | aix4.[01] | aix4.[01].*)
13062       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13063            echo ' yes '
13064            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13065         :
13066       else
13067         can_build_shared=no
13068       fi
13069       ;;
13070     esac
13071     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13072     # soname into executable. Probably we can add versioning support to
13073     # collect2, so additional links can be useful in future.
13074     if test "$aix_use_runtimelinking" = yes; then
13075       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13076       # instead of lib<name>.a to let people know that these are not
13077       # typical AIX shared libraries.
13078       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079     else
13080       # We preserve .a as extension for shared libraries through AIX4.2
13081       # and later when we are not doing run time linking.
13082       library_names_spec='${libname}${release}.a $libname.a'
13083       soname_spec='${libname}${release}${shared_ext}$major'
13084     fi
13085     shlibpath_var=LIBPATH
13086   fi
13087   ;;
13088
13089 amigaos*)
13090   library_names_spec='$libname.ixlibrary $libname.a'
13091   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13092   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'
13093   ;;
13094
13095 beos*)
13096   library_names_spec='${libname}${shared_ext}'
13097   dynamic_linker="$host_os ld.so"
13098   shlibpath_var=LIBRARY_PATH
13099   ;;
13100
13101 bsdi[45]*)
13102   version_type=linux
13103   need_version=no
13104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105   soname_spec='${libname}${release}${shared_ext}$major'
13106   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13107   shlibpath_var=LD_LIBRARY_PATH
13108   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13109   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13110   # the default ld.so.conf also contains /usr/contrib/lib and
13111   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13112   # libtool to hard-code these into programs
13113   ;;
13114
13115 cygwin* | mingw* | pw32*)
13116   version_type=windows
13117   shrext_cmds=".dll"
13118   need_version=no
13119   need_lib_prefix=no
13120
13121   case $GCC,$host_os in
13122   yes,cygwin* | yes,mingw* | yes,pw32*)
13123     library_names_spec='$libname.dll.a'
13124     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13125     postinstall_cmds='base_file=`basename \${file}`~
13126       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13127       dldir=$destdir/`dirname \$dlpath`~
13128       test -d \$dldir || mkdir -p \$dldir~
13129       $install_prog $dir/$dlname \$dldir/$dlname'
13130     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13131       dlpath=$dir/\$dldll~
13132        $rm \$dlpath'
13133     shlibpath_overrides_runpath=yes
13134
13135     case $host_os in
13136     cygwin*)
13137       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13138       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13139       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13140       ;;
13141     mingw*)
13142       # MinGW DLLs use traditional 'lib' prefix
13143       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13144       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13145       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13146         # It is most probably a Windows format PATH printed by
13147         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13148         # path with ; separators, and with drive letters. We can handle the
13149         # drive letters (cygwin fileutils understands them), so leave them,
13150         # especially as we might pass files found there to a mingw objdump,
13151         # which wouldn't understand a cygwinified path. Ahh.
13152         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13153       else
13154         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13155       fi
13156       ;;
13157     pw32*)
13158       # pw32 DLLs use 'pw' prefix rather than 'lib'
13159       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13160       ;;
13161     esac
13162     ;;
13163
13164   *)
13165     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13166     ;;
13167   esac
13168   dynamic_linker='Win32 ld.exe'
13169   # FIXME: first we should search . and the directory the executable is in
13170   shlibpath_var=PATH
13171   ;;
13172
13173 darwin* | rhapsody*)
13174   dynamic_linker="$host_os dyld"
13175   version_type=darwin
13176   need_lib_prefix=no
13177   need_version=no
13178   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13179   soname_spec='${libname}${release}${major}$shared_ext'
13180   shlibpath_overrides_runpath=yes
13181   shlibpath_var=DYLD_LIBRARY_PATH
13182   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13183   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13184   if test "$GCC" = yes; then
13185     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"`
13186   else
13187     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13188   fi
13189   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13190   ;;
13191
13192 dgux*)
13193   version_type=linux
13194   need_lib_prefix=no
13195   need_version=no
13196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13197   soname_spec='${libname}${release}${shared_ext}$major'
13198   shlibpath_var=LD_LIBRARY_PATH
13199   ;;
13200
13201 freebsd1*)
13202   dynamic_linker=no
13203   ;;
13204
13205 kfreebsd*-gnu)
13206   version_type=linux
13207   need_lib_prefix=no
13208   need_version=no
13209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13210   soname_spec='${libname}${release}${shared_ext}$major'
13211   shlibpath_var=LD_LIBRARY_PATH
13212   shlibpath_overrides_runpath=no
13213   hardcode_into_libs=yes
13214   dynamic_linker='GNU ld.so'
13215   ;;
13216
13217 freebsd*)
13218   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13219   version_type=freebsd-$objformat
13220   case $version_type in
13221     freebsd-elf*)
13222       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13223       need_version=no
13224       need_lib_prefix=no
13225       ;;
13226     freebsd-*)
13227       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13228       need_version=yes
13229       ;;
13230   esac
13231   shlibpath_var=LD_LIBRARY_PATH
13232   case $host_os in
13233   freebsd2*)
13234     shlibpath_overrides_runpath=yes
13235     ;;
13236   freebsd3.01* | freebsdelf3.01*)
13237     shlibpath_overrides_runpath=yes
13238     hardcode_into_libs=yes
13239     ;;
13240   *) # from 3.2 on
13241     shlibpath_overrides_runpath=no
13242     hardcode_into_libs=yes
13243     ;;
13244   esac
13245   ;;
13246
13247 gnu*)
13248   version_type=linux
13249   need_lib_prefix=no
13250   need_version=no
13251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13252   soname_spec='${libname}${release}${shared_ext}$major'
13253   shlibpath_var=LD_LIBRARY_PATH
13254   hardcode_into_libs=yes
13255   ;;
13256
13257 hpux9* | hpux10* | hpux11*)
13258   # Give a soname corresponding to the major version so that dld.sl refuses to
13259   # link against other versions.
13260   version_type=sunos
13261   need_lib_prefix=no
13262   need_version=no
13263   case "$host_cpu" in
13264   ia64*)
13265     shrext_cmds='.so'
13266     hardcode_into_libs=yes
13267     dynamic_linker="$host_os dld.so"
13268     shlibpath_var=LD_LIBRARY_PATH
13269     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271     soname_spec='${libname}${release}${shared_ext}$major'
13272     if test "X$HPUX_IA64_MODE" = X32; then
13273       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13274     else
13275       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13276     fi
13277     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13278     ;;
13279    hppa*64*)
13280      shrext_cmds='.sl'
13281      hardcode_into_libs=yes
13282      dynamic_linker="$host_os dld.sl"
13283      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13284      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13285      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13286      soname_spec='${libname}${release}${shared_ext}$major'
13287      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13288      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13289      ;;
13290    *)
13291     shrext_cmds='.sl'
13292     dynamic_linker="$host_os dld.sl"
13293     shlibpath_var=SHLIB_PATH
13294     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13296     soname_spec='${libname}${release}${shared_ext}$major'
13297     ;;
13298   esac
13299   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13300   postinstall_cmds='chmod 555 $lib'
13301   ;;
13302
13303 irix5* | irix6* | nonstopux*)
13304   case $host_os in
13305     nonstopux*) version_type=nonstopux ;;
13306     *)
13307         if test "$lt_cv_prog_gnu_ld" = yes; then
13308                 version_type=linux
13309         else
13310                 version_type=irix
13311         fi ;;
13312   esac
13313   need_lib_prefix=no
13314   need_version=no
13315   soname_spec='${libname}${release}${shared_ext}$major'
13316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13317   case $host_os in
13318   irix5* | nonstopux*)
13319     libsuff= shlibsuff=
13320     ;;
13321   *)
13322     case $LD in # libtool.m4 will add one of these switches to LD
13323     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13324       libsuff= shlibsuff= libmagic=32-bit;;
13325     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13326       libsuff=32 shlibsuff=N32 libmagic=N32;;
13327     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13328       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13329     *) libsuff= shlibsuff= libmagic=never-match;;
13330     esac
13331     ;;
13332   esac
13333   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13334   shlibpath_overrides_runpath=no
13335   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13336   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13337   hardcode_into_libs=yes
13338   ;;
13339
13340 # No shared lib support for Linux oldld, aout, or coff.
13341 linux*oldld* | linux*aout* | linux*coff*)
13342   dynamic_linker=no
13343   ;;
13344
13345 # This must be Linux ELF.
13346 linux*)
13347   version_type=linux
13348   need_lib_prefix=no
13349   need_version=no
13350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351   soname_spec='${libname}${release}${shared_ext}$major'
13352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13353   shlibpath_var=LD_LIBRARY_PATH
13354   shlibpath_overrides_runpath=no
13355   # This implies no fast_install, which is unacceptable.
13356   # Some rework will be needed to allow for fast_install
13357   # before this can be enabled.
13358   hardcode_into_libs=yes
13359
13360   # Append ld.so.conf contents to the search path
13361   if test -f /etc/ld.so.conf; then
13362     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13363     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13364   fi
13365
13366   # We used to test for /lib/ld.so.1 and disable shared libraries on
13367   # powerpc, because MkLinux only supported shared libraries with the
13368   # GNU dynamic linker.  Since this was broken with cross compilers,
13369   # most powerpc-linux boxes support dynamic linking these days and
13370   # people can always --disable-shared, the test was removed, and we
13371   # assume the GNU/Linux dynamic linker is in use.
13372   dynamic_linker='GNU/Linux ld.so'
13373   ;;
13374
13375 knetbsd*-gnu)
13376   version_type=linux
13377   need_lib_prefix=no
13378   need_version=no
13379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13380   soname_spec='${libname}${release}${shared_ext}$major'
13381   shlibpath_var=LD_LIBRARY_PATH
13382   shlibpath_overrides_runpath=no
13383   hardcode_into_libs=yes
13384   dynamic_linker='GNU ld.so'
13385   ;;
13386
13387 netbsd*)
13388   version_type=sunos
13389   need_lib_prefix=no
13390   need_version=no
13391   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13393     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13394     dynamic_linker='NetBSD (a.out) ld.so'
13395   else
13396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13397     soname_spec='${libname}${release}${shared_ext}$major'
13398     dynamic_linker='NetBSD ld.elf_so'
13399   fi
13400   shlibpath_var=LD_LIBRARY_PATH
13401   shlibpath_overrides_runpath=yes
13402   hardcode_into_libs=yes
13403   ;;
13404
13405 newsos6)
13406   version_type=linux
13407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408   shlibpath_var=LD_LIBRARY_PATH
13409   shlibpath_overrides_runpath=yes
13410   ;;
13411
13412 nto-qnx*)
13413   version_type=linux
13414   need_lib_prefix=no
13415   need_version=no
13416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417   soname_spec='${libname}${release}${shared_ext}$major'
13418   shlibpath_var=LD_LIBRARY_PATH
13419   shlibpath_overrides_runpath=yes
13420   ;;
13421
13422 openbsd*)
13423   version_type=sunos
13424   need_lib_prefix=no
13425   need_version=no
13426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13427   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13428   shlibpath_var=LD_LIBRARY_PATH
13429   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13430     case $host_os in
13431       openbsd2.[89] | openbsd2.[89].*)
13432         shlibpath_overrides_runpath=no
13433         ;;
13434       *)
13435         shlibpath_overrides_runpath=yes
13436         ;;
13437       esac
13438   else
13439     shlibpath_overrides_runpath=yes
13440   fi
13441   ;;
13442
13443 os2*)
13444   libname_spec='$name'
13445   shrext_cmds=".dll"
13446   need_lib_prefix=no
13447   library_names_spec='$libname${shared_ext} $libname.a'
13448   dynamic_linker='OS/2 ld.exe'
13449   shlibpath_var=LIBPATH
13450   ;;
13451
13452 osf3* | osf4* | osf5*)
13453   version_type=osf
13454   need_lib_prefix=no
13455   need_version=no
13456   soname_spec='${libname}${release}${shared_ext}$major'
13457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458   shlibpath_var=LD_LIBRARY_PATH
13459   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13460   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13461   ;;
13462
13463 sco3.2v5*)
13464   version_type=osf
13465   soname_spec='${libname}${release}${shared_ext}$major'
13466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467   shlibpath_var=LD_LIBRARY_PATH
13468   ;;
13469
13470 solaris*)
13471   version_type=linux
13472   need_lib_prefix=no
13473   need_version=no
13474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475   soname_spec='${libname}${release}${shared_ext}$major'
13476   shlibpath_var=LD_LIBRARY_PATH
13477   shlibpath_overrides_runpath=yes
13478   hardcode_into_libs=yes
13479   # ldd complains unless libraries are executable
13480   postinstall_cmds='chmod +x $lib'
13481   ;;
13482
13483 sunos4*)
13484   version_type=sunos
13485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13486   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   shlibpath_overrides_runpath=yes
13489   if test "$with_gnu_ld" = yes; then
13490     need_lib_prefix=no
13491   fi
13492   need_version=yes
13493   ;;
13494
13495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13496   version_type=linux
13497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498   soname_spec='${libname}${release}${shared_ext}$major'
13499   shlibpath_var=LD_LIBRARY_PATH
13500   case $host_vendor in
13501     sni)
13502       shlibpath_overrides_runpath=no
13503       need_lib_prefix=no
13504       export_dynamic_flag_spec='${wl}-Blargedynsym'
13505       runpath_var=LD_RUN_PATH
13506       ;;
13507     siemens)
13508       need_lib_prefix=no
13509       ;;
13510     motorola)
13511       need_lib_prefix=no
13512       need_version=no
13513       shlibpath_overrides_runpath=no
13514       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13515       ;;
13516   esac
13517   ;;
13518
13519 sysv4*MP*)
13520   if test -d /usr/nec ;then
13521     version_type=linux
13522     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13523     soname_spec='$libname${shared_ext}.$major'
13524     shlibpath_var=LD_LIBRARY_PATH
13525   fi
13526   ;;
13527
13528 uts4*)
13529   version_type=linux
13530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531   soname_spec='${libname}${release}${shared_ext}$major'
13532   shlibpath_var=LD_LIBRARY_PATH
13533   ;;
13534
13535 *)
13536   dynamic_linker=no
13537   ;;
13538 esac
13539 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13540 echo "${ECHO_T}$dynamic_linker" >&6
13541 test "$dynamic_linker" = no && can_build_shared=no
13542
13543 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13544 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13545 hardcode_action=
13546 if test -n "$hardcode_libdir_flag_spec" || \
13547    test -n "$runpath_var" || \
13548    test "X$hardcode_automatic" = "Xyes" ; then
13549
13550   # We can hardcode non-existant directories.
13551   if test "$hardcode_direct" != no &&
13552      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13553      # have to relink, otherwise we might link with an installed library
13554      # when we should be linking with a yet-to-be-installed one
13555      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13556      test "$hardcode_minus_L" != no; then
13557     # Linking always hardcodes the temporary library directory.
13558     hardcode_action=relink
13559   else
13560     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13561     hardcode_action=immediate
13562   fi
13563 else
13564   # We cannot hardcode anything, or else we can only hardcode existing
13565   # directories.
13566   hardcode_action=unsupported
13567 fi
13568 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13569 echo "${ECHO_T}$hardcode_action" >&6
13570
13571 if test "$hardcode_action" = relink; then
13572   # Fast installation is not supported
13573   enable_fast_install=no
13574 elif test "$shlibpath_overrides_runpath" = yes ||
13575      test "$enable_shared" = no; then
13576   # Fast installation is not necessary
13577   enable_fast_install=needless
13578 fi
13579
13580 striplib=
13581 old_striplib=
13582 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13583 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13584 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13585   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13586   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13587   echo "$as_me:$LINENO: result: yes" >&5
13588 echo "${ECHO_T}yes" >&6
13589 else
13590 # FIXME - insert some real tests, host_os isn't really good enough
13591   case $host_os in
13592    darwin*)
13593        if test -n "$STRIP" ; then
13594          striplib="$STRIP -x"
13595          echo "$as_me:$LINENO: result: yes" >&5
13596 echo "${ECHO_T}yes" >&6
13597        else
13598   echo "$as_me:$LINENO: result: no" >&5
13599 echo "${ECHO_T}no" >&6
13600 fi
13601        ;;
13602    *)
13603   echo "$as_me:$LINENO: result: no" >&5
13604 echo "${ECHO_T}no" >&6
13605     ;;
13606   esac
13607 fi
13608
13609 if test "x$enable_dlopen" != xyes; then
13610   enable_dlopen=unknown
13611   enable_dlopen_self=unknown
13612   enable_dlopen_self_static=unknown
13613 else
13614   lt_cv_dlopen=no
13615   lt_cv_dlopen_libs=
13616
13617   case $host_os in
13618   beos*)
13619     lt_cv_dlopen="load_add_on"
13620     lt_cv_dlopen_libs=
13621     lt_cv_dlopen_self=yes
13622     ;;
13623
13624   mingw* | pw32*)
13625     lt_cv_dlopen="LoadLibrary"
13626     lt_cv_dlopen_libs=
13627    ;;
13628
13629   cygwin*)
13630     lt_cv_dlopen="dlopen"
13631     lt_cv_dlopen_libs=
13632    ;;
13633
13634   darwin*)
13635   # if libdl is installed we need to link against it
13636     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13637 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641   ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-ldl  $LIBS"
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649
13650 /* Override any gcc2 internal prototype to avoid an error.  */
13651 #ifdef __cplusplus
13652 extern "C"
13653 #endif
13654 /* We use char because int might match the return type of a gcc2
13655    builtin and then its argument prototype would still apply.  */
13656 char dlopen ();
13657 int
13658 main ()
13659 {
13660 dlopen ();
13661   ;
13662   return 0;
13663 }
13664 _ACEOF
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667   (eval $ac_link) 2>conftest.er1
13668   ac_status=$?
13669   grep -v '^ *+' conftest.er1 >conftest.err
13670   rm -f conftest.er1
13671   cat conftest.err >&5
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } &&
13674          { ac_try='test -z "$ac_c_werror_flag"
13675                          || test ! -s conftest.err'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; } &&
13681          { ac_try='test -s conftest$ac_exeext'
13682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683   (eval $ac_try) 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); }; }; then
13687   ac_cv_lib_dl_dlopen=yes
13688 else
13689   echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692 ac_cv_lib_dl_dlopen=no
13693 fi
13694 rm -f conftest.err conftest.$ac_objext \
13695       conftest$ac_exeext conftest.$ac_ext
13696 LIBS=$ac_check_lib_save_LIBS
13697 fi
13698 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13699 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13700 if test $ac_cv_lib_dl_dlopen = yes; then
13701   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13702 else
13703
13704     lt_cv_dlopen="dyld"
13705     lt_cv_dlopen_libs=
13706     lt_cv_dlopen_self=yes
13707
13708 fi
13709
13710    ;;
13711
13712   *)
13713     echo "$as_me:$LINENO: checking for shl_load" >&5
13714 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13715 if test "${ac_cv_func_shl_load+set}" = set; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h.  */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h.  */
13724 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13726 #define shl_load innocuous_shl_load
13727
13728 /* System header to define __stub macros and hopefully few prototypes,
13729     which can conflict with char shl_load (); below.
13730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13731     <limits.h> exists even on freestanding compilers.  */
13732
13733 #ifdef __STDC__
13734 # include <limits.h>
13735 #else
13736 # include <assert.h>
13737 #endif
13738
13739 #undef shl_load
13740
13741 /* Override any gcc2 internal prototype to avoid an error.  */
13742 #ifdef __cplusplus
13743 extern "C"
13744 {
13745 #endif
13746 /* We use char because int might match the return type of a gcc2
13747    builtin and then its argument prototype would still apply.  */
13748 char shl_load ();
13749 /* The GNU C library defines this for functions which it implements
13750     to always fail with ENOSYS.  Some functions are actually named
13751     something starting with __ and the normal name is an alias.  */
13752 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13753 choke me
13754 #else
13755 char (*f) () = shl_load;
13756 #endif
13757 #ifdef __cplusplus
13758 }
13759 #endif
13760
13761 int
13762 main ()
13763 {
13764 return f != shl_load;
13765   ;
13766   return 0;
13767 }
13768 _ACEOF
13769 rm -f conftest.$ac_objext conftest$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771   (eval $ac_link) 2>conftest.er1
13772   ac_status=$?
13773   grep -v '^ *+' conftest.er1 >conftest.err
13774   rm -f conftest.er1
13775   cat conftest.err >&5
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); } &&
13778          { ac_try='test -z "$ac_c_werror_flag"
13779                          || test ! -s conftest.err'
13780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781   (eval $ac_try) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); }; } &&
13785          { ac_try='test -s conftest$ac_exeext'
13786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787   (eval $ac_try) 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; }; then
13791   ac_cv_func_shl_load=yes
13792 else
13793   echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13795
13796 ac_cv_func_shl_load=no
13797 fi
13798 rm -f conftest.err conftest.$ac_objext \
13799       conftest$ac_exeext conftest.$ac_ext
13800 fi
13801 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13802 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13803 if test $ac_cv_func_shl_load = yes; then
13804   lt_cv_dlopen="shl_load"
13805 else
13806   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13807 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13808 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811   ac_check_lib_save_LIBS=$LIBS
13812 LIBS="-ldld  $LIBS"
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819
13820 /* Override any gcc2 internal prototype to avoid an error.  */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 /* We use char because int might match the return type of a gcc2
13825    builtin and then its argument prototype would still apply.  */
13826 char shl_load ();
13827 int
13828 main ()
13829 {
13830 shl_load ();
13831   ;
13832   return 0;
13833 }
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837   (eval $ac_link) 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -z "$ac_c_werror_flag"
13845                          || test ! -s conftest.err'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; } &&
13851          { ac_try='test -s conftest$ac_exeext'
13852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853   (eval $ac_try) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; }; then
13857   ac_cv_lib_dld_shl_load=yes
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 ac_cv_lib_dld_shl_load=no
13863 fi
13864 rm -f conftest.err conftest.$ac_objext \
13865       conftest$ac_exeext conftest.$ac_ext
13866 LIBS=$ac_check_lib_save_LIBS
13867 fi
13868 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13869 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13870 if test $ac_cv_lib_dld_shl_load = yes; then
13871   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13872 else
13873   echo "$as_me:$LINENO: checking for dlopen" >&5
13874 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13875 if test "${ac_cv_func_dlopen+set}" = set; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13886 #define dlopen innocuous_dlopen
13887
13888 /* System header to define __stub macros and hopefully few prototypes,
13889     which can conflict with char dlopen (); below.
13890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13891     <limits.h> exists even on freestanding compilers.  */
13892
13893 #ifdef __STDC__
13894 # include <limits.h>
13895 #else
13896 # include <assert.h>
13897 #endif
13898
13899 #undef dlopen
13900
13901 /* Override any gcc2 internal prototype to avoid an error.  */
13902 #ifdef __cplusplus
13903 extern "C"
13904 {
13905 #endif
13906 /* We use char because int might match the return type of a gcc2
13907    builtin and then its argument prototype would still apply.  */
13908 char dlopen ();
13909 /* The GNU C library defines this for functions which it implements
13910     to always fail with ENOSYS.  Some functions are actually named
13911     something starting with __ and the normal name is an alias.  */
13912 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13913 choke me
13914 #else
13915 char (*f) () = dlopen;
13916 #endif
13917 #ifdef __cplusplus
13918 }
13919 #endif
13920
13921 int
13922 main ()
13923 {
13924 return f != dlopen;
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13931   (eval $ac_link) 2>conftest.er1
13932   ac_status=$?
13933   grep -v '^ *+' conftest.er1 >conftest.err
13934   rm -f conftest.er1
13935   cat conftest.err >&5
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); } &&
13938          { ac_try='test -z "$ac_c_werror_flag"
13939                          || test ! -s conftest.err'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; } &&
13945          { ac_try='test -s conftest$ac_exeext'
13946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947   (eval $ac_try) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); }; }; then
13951   ac_cv_func_dlopen=yes
13952 else
13953   echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13955
13956 ac_cv_func_dlopen=no
13957 fi
13958 rm -f conftest.err conftest.$ac_objext \
13959       conftest$ac_exeext conftest.$ac_ext
13960 fi
13961 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13962 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13963 if test $ac_cv_func_dlopen = yes; then
13964   lt_cv_dlopen="dlopen"
13965 else
13966   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13967 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13968 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13969   echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971   ac_check_lib_save_LIBS=$LIBS
13972 LIBS="-ldl  $LIBS"
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h.  */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h.  */
13979
13980 /* Override any gcc2 internal prototype to avoid an error.  */
13981 #ifdef __cplusplus
13982 extern "C"
13983 #endif
13984 /* We use char because int might match the return type of a gcc2
13985    builtin and then its argument prototype would still apply.  */
13986 char dlopen ();
13987 int
13988 main ()
13989 {
13990 dlopen ();
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 rm -f conftest.$ac_objext conftest$ac_exeext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13997   (eval $ac_link) 2>conftest.er1
13998   ac_status=$?
13999   grep -v '^ *+' conftest.er1 >conftest.err
14000   rm -f conftest.er1
14001   cat conftest.err >&5
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } &&
14004          { ac_try='test -z "$ac_c_werror_flag"
14005                          || test ! -s conftest.err'
14006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007   (eval $ac_try) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; } &&
14011          { ac_try='test -s conftest$ac_exeext'
14012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; }; then
14017   ac_cv_lib_dl_dlopen=yes
14018 else
14019   echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022 ac_cv_lib_dl_dlopen=no
14023 fi
14024 rm -f conftest.err conftest.$ac_objext \
14025       conftest$ac_exeext conftest.$ac_ext
14026 LIBS=$ac_check_lib_save_LIBS
14027 fi
14028 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14029 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14030 if test $ac_cv_lib_dl_dlopen = yes; then
14031   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14032 else
14033   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14034 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14035 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14036   echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038   ac_check_lib_save_LIBS=$LIBS
14039 LIBS="-lsvld  $LIBS"
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046
14047 /* Override any gcc2 internal prototype to avoid an error.  */
14048 #ifdef __cplusplus
14049 extern "C"
14050 #endif
14051 /* We use char because int might match the return type of a gcc2
14052    builtin and then its argument prototype would still apply.  */
14053 char dlopen ();
14054 int
14055 main ()
14056 {
14057 dlopen ();
14058   ;
14059   return 0;
14060 }
14061 _ACEOF
14062 rm -f conftest.$ac_objext conftest$ac_exeext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14064   (eval $ac_link) 2>conftest.er1
14065   ac_status=$?
14066   grep -v '^ *+' conftest.er1 >conftest.err
14067   rm -f conftest.er1
14068   cat conftest.err >&5
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); } &&
14071          { ac_try='test -z "$ac_c_werror_flag"
14072                          || test ! -s conftest.err'
14073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074   (eval $ac_try) 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); }; } &&
14078          { ac_try='test -s conftest$ac_exeext'
14079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080   (eval $ac_try) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; }; then
14084   ac_cv_lib_svld_dlopen=yes
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089 ac_cv_lib_svld_dlopen=no
14090 fi
14091 rm -f conftest.err conftest.$ac_objext \
14092       conftest$ac_exeext conftest.$ac_ext
14093 LIBS=$ac_check_lib_save_LIBS
14094 fi
14095 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14096 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14097 if test $ac_cv_lib_svld_dlopen = yes; then
14098   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14099 else
14100   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14101 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14102 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14103   echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105   ac_check_lib_save_LIBS=$LIBS
14106 LIBS="-ldld  $LIBS"
14107 cat >conftest.$ac_ext <<_ACEOF
14108 /* confdefs.h.  */
14109 _ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h.  */
14113
14114 /* Override any gcc2 internal prototype to avoid an error.  */
14115 #ifdef __cplusplus
14116 extern "C"
14117 #endif
14118 /* We use char because int might match the return type of a gcc2
14119    builtin and then its argument prototype would still apply.  */
14120 char dld_link ();
14121 int
14122 main ()
14123 {
14124 dld_link ();
14125   ;
14126   return 0;
14127 }
14128 _ACEOF
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131   (eval $ac_link) 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -z "$ac_c_werror_flag"
14139                          || test ! -s conftest.err'
14140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141   (eval $ac_try) 2>&5
14142   ac_status=$?
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); }; } &&
14145          { ac_try='test -s conftest$ac_exeext'
14146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147   (eval $ac_try) 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; }; then
14151   ac_cv_lib_dld_dld_link=yes
14152 else
14153   echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156 ac_cv_lib_dld_dld_link=no
14157 fi
14158 rm -f conftest.err conftest.$ac_objext \
14159       conftest$ac_exeext conftest.$ac_ext
14160 LIBS=$ac_check_lib_save_LIBS
14161 fi
14162 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14163 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14164 if test $ac_cv_lib_dld_dld_link = yes; then
14165   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14166 fi
14167
14168
14169 fi
14170
14171
14172 fi
14173
14174
14175 fi
14176
14177
14178 fi
14179
14180
14181 fi
14182
14183     ;;
14184   esac
14185
14186   if test "x$lt_cv_dlopen" != xno; then
14187     enable_dlopen=yes
14188   else
14189     enable_dlopen=no
14190   fi
14191
14192   case $lt_cv_dlopen in
14193   dlopen)
14194     save_CPPFLAGS="$CPPFLAGS"
14195     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14196
14197     save_LDFLAGS="$LDFLAGS"
14198     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14199
14200     save_LIBS="$LIBS"
14201     LIBS="$lt_cv_dlopen_libs $LIBS"
14202
14203     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14204 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14205 if test "${lt_cv_dlopen_self+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208           if test "$cross_compiling" = yes; then :
14209   lt_cv_dlopen_self=cross
14210 else
14211   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14212   lt_status=$lt_dlunknown
14213   cat > conftest.$ac_ext <<EOF
14214 #line 14214 "configure"
14215 #include "confdefs.h"
14216
14217 #if HAVE_DLFCN_H
14218 #include <dlfcn.h>
14219 #endif
14220
14221 #include <stdio.h>
14222
14223 #ifdef RTLD_GLOBAL
14224 #  define LT_DLGLOBAL           RTLD_GLOBAL
14225 #else
14226 #  ifdef DL_GLOBAL
14227 #    define LT_DLGLOBAL         DL_GLOBAL
14228 #  else
14229 #    define LT_DLGLOBAL         0
14230 #  endif
14231 #endif
14232
14233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14234    find out it does not work in some platform. */
14235 #ifndef LT_DLLAZY_OR_NOW
14236 #  ifdef RTLD_LAZY
14237 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14238 #  else
14239 #    ifdef DL_LAZY
14240 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14241 #    else
14242 #      ifdef RTLD_NOW
14243 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14244 #      else
14245 #        ifdef DL_NOW
14246 #          define LT_DLLAZY_OR_NOW      DL_NOW
14247 #        else
14248 #          define LT_DLLAZY_OR_NOW      0
14249 #        endif
14250 #      endif
14251 #    endif
14252 #  endif
14253 #endif
14254
14255 #ifdef __cplusplus
14256 extern "C" void exit (int);
14257 #endif
14258
14259 void fnord() { int i=42;}
14260 int main ()
14261 {
14262   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14263   int status = $lt_dlunknown;
14264
14265   if (self)
14266     {
14267       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14268       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14269       /* dlclose (self); */
14270     }
14271
14272     exit (status);
14273 }
14274 EOF
14275   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14276   (eval $ac_link) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14280     (./conftest; exit; ) 2>/dev/null
14281     lt_status=$?
14282     case x$lt_status in
14283       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14284       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14285       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14286     esac
14287   else :
14288     # compilation failed
14289     lt_cv_dlopen_self=no
14290   fi
14291 fi
14292 rm -fr conftest*
14293
14294
14295 fi
14296 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14297 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14298
14299     if test "x$lt_cv_dlopen_self" = xyes; then
14300       LDFLAGS="$LDFLAGS $link_static_flag"
14301       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14302 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14303 if test "${lt_cv_dlopen_self_static+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306           if test "$cross_compiling" = yes; then :
14307   lt_cv_dlopen_self_static=cross
14308 else
14309   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14310   lt_status=$lt_dlunknown
14311   cat > conftest.$ac_ext <<EOF
14312 #line 14312 "configure"
14313 #include "confdefs.h"
14314
14315 #if HAVE_DLFCN_H
14316 #include <dlfcn.h>
14317 #endif
14318
14319 #include <stdio.h>
14320
14321 #ifdef RTLD_GLOBAL
14322 #  define LT_DLGLOBAL           RTLD_GLOBAL
14323 #else
14324 #  ifdef DL_GLOBAL
14325 #    define LT_DLGLOBAL         DL_GLOBAL
14326 #  else
14327 #    define LT_DLGLOBAL         0
14328 #  endif
14329 #endif
14330
14331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14332    find out it does not work in some platform. */
14333 #ifndef LT_DLLAZY_OR_NOW
14334 #  ifdef RTLD_LAZY
14335 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14336 #  else
14337 #    ifdef DL_LAZY
14338 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14339 #    else
14340 #      ifdef RTLD_NOW
14341 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14342 #      else
14343 #        ifdef DL_NOW
14344 #          define LT_DLLAZY_OR_NOW      DL_NOW
14345 #        else
14346 #          define LT_DLLAZY_OR_NOW      0
14347 #        endif
14348 #      endif
14349 #    endif
14350 #  endif
14351 #endif
14352
14353 #ifdef __cplusplus
14354 extern "C" void exit (int);
14355 #endif
14356
14357 void fnord() { int i=42;}
14358 int main ()
14359 {
14360   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14361   int status = $lt_dlunknown;
14362
14363   if (self)
14364     {
14365       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14366       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14367       /* dlclose (self); */
14368     }
14369
14370     exit (status);
14371 }
14372 EOF
14373   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14374   (eval $ac_link) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14378     (./conftest; exit; ) 2>/dev/null
14379     lt_status=$?
14380     case x$lt_status in
14381       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14382       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14383       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14384     esac
14385   else :
14386     # compilation failed
14387     lt_cv_dlopen_self_static=no
14388   fi
14389 fi
14390 rm -fr conftest*
14391
14392
14393 fi
14394 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14395 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14396     fi
14397
14398     CPPFLAGS="$save_CPPFLAGS"
14399     LDFLAGS="$save_LDFLAGS"
14400     LIBS="$save_LIBS"
14401     ;;
14402   esac
14403
14404   case $lt_cv_dlopen_self in
14405   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14406   *) enable_dlopen_self=unknown ;;
14407   esac
14408
14409   case $lt_cv_dlopen_self_static in
14410   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14411   *) enable_dlopen_self_static=unknown ;;
14412   esac
14413 fi
14414
14415
14416 # Report which librarie types wil actually be built
14417 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14418 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14419 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14420 echo "${ECHO_T}$can_build_shared" >&6
14421
14422 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14423 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14424 test "$can_build_shared" = "no" && enable_shared=no
14425
14426 # On AIX, shared libraries and static libraries use the same namespace, and
14427 # are all built from PIC.
14428 case "$host_os" in
14429 aix3*)
14430   test "$enable_shared" = yes && enable_static=no
14431   if test -n "$RANLIB"; then
14432     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14433     postinstall_cmds='$RANLIB $lib'
14434   fi
14435   ;;
14436
14437 aix4* | aix5*)
14438   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14439     test "$enable_shared" = yes && enable_static=no
14440   fi
14441     ;;
14442 esac
14443 echo "$as_me:$LINENO: result: $enable_shared" >&5
14444 echo "${ECHO_T}$enable_shared" >&6
14445
14446 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14447 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14448 # Make sure either enable_shared or enable_static is yes.
14449 test "$enable_shared" = yes || enable_static=yes
14450 echo "$as_me:$LINENO: result: $enable_static" >&5
14451 echo "${ECHO_T}$enable_static" >&6
14452
14453 # The else clause should only fire when bootstrapping the
14454 # libtool distribution, otherwise you forgot to ship ltmain.sh
14455 # with your package, and you will get complaints that there are
14456 # no rules to generate ltmain.sh.
14457 if test -f "$ltmain"; then
14458   # See if we are running on zsh, and set the options which allow our commands through
14459   # without removal of \ escapes.
14460   if test -n "${ZSH_VERSION+set}" ; then
14461     setopt NO_GLOB_SUBST
14462   fi
14463   # Now quote all the things that may contain metacharacters while being
14464   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14465   # variables and quote the copies for generation of the libtool script.
14466   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14467     SED SHELL STRIP \
14468     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14469     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14470     deplibs_check_method reload_flag reload_cmds need_locks \
14471     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14472     lt_cv_sys_global_symbol_to_c_name_address \
14473     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14474     old_postinstall_cmds old_postuninstall_cmds \
14475     compiler \
14476     CC \
14477     LD \
14478     lt_prog_compiler_wl \
14479     lt_prog_compiler_pic \
14480     lt_prog_compiler_static \
14481     lt_prog_compiler_no_builtin_flag \
14482     export_dynamic_flag_spec \
14483     thread_safe_flag_spec \
14484     whole_archive_flag_spec \
14485     enable_shared_with_static_runtimes \
14486     old_archive_cmds \
14487     old_archive_from_new_cmds \
14488     predep_objects \
14489     postdep_objects \
14490     predeps \
14491     postdeps \
14492     compiler_lib_search_path \
14493     archive_cmds \
14494     archive_expsym_cmds \
14495     postinstall_cmds \
14496     postuninstall_cmds \
14497     old_archive_from_expsyms_cmds \
14498     allow_undefined_flag \
14499     no_undefined_flag \
14500     export_symbols_cmds \
14501     hardcode_libdir_flag_spec \
14502     hardcode_libdir_flag_spec_ld \
14503     hardcode_libdir_separator \
14504     hardcode_automatic \
14505     module_cmds \
14506     module_expsym_cmds \
14507     lt_cv_prog_compiler_c_o \
14508     exclude_expsyms \
14509     include_expsyms; do
14510
14511     case $var in
14512     old_archive_cmds | \
14513     old_archive_from_new_cmds | \
14514     archive_cmds | \
14515     archive_expsym_cmds | \
14516     module_cmds | \
14517     module_expsym_cmds | \
14518     old_archive_from_expsyms_cmds | \
14519     export_symbols_cmds | \
14520     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14521     postinstall_cmds | postuninstall_cmds | \
14522     old_postinstall_cmds | old_postuninstall_cmds | \
14523     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14524       # Double-quote double-evaled strings.
14525       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14526       ;;
14527     *)
14528       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14529       ;;
14530     esac
14531   done
14532
14533   case $lt_echo in
14534   *'\$0 --fallback-echo"')
14535     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14536     ;;
14537   esac
14538
14539 cfgfile="${ofile}T"
14540   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14541   $rm -f "$cfgfile"
14542   { echo "$as_me:$LINENO: creating $ofile" >&5
14543 echo "$as_me: creating $ofile" >&6;}
14544
14545   cat <<__EOF__ >> "$cfgfile"
14546 #! $SHELL
14547
14548 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14549 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14550 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14551 #
14552 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14553 # Free Software Foundation, Inc.
14554 #
14555 # This file is part of GNU Libtool:
14556 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14557 #
14558 # This program is free software; you can redistribute it and/or modify
14559 # it under the terms of the GNU General Public License as published by
14560 # the Free Software Foundation; either version 2 of the License, or
14561 # (at your option) any later version.
14562 #
14563 # This program is distributed in the hope that it will be useful, but
14564 # WITHOUT ANY WARRANTY; without even the implied warranty of
14565 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14566 # General Public License for more details.
14567 #
14568 # You should have received a copy of the GNU General Public License
14569 # along with this program; if not, write to the Free Software
14570 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14571 #
14572 # As a special exception to the GNU General Public License, if you
14573 # distribute this file as part of a program that contains a
14574 # configuration script generated by Autoconf, you may include it under
14575 # the same distribution terms that you use for the rest of that program.
14576
14577 # A sed program that does not truncate output.
14578 SED=$lt_SED
14579
14580 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14581 Xsed="$SED -e s/^X//"
14582
14583 # The HP-UX ksh and POSIX shell print the target directory to stdout
14584 # if CDPATH is set.
14585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14586
14587 # The names of the tagged configurations supported by this script.
14588 available_tags=
14589
14590 # ### BEGIN LIBTOOL CONFIG
14591
14592 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14593
14594 # Shell to use when invoking shell scripts.
14595 SHELL=$lt_SHELL
14596
14597 # Whether or not to build shared libraries.
14598 build_libtool_libs=$enable_shared
14599
14600 # Whether or not to build static libraries.
14601 build_old_libs=$enable_static
14602
14603 # Whether or not to add -lc for building shared libraries.
14604 build_libtool_need_lc=$archive_cmds_need_lc
14605
14606 # Whether or not to disallow shared libs when runtime libs are static
14607 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14608
14609 # Whether or not to optimize for fast installation.
14610 fast_install=$enable_fast_install
14611
14612 # The host system.
14613 host_alias=$host_alias
14614 host=$host
14615
14616 # An echo program that does not interpret backslashes.
14617 echo=$lt_echo
14618
14619 # The archiver.
14620 AR=$lt_AR
14621 AR_FLAGS=$lt_AR_FLAGS
14622
14623 # A C compiler.
14624 LTCC=$lt_LTCC
14625
14626 # A language-specific compiler.
14627 CC=$lt_compiler
14628
14629 # Is the compiler the GNU C compiler?
14630 with_gcc=$GCC
14631
14632 # An ERE matcher.
14633 EGREP=$lt_EGREP
14634
14635 # The linker used to build libraries.
14636 LD=$lt_LD
14637
14638 # Whether we need hard or soft links.
14639 LN_S=$lt_LN_S
14640
14641 # A BSD-compatible nm program.
14642 NM=$lt_NM
14643
14644 # A symbol stripping program
14645 STRIP=$lt_STRIP
14646
14647 # Used to examine libraries when file_magic_cmd begins "file"
14648 MAGIC_CMD=$MAGIC_CMD
14649
14650 # Used on cygwin: DLL creation program.
14651 DLLTOOL="$DLLTOOL"
14652
14653 # Used on cygwin: object dumper.
14654 OBJDUMP="$OBJDUMP"
14655
14656 # Used on cygwin: assembler.
14657 AS="$AS"
14658
14659 # The name of the directory that contains temporary libtool files.
14660 objdir=$objdir
14661
14662 # How to create reloadable object files.
14663 reload_flag=$lt_reload_flag
14664 reload_cmds=$lt_reload_cmds
14665
14666 # How to pass a linker flag through the compiler.
14667 wl=$lt_lt_prog_compiler_wl
14668
14669 # Object file suffix (normally "o").
14670 objext="$ac_objext"
14671
14672 # Old archive suffix (normally "a").
14673 libext="$libext"
14674
14675 # Shared library suffix (normally ".so").
14676 shrext_cmds='$shrext_cmds'
14677
14678 # Executable file suffix (normally "").
14679 exeext="$exeext"
14680
14681 # Additional compiler flags for building library objects.
14682 pic_flag=$lt_lt_prog_compiler_pic
14683 pic_mode=$pic_mode
14684
14685 # What is the maximum length of a command?
14686 max_cmd_len=$lt_cv_sys_max_cmd_len
14687
14688 # Does compiler simultaneously support -c and -o options?
14689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14690
14691 # Must we lock files when doing compilation ?
14692 need_locks=$lt_need_locks
14693
14694 # Do we need the lib prefix for modules?
14695 need_lib_prefix=$need_lib_prefix
14696
14697 # Do we need a version for libraries?
14698 need_version=$need_version
14699
14700 # Whether dlopen is supported.
14701 dlopen_support=$enable_dlopen
14702
14703 # Whether dlopen of programs is supported.
14704 dlopen_self=$enable_dlopen_self
14705
14706 # Whether dlopen of statically linked programs is supported.
14707 dlopen_self_static=$enable_dlopen_self_static
14708
14709 # Compiler flag to prevent dynamic linking.
14710 link_static_flag=$lt_lt_prog_compiler_static
14711
14712 # Compiler flag to turn off builtin functions.
14713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14714
14715 # Compiler flag to allow reflexive dlopens.
14716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14717
14718 # Compiler flag to generate shared objects directly from archives.
14719 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14720
14721 # Compiler flag to generate thread-safe objects.
14722 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14723
14724 # Library versioning type.
14725 version_type=$version_type
14726
14727 # Format of library name prefix.
14728 libname_spec=$lt_libname_spec
14729
14730 # List of archive names.  First name is the real one, the rest are links.
14731 # The last name is the one that the linker finds with -lNAME.
14732 library_names_spec=$lt_library_names_spec
14733
14734 # The coded name of the library, if different from the real name.
14735 soname_spec=$lt_soname_spec
14736
14737 # Commands used to build and install an old-style archive.
14738 RANLIB=$lt_RANLIB
14739 old_archive_cmds=$lt_old_archive_cmds
14740 old_postinstall_cmds=$lt_old_postinstall_cmds
14741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14742
14743 # Create an old-style archive from a shared archive.
14744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14745
14746 # Create a temporary old-style archive to link instead of a shared archive.
14747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14748
14749 # Commands used to build and install a shared archive.
14750 archive_cmds=$lt_archive_cmds
14751 archive_expsym_cmds=$lt_archive_expsym_cmds
14752 postinstall_cmds=$lt_postinstall_cmds
14753 postuninstall_cmds=$lt_postuninstall_cmds
14754
14755 # Commands used to build a loadable module (assumed same as above if empty)
14756 module_cmds=$lt_module_cmds
14757 module_expsym_cmds=$lt_module_expsym_cmds
14758
14759 # Commands to strip libraries.
14760 old_striplib=$lt_old_striplib
14761 striplib=$lt_striplib
14762
14763 # Dependencies to place before the objects being linked to create a
14764 # shared library.
14765 predep_objects=$lt_predep_objects
14766
14767 # Dependencies to place after the objects being linked to create a
14768 # shared library.
14769 postdep_objects=$lt_postdep_objects
14770
14771 # Dependencies to place before the objects being linked to create a
14772 # shared library.
14773 predeps=$lt_predeps
14774
14775 # Dependencies to place after the objects being linked to create a
14776 # shared library.
14777 postdeps=$lt_postdeps
14778
14779 # The library search path used internally by the compiler when linking
14780 # a shared library.
14781 compiler_lib_search_path=$lt_compiler_lib_search_path
14782
14783 # Method to check whether dependent libraries are shared objects.
14784 deplibs_check_method=$lt_deplibs_check_method
14785
14786 # Command to use when deplibs_check_method == file_magic.
14787 file_magic_cmd=$lt_file_magic_cmd
14788
14789 # Flag that allows shared libraries with undefined symbols to be built.
14790 allow_undefined_flag=$lt_allow_undefined_flag
14791
14792 # Flag that forces no undefined symbols.
14793 no_undefined_flag=$lt_no_undefined_flag
14794
14795 # Commands used to finish a libtool library installation in a directory.
14796 finish_cmds=$lt_finish_cmds
14797
14798 # Same as above, but a single script fragment to be evaled but not shown.
14799 finish_eval=$lt_finish_eval
14800
14801 # Take the output of nm and produce a listing of raw symbols and C names.
14802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14803
14804 # Transform the output of nm in a proper C declaration
14805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14806
14807 # Transform the output of nm in a C name address pair
14808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14809
14810 # This is the shared library runtime path variable.
14811 runpath_var=$runpath_var
14812
14813 # This is the shared library path variable.
14814 shlibpath_var=$shlibpath_var
14815
14816 # Is shlibpath searched before the hard-coded library search path?
14817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14818
14819 # How to hardcode a shared library path into an executable.
14820 hardcode_action=$hardcode_action
14821
14822 # Whether we should hardcode library paths into libraries.
14823 hardcode_into_libs=$hardcode_into_libs
14824
14825 # Flag to hardcode \$libdir into a binary during linking.
14826 # This must work even if \$libdir does not exist.
14827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14828
14829 # If ld is used when linking, flag to hardcode \$libdir into
14830 # a binary during linking. This must work even if \$libdir does
14831 # not exist.
14832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14833
14834 # Whether we need a single -rpath flag with a separated argument.
14835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14836
14837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14838 # resulting binary.
14839 hardcode_direct=$hardcode_direct
14840
14841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14842 # resulting binary.
14843 hardcode_minus_L=$hardcode_minus_L
14844
14845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14846 # the resulting binary.
14847 hardcode_shlibpath_var=$hardcode_shlibpath_var
14848
14849 # Set to yes if building a shared library automatically hardcodes DIR into the library
14850 # and all subsequent libraries and executables linked against it.
14851 hardcode_automatic=$hardcode_automatic
14852
14853 # Variables whose values should be saved in libtool wrapper scripts and
14854 # restored at relink time.
14855 variables_saved_for_relink="$variables_saved_for_relink"
14856
14857 # Whether libtool must link a program against all its dependency libraries.
14858 link_all_deplibs=$link_all_deplibs
14859
14860 # Compile-time system search path for libraries
14861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14862
14863 # Run-time system search path for libraries
14864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14865
14866 # Fix the shell variable \$srcfile for the compiler.
14867 fix_srcfile_path="$fix_srcfile_path"
14868
14869 # Set to yes if exported symbols are required.
14870 always_export_symbols=$always_export_symbols
14871
14872 # The commands to list exported symbols.
14873 export_symbols_cmds=$lt_export_symbols_cmds
14874
14875 # The commands to extract the exported symbol list from a shared archive.
14876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14877
14878 # Symbols that should not be listed in the preloaded symbols.
14879 exclude_expsyms=$lt_exclude_expsyms
14880
14881 # Symbols that must always be exported.
14882 include_expsyms=$lt_include_expsyms
14883
14884 # ### END LIBTOOL CONFIG
14885
14886 __EOF__
14887
14888
14889   case $host_os in
14890   aix3*)
14891     cat <<\EOF >> "$cfgfile"
14892
14893 # AIX sometimes has problems with the GCC collect2 program.  For some
14894 # reason, if we set the COLLECT_NAMES environment variable, the problems
14895 # vanish in a puff of smoke.
14896 if test "X${COLLECT_NAMES+set}" != Xset; then
14897   COLLECT_NAMES=
14898   export COLLECT_NAMES
14899 fi
14900 EOF
14901     ;;
14902   esac
14903
14904   # We use sed instead of cat because bash on DJGPP gets confused if
14905   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14906   # text mode, it properly converts lines to CR/LF.  This bash problem
14907   # is reportedly fixed, but why not run on old versions too?
14908   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14909
14910   mv -f "$cfgfile" "$ofile" || \
14911     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14912   chmod +x "$ofile"
14913
14914 else
14915   # If there is no Makefile yet, we rely on a make rule to execute
14916   # `config.status --recheck' to rerun these tests and create the
14917   # libtool script then.
14918   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14919   if test -f "$ltmain_in"; then
14920     test -f Makefile && make "$ltmain"
14921   fi
14922 fi
14923
14924
14925 ac_ext=c
14926 ac_cpp='$CPP $CPPFLAGS'
14927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14930
14931 CC="$lt_save_CC"
14932
14933
14934 # Check whether --with-tags or --without-tags was given.
14935 if test "${with_tags+set}" = set; then
14936   withval="$with_tags"
14937   tagnames="$withval"
14938 fi;
14939
14940 if test -f "$ltmain" && test -n "$tagnames"; then
14941   if test ! -f "${ofile}"; then
14942     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14943 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14944   fi
14945
14946   if test -z "$LTCC"; then
14947     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14948     if test -z "$LTCC"; then
14949       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14950 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14951     else
14952       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14953 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14954     fi
14955   fi
14956
14957   # Extract list of available tagged configurations in $ofile.
14958   # Note that this assumes the entire list is on one line.
14959   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14960
14961   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14962   for tagname in $tagnames; do
14963     IFS="$lt_save_ifs"
14964     # Check whether tagname contains only valid characters
14965     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14966     "") ;;
14967     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14968 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14969    { (exit 1); exit 1; }; }
14970         ;;
14971     esac
14972
14973     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14974     then
14975       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14976 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14977    { (exit 1); exit 1; }; }
14978     fi
14979
14980     # Update the list of available tags.
14981     if test -n "$tagname"; then
14982       echo appending configuration tag "$tagname" to $ofile
14983
14984       case $tagname in
14985       CXX)
14986         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14987             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14988             (test "X$CXX" != "Xg++"))) ; then
14989           ac_ext=cc
14990 ac_cpp='$CXXCPP $CPPFLAGS'
14991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14994
14995
14996
14997
14998 archive_cmds_need_lc_CXX=no
14999 allow_undefined_flag_CXX=
15000 always_export_symbols_CXX=no
15001 archive_expsym_cmds_CXX=
15002 export_dynamic_flag_spec_CXX=
15003 hardcode_direct_CXX=no
15004 hardcode_libdir_flag_spec_CXX=
15005 hardcode_libdir_flag_spec_ld_CXX=
15006 hardcode_libdir_separator_CXX=
15007 hardcode_minus_L_CXX=no
15008 hardcode_automatic_CXX=no
15009 module_cmds_CXX=
15010 module_expsym_cmds_CXX=
15011 link_all_deplibs_CXX=unknown
15012 old_archive_cmds_CXX=$old_archive_cmds
15013 no_undefined_flag_CXX=
15014 whole_archive_flag_spec_CXX=
15015 enable_shared_with_static_runtimes_CXX=no
15016
15017 # Dependencies to place before and after the object being linked:
15018 predep_objects_CXX=
15019 postdep_objects_CXX=
15020 predeps_CXX=
15021 postdeps_CXX=
15022 compiler_lib_search_path_CXX=
15023
15024 # Source file extension for C++ test sources.
15025 ac_ext=cc
15026
15027 # Object file extension for compiled C++ test sources.
15028 objext=o
15029 objext_CXX=$objext
15030
15031 # Code to be used in simple compile tests
15032 lt_simple_compile_test_code="int some_variable = 0;\n"
15033
15034 # Code to be used in simple link tests
15035 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15036
15037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15038
15039 # If no C compiler was specified, use CC.
15040 LTCC=${LTCC-"$CC"}
15041
15042 # Allow CC to be a program name with arguments.
15043 compiler=$CC
15044
15045
15046 # Allow CC to be a program name with arguments.
15047 lt_save_CC=$CC
15048 lt_save_LD=$LD
15049 lt_save_GCC=$GCC
15050 GCC=$GXX
15051 lt_save_with_gnu_ld=$with_gnu_ld
15052 lt_save_path_LD=$lt_cv_path_LD
15053 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15054   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15055 else
15056   unset lt_cv_prog_gnu_ld
15057 fi
15058 if test -n "${lt_cv_path_LDCXX+set}"; then
15059   lt_cv_path_LD=$lt_cv_path_LDCXX
15060 else
15061   unset lt_cv_path_LD
15062 fi
15063 test -z "${LDCXX+set}" || LD=$LDCXX
15064 CC=${CXX-"c++"}
15065 compiler=$CC
15066 compiler_CXX=$CC
15067 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15068
15069 # We don't want -fno-exception wen compiling C++ code, so set the
15070 # no_builtin_flag separately
15071 if test "$GXX" = yes; then
15072   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15073 else
15074   lt_prog_compiler_no_builtin_flag_CXX=
15075 fi
15076
15077 if test "$GXX" = yes; then
15078   # Set up default GNU C++ configuration
15079
15080
15081 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15082 if test "${with_gnu_ld+set}" = set; then
15083   withval="$with_gnu_ld"
15084   test "$withval" = no || with_gnu_ld=yes
15085 else
15086   with_gnu_ld=no
15087 fi;
15088 ac_prog=ld
15089 if test "$GCC" = yes; then
15090   # Check if gcc -print-prog-name=ld gives a path.
15091   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15092 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15093   case $host in
15094   *-*-mingw*)
15095     # gcc leaves a trailing carriage return which upsets mingw
15096     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15097   *)
15098     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15099   esac
15100   case $ac_prog in
15101     # Accept absolute paths.
15102     [\\/]* | ?:[\\/]*)
15103       re_direlt='/[^/][^/]*/\.\./'
15104       # Canonicalize the pathname of ld
15105       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15106       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15107         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15108       done
15109       test -z "$LD" && LD="$ac_prog"
15110       ;;
15111   "")
15112     # If it fails, then pretend we aren't using GCC.
15113     ac_prog=ld
15114     ;;
15115   *)
15116     # If it is relative, then search for the first ld in PATH.
15117     with_gnu_ld=unknown
15118     ;;
15119   esac
15120 elif test "$with_gnu_ld" = yes; then
15121   echo "$as_me:$LINENO: checking for GNU ld" >&5
15122 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15123 else
15124   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15125 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15126 fi
15127 if test "${lt_cv_path_LD+set}" = set; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   if test -z "$LD"; then
15131   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15132   for ac_dir in $PATH; do
15133     IFS="$lt_save_ifs"
15134     test -z "$ac_dir" && ac_dir=.
15135     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15136       lt_cv_path_LD="$ac_dir/$ac_prog"
15137       # Check to see if the program is GNU ld.  I'd rather use --version,
15138       # but apparently some GNU ld's only accept -v.
15139       # Break only if it was the GNU/non-GNU ld that we prefer.
15140       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15141       *GNU* | *'with BFD'*)
15142         test "$with_gnu_ld" != no && break
15143         ;;
15144       *)
15145         test "$with_gnu_ld" != yes && break
15146         ;;
15147       esac
15148     fi
15149   done
15150   IFS="$lt_save_ifs"
15151 else
15152   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15153 fi
15154 fi
15155
15156 LD="$lt_cv_path_LD"
15157 if test -n "$LD"; then
15158   echo "$as_me:$LINENO: result: $LD" >&5
15159 echo "${ECHO_T}$LD" >&6
15160 else
15161   echo "$as_me:$LINENO: result: no" >&5
15162 echo "${ECHO_T}no" >&6
15163 fi
15164 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15165 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15166    { (exit 1); exit 1; }; }
15167 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15168 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15169 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15170   echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15173 case `$LD -v 2>&1 </dev/null` in
15174 *GNU* | *'with BFD'*)
15175   lt_cv_prog_gnu_ld=yes
15176   ;;
15177 *)
15178   lt_cv_prog_gnu_ld=no
15179   ;;
15180 esac
15181 fi
15182 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15183 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15184 with_gnu_ld=$lt_cv_prog_gnu_ld
15185
15186
15187
15188   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15189   # archiving commands below assume that GNU ld is being used.
15190   if test "$with_gnu_ld" = yes; then
15191     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15192     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'
15193
15194     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15195     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15196
15197     # If archive_cmds runs LD, not CC, wlarc should be empty
15198     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15199     #     investigate it a little bit more. (MM)
15200     wlarc='${wl}'
15201
15202     # ancient GNU ld didn't support --whole-archive et. al.
15203     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15204         grep 'no-whole-archive' > /dev/null; then
15205       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15206     else
15207       whole_archive_flag_spec_CXX=
15208     fi
15209   else
15210     with_gnu_ld=no
15211     wlarc=
15212
15213     # A generic and very simple default shared library creation
15214     # command for GNU C++ for the case where it uses the native
15215     # linker, instead of GNU ld.  If possible, this setting should
15216     # overridden to take advantage of the native linker features on
15217     # the platform it is being used on.
15218     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15219   fi
15220
15221   # Commands to make compiler produce verbose output that lists
15222   # what "hidden" libraries, object files and flags are used when
15223   # linking a shared library.
15224   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15225
15226 else
15227   GXX=no
15228   with_gnu_ld=no
15229   wlarc=
15230 fi
15231
15232 # PORTME: fill in a description of your system's C++ link characteristics
15233 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15234 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15235 ld_shlibs_CXX=yes
15236 case $host_os in
15237   aix3*)
15238     # FIXME: insert proper C++ library support
15239     ld_shlibs_CXX=no
15240     ;;
15241   aix4* | aix5*)
15242     if test "$host_cpu" = ia64; then
15243       # On IA64, the linker does run time linking by default, so we don't
15244       # have to do anything special.
15245       aix_use_runtimelinking=no
15246       exp_sym_flag='-Bexport'
15247       no_entry_flag=""
15248     else
15249       aix_use_runtimelinking=no
15250
15251       # Test if we are trying to use run time linking or normal
15252       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15253       # need to do runtime linking.
15254       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15255         for ld_flag in $LDFLAGS; do
15256           case $ld_flag in
15257           *-brtl*)
15258             aix_use_runtimelinking=yes
15259             break
15260             ;;
15261           esac
15262         done
15263       esac
15264
15265       exp_sym_flag='-bexport'
15266       no_entry_flag='-bnoentry'
15267     fi
15268
15269     # When large executables or shared objects are built, AIX ld can
15270     # have problems creating the table of contents.  If linking a library
15271     # or program results in "error TOC overflow" add -mminimal-toc to
15272     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15273     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15274
15275     archive_cmds_CXX=''
15276     hardcode_direct_CXX=yes
15277     hardcode_libdir_separator_CXX=':'
15278     link_all_deplibs_CXX=yes
15279
15280     if test "$GXX" = yes; then
15281       case $host_os in aix4.012|aix4.012.*)
15282       # We only want to do this on AIX 4.2 and lower, the check
15283       # below for broken collect2 doesn't work under 4.3+
15284         collect2name=`${CC} -print-prog-name=collect2`
15285         if test -f "$collect2name" && \
15286            strings "$collect2name" | grep resolve_lib_name >/dev/null
15287         then
15288           # We have reworked collect2
15289           hardcode_direct_CXX=yes
15290         else
15291           # We have old collect2
15292           hardcode_direct_CXX=unsupported
15293           # It fails to find uninstalled libraries when the uninstalled
15294           # path is not listed in the libpath.  Setting hardcode_minus_L
15295           # to unsupported forces relinking
15296           hardcode_minus_L_CXX=yes
15297           hardcode_libdir_flag_spec_CXX='-L$libdir'
15298           hardcode_libdir_separator_CXX=
15299         fi
15300       esac
15301       shared_flag='-shared'
15302     else
15303       # not using gcc
15304       if test "$host_cpu" = ia64; then
15305         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15306         # chokes on -Wl,-G. The following line is correct:
15307         shared_flag='-G'
15308       else
15309         if test "$aix_use_runtimelinking" = yes; then
15310           shared_flag='${wl}-G'
15311         else
15312           shared_flag='${wl}-bM:SRE'
15313         fi
15314       fi
15315     fi
15316
15317     # It seems that -bexpall does not export symbols beginning with
15318     # underscore (_), so it is better to generate a list of symbols to export.
15319     always_export_symbols_CXX=yes
15320     if test "$aix_use_runtimelinking" = yes; then
15321       # Warning - without using the other runtime loading flags (-brtl),
15322       # -berok will link without error, but may produce a broken library.
15323       allow_undefined_flag_CXX='-berok'
15324       # Determine the default libpath from the value encoded in an empty executable.
15325       cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h.  */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h.  */
15331
15332 int
15333 main ()
15334 {
15335
15336   ;
15337   return 0;
15338 }
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15342   (eval $ac_link) 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } &&
15349          { ac_try='test -z "$ac_cxx_werror_flag"
15350                          || test ! -s conftest.err'
15351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352   (eval $ac_try) 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; } &&
15356          { ac_try='test -s conftest$ac_exeext'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; }; then
15362
15363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15364 }'`
15365 # Check for a 64-bit object if we didn't find anything.
15366 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; }
15367 }'`; fi
15368 else
15369   echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15371
15372 fi
15373 rm -f conftest.err conftest.$ac_objext \
15374       conftest$ac_exeext conftest.$ac_ext
15375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15376
15377       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15378
15379       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"
15380      else
15381       if test "$host_cpu" = ia64; then
15382         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15383         allow_undefined_flag_CXX="-z nodefs"
15384         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"
15385       else
15386         # Determine the default libpath from the value encoded in an empty executable.
15387         cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h.  */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h.  */
15393
15394 int
15395 main ()
15396 {
15397
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 rm -f conftest.$ac_objext conftest$ac_exeext
15403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15404   (eval $ac_link) 2>conftest.er1
15405   ac_status=$?
15406   grep -v '^ *+' conftest.er1 >conftest.err
15407   rm -f conftest.er1
15408   cat conftest.err >&5
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); } &&
15411          { ac_try='test -z "$ac_cxx_werror_flag"
15412                          || test ! -s conftest.err'
15413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414   (eval $ac_try) 2>&5
15415   ac_status=$?
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); }; } &&
15418          { ac_try='test -s conftest$ac_exeext'
15419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420   (eval $ac_try) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; }; then
15424
15425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15426 }'`
15427 # Check for a 64-bit object if we didn't find anything.
15428 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; }
15429 }'`; fi
15430 else
15431   echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434 fi
15435 rm -f conftest.err conftest.$ac_objext \
15436       conftest$ac_exeext conftest.$ac_ext
15437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15438
15439         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15440         # Warning - without using the other run time loading flags,
15441         # -berok will link without error, but may produce a broken library.
15442         no_undefined_flag_CXX=' ${wl}-bernotok'
15443         allow_undefined_flag_CXX=' ${wl}-berok'
15444         # -bexpall does not export symbols beginning with underscore (_)
15445         always_export_symbols_CXX=yes
15446         # Exported symbols can be pulled into shared objects from archives
15447         whole_archive_flag_spec_CXX=' '
15448         archive_cmds_need_lc_CXX=yes
15449         # This is similar to how AIX traditionally builds it's shared libraries.
15450         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'
15451       fi
15452     fi
15453     ;;
15454   chorus*)
15455     case $cc_basename in
15456       *)
15457         # FIXME: insert proper C++ library support
15458         ld_shlibs_CXX=no
15459         ;;
15460     esac
15461     ;;
15462
15463
15464   cygwin* | mingw* | pw32*)
15465     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15466     # as there is no search path for DLLs.
15467     hardcode_libdir_flag_spec_CXX='-L$libdir'
15468     allow_undefined_flag_CXX=unsupported
15469     always_export_symbols_CXX=no
15470     enable_shared_with_static_runtimes_CXX=yes
15471
15472     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15473       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'
15474       # If the export-symbols file already is a .def file (1st line
15475       # is EXPORTS), use it as is; otherwise, prepend...
15476       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15477         cp $export_symbols $output_objdir/$soname.def;
15478       else
15479         echo EXPORTS > $output_objdir/$soname.def;
15480         cat $export_symbols >> $output_objdir/$soname.def;
15481       fi~
15482       $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'
15483     else
15484       ld_shlibs_CXX=no
15485     fi
15486   ;;
15487       darwin* | rhapsody*)
15488         case "$host_os" in
15489         rhapsody* | darwin1.[012])
15490          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15491          ;;
15492        *) # Darwin 1.3 on
15493          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15494            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15495          else
15496            case ${MACOSX_DEPLOYMENT_TARGET} in
15497              10.[012])
15498                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15499                ;;
15500              10.*)
15501                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15502                ;;
15503            esac
15504          fi
15505          ;;
15506         esac
15507       archive_cmds_need_lc_CXX=no
15508       hardcode_direct_CXX=no
15509       hardcode_automatic_CXX=yes
15510       hardcode_shlibpath_var_CXX=unsupported
15511       whole_archive_flag_spec_CXX=''
15512       link_all_deplibs_CXX=yes
15513
15514     if test "$GXX" = yes ; then
15515       lt_int_apple_cc_single_mod=no
15516       output_verbose_link_cmd='echo'
15517       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15518        lt_int_apple_cc_single_mod=yes
15519       fi
15520       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15521        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15522       else
15523           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'
15524         fi
15525         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15526         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15527           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15528             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}'
15529           else
15530             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}'
15531           fi
15532             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}'
15533       else
15534       case "$cc_basename" in
15535         xlc*)
15536          output_verbose_link_cmd='echo'
15537           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'
15538           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15539           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15540           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}'
15541           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}'
15542           ;;
15543        *)
15544          ld_shlibs_CXX=no
15545           ;;
15546       esac
15547       fi
15548         ;;
15549
15550   dgux*)
15551     case $cc_basename in
15552       ec++)
15553         # FIXME: insert proper C++ library support
15554         ld_shlibs_CXX=no
15555         ;;
15556       ghcx)
15557         # Green Hills C++ Compiler
15558         # FIXME: insert proper C++ library support
15559         ld_shlibs_CXX=no
15560         ;;
15561       *)
15562         # FIXME: insert proper C++ library support
15563         ld_shlibs_CXX=no
15564         ;;
15565     esac
15566     ;;
15567   freebsd12*)
15568     # C++ shared libraries reported to be fairly broken before switch to ELF
15569     ld_shlibs_CXX=no
15570     ;;
15571   freebsd-elf*)
15572     archive_cmds_need_lc_CXX=no
15573     ;;
15574   freebsd* | kfreebsd*-gnu)
15575     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15576     # conventions
15577     ld_shlibs_CXX=yes
15578     ;;
15579   gnu*)
15580     ;;
15581   hpux9*)
15582     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15583     hardcode_libdir_separator_CXX=:
15584     export_dynamic_flag_spec_CXX='${wl}-E'
15585     hardcode_direct_CXX=yes
15586     hardcode_minus_L_CXX=yes # Not in the search PATH,
15587                                 # but as the default
15588                                 # location of the library.
15589
15590     case $cc_basename in
15591     CC)
15592       # FIXME: insert proper C++ library support
15593       ld_shlibs_CXX=no
15594       ;;
15595     aCC)
15596       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'
15597       # Commands to make compiler produce verbose output that lists
15598       # what "hidden" libraries, object files and flags are used when
15599       # linking a shared library.
15600       #
15601       # There doesn't appear to be a way to prevent this compiler from
15602       # explicitly linking system object files so we need to strip them
15603       # from the output so that they don't get included in the library
15604       # dependencies.
15605       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'
15606       ;;
15607     *)
15608       if test "$GXX" = yes; then
15609         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'
15610       else
15611         # FIXME: insert proper C++ library support
15612         ld_shlibs_CXX=no
15613       fi
15614       ;;
15615     esac
15616     ;;
15617   hpux10*|hpux11*)
15618     if test $with_gnu_ld = no; then
15619       case "$host_cpu" in
15620       hppa*64*)
15621         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15622         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15623         hardcode_libdir_separator_CXX=:
15624         ;;
15625       ia64*)
15626         hardcode_libdir_flag_spec_CXX='-L$libdir'
15627         ;;
15628       *)
15629         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15630         hardcode_libdir_separator_CXX=:
15631         export_dynamic_flag_spec_CXX='${wl}-E'
15632         ;;
15633       esac
15634     fi
15635     case "$host_cpu" in
15636     hppa*64*)
15637       hardcode_direct_CXX=no
15638       hardcode_shlibpath_var_CXX=no
15639       ;;
15640     ia64*)
15641       hardcode_direct_CXX=no
15642       hardcode_shlibpath_var_CXX=no
15643       hardcode_minus_L_CXX=yes # Not in the search PATH,
15644                                               # but as the default
15645                                               # location of the library.
15646       ;;
15647     *)
15648       hardcode_direct_CXX=yes
15649       hardcode_minus_L_CXX=yes # Not in the search PATH,
15650                                               # but as the default
15651                                               # location of the library.
15652       ;;
15653     esac
15654
15655     case $cc_basename in
15656       CC)
15657         # FIXME: insert proper C++ library support
15658         ld_shlibs_CXX=no
15659         ;;
15660       aCC)
15661         case "$host_cpu" in
15662         hppa*64*|ia64*)
15663           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15664           ;;
15665         *)
15666           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15667           ;;
15668         esac
15669         # Commands to make compiler produce verbose output that lists
15670         # what "hidden" libraries, object files and flags are used when
15671         # linking a shared library.
15672         #
15673         # There doesn't appear to be a way to prevent this compiler from
15674         # explicitly linking system object files so we need to strip them
15675         # from the output so that they don't get included in the library
15676         # dependencies.
15677         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'
15678         ;;
15679       *)
15680         if test "$GXX" = yes; then
15681           if test $with_gnu_ld = no; then
15682             case "$host_cpu" in
15683             ia64*|hppa*64*)
15684               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15685               ;;
15686             *)
15687               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'
15688               ;;
15689             esac
15690           fi
15691         else
15692           # FIXME: insert proper C++ library support
15693           ld_shlibs_CXX=no
15694         fi
15695         ;;
15696     esac
15697     ;;
15698   irix5* | irix6*)
15699     case $cc_basename in
15700       CC)
15701         # SGI C++
15702         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'
15703
15704         # Archives containing C++ object files must be created using
15705         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15706         # necessary to make sure instantiated templates are included
15707         # in the archive.
15708         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15709         ;;
15710       *)
15711         if test "$GXX" = yes; then
15712           if test "$with_gnu_ld" = no; then
15713             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'
15714           else
15715             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'
15716           fi
15717         fi
15718         link_all_deplibs_CXX=yes
15719         ;;
15720     esac
15721     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15722     hardcode_libdir_separator_CXX=:
15723     ;;
15724   linux*)
15725     case $cc_basename in
15726       KCC)
15727         # Kuck and Associates, Inc. (KAI) C++ Compiler
15728
15729         # KCC will only create a shared library if the output file
15730         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15731         # to its proper name (with version) after linking.
15732         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'
15733         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'
15734         # Commands to make compiler produce verbose output that lists
15735         # what "hidden" libraries, object files and flags are used when
15736         # linking a shared library.
15737         #
15738         # There doesn't appear to be a way to prevent this compiler from
15739         # explicitly linking system object files so we need to strip them
15740         # from the output so that they don't get included in the library
15741         # dependencies.
15742         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'
15743
15744         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15745         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15746
15747         # Archives containing C++ object files must be created using
15748         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15749         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15750         ;;
15751       icpc)
15752         # Intel C++
15753         with_gnu_ld=yes
15754         # version 8.0 and above of icpc choke on multiply defined symbols
15755         # if we add $predep_objects and $postdep_objects, however 7.1 and
15756         # earlier do not add the objects themselves.
15757         case `$CC -V 2>&1` in
15758         *"Version 7."*)
15759           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760           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'
15761           ;;
15762         *)  # Version 8.0 or newer
15763           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15764         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15765           ;;
15766         esac
15767         archive_cmds_need_lc_CXX=no
15768         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15769         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15770         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15771         ;;
15772       cxx)
15773         # Compaq C++
15774         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15775         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'
15776
15777         runpath_var=LD_RUN_PATH
15778         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15779         hardcode_libdir_separator_CXX=:
15780
15781         # Commands to make compiler produce verbose output that lists
15782         # what "hidden" libraries, object files and flags are used when
15783         # linking a shared library.
15784         #
15785         # There doesn't appear to be a way to prevent this compiler from
15786         # explicitly linking system object files so we need to strip them
15787         # from the output so that they don't get included in the library
15788         # dependencies.
15789         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'
15790         ;;
15791     esac
15792     ;;
15793   lynxos*)
15794     # FIXME: insert proper C++ library support
15795     ld_shlibs_CXX=no
15796     ;;
15797   m88k*)
15798     # FIXME: insert proper C++ library support
15799     ld_shlibs_CXX=no
15800     ;;
15801   mvs*)
15802     case $cc_basename in
15803       cxx)
15804         # FIXME: insert proper C++ library support
15805         ld_shlibs_CXX=no
15806         ;;
15807       *)
15808         # FIXME: insert proper C++ library support
15809         ld_shlibs_CXX=no
15810         ;;
15811     esac
15812     ;;
15813   netbsd*)
15814     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15815       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15816       wlarc=
15817       hardcode_libdir_flag_spec_CXX='-R$libdir'
15818       hardcode_direct_CXX=yes
15819       hardcode_shlibpath_var_CXX=no
15820     fi
15821     # Workaround some broken pre-1.5 toolchains
15822     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15823     ;;
15824   openbsd2*)
15825     # C++ shared libraries are fairly broken
15826     ld_shlibs_CXX=no
15827     ;;
15828   openbsd*)
15829     hardcode_direct_CXX=yes
15830     hardcode_shlibpath_var_CXX=no
15831     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15832     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15833     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15834       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15835       export_dynamic_flag_spec_CXX='${wl}-E'
15836       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15837     fi
15838     output_verbose_link_cmd='echo'
15839     ;;
15840   osf3*)
15841     case $cc_basename in
15842       KCC)
15843         # Kuck and Associates, Inc. (KAI) C++ Compiler
15844
15845         # KCC will only create a shared library if the output file
15846         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15847         # to its proper name (with version) after linking.
15848         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'
15849
15850         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15851         hardcode_libdir_separator_CXX=:
15852
15853         # Archives containing C++ object files must be created using
15854         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15855         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15856
15857         ;;
15858       RCC)
15859         # Rational C++ 2.4.1
15860         # FIXME: insert proper C++ library support
15861         ld_shlibs_CXX=no
15862         ;;
15863       cxx)
15864         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15865         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'
15866
15867         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15868         hardcode_libdir_separator_CXX=:
15869
15870         # Commands to make compiler produce verbose output that lists
15871         # what "hidden" libraries, object files and flags are used when
15872         # linking a shared library.
15873         #
15874         # There doesn't appear to be a way to prevent this compiler from
15875         # explicitly linking system object files so we need to strip them
15876         # from the output so that they don't get included in the library
15877         # dependencies.
15878         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'
15879         ;;
15880       *)
15881         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15882           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15883           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'
15884
15885           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15886           hardcode_libdir_separator_CXX=:
15887
15888           # Commands to make compiler produce verbose output that lists
15889           # what "hidden" libraries, object files and flags are used when
15890           # linking a shared library.
15891           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15892
15893         else
15894           # FIXME: insert proper C++ library support
15895           ld_shlibs_CXX=no
15896         fi
15897         ;;
15898     esac
15899     ;;
15900   osf4* | osf5*)
15901     case $cc_basename in
15902       KCC)
15903         # Kuck and Associates, Inc. (KAI) C++ Compiler
15904
15905         # KCC will only create a shared library if the output file
15906         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15907         # to its proper name (with version) after linking.
15908         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'
15909
15910         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15911         hardcode_libdir_separator_CXX=:
15912
15913         # Archives containing C++ object files must be created using
15914         # the KAI C++ compiler.
15915         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15916         ;;
15917       RCC)
15918         # Rational C++ 2.4.1
15919         # FIXME: insert proper C++ library support
15920         ld_shlibs_CXX=no
15921         ;;
15922       cxx)
15923         allow_undefined_flag_CXX=' -expect_unresolved \*'
15924         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'
15925         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15926           echo "-hidden">> $lib.exp~
15927           $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~
15928           $rm $lib.exp'
15929
15930         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15931         hardcode_libdir_separator_CXX=:
15932
15933         # Commands to make compiler produce verbose output that lists
15934         # what "hidden" libraries, object files and flags are used when
15935         # linking a shared library.
15936         #
15937         # There doesn't appear to be a way to prevent this compiler from
15938         # explicitly linking system object files so we need to strip them
15939         # from the output so that they don't get included in the library
15940         # dependencies.
15941         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'
15942         ;;
15943       *)
15944         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15945           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15946          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'
15947
15948           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15949           hardcode_libdir_separator_CXX=:
15950
15951           # Commands to make compiler produce verbose output that lists
15952           # what "hidden" libraries, object files and flags are used when
15953           # linking a shared library.
15954           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15955
15956         else
15957           # FIXME: insert proper C++ library support
15958           ld_shlibs_CXX=no
15959         fi
15960         ;;
15961     esac
15962     ;;
15963   psos*)
15964     # FIXME: insert proper C++ library support
15965     ld_shlibs_CXX=no
15966     ;;
15967   sco*)
15968     archive_cmds_need_lc_CXX=no
15969     case $cc_basename in
15970       CC)
15971         # FIXME: insert proper C++ library support
15972         ld_shlibs_CXX=no
15973         ;;
15974       *)
15975         # FIXME: insert proper C++ library support
15976         ld_shlibs_CXX=no
15977         ;;
15978     esac
15979     ;;
15980   sunos4*)
15981     case $cc_basename in
15982       CC)
15983         # Sun C++ 4.x
15984         # FIXME: insert proper C++ library support
15985         ld_shlibs_CXX=no
15986         ;;
15987       lcc)
15988         # Lucid
15989         # FIXME: insert proper C++ library support
15990         ld_shlibs_CXX=no
15991         ;;
15992       *)
15993         # FIXME: insert proper C++ library support
15994         ld_shlibs_CXX=no
15995         ;;
15996     esac
15997     ;;
15998   solaris*)
15999     case $cc_basename in
16000       CC)
16001         # Sun C++ 4.2, 5.x and Centerline C++
16002         no_undefined_flag_CXX=' -zdefs'
16003         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16004         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16005         $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'
16006
16007         hardcode_libdir_flag_spec_CXX='-R$libdir'
16008         hardcode_shlibpath_var_CXX=no
16009         case $host_os in
16010           solaris2.0-5 | solaris2.0-5.*) ;;
16011           *)
16012             # The C++ compiler is used as linker so we must use $wl
16013             # flag to pass the commands to the underlying system
16014             # linker.
16015             # Supported since Solaris 2.6 (maybe 2.5.1?)
16016             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16017             ;;
16018         esac
16019         link_all_deplibs_CXX=yes
16020
16021         # Commands to make compiler produce verbose output that lists
16022         # what "hidden" libraries, object files and flags are used when
16023         # linking a shared library.
16024         #
16025         # There doesn't appear to be a way to prevent this compiler from
16026         # explicitly linking system object files so we need to strip them
16027         # from the output so that they don't get included in the library
16028         # dependencies.
16029         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'
16030
16031         # Archives containing C++ object files must be created using
16032         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16033         # necessary to make sure instantiated templates are included
16034         # in the archive.
16035         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16036         ;;
16037       gcx)
16038         # Green Hills C++ Compiler
16039         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16040
16041         # The C++ compiler must be used to create the archive.
16042         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16043         ;;
16044       *)
16045         # GNU C++ compiler with Solaris linker
16046         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16047           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16048           if $CC --version | grep -v '^2\.7' > /dev/null; then
16049             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16050             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16051                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16052
16053             # Commands to make compiler produce verbose output that lists
16054             # what "hidden" libraries, object files and flags are used when
16055             # linking a shared library.
16056             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16057           else
16058             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16059             # platform.
16060             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16061             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16062                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16063
16064             # Commands to make compiler produce verbose output that lists
16065             # what "hidden" libraries, object files and flags are used when
16066             # linking a shared library.
16067             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16068           fi
16069
16070           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16071         fi
16072         ;;
16073     esac
16074     ;;
16075   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16076     archive_cmds_need_lc_CXX=no
16077     ;;
16078   tandem*)
16079     case $cc_basename in
16080       NCC)
16081         # NonStop-UX NCC 3.20
16082         # FIXME: insert proper C++ library support
16083         ld_shlibs_CXX=no
16084         ;;
16085       *)
16086         # FIXME: insert proper C++ library support
16087         ld_shlibs_CXX=no
16088         ;;
16089     esac
16090     ;;
16091   vxworks*)
16092     # FIXME: insert proper C++ library support
16093     ld_shlibs_CXX=no
16094     ;;
16095   *)
16096     # FIXME: insert proper C++ library support
16097     ld_shlibs_CXX=no
16098     ;;
16099 esac
16100 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16101 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16102 test "$ld_shlibs_CXX" = no && can_build_shared=no
16103
16104 GCC_CXX="$GXX"
16105 LD_CXX="$LD"
16106
16107
16108 cat > conftest.$ac_ext <<EOF
16109 class Foo
16110 {
16111 public:
16112   Foo (void) { a = 0; }
16113 private:
16114   int a;
16115 };
16116 EOF
16117
16118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16119   (eval $ac_compile) 2>&5
16120   ac_status=$?
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); }; then
16123   # Parse the compiler output and extract the necessary
16124   # objects, libraries and library flags.
16125
16126   # Sentinel used to keep track of whether or not we are before
16127   # the conftest object file.
16128   pre_test_object_deps_done=no
16129
16130   # The `*' in the case matches for architectures that use `case' in
16131   # $output_verbose_cmd can trigger glob expansion during the loop
16132   # eval without this substitution.
16133   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16134
16135   for p in `eval $output_verbose_link_cmd`; do
16136     case $p in
16137
16138     -L* | -R* | -l*)
16139        # Some compilers place space between "-{L,R}" and the path.
16140        # Remove the space.
16141        if test $p = "-L" \
16142           || test $p = "-R"; then
16143          prev=$p
16144          continue
16145        else
16146          prev=
16147        fi
16148
16149        if test "$pre_test_object_deps_done" = no; then
16150          case $p in
16151          -L* | -R*)
16152            # Internal compiler library paths should come after those
16153            # provided the user.  The postdeps already come after the
16154            # user supplied libs so there is no need to process them.
16155            if test -z "$compiler_lib_search_path_CXX"; then
16156              compiler_lib_search_path_CXX="${prev}${p}"
16157            else
16158              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16159            fi
16160            ;;
16161          # The "-l" case would never come before the object being
16162          # linked, so don't bother handling this case.
16163          esac
16164        else
16165          if test -z "$postdeps_CXX"; then
16166            postdeps_CXX="${prev}${p}"
16167          else
16168            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16169          fi
16170        fi
16171        ;;
16172
16173     *.$objext)
16174        # This assumes that the test object file only shows up
16175        # once in the compiler output.
16176        if test "$p" = "conftest.$objext"; then
16177          pre_test_object_deps_done=yes
16178          continue
16179        fi
16180
16181        if test "$pre_test_object_deps_done" = no; then
16182          if test -z "$predep_objects_CXX"; then
16183            predep_objects_CXX="$p"
16184          else
16185            predep_objects_CXX="$predep_objects_CXX $p"
16186          fi
16187        else
16188          if test -z "$postdep_objects_CXX"; then
16189            postdep_objects_CXX="$p"
16190          else
16191            postdep_objects_CXX="$postdep_objects_CXX $p"
16192          fi
16193        fi
16194        ;;
16195
16196     *) ;; # Ignore the rest.
16197
16198     esac
16199   done
16200
16201   # Clean up.
16202   rm -f a.out a.exe
16203 else
16204   echo "libtool.m4: error: problem compiling CXX test program"
16205 fi
16206
16207 $rm -f confest.$objext
16208
16209 case " $postdeps_CXX " in
16210 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16211 esac
16212
16213 lt_prog_compiler_wl_CXX=
16214 lt_prog_compiler_pic_CXX=
16215 lt_prog_compiler_static_CXX=
16216
16217 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16218 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16219
16220   # C++ specific cases for pic, static, wl, etc.
16221   if test "$GXX" = yes; then
16222     lt_prog_compiler_wl_CXX='-Wl,'
16223     lt_prog_compiler_static_CXX='-static'
16224
16225     case $host_os in
16226     aix*)
16227       # All AIX code is PIC.
16228       if test "$host_cpu" = ia64; then
16229         # AIX 5 now supports IA64 processor
16230         lt_prog_compiler_static_CXX='-Bstatic'
16231       fi
16232       ;;
16233     amigaos*)
16234       # FIXME: we need at least 68020 code to build shared libraries, but
16235       # adding the `-m68020' flag to GCC prevents building anything better,
16236       # like `-m68040'.
16237       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16238       ;;
16239     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16240       # PIC is the default for these OSes.
16241       ;;
16242     mingw* | os2* | pw32*)
16243       # This hack is so that the source file can tell whether it is being
16244       # built for inclusion in a dll (and should export symbols for example).
16245       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16246       ;;
16247     darwin* | rhapsody*)
16248       # PIC is the default on this platform
16249       # Common symbols not allowed in MH_DYLIB files
16250       lt_prog_compiler_pic_CXX='-fno-common'
16251       ;;
16252     *djgpp*)
16253       # DJGPP does not support shared libraries at all
16254       lt_prog_compiler_pic_CXX=
16255       ;;
16256     sysv4*MP*)
16257       if test -d /usr/nec; then
16258         lt_prog_compiler_pic_CXX=-Kconform_pic
16259       fi
16260       ;;
16261     hpux*)
16262       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16263       # not for PA HP-UX.
16264       case "$host_cpu" in
16265       hppa*64*|ia64*)
16266         ;;
16267       *)
16268         lt_prog_compiler_pic_CXX='-fPIC'
16269         ;;
16270       esac
16271       ;;
16272     *)
16273       lt_prog_compiler_pic_CXX='-fPIC'
16274       ;;
16275     esac
16276   else
16277     case $host_os in
16278       aix4* | aix5*)
16279         # All AIX code is PIC.
16280         if test "$host_cpu" = ia64; then
16281           # AIX 5 now supports IA64 processor
16282           lt_prog_compiler_static_CXX='-Bstatic'
16283         else
16284           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16285         fi
16286         ;;
16287       chorus*)
16288         case $cc_basename in
16289         cxch68)
16290           # Green Hills C++ Compiler
16291           # _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"
16292           ;;
16293         esac
16294         ;;
16295        darwin*)
16296          # PIC is the default on this platform
16297          # Common symbols not allowed in MH_DYLIB files
16298          case "$cc_basename" in
16299            xlc*)
16300            lt_prog_compiler_pic_CXX='-qnocommon'
16301            lt_prog_compiler_wl_CXX='-Wl,'
16302            ;;
16303          esac
16304        ;;
16305       dgux*)
16306         case $cc_basename in
16307           ec++)
16308             lt_prog_compiler_pic_CXX='-KPIC'
16309             ;;
16310           ghcx)
16311             # Green Hills C++ Compiler
16312             lt_prog_compiler_pic_CXX='-pic'
16313             ;;
16314           *)
16315             ;;
16316         esac
16317         ;;
16318       freebsd* | kfreebsd*-gnu)
16319         # FreeBSD uses GNU C++
16320         ;;
16321       hpux9* | hpux10* | hpux11*)
16322         case $cc_basename in
16323           CC)
16324             lt_prog_compiler_wl_CXX='-Wl,'
16325             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16326             if test "$host_cpu" != ia64; then
16327               lt_prog_compiler_pic_CXX='+Z'
16328             fi
16329             ;;
16330           aCC)
16331             lt_prog_compiler_wl_CXX='-Wl,'
16332             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16333             case "$host_cpu" in
16334             hppa*64*|ia64*)
16335               # +Z the default
16336               ;;
16337             *)
16338               lt_prog_compiler_pic_CXX='+Z'
16339               ;;
16340             esac
16341             ;;
16342           *)
16343             ;;
16344         esac
16345         ;;
16346       irix5* | irix6* | nonstopux*)
16347         case $cc_basename in
16348           CC)
16349             lt_prog_compiler_wl_CXX='-Wl,'
16350             lt_prog_compiler_static_CXX='-non_shared'
16351             # CC pic flag -KPIC is the default.
16352             ;;
16353           *)
16354             ;;
16355         esac
16356         ;;
16357       linux*)
16358         case $cc_basename in
16359           KCC)
16360             # KAI C++ Compiler
16361             lt_prog_compiler_wl_CXX='--backend -Wl,'
16362             lt_prog_compiler_pic_CXX='-fPIC'
16363             ;;
16364           icpc)
16365             # Intel C++
16366             lt_prog_compiler_wl_CXX='-Wl,'
16367             lt_prog_compiler_pic_CXX='-KPIC'
16368             lt_prog_compiler_static_CXX='-static'
16369             ;;
16370           cxx)
16371             # Compaq C++
16372             # Make sure the PIC flag is empty.  It appears that all Alpha
16373             # Linux and Compaq Tru64 Unix objects are PIC.
16374             lt_prog_compiler_pic_CXX=
16375             lt_prog_compiler_static_CXX='-non_shared'
16376             ;;
16377           *)
16378             ;;
16379         esac
16380         ;;
16381       lynxos*)
16382         ;;
16383       m88k*)
16384         ;;
16385       mvs*)
16386         case $cc_basename in
16387           cxx)
16388             lt_prog_compiler_pic_CXX='-W c,exportall'
16389             ;;
16390           *)
16391             ;;
16392         esac
16393         ;;
16394       netbsd*)
16395         ;;
16396       osf3* | osf4* | osf5*)
16397         case $cc_basename in
16398           KCC)
16399             lt_prog_compiler_wl_CXX='--backend -Wl,'
16400             ;;
16401           RCC)
16402             # Rational C++ 2.4.1
16403             lt_prog_compiler_pic_CXX='-pic'
16404             ;;
16405           cxx)
16406             # Digital/Compaq C++
16407             lt_prog_compiler_wl_CXX='-Wl,'
16408             # Make sure the PIC flag is empty.  It appears that all Alpha
16409             # Linux and Compaq Tru64 Unix objects are PIC.
16410             lt_prog_compiler_pic_CXX=
16411             lt_prog_compiler_static_CXX='-non_shared'
16412             ;;
16413           *)
16414             ;;
16415         esac
16416         ;;
16417       psos*)
16418         ;;
16419       sco*)
16420         case $cc_basename in
16421           CC)
16422             lt_prog_compiler_pic_CXX='-fPIC'
16423             ;;
16424           *)
16425             ;;
16426         esac
16427         ;;
16428       solaris*)
16429         case $cc_basename in
16430           CC)
16431             # Sun C++ 4.2, 5.x and Centerline C++
16432             lt_prog_compiler_pic_CXX='-KPIC'
16433             lt_prog_compiler_static_CXX='-Bstatic'
16434             lt_prog_compiler_wl_CXX='-Qoption ld '
16435             ;;
16436           gcx)
16437             # Green Hills C++ Compiler
16438             lt_prog_compiler_pic_CXX='-PIC'
16439             ;;
16440           *)
16441             ;;
16442         esac
16443         ;;
16444       sunos4*)
16445         case $cc_basename in
16446           CC)
16447             # Sun C++ 4.x
16448             lt_prog_compiler_pic_CXX='-pic'
16449             lt_prog_compiler_static_CXX='-Bstatic'
16450             ;;
16451           lcc)
16452             # Lucid
16453             lt_prog_compiler_pic_CXX='-pic'
16454             ;;
16455           *)
16456             ;;
16457         esac
16458         ;;
16459       tandem*)
16460         case $cc_basename in
16461           NCC)
16462             # NonStop-UX NCC 3.20
16463             lt_prog_compiler_pic_CXX='-KPIC'
16464             ;;
16465           *)
16466             ;;
16467         esac
16468         ;;
16469       unixware*)
16470         ;;
16471       vxworks*)
16472         ;;
16473       *)
16474         lt_prog_compiler_can_build_shared_CXX=no
16475         ;;
16476     esac
16477   fi
16478
16479 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16480 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16481
16482 #
16483 # Check to make sure the PIC flag actually works.
16484 #
16485 if test -n "$lt_prog_compiler_pic_CXX"; then
16486
16487 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16488 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16489 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16490   echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492   lt_prog_compiler_pic_works_CXX=no
16493   ac_outfile=conftest.$ac_objext
16494    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16495    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16496    # Insert the option either (1) after the last *FLAGS variable, or
16497    # (2) before a word containing "conftest.", or (3) at the end.
16498    # Note that $ac_compile itself does not contain backslashes and begins
16499    # with a dollar sign (not a hyphen), so the echo should work correctly.
16500    # The option is referenced via a variable to avoid confusing sed.
16501    lt_compile=`echo "$ac_compile" | $SED \
16502    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16504    -e 's:$: $lt_compiler_flag:'`
16505    (eval echo "\"\$as_me:16505: $lt_compile\"" >&5)
16506    (eval "$lt_compile" 2>conftest.err)
16507    ac_status=$?
16508    cat conftest.err >&5
16509    echo "$as_me:16509: \$? = $ac_status" >&5
16510    if (exit $ac_status) && test -s "$ac_outfile"; then
16511      # The compiler can only warn and ignore the option if not recognized
16512      # So say no if there are warnings
16513      if test ! -s conftest.err; then
16514        lt_prog_compiler_pic_works_CXX=yes
16515      fi
16516    fi
16517    $rm conftest*
16518
16519 fi
16520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16521 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16522
16523 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16524     case $lt_prog_compiler_pic_CXX in
16525      "" | " "*) ;;
16526      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16527      esac
16528 else
16529     lt_prog_compiler_pic_CXX=
16530      lt_prog_compiler_can_build_shared_CXX=no
16531 fi
16532
16533 fi
16534 case "$host_os" in
16535   # For platforms which do not support PIC, -DPIC is meaningless:
16536   *djgpp*)
16537     lt_prog_compiler_pic_CXX=
16538     ;;
16539   *)
16540     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16541     ;;
16542 esac
16543
16544 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16546 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16547   echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549   lt_cv_prog_compiler_c_o_CXX=no
16550    $rm -r conftest 2>/dev/null
16551    mkdir conftest
16552    cd conftest
16553    mkdir out
16554    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16555
16556    lt_compiler_flag="-o out/conftest2.$ac_objext"
16557    # Insert the option either (1) after the last *FLAGS variable, or
16558    # (2) before a word containing "conftest.", or (3) at the end.
16559    # Note that $ac_compile itself does not contain backslashes and begins
16560    # with a dollar sign (not a hyphen), so the echo should work correctly.
16561    lt_compile=`echo "$ac_compile" | $SED \
16562    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16564    -e 's:$: $lt_compiler_flag:'`
16565    (eval echo "\"\$as_me:16565: $lt_compile\"" >&5)
16566    (eval "$lt_compile" 2>out/conftest.err)
16567    ac_status=$?
16568    cat out/conftest.err >&5
16569    echo "$as_me:16569: \$? = $ac_status" >&5
16570    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16571    then
16572      # The compiler can only warn and ignore the option if not recognized
16573      # So say no if there are warnings
16574      if test ! -s out/conftest.err; then
16575        lt_cv_prog_compiler_c_o_CXX=yes
16576      fi
16577    fi
16578    chmod u+w .
16579    $rm conftest*
16580    # SGI C++ compiler will create directory out/ii_files/ for
16581    # template instantiation
16582    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16583    $rm out/* && rmdir out
16584    cd ..
16585    rmdir conftest
16586    $rm conftest*
16587
16588 fi
16589 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16591
16592
16593 hard_links="nottested"
16594 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16595   # do not overwrite the value of need_locks provided by the user
16596   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16598   hard_links=yes
16599   $rm conftest*
16600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601   touch conftest.a
16602   ln conftest.a conftest.b 2>&5 || hard_links=no
16603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16604   echo "$as_me:$LINENO: result: $hard_links" >&5
16605 echo "${ECHO_T}$hard_links" >&6
16606   if test "$hard_links" = no; then
16607     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16609     need_locks=warn
16610   fi
16611 else
16612   need_locks=no
16613 fi
16614
16615 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16617
16618   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16619   case $host_os in
16620   aix4* | aix5*)
16621     # If we're using GNU nm, then we don't want the "-C" option.
16622     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16623     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16624       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'
16625     else
16626       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'
16627     fi
16628     ;;
16629   pw32*)
16630     export_symbols_cmds_CXX="$ltdll_cmds"
16631   ;;
16632   cygwin* | mingw*)
16633     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16634   ;;
16635   *)
16636     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16637   ;;
16638   esac
16639
16640 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16641 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16642 test "$ld_shlibs_CXX" = no && can_build_shared=no
16643
16644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16645 if test "$GCC" = yes; then
16646   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16647 fi
16648
16649 #
16650 # Do we need to explicitly link libc?
16651 #
16652 case "x$archive_cmds_need_lc_CXX" in
16653 x|xyes)
16654   # Assume -lc should be added
16655   archive_cmds_need_lc_CXX=yes
16656
16657   if test "$enable_shared" = yes && test "$GCC" = yes; then
16658     case $archive_cmds_CXX in
16659     *'~'*)
16660       # FIXME: we may have to deal with multi-command sequences.
16661       ;;
16662     '$CC '*)
16663       # Test whether the compiler implicitly links with -lc since on some
16664       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16665       # to ld, don't add -lc before -lgcc.
16666       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16667 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16668       $rm conftest*
16669       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16670
16671       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672   (eval $ac_compile) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } 2>conftest.err; then
16676         soname=conftest
16677         lib=conftest
16678         libobjs=conftest.$ac_objext
16679         deplibs=
16680         wl=$lt_prog_compiler_wl_CXX
16681         compiler_flags=-v
16682         linker_flags=-v
16683         verstring=
16684         output_objdir=.
16685         libname=conftest
16686         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16687         allow_undefined_flag_CXX=
16688         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16689   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }
16693         then
16694           archive_cmds_need_lc_CXX=no
16695         else
16696           archive_cmds_need_lc_CXX=yes
16697         fi
16698         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16699       else
16700         cat conftest.err 1>&5
16701       fi
16702       $rm conftest*
16703       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16704 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16705       ;;
16706     esac
16707   fi
16708   ;;
16709 esac
16710
16711 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16712 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16713 library_names_spec=
16714 libname_spec='lib$name'
16715 soname_spec=
16716 shrext_cmds=".so"
16717 postinstall_cmds=
16718 postuninstall_cmds=
16719 finish_cmds=
16720 finish_eval=
16721 shlibpath_var=
16722 shlibpath_overrides_runpath=unknown
16723 version_type=none
16724 dynamic_linker="$host_os ld.so"
16725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16726 if test "$GCC" = yes; then
16727   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16728   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16729     # if the path contains ";" then we assume it to be the separator
16730     # otherwise default to the standard path separator (i.e. ":") - it is
16731     # assumed that no part of a normal pathname contains ";" but that should
16732     # okay in the real world where ";" in dirpaths is itself problematic.
16733     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16734   else
16735     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16736   fi
16737 else
16738   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16739 fi
16740 need_lib_prefix=unknown
16741 hardcode_into_libs=no
16742
16743 # when you set need_version to no, make sure it does not cause -set_version
16744 # flags to be left without arguments
16745 need_version=unknown
16746
16747 case $host_os in
16748 aix3*)
16749   version_type=linux
16750   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16751   shlibpath_var=LIBPATH
16752
16753   # AIX 3 has no versioning support, so we append a major version to the name.
16754   soname_spec='${libname}${release}${shared_ext}$major'
16755   ;;
16756
16757 aix4* | aix5*)
16758   version_type=linux
16759   need_lib_prefix=no
16760   need_version=no
16761   hardcode_into_libs=yes
16762   if test "$host_cpu" = ia64; then
16763     # AIX 5 supports IA64
16764     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16765     shlibpath_var=LD_LIBRARY_PATH
16766   else
16767     # With GCC up to 2.95.x, collect2 would create an import file
16768     # for dependence libraries.  The import file would start with
16769     # the line `#! .'.  This would cause the generated library to
16770     # depend on `.', always an invalid library.  This was fixed in
16771     # development snapshots of GCC prior to 3.0.
16772     case $host_os in
16773       aix4 | aix4.[01] | aix4.[01].*)
16774       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16775            echo ' yes '
16776            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16777         :
16778       else
16779         can_build_shared=no
16780       fi
16781       ;;
16782     esac
16783     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16784     # soname into executable. Probably we can add versioning support to
16785     # collect2, so additional links can be useful in future.
16786     if test "$aix_use_runtimelinking" = yes; then
16787       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16788       # instead of lib<name>.a to let people know that these are not
16789       # typical AIX shared libraries.
16790       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791     else
16792       # We preserve .a as extension for shared libraries through AIX4.2
16793       # and later when we are not doing run time linking.
16794       library_names_spec='${libname}${release}.a $libname.a'
16795       soname_spec='${libname}${release}${shared_ext}$major'
16796     fi
16797     shlibpath_var=LIBPATH
16798   fi
16799   ;;
16800
16801 amigaos*)
16802   library_names_spec='$libname.ixlibrary $libname.a'
16803   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16804   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'
16805   ;;
16806
16807 beos*)
16808   library_names_spec='${libname}${shared_ext}'
16809   dynamic_linker="$host_os ld.so"
16810   shlibpath_var=LIBRARY_PATH
16811   ;;
16812
16813 bsdi[45]*)
16814   version_type=linux
16815   need_version=no
16816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817   soname_spec='${libname}${release}${shared_ext}$major'
16818   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16819   shlibpath_var=LD_LIBRARY_PATH
16820   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16821   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16822   # the default ld.so.conf also contains /usr/contrib/lib and
16823   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16824   # libtool to hard-code these into programs
16825   ;;
16826
16827 cygwin* | mingw* | pw32*)
16828   version_type=windows
16829   shrext_cmds=".dll"
16830   need_version=no
16831   need_lib_prefix=no
16832
16833   case $GCC,$host_os in
16834   yes,cygwin* | yes,mingw* | yes,pw32*)
16835     library_names_spec='$libname.dll.a'
16836     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16837     postinstall_cmds='base_file=`basename \${file}`~
16838       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16839       dldir=$destdir/`dirname \$dlpath`~
16840       test -d \$dldir || mkdir -p \$dldir~
16841       $install_prog $dir/$dlname \$dldir/$dlname'
16842     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16843       dlpath=$dir/\$dldll~
16844        $rm \$dlpath'
16845     shlibpath_overrides_runpath=yes
16846
16847     case $host_os in
16848     cygwin*)
16849       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16850       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16851       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16852       ;;
16853     mingw*)
16854       # MinGW DLLs use traditional 'lib' prefix
16855       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16856       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16857       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16858         # It is most probably a Windows format PATH printed by
16859         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16860         # path with ; separators, and with drive letters. We can handle the
16861         # drive letters (cygwin fileutils understands them), so leave them,
16862         # especially as we might pass files found there to a mingw objdump,
16863         # which wouldn't understand a cygwinified path. Ahh.
16864         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16865       else
16866         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16867       fi
16868       ;;
16869     pw32*)
16870       # pw32 DLLs use 'pw' prefix rather than 'lib'
16871       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16872       ;;
16873     esac
16874     ;;
16875
16876   *)
16877     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16878     ;;
16879   esac
16880   dynamic_linker='Win32 ld.exe'
16881   # FIXME: first we should search . and the directory the executable is in
16882   shlibpath_var=PATH
16883   ;;
16884
16885 darwin* | rhapsody*)
16886   dynamic_linker="$host_os dyld"
16887   version_type=darwin
16888   need_lib_prefix=no
16889   need_version=no
16890   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16891   soname_spec='${libname}${release}${major}$shared_ext'
16892   shlibpath_overrides_runpath=yes
16893   shlibpath_var=DYLD_LIBRARY_PATH
16894   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16895   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16896   if test "$GCC" = yes; then
16897     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"`
16898   else
16899     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16900   fi
16901   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16902   ;;
16903
16904 dgux*)
16905   version_type=linux
16906   need_lib_prefix=no
16907   need_version=no
16908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16909   soname_spec='${libname}${release}${shared_ext}$major'
16910   shlibpath_var=LD_LIBRARY_PATH
16911   ;;
16912
16913 freebsd1*)
16914   dynamic_linker=no
16915   ;;
16916
16917 kfreebsd*-gnu)
16918   version_type=linux
16919   need_lib_prefix=no
16920   need_version=no
16921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16922   soname_spec='${libname}${release}${shared_ext}$major'
16923   shlibpath_var=LD_LIBRARY_PATH
16924   shlibpath_overrides_runpath=no
16925   hardcode_into_libs=yes
16926   dynamic_linker='GNU ld.so'
16927   ;;
16928
16929 freebsd*)
16930   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16931   version_type=freebsd-$objformat
16932   case $version_type in
16933     freebsd-elf*)
16934       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16935       need_version=no
16936       need_lib_prefix=no
16937       ;;
16938     freebsd-*)
16939       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16940       need_version=yes
16941       ;;
16942   esac
16943   shlibpath_var=LD_LIBRARY_PATH
16944   case $host_os in
16945   freebsd2*)
16946     shlibpath_overrides_runpath=yes
16947     ;;
16948   freebsd3.01* | freebsdelf3.01*)
16949     shlibpath_overrides_runpath=yes
16950     hardcode_into_libs=yes
16951     ;;
16952   *) # from 3.2 on
16953     shlibpath_overrides_runpath=no
16954     hardcode_into_libs=yes
16955     ;;
16956   esac
16957   ;;
16958
16959 gnu*)
16960   version_type=linux
16961   need_lib_prefix=no
16962   need_version=no
16963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16964   soname_spec='${libname}${release}${shared_ext}$major'
16965   shlibpath_var=LD_LIBRARY_PATH
16966   hardcode_into_libs=yes
16967   ;;
16968
16969 hpux9* | hpux10* | hpux11*)
16970   # Give a soname corresponding to the major version so that dld.sl refuses to
16971   # link against other versions.
16972   version_type=sunos
16973   need_lib_prefix=no
16974   need_version=no
16975   case "$host_cpu" in
16976   ia64*)
16977     shrext_cmds='.so'
16978     hardcode_into_libs=yes
16979     dynamic_linker="$host_os dld.so"
16980     shlibpath_var=LD_LIBRARY_PATH
16981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983     soname_spec='${libname}${release}${shared_ext}$major'
16984     if test "X$HPUX_IA64_MODE" = X32; then
16985       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16986     else
16987       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16988     fi
16989     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16990     ;;
16991    hppa*64*)
16992      shrext_cmds='.sl'
16993      hardcode_into_libs=yes
16994      dynamic_linker="$host_os dld.sl"
16995      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16996      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998      soname_spec='${libname}${release}${shared_ext}$major'
16999      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17000      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17001      ;;
17002    *)
17003     shrext_cmds='.sl'
17004     dynamic_linker="$host_os dld.sl"
17005     shlibpath_var=SHLIB_PATH
17006     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17008     soname_spec='${libname}${release}${shared_ext}$major'
17009     ;;
17010   esac
17011   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17012   postinstall_cmds='chmod 555 $lib'
17013   ;;
17014
17015 irix5* | irix6* | nonstopux*)
17016   case $host_os in
17017     nonstopux*) version_type=nonstopux ;;
17018     *)
17019         if test "$lt_cv_prog_gnu_ld" = yes; then
17020                 version_type=linux
17021         else
17022                 version_type=irix
17023         fi ;;
17024   esac
17025   need_lib_prefix=no
17026   need_version=no
17027   soname_spec='${libname}${release}${shared_ext}$major'
17028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17029   case $host_os in
17030   irix5* | nonstopux*)
17031     libsuff= shlibsuff=
17032     ;;
17033   *)
17034     case $LD in # libtool.m4 will add one of these switches to LD
17035     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17036       libsuff= shlibsuff= libmagic=32-bit;;
17037     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17038       libsuff=32 shlibsuff=N32 libmagic=N32;;
17039     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17040       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17041     *) libsuff= shlibsuff= libmagic=never-match;;
17042     esac
17043     ;;
17044   esac
17045   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17046   shlibpath_overrides_runpath=no
17047   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17048   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17049   hardcode_into_libs=yes
17050   ;;
17051
17052 # No shared lib support for Linux oldld, aout, or coff.
17053 linux*oldld* | linux*aout* | linux*coff*)
17054   dynamic_linker=no
17055   ;;
17056
17057 # This must be Linux ELF.
17058 linux*)
17059   version_type=linux
17060   need_lib_prefix=no
17061   need_version=no
17062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063   soname_spec='${libname}${release}${shared_ext}$major'
17064   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17065   shlibpath_var=LD_LIBRARY_PATH
17066   shlibpath_overrides_runpath=no
17067   # This implies no fast_install, which is unacceptable.
17068   # Some rework will be needed to allow for fast_install
17069   # before this can be enabled.
17070   hardcode_into_libs=yes
17071
17072   # Append ld.so.conf contents to the search path
17073   if test -f /etc/ld.so.conf; then
17074     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17075     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17076   fi
17077
17078   # We used to test for /lib/ld.so.1 and disable shared libraries on
17079   # powerpc, because MkLinux only supported shared libraries with the
17080   # GNU dynamic linker.  Since this was broken with cross compilers,
17081   # most powerpc-linux boxes support dynamic linking these days and
17082   # people can always --disable-shared, the test was removed, and we
17083   # assume the GNU/Linux dynamic linker is in use.
17084   dynamic_linker='GNU/Linux ld.so'
17085   ;;
17086
17087 knetbsd*-gnu)
17088   version_type=linux
17089   need_lib_prefix=no
17090   need_version=no
17091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17092   soname_spec='${libname}${release}${shared_ext}$major'
17093   shlibpath_var=LD_LIBRARY_PATH
17094   shlibpath_overrides_runpath=no
17095   hardcode_into_libs=yes
17096   dynamic_linker='GNU ld.so'
17097   ;;
17098
17099 netbsd*)
17100   version_type=sunos
17101   need_lib_prefix=no
17102   need_version=no
17103   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17105     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17106     dynamic_linker='NetBSD (a.out) ld.so'
17107   else
17108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109     soname_spec='${libname}${release}${shared_ext}$major'
17110     dynamic_linker='NetBSD ld.elf_so'
17111   fi
17112   shlibpath_var=LD_LIBRARY_PATH
17113   shlibpath_overrides_runpath=yes
17114   hardcode_into_libs=yes
17115   ;;
17116
17117 newsos6)
17118   version_type=linux
17119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120   shlibpath_var=LD_LIBRARY_PATH
17121   shlibpath_overrides_runpath=yes
17122   ;;
17123
17124 nto-qnx*)
17125   version_type=linux
17126   need_lib_prefix=no
17127   need_version=no
17128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129   soname_spec='${libname}${release}${shared_ext}$major'
17130   shlibpath_var=LD_LIBRARY_PATH
17131   shlibpath_overrides_runpath=yes
17132   ;;
17133
17134 openbsd*)
17135   version_type=sunos
17136   need_lib_prefix=no
17137   need_version=no
17138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17140   shlibpath_var=LD_LIBRARY_PATH
17141   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17142     case $host_os in
17143       openbsd2.[89] | openbsd2.[89].*)
17144         shlibpath_overrides_runpath=no
17145         ;;
17146       *)
17147         shlibpath_overrides_runpath=yes
17148         ;;
17149       esac
17150   else
17151     shlibpath_overrides_runpath=yes
17152   fi
17153   ;;
17154
17155 os2*)
17156   libname_spec='$name'
17157   shrext_cmds=".dll"
17158   need_lib_prefix=no
17159   library_names_spec='$libname${shared_ext} $libname.a'
17160   dynamic_linker='OS/2 ld.exe'
17161   shlibpath_var=LIBPATH
17162   ;;
17163
17164 osf3* | osf4* | osf5*)
17165   version_type=osf
17166   need_lib_prefix=no
17167   need_version=no
17168   soname_spec='${libname}${release}${shared_ext}$major'
17169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170   shlibpath_var=LD_LIBRARY_PATH
17171   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17172   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17173   ;;
17174
17175 sco3.2v5*)
17176   version_type=osf
17177   soname_spec='${libname}${release}${shared_ext}$major'
17178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179   shlibpath_var=LD_LIBRARY_PATH
17180   ;;
17181
17182 solaris*)
17183   version_type=linux
17184   need_lib_prefix=no
17185   need_version=no
17186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187   soname_spec='${libname}${release}${shared_ext}$major'
17188   shlibpath_var=LD_LIBRARY_PATH
17189   shlibpath_overrides_runpath=yes
17190   hardcode_into_libs=yes
17191   # ldd complains unless libraries are executable
17192   postinstall_cmds='chmod +x $lib'
17193   ;;
17194
17195 sunos4*)
17196   version_type=sunos
17197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17198   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17199   shlibpath_var=LD_LIBRARY_PATH
17200   shlibpath_overrides_runpath=yes
17201   if test "$with_gnu_ld" = yes; then
17202     need_lib_prefix=no
17203   fi
17204   need_version=yes
17205   ;;
17206
17207 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17208   version_type=linux
17209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210   soname_spec='${libname}${release}${shared_ext}$major'
17211   shlibpath_var=LD_LIBRARY_PATH
17212   case $host_vendor in
17213     sni)
17214       shlibpath_overrides_runpath=no
17215       need_lib_prefix=no
17216       export_dynamic_flag_spec='${wl}-Blargedynsym'
17217       runpath_var=LD_RUN_PATH
17218       ;;
17219     siemens)
17220       need_lib_prefix=no
17221       ;;
17222     motorola)
17223       need_lib_prefix=no
17224       need_version=no
17225       shlibpath_overrides_runpath=no
17226       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17227       ;;
17228   esac
17229   ;;
17230
17231 sysv4*MP*)
17232   if test -d /usr/nec ;then
17233     version_type=linux
17234     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17235     soname_spec='$libname${shared_ext}.$major'
17236     shlibpath_var=LD_LIBRARY_PATH
17237   fi
17238   ;;
17239
17240 uts4*)
17241   version_type=linux
17242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243   soname_spec='${libname}${release}${shared_ext}$major'
17244   shlibpath_var=LD_LIBRARY_PATH
17245   ;;
17246
17247 *)
17248   dynamic_linker=no
17249   ;;
17250 esac
17251 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17252 echo "${ECHO_T}$dynamic_linker" >&6
17253 test "$dynamic_linker" = no && can_build_shared=no
17254
17255 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17256 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17257 hardcode_action_CXX=
17258 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17259    test -n "$runpath_var_CXX" || \
17260    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17261
17262   # We can hardcode non-existant directories.
17263   if test "$hardcode_direct_CXX" != no &&
17264      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17265      # have to relink, otherwise we might link with an installed library
17266      # when we should be linking with a yet-to-be-installed one
17267      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17268      test "$hardcode_minus_L_CXX" != no; then
17269     # Linking always hardcodes the temporary library directory.
17270     hardcode_action_CXX=relink
17271   else
17272     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17273     hardcode_action_CXX=immediate
17274   fi
17275 else
17276   # We cannot hardcode anything, or else we can only hardcode existing
17277   # directories.
17278   hardcode_action_CXX=unsupported
17279 fi
17280 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17281 echo "${ECHO_T}$hardcode_action_CXX" >&6
17282
17283 if test "$hardcode_action_CXX" = relink; then
17284   # Fast installation is not supported
17285   enable_fast_install=no
17286 elif test "$shlibpath_overrides_runpath" = yes ||
17287      test "$enable_shared" = no; then
17288   # Fast installation is not necessary
17289   enable_fast_install=needless
17290 fi
17291
17292 striplib=
17293 old_striplib=
17294 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17295 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17296 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17297   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17298   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17299   echo "$as_me:$LINENO: result: yes" >&5
17300 echo "${ECHO_T}yes" >&6
17301 else
17302 # FIXME - insert some real tests, host_os isn't really good enough
17303   case $host_os in
17304    darwin*)
17305        if test -n "$STRIP" ; then
17306          striplib="$STRIP -x"
17307          echo "$as_me:$LINENO: result: yes" >&5
17308 echo "${ECHO_T}yes" >&6
17309        else
17310   echo "$as_me:$LINENO: result: no" >&5
17311 echo "${ECHO_T}no" >&6
17312 fi
17313        ;;
17314    *)
17315   echo "$as_me:$LINENO: result: no" >&5
17316 echo "${ECHO_T}no" >&6
17317     ;;
17318   esac
17319 fi
17320
17321 if test "x$enable_dlopen" != xyes; then
17322   enable_dlopen=unknown
17323   enable_dlopen_self=unknown
17324   enable_dlopen_self_static=unknown
17325 else
17326   lt_cv_dlopen=no
17327   lt_cv_dlopen_libs=
17328
17329   case $host_os in
17330   beos*)
17331     lt_cv_dlopen="load_add_on"
17332     lt_cv_dlopen_libs=
17333     lt_cv_dlopen_self=yes
17334     ;;
17335
17336   mingw* | pw32*)
17337     lt_cv_dlopen="LoadLibrary"
17338     lt_cv_dlopen_libs=
17339    ;;
17340
17341   cygwin*)
17342     lt_cv_dlopen="dlopen"
17343     lt_cv_dlopen_libs=
17344    ;;
17345
17346   darwin*)
17347   # if libdl is installed we need to link against it
17348     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17349 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353   ac_check_lib_save_LIBS=$LIBS
17354 LIBS="-ldl  $LIBS"
17355 cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h.  */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h.  */
17361
17362 /* Override any gcc2 internal prototype to avoid an error.  */
17363 #ifdef __cplusplus
17364 extern "C"
17365 #endif
17366 /* We use char because int might match the return type of a gcc2
17367    builtin and then its argument prototype would still apply.  */
17368 char dlopen ();
17369 int
17370 main ()
17371 {
17372 dlopen ();
17373   ;
17374   return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379   (eval $ac_link) 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } &&
17386          { ac_try='test -z "$ac_cxx_werror_flag"
17387                          || test ! -s conftest.err'
17388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389   (eval $ac_try) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); }; } &&
17393          { ac_try='test -s conftest$ac_exeext'
17394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395   (eval $ac_try) 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; }; then
17399   ac_cv_lib_dl_dlopen=yes
17400 else
17401   echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_lib_dl_dlopen=no
17405 fi
17406 rm -f conftest.err conftest.$ac_objext \
17407       conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_lib_save_LIBS
17409 fi
17410 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17412 if test $ac_cv_lib_dl_dlopen = yes; then
17413   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17414 else
17415
17416     lt_cv_dlopen="dyld"
17417     lt_cv_dlopen_libs=
17418     lt_cv_dlopen_self=yes
17419
17420 fi
17421
17422    ;;
17423
17424   *)
17425     echo "$as_me:$LINENO: checking for shl_load" >&5
17426 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17427 if test "${ac_cv_func_shl_load+set}" = set; then
17428   echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430   cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h.  */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h.  */
17436 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17438 #define shl_load innocuous_shl_load
17439
17440 /* System header to define __stub macros and hopefully few prototypes,
17441     which can conflict with char shl_load (); below.
17442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443     <limits.h> exists even on freestanding compilers.  */
17444
17445 #ifdef __STDC__
17446 # include <limits.h>
17447 #else
17448 # include <assert.h>
17449 #endif
17450
17451 #undef shl_load
17452
17453 /* Override any gcc2 internal prototype to avoid an error.  */
17454 #ifdef __cplusplus
17455 extern "C"
17456 {
17457 #endif
17458 /* We use char because int might match the return type of a gcc2
17459    builtin and then its argument prototype would still apply.  */
17460 char shl_load ();
17461 /* The GNU C library defines this for functions which it implements
17462     to always fail with ENOSYS.  Some functions are actually named
17463     something starting with __ and the normal name is an alias.  */
17464 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17465 choke me
17466 #else
17467 char (*f) () = shl_load;
17468 #endif
17469 #ifdef __cplusplus
17470 }
17471 #endif
17472
17473 int
17474 main ()
17475 {
17476 return f != shl_load;
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483   (eval $ac_link) 2>conftest.er1
17484   ac_status=$?
17485   grep -v '^ *+' conftest.er1 >conftest.err
17486   rm -f conftest.er1
17487   cat conftest.err >&5
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); } &&
17490          { ac_try='test -z "$ac_cxx_werror_flag"
17491                          || test ! -s conftest.err'
17492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493   (eval $ac_try) 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; } &&
17497          { ac_try='test -s conftest$ac_exeext'
17498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499   (eval $ac_try) 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; }; then
17503   ac_cv_func_shl_load=yes
17504 else
17505   echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 ac_cv_func_shl_load=no
17509 fi
17510 rm -f conftest.err conftest.$ac_objext \
17511       conftest$ac_exeext conftest.$ac_ext
17512 fi
17513 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17514 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17515 if test $ac_cv_func_shl_load = yes; then
17516   lt_cv_dlopen="shl_load"
17517 else
17518   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17519 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17520 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   ac_check_lib_save_LIBS=$LIBS
17524 LIBS="-ldld  $LIBS"
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531
17532 /* Override any gcc2 internal prototype to avoid an error.  */
17533 #ifdef __cplusplus
17534 extern "C"
17535 #endif
17536 /* We use char because int might match the return type of a gcc2
17537    builtin and then its argument prototype would still apply.  */
17538 char shl_load ();
17539 int
17540 main ()
17541 {
17542 shl_load ();
17543   ;
17544   return 0;
17545 }
17546 _ACEOF
17547 rm -f conftest.$ac_objext conftest$ac_exeext
17548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17549   (eval $ac_link) 2>conftest.er1
17550   ac_status=$?
17551   grep -v '^ *+' conftest.er1 >conftest.err
17552   rm -f conftest.er1
17553   cat conftest.err >&5
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); } &&
17556          { ac_try='test -z "$ac_cxx_werror_flag"
17557                          || test ! -s conftest.err'
17558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559   (eval $ac_try) 2>&5
17560   ac_status=$?
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); }; } &&
17563          { ac_try='test -s conftest$ac_exeext'
17564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565   (eval $ac_try) 2>&5
17566   ac_status=$?
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); }; }; then
17569   ac_cv_lib_dld_shl_load=yes
17570 else
17571   echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17573
17574 ac_cv_lib_dld_shl_load=no
17575 fi
17576 rm -f conftest.err conftest.$ac_objext \
17577       conftest$ac_exeext conftest.$ac_ext
17578 LIBS=$ac_check_lib_save_LIBS
17579 fi
17580 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17581 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17582 if test $ac_cv_lib_dld_shl_load = yes; then
17583   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17584 else
17585   echo "$as_me:$LINENO: checking for dlopen" >&5
17586 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17587 if test "${ac_cv_func_dlopen+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590   cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h.  */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h.  */
17596 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17598 #define dlopen innocuous_dlopen
17599
17600 /* System header to define __stub macros and hopefully few prototypes,
17601     which can conflict with char dlopen (); below.
17602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603     <limits.h> exists even on freestanding compilers.  */
17604
17605 #ifdef __STDC__
17606 # include <limits.h>
17607 #else
17608 # include <assert.h>
17609 #endif
17610
17611 #undef dlopen
17612
17613 /* Override any gcc2 internal prototype to avoid an error.  */
17614 #ifdef __cplusplus
17615 extern "C"
17616 {
17617 #endif
17618 /* We use char because int might match the return type of a gcc2
17619    builtin and then its argument prototype would still apply.  */
17620 char dlopen ();
17621 /* The GNU C library defines this for functions which it implements
17622     to always fail with ENOSYS.  Some functions are actually named
17623     something starting with __ and the normal name is an alias.  */
17624 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17625 choke me
17626 #else
17627 char (*f) () = dlopen;
17628 #endif
17629 #ifdef __cplusplus
17630 }
17631 #endif
17632
17633 int
17634 main ()
17635 {
17636 return f != dlopen;
17637   ;
17638   return 0;
17639 }
17640 _ACEOF
17641 rm -f conftest.$ac_objext conftest$ac_exeext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17643   (eval $ac_link) 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } &&
17650          { ac_try='test -z "$ac_cxx_werror_flag"
17651                          || test ! -s conftest.err'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; } &&
17657          { ac_try='test -s conftest$ac_exeext'
17658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659   (eval $ac_try) 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; }; then
17663   ac_cv_func_dlopen=yes
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_cv_func_dlopen=no
17669 fi
17670 rm -f conftest.err conftest.$ac_objext \
17671       conftest$ac_exeext conftest.$ac_ext
17672 fi
17673 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17674 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17675 if test $ac_cv_func_dlopen = yes; then
17676   lt_cv_dlopen="dlopen"
17677 else
17678   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   ac_check_lib_save_LIBS=$LIBS
17684 LIBS="-ldl  $LIBS"
17685 cat >conftest.$ac_ext <<_ACEOF
17686 /* confdefs.h.  */
17687 _ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h.  */
17691
17692 /* Override any gcc2 internal prototype to avoid an error.  */
17693 #ifdef __cplusplus
17694 extern "C"
17695 #endif
17696 /* We use char because int might match the return type of a gcc2
17697    builtin and then its argument prototype would still apply.  */
17698 char dlopen ();
17699 int
17700 main ()
17701 {
17702 dlopen ();
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext conftest$ac_exeext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17709   (eval $ac_link) 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -z "$ac_cxx_werror_flag"
17717                          || test ! -s conftest.err'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; } &&
17723          { ac_try='test -s conftest$ac_exeext'
17724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725   (eval $ac_try) 2>&5
17726   ac_status=$?
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); }; }; then
17729   ac_cv_lib_dl_dlopen=yes
17730 else
17731   echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17733
17734 ac_cv_lib_dl_dlopen=no
17735 fi
17736 rm -f conftest.err conftest.$ac_objext \
17737       conftest$ac_exeext conftest.$ac_ext
17738 LIBS=$ac_check_lib_save_LIBS
17739 fi
17740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17742 if test $ac_cv_lib_dl_dlopen = yes; then
17743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17744 else
17745   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17746 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17747 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17748   echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750   ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-lsvld  $LIBS"
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758
17759 /* Override any gcc2 internal prototype to avoid an error.  */
17760 #ifdef __cplusplus
17761 extern "C"
17762 #endif
17763 /* We use char because int might match the return type of a gcc2
17764    builtin and then its argument prototype would still apply.  */
17765 char dlopen ();
17766 int
17767 main ()
17768 {
17769 dlopen ();
17770   ;
17771   return 0;
17772 }
17773 _ACEOF
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776   (eval $ac_link) 2>conftest.er1
17777   ac_status=$?
17778   grep -v '^ *+' conftest.er1 >conftest.err
17779   rm -f conftest.er1
17780   cat conftest.err >&5
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } &&
17783          { ac_try='test -z "$ac_cxx_werror_flag"
17784                          || test ! -s conftest.err'
17785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786   (eval $ac_try) 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; } &&
17790          { ac_try='test -s conftest$ac_exeext'
17791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792   (eval $ac_try) 2>&5
17793   ac_status=$?
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); }; }; then
17796   ac_cv_lib_svld_dlopen=yes
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801 ac_cv_lib_svld_dlopen=no
17802 fi
17803 rm -f conftest.err conftest.$ac_objext \
17804       conftest$ac_exeext conftest.$ac_ext
17805 LIBS=$ac_check_lib_save_LIBS
17806 fi
17807 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17808 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17809 if test $ac_cv_lib_svld_dlopen = yes; then
17810   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17811 else
17812   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17813 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17814 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-ldld  $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825
17826 /* Override any gcc2 internal prototype to avoid an error.  */
17827 #ifdef __cplusplus
17828 extern "C"
17829 #endif
17830 /* We use char because int might match the return type of a gcc2
17831    builtin and then its argument prototype would still apply.  */
17832 char dld_link ();
17833 int
17834 main ()
17835 {
17836 dld_link ();
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843   (eval $ac_link) 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } &&
17850          { ac_try='test -z "$ac_cxx_werror_flag"
17851                          || test ! -s conftest.err'
17852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853   (eval $ac_try) 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; } &&
17857          { ac_try='test -s conftest$ac_exeext'
17858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859   (eval $ac_try) 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; }; then
17863   ac_cv_lib_dld_dld_link=yes
17864 else
17865   echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868 ac_cv_lib_dld_dld_link=no
17869 fi
17870 rm -f conftest.err conftest.$ac_objext \
17871       conftest$ac_exeext conftest.$ac_ext
17872 LIBS=$ac_check_lib_save_LIBS
17873 fi
17874 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17875 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17876 if test $ac_cv_lib_dld_dld_link = yes; then
17877   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17878 fi
17879
17880
17881 fi
17882
17883
17884 fi
17885
17886
17887 fi
17888
17889
17890 fi
17891
17892
17893 fi
17894
17895     ;;
17896   esac
17897
17898   if test "x$lt_cv_dlopen" != xno; then
17899     enable_dlopen=yes
17900   else
17901     enable_dlopen=no
17902   fi
17903
17904   case $lt_cv_dlopen in
17905   dlopen)
17906     save_CPPFLAGS="$CPPFLAGS"
17907     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17908
17909     save_LDFLAGS="$LDFLAGS"
17910     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17911
17912     save_LIBS="$LIBS"
17913     LIBS="$lt_cv_dlopen_libs $LIBS"
17914
17915     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17916 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17917 if test "${lt_cv_dlopen_self+set}" = set; then
17918   echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920           if test "$cross_compiling" = yes; then :
17921   lt_cv_dlopen_self=cross
17922 else
17923   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17924   lt_status=$lt_dlunknown
17925   cat > conftest.$ac_ext <<EOF
17926 #line 17926 "configure"
17927 #include "confdefs.h"
17928
17929 #if HAVE_DLFCN_H
17930 #include <dlfcn.h>
17931 #endif
17932
17933 #include <stdio.h>
17934
17935 #ifdef RTLD_GLOBAL
17936 #  define LT_DLGLOBAL           RTLD_GLOBAL
17937 #else
17938 #  ifdef DL_GLOBAL
17939 #    define LT_DLGLOBAL         DL_GLOBAL
17940 #  else
17941 #    define LT_DLGLOBAL         0
17942 #  endif
17943 #endif
17944
17945 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17946    find out it does not work in some platform. */
17947 #ifndef LT_DLLAZY_OR_NOW
17948 #  ifdef RTLD_LAZY
17949 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17950 #  else
17951 #    ifdef DL_LAZY
17952 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17953 #    else
17954 #      ifdef RTLD_NOW
17955 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17956 #      else
17957 #        ifdef DL_NOW
17958 #          define LT_DLLAZY_OR_NOW      DL_NOW
17959 #        else
17960 #          define LT_DLLAZY_OR_NOW      0
17961 #        endif
17962 #      endif
17963 #    endif
17964 #  endif
17965 #endif
17966
17967 #ifdef __cplusplus
17968 extern "C" void exit (int);
17969 #endif
17970
17971 void fnord() { int i=42;}
17972 int main ()
17973 {
17974   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17975   int status = $lt_dlunknown;
17976
17977   if (self)
17978     {
17979       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17980       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17981       /* dlclose (self); */
17982     }
17983
17984     exit (status);
17985 }
17986 EOF
17987   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17988   (eval $ac_link) 2>&5
17989   ac_status=$?
17990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17992     (./conftest; exit; ) 2>/dev/null
17993     lt_status=$?
17994     case x$lt_status in
17995       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17996       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17997       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17998     esac
17999   else :
18000     # compilation failed
18001     lt_cv_dlopen_self=no
18002   fi
18003 fi
18004 rm -fr conftest*
18005
18006
18007 fi
18008 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18009 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18010
18011     if test "x$lt_cv_dlopen_self" = xyes; then
18012       LDFLAGS="$LDFLAGS $link_static_flag"
18013       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18014 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18015 if test "${lt_cv_dlopen_self_static+set}" = set; then
18016   echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018           if test "$cross_compiling" = yes; then :
18019   lt_cv_dlopen_self_static=cross
18020 else
18021   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18022   lt_status=$lt_dlunknown
18023   cat > conftest.$ac_ext <<EOF
18024 #line 18024 "configure"
18025 #include "confdefs.h"
18026
18027 #if HAVE_DLFCN_H
18028 #include <dlfcn.h>
18029 #endif
18030
18031 #include <stdio.h>
18032
18033 #ifdef RTLD_GLOBAL
18034 #  define LT_DLGLOBAL           RTLD_GLOBAL
18035 #else
18036 #  ifdef DL_GLOBAL
18037 #    define LT_DLGLOBAL         DL_GLOBAL
18038 #  else
18039 #    define LT_DLGLOBAL         0
18040 #  endif
18041 #endif
18042
18043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18044    find out it does not work in some platform. */
18045 #ifndef LT_DLLAZY_OR_NOW
18046 #  ifdef RTLD_LAZY
18047 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18048 #  else
18049 #    ifdef DL_LAZY
18050 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18051 #    else
18052 #      ifdef RTLD_NOW
18053 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18054 #      else
18055 #        ifdef DL_NOW
18056 #          define LT_DLLAZY_OR_NOW      DL_NOW
18057 #        else
18058 #          define LT_DLLAZY_OR_NOW      0
18059 #        endif
18060 #      endif
18061 #    endif
18062 #  endif
18063 #endif
18064
18065 #ifdef __cplusplus
18066 extern "C" void exit (int);
18067 #endif
18068
18069 void fnord() { int i=42;}
18070 int main ()
18071 {
18072   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18073   int status = $lt_dlunknown;
18074
18075   if (self)
18076     {
18077       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18078       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18079       /* dlclose (self); */
18080     }
18081
18082     exit (status);
18083 }
18084 EOF
18085   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18086   (eval $ac_link) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18090     (./conftest; exit; ) 2>/dev/null
18091     lt_status=$?
18092     case x$lt_status in
18093       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18094       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18095       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18096     esac
18097   else :
18098     # compilation failed
18099     lt_cv_dlopen_self_static=no
18100   fi
18101 fi
18102 rm -fr conftest*
18103
18104
18105 fi
18106 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18107 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18108     fi
18109
18110     CPPFLAGS="$save_CPPFLAGS"
18111     LDFLAGS="$save_LDFLAGS"
18112     LIBS="$save_LIBS"
18113     ;;
18114   esac
18115
18116   case $lt_cv_dlopen_self in
18117   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18118   *) enable_dlopen_self=unknown ;;
18119   esac
18120
18121   case $lt_cv_dlopen_self_static in
18122   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18123   *) enable_dlopen_self_static=unknown ;;
18124   esac
18125 fi
18126
18127
18128 # The else clause should only fire when bootstrapping the
18129 # libtool distribution, otherwise you forgot to ship ltmain.sh
18130 # with your package, and you will get complaints that there are
18131 # no rules to generate ltmain.sh.
18132 if test -f "$ltmain"; then
18133   # See if we are running on zsh, and set the options which allow our commands through
18134   # without removal of \ escapes.
18135   if test -n "${ZSH_VERSION+set}" ; then
18136     setopt NO_GLOB_SUBST
18137   fi
18138   # Now quote all the things that may contain metacharacters while being
18139   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18140   # variables and quote the copies for generation of the libtool script.
18141   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18142     SED SHELL STRIP \
18143     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18144     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18145     deplibs_check_method reload_flag reload_cmds need_locks \
18146     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18147     lt_cv_sys_global_symbol_to_c_name_address \
18148     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18149     old_postinstall_cmds old_postuninstall_cmds \
18150     compiler_CXX \
18151     CC_CXX \
18152     LD_CXX \
18153     lt_prog_compiler_wl_CXX \
18154     lt_prog_compiler_pic_CXX \
18155     lt_prog_compiler_static_CXX \
18156     lt_prog_compiler_no_builtin_flag_CXX \
18157     export_dynamic_flag_spec_CXX \
18158     thread_safe_flag_spec_CXX \
18159     whole_archive_flag_spec_CXX \
18160     enable_shared_with_static_runtimes_CXX \
18161     old_archive_cmds_CXX \
18162     old_archive_from_new_cmds_CXX \
18163     predep_objects_CXX \
18164     postdep_objects_CXX \
18165     predeps_CXX \
18166     postdeps_CXX \
18167     compiler_lib_search_path_CXX \
18168     archive_cmds_CXX \
18169     archive_expsym_cmds_CXX \
18170     postinstall_cmds_CXX \
18171     postuninstall_cmds_CXX \
18172     old_archive_from_expsyms_cmds_CXX \
18173     allow_undefined_flag_CXX \
18174     no_undefined_flag_CXX \
18175     export_symbols_cmds_CXX \
18176     hardcode_libdir_flag_spec_CXX \
18177     hardcode_libdir_flag_spec_ld_CXX \
18178     hardcode_libdir_separator_CXX \
18179     hardcode_automatic_CXX \
18180     module_cmds_CXX \
18181     module_expsym_cmds_CXX \
18182     lt_cv_prog_compiler_c_o_CXX \
18183     exclude_expsyms_CXX \
18184     include_expsyms_CXX; do
18185
18186     case $var in
18187     old_archive_cmds_CXX | \
18188     old_archive_from_new_cmds_CXX | \
18189     archive_cmds_CXX | \
18190     archive_expsym_cmds_CXX | \
18191     module_cmds_CXX | \
18192     module_expsym_cmds_CXX | \
18193     old_archive_from_expsyms_cmds_CXX | \
18194     export_symbols_cmds_CXX | \
18195     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18196     postinstall_cmds | postuninstall_cmds | \
18197     old_postinstall_cmds | old_postuninstall_cmds | \
18198     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18199       # Double-quote double-evaled strings.
18200       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18201       ;;
18202     *)
18203       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18204       ;;
18205     esac
18206   done
18207
18208   case $lt_echo in
18209   *'\$0 --fallback-echo"')
18210     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18211     ;;
18212   esac
18213
18214 cfgfile="$ofile"
18215
18216   cat <<__EOF__ >> "$cfgfile"
18217 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18218
18219 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18220
18221 # Shell to use when invoking shell scripts.
18222 SHELL=$lt_SHELL
18223
18224 # Whether or not to build shared libraries.
18225 build_libtool_libs=$enable_shared
18226
18227 # Whether or not to build static libraries.
18228 build_old_libs=$enable_static
18229
18230 # Whether or not to add -lc for building shared libraries.
18231 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18232
18233 # Whether or not to disallow shared libs when runtime libs are static
18234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18235
18236 # Whether or not to optimize for fast installation.
18237 fast_install=$enable_fast_install
18238
18239 # The host system.
18240 host_alias=$host_alias
18241 host=$host
18242
18243 # An echo program that does not interpret backslashes.
18244 echo=$lt_echo
18245
18246 # The archiver.
18247 AR=$lt_AR
18248 AR_FLAGS=$lt_AR_FLAGS
18249
18250 # A C compiler.
18251 LTCC=$lt_LTCC
18252
18253 # A language-specific compiler.
18254 CC=$lt_compiler_CXX
18255
18256 # Is the compiler the GNU C compiler?
18257 with_gcc=$GCC_CXX
18258
18259 # An ERE matcher.
18260 EGREP=$lt_EGREP
18261
18262 # The linker used to build libraries.
18263 LD=$lt_LD_CXX
18264
18265 # Whether we need hard or soft links.
18266 LN_S=$lt_LN_S
18267
18268 # A BSD-compatible nm program.
18269 NM=$lt_NM
18270
18271 # A symbol stripping program
18272 STRIP=$lt_STRIP
18273
18274 # Used to examine libraries when file_magic_cmd begins "file"
18275 MAGIC_CMD=$MAGIC_CMD
18276
18277 # Used on cygwin: DLL creation program.
18278 DLLTOOL="$DLLTOOL"
18279
18280 # Used on cygwin: object dumper.
18281 OBJDUMP="$OBJDUMP"
18282
18283 # Used on cygwin: assembler.
18284 AS="$AS"
18285
18286 # The name of the directory that contains temporary libtool files.
18287 objdir=$objdir
18288
18289 # How to create reloadable object files.
18290 reload_flag=$lt_reload_flag
18291 reload_cmds=$lt_reload_cmds
18292
18293 # How to pass a linker flag through the compiler.
18294 wl=$lt_lt_prog_compiler_wl_CXX
18295
18296 # Object file suffix (normally "o").
18297 objext="$ac_objext"
18298
18299 # Old archive suffix (normally "a").
18300 libext="$libext"
18301
18302 # Shared library suffix (normally ".so").
18303 shrext_cmds='$shrext_cmds'
18304
18305 # Executable file suffix (normally "").
18306 exeext="$exeext"
18307
18308 # Additional compiler flags for building library objects.
18309 pic_flag=$lt_lt_prog_compiler_pic_CXX
18310 pic_mode=$pic_mode
18311
18312 # What is the maximum length of a command?
18313 max_cmd_len=$lt_cv_sys_max_cmd_len
18314
18315 # Does compiler simultaneously support -c and -o options?
18316 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18317
18318 # Must we lock files when doing compilation ?
18319 need_locks=$lt_need_locks
18320
18321 # Do we need the lib prefix for modules?
18322 need_lib_prefix=$need_lib_prefix
18323
18324 # Do we need a version for libraries?
18325 need_version=$need_version
18326
18327 # Whether dlopen is supported.
18328 dlopen_support=$enable_dlopen
18329
18330 # Whether dlopen of programs is supported.
18331 dlopen_self=$enable_dlopen_self
18332
18333 # Whether dlopen of statically linked programs is supported.
18334 dlopen_self_static=$enable_dlopen_self_static
18335
18336 # Compiler flag to prevent dynamic linking.
18337 link_static_flag=$lt_lt_prog_compiler_static_CXX
18338
18339 # Compiler flag to turn off builtin functions.
18340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18341
18342 # Compiler flag to allow reflexive dlopens.
18343 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18344
18345 # Compiler flag to generate shared objects directly from archives.
18346 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18347
18348 # Compiler flag to generate thread-safe objects.
18349 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18350
18351 # Library versioning type.
18352 version_type=$version_type
18353
18354 # Format of library name prefix.
18355 libname_spec=$lt_libname_spec
18356
18357 # List of archive names.  First name is the real one, the rest are links.
18358 # The last name is the one that the linker finds with -lNAME.
18359 library_names_spec=$lt_library_names_spec
18360
18361 # The coded name of the library, if different from the real name.
18362 soname_spec=$lt_soname_spec
18363
18364 # Commands used to build and install an old-style archive.
18365 RANLIB=$lt_RANLIB
18366 old_archive_cmds=$lt_old_archive_cmds_CXX
18367 old_postinstall_cmds=$lt_old_postinstall_cmds
18368 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18369
18370 # Create an old-style archive from a shared archive.
18371 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18372
18373 # Create a temporary old-style archive to link instead of a shared archive.
18374 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18375
18376 # Commands used to build and install a shared archive.
18377 archive_cmds=$lt_archive_cmds_CXX
18378 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18379 postinstall_cmds=$lt_postinstall_cmds
18380 postuninstall_cmds=$lt_postuninstall_cmds
18381
18382 # Commands used to build a loadable module (assumed same as above if empty)
18383 module_cmds=$lt_module_cmds_CXX
18384 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18385
18386 # Commands to strip libraries.
18387 old_striplib=$lt_old_striplib
18388 striplib=$lt_striplib
18389
18390 # Dependencies to place before the objects being linked to create a
18391 # shared library.
18392 predep_objects=$lt_predep_objects_CXX
18393
18394 # Dependencies to place after the objects being linked to create a
18395 # shared library.
18396 postdep_objects=$lt_postdep_objects_CXX
18397
18398 # Dependencies to place before the objects being linked to create a
18399 # shared library.
18400 predeps=$lt_predeps_CXX
18401
18402 # Dependencies to place after the objects being linked to create a
18403 # shared library.
18404 postdeps=$lt_postdeps_CXX
18405
18406 # The library search path used internally by the compiler when linking
18407 # a shared library.
18408 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18409
18410 # Method to check whether dependent libraries are shared objects.
18411 deplibs_check_method=$lt_deplibs_check_method
18412
18413 # Command to use when deplibs_check_method == file_magic.
18414 file_magic_cmd=$lt_file_magic_cmd
18415
18416 # Flag that allows shared libraries with undefined symbols to be built.
18417 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18418
18419 # Flag that forces no undefined symbols.
18420 no_undefined_flag=$lt_no_undefined_flag_CXX
18421
18422 # Commands used to finish a libtool library installation in a directory.
18423 finish_cmds=$lt_finish_cmds
18424
18425 # Same as above, but a single script fragment to be evaled but not shown.
18426 finish_eval=$lt_finish_eval
18427
18428 # Take the output of nm and produce a listing of raw symbols and C names.
18429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18430
18431 # Transform the output of nm in a proper C declaration
18432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18433
18434 # Transform the output of nm in a C name address pair
18435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18436
18437 # This is the shared library runtime path variable.
18438 runpath_var=$runpath_var
18439
18440 # This is the shared library path variable.
18441 shlibpath_var=$shlibpath_var
18442
18443 # Is shlibpath searched before the hard-coded library search path?
18444 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18445
18446 # How to hardcode a shared library path into an executable.
18447 hardcode_action=$hardcode_action_CXX
18448
18449 # Whether we should hardcode library paths into libraries.
18450 hardcode_into_libs=$hardcode_into_libs
18451
18452 # Flag to hardcode \$libdir into a binary during linking.
18453 # This must work even if \$libdir does not exist.
18454 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18455
18456 # If ld is used when linking, flag to hardcode \$libdir into
18457 # a binary during linking. This must work even if \$libdir does
18458 # not exist.
18459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18460
18461 # Whether we need a single -rpath flag with a separated argument.
18462 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18463
18464 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18465 # resulting binary.
18466 hardcode_direct=$hardcode_direct_CXX
18467
18468 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18469 # resulting binary.
18470 hardcode_minus_L=$hardcode_minus_L_CXX
18471
18472 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18473 # the resulting binary.
18474 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18475
18476 # Set to yes if building a shared library automatically hardcodes DIR into the library
18477 # and all subsequent libraries and executables linked against it.
18478 hardcode_automatic=$hardcode_automatic_CXX
18479
18480 # Variables whose values should be saved in libtool wrapper scripts and
18481 # restored at relink time.
18482 variables_saved_for_relink="$variables_saved_for_relink"
18483
18484 # Whether libtool must link a program against all its dependency libraries.
18485 link_all_deplibs=$link_all_deplibs_CXX
18486
18487 # Compile-time system search path for libraries
18488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18489
18490 # Run-time system search path for libraries
18491 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18492
18493 # Fix the shell variable \$srcfile for the compiler.
18494 fix_srcfile_path="$fix_srcfile_path_CXX"
18495
18496 # Set to yes if exported symbols are required.
18497 always_export_symbols=$always_export_symbols_CXX
18498
18499 # The commands to list exported symbols.
18500 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18501
18502 # The commands to extract the exported symbol list from a shared archive.
18503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18504
18505 # Symbols that should not be listed in the preloaded symbols.
18506 exclude_expsyms=$lt_exclude_expsyms_CXX
18507
18508 # Symbols that must always be exported.
18509 include_expsyms=$lt_include_expsyms_CXX
18510
18511 # ### END LIBTOOL TAG CONFIG: $tagname
18512
18513 __EOF__
18514
18515
18516 else
18517   # If there is no Makefile yet, we rely on a make rule to execute
18518   # `config.status --recheck' to rerun these tests and create the
18519   # libtool script then.
18520   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18521   if test -f "$ltmain_in"; then
18522     test -f Makefile && make "$ltmain"
18523   fi
18524 fi
18525
18526
18527 ac_ext=c
18528 ac_cpp='$CPP $CPPFLAGS'
18529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18532
18533 CC=$lt_save_CC
18534 LDCXX=$LD
18535 LD=$lt_save_LD
18536 GCC=$lt_save_GCC
18537 with_gnu_ldcxx=$with_gnu_ld
18538 with_gnu_ld=$lt_save_with_gnu_ld
18539 lt_cv_path_LDCXX=$lt_cv_path_LD
18540 lt_cv_path_LD=$lt_save_path_LD
18541 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18542 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18543
18544         else
18545           tagname=""
18546         fi
18547         ;;
18548
18549       F77)
18550         if test -n "$F77" && test "X$F77" != "Xno"; then
18551
18552 ac_ext=f
18553 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18554 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18555 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18556
18557
18558 archive_cmds_need_lc_F77=no
18559 allow_undefined_flag_F77=
18560 always_export_symbols_F77=no
18561 archive_expsym_cmds_F77=
18562 export_dynamic_flag_spec_F77=
18563 hardcode_direct_F77=no
18564 hardcode_libdir_flag_spec_F77=
18565 hardcode_libdir_flag_spec_ld_F77=
18566 hardcode_libdir_separator_F77=
18567 hardcode_minus_L_F77=no
18568 hardcode_automatic_F77=no
18569 module_cmds_F77=
18570 module_expsym_cmds_F77=
18571 link_all_deplibs_F77=unknown
18572 old_archive_cmds_F77=$old_archive_cmds
18573 no_undefined_flag_F77=
18574 whole_archive_flag_spec_F77=
18575 enable_shared_with_static_runtimes_F77=no
18576
18577 # Source file extension for f77 test sources.
18578 ac_ext=f
18579
18580 # Object file extension for compiled f77 test sources.
18581 objext=o
18582 objext_F77=$objext
18583
18584 # Code to be used in simple compile tests
18585 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18586
18587 # Code to be used in simple link tests
18588 lt_simple_link_test_code="      program t\n      end\n"
18589
18590 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18591
18592 # If no C compiler was specified, use CC.
18593 LTCC=${LTCC-"$CC"}
18594
18595 # Allow CC to be a program name with arguments.
18596 compiler=$CC
18597
18598
18599 # Allow CC to be a program name with arguments.
18600 lt_save_CC="$CC"
18601 CC=${F77-"f77"}
18602 compiler=$CC
18603 compiler_F77=$CC
18604 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18605
18606 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18607 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18608 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18609 echo "${ECHO_T}$can_build_shared" >&6
18610
18611 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18612 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18613 test "$can_build_shared" = "no" && enable_shared=no
18614
18615 # On AIX, shared libraries and static libraries use the same namespace, and
18616 # are all built from PIC.
18617 case "$host_os" in
18618 aix3*)
18619   test "$enable_shared" = yes && enable_static=no
18620   if test -n "$RANLIB"; then
18621     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18622     postinstall_cmds='$RANLIB $lib'
18623   fi
18624   ;;
18625 aix4* | aix5*)
18626   test "$enable_shared" = yes && enable_static=no
18627   ;;
18628 esac
18629 echo "$as_me:$LINENO: result: $enable_shared" >&5
18630 echo "${ECHO_T}$enable_shared" >&6
18631
18632 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18633 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18634 # Make sure either enable_shared or enable_static is yes.
18635 test "$enable_shared" = yes || enable_static=yes
18636 echo "$as_me:$LINENO: result: $enable_static" >&5
18637 echo "${ECHO_T}$enable_static" >&6
18638
18639 test "$ld_shlibs_F77" = no && can_build_shared=no
18640
18641 GCC_F77="$G77"
18642 LD_F77="$LD"
18643
18644 lt_prog_compiler_wl_F77=
18645 lt_prog_compiler_pic_F77=
18646 lt_prog_compiler_static_F77=
18647
18648 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18649 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18650
18651   if test "$GCC" = yes; then
18652     lt_prog_compiler_wl_F77='-Wl,'
18653     lt_prog_compiler_static_F77='-static'
18654
18655     case $host_os in
18656       aix*)
18657       # All AIX code is PIC.
18658       if test "$host_cpu" = ia64; then
18659         # AIX 5 now supports IA64 processor
18660         lt_prog_compiler_static_F77='-Bstatic'
18661       fi
18662       ;;
18663
18664     amigaos*)
18665       # FIXME: we need at least 68020 code to build shared libraries, but
18666       # adding the `-m68020' flag to GCC prevents building anything better,
18667       # like `-m68040'.
18668       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18669       ;;
18670
18671     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18672       # PIC is the default for these OSes.
18673       ;;
18674
18675     mingw* | pw32* | os2*)
18676       # This hack is so that the source file can tell whether it is being
18677       # built for inclusion in a dll (and should export symbols for example).
18678       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18679       ;;
18680
18681     darwin* | rhapsody*)
18682       # PIC is the default on this platform
18683       # Common symbols not allowed in MH_DYLIB files
18684       lt_prog_compiler_pic_F77='-fno-common'
18685       ;;
18686
18687     msdosdjgpp*)
18688       # Just because we use GCC doesn't mean we suddenly get shared libraries
18689       # on systems that don't support them.
18690       lt_prog_compiler_can_build_shared_F77=no
18691       enable_shared=no
18692       ;;
18693
18694     sysv4*MP*)
18695       if test -d /usr/nec; then
18696         lt_prog_compiler_pic_F77=-Kconform_pic
18697       fi
18698       ;;
18699
18700     hpux*)
18701       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18702       # not for PA HP-UX.
18703       case "$host_cpu" in
18704       hppa*64*|ia64*)
18705         # +Z the default
18706         ;;
18707       *)
18708         lt_prog_compiler_pic_F77='-fPIC'
18709         ;;
18710       esac
18711       ;;
18712
18713     *)
18714       lt_prog_compiler_pic_F77='-fPIC'
18715       ;;
18716     esac
18717   else
18718     # PORTME Check for flag to pass linker flags through the system compiler.
18719     case $host_os in
18720     aix*)
18721       lt_prog_compiler_wl_F77='-Wl,'
18722       if test "$host_cpu" = ia64; then
18723         # AIX 5 now supports IA64 processor
18724         lt_prog_compiler_static_F77='-Bstatic'
18725       else
18726         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18727       fi
18728       ;;
18729       darwin*)
18730         # PIC is the default on this platform
18731         # Common symbols not allowed in MH_DYLIB files
18732        case "$cc_basename" in
18733          xlc*)
18734          lt_prog_compiler_pic_F77='-qnocommon'
18735          lt_prog_compiler_wl_F77='-Wl,'
18736          ;;
18737        esac
18738        ;;
18739
18740     mingw* | pw32* | os2*)
18741       # This hack is so that the source file can tell whether it is being
18742       # built for inclusion in a dll (and should export symbols for example).
18743       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18744       ;;
18745
18746     hpux9* | hpux10* | hpux11*)
18747       lt_prog_compiler_wl_F77='-Wl,'
18748       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18749       # not for PA HP-UX.
18750       case "$host_cpu" in
18751       hppa*64*|ia64*)
18752         # +Z the default
18753         ;;
18754       *)
18755         lt_prog_compiler_pic_F77='+Z'
18756         ;;
18757       esac
18758       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18759       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18760       ;;
18761
18762     irix5* | irix6* | nonstopux*)
18763       lt_prog_compiler_wl_F77='-Wl,'
18764       # PIC (with -KPIC) is the default.
18765       lt_prog_compiler_static_F77='-non_shared'
18766       ;;
18767
18768     newsos6)
18769       lt_prog_compiler_pic_F77='-KPIC'
18770       lt_prog_compiler_static_F77='-Bstatic'
18771       ;;
18772
18773     linux*)
18774       case $CC in
18775       icc* | ecc*)
18776         lt_prog_compiler_wl_F77='-Wl,'
18777         lt_prog_compiler_pic_F77='-KPIC'
18778         lt_prog_compiler_static_F77='-static'
18779         ;;
18780       ccc*)
18781         lt_prog_compiler_wl_F77='-Wl,'
18782         # All Alpha code is PIC.
18783         lt_prog_compiler_static_F77='-non_shared'
18784         ;;
18785       esac
18786       ;;
18787
18788     osf3* | osf4* | osf5*)
18789       lt_prog_compiler_wl_F77='-Wl,'
18790       # All OSF/1 code is PIC.
18791       lt_prog_compiler_static_F77='-non_shared'
18792       ;;
18793
18794     sco3.2v5*)
18795       lt_prog_compiler_pic_F77='-Kpic'
18796       lt_prog_compiler_static_F77='-dn'
18797       ;;
18798
18799     solaris*)
18800       lt_prog_compiler_wl_F77='-Wl,'
18801       lt_prog_compiler_pic_F77='-KPIC'
18802       lt_prog_compiler_static_F77='-Bstatic'
18803       ;;
18804
18805     sunos4*)
18806       lt_prog_compiler_wl_F77='-Qoption ld '
18807       lt_prog_compiler_pic_F77='-PIC'
18808       lt_prog_compiler_static_F77='-Bstatic'
18809       ;;
18810
18811     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18812       lt_prog_compiler_wl_F77='-Wl,'
18813       lt_prog_compiler_pic_F77='-KPIC'
18814       lt_prog_compiler_static_F77='-Bstatic'
18815       ;;
18816
18817     sysv4*MP*)
18818       if test -d /usr/nec ;then
18819         lt_prog_compiler_pic_F77='-Kconform_pic'
18820         lt_prog_compiler_static_F77='-Bstatic'
18821       fi
18822       ;;
18823
18824     uts4*)
18825       lt_prog_compiler_pic_F77='-pic'
18826       lt_prog_compiler_static_F77='-Bstatic'
18827       ;;
18828
18829     *)
18830       lt_prog_compiler_can_build_shared_F77=no
18831       ;;
18832     esac
18833   fi
18834
18835 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18836 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18837
18838 #
18839 # Check to make sure the PIC flag actually works.
18840 #
18841 if test -n "$lt_prog_compiler_pic_F77"; then
18842
18843 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18844 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18845 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18846   echo $ECHO_N "(cached) $ECHO_C" >&6
18847 else
18848   lt_prog_compiler_pic_works_F77=no
18849   ac_outfile=conftest.$ac_objext
18850    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18851    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18852    # Insert the option either (1) after the last *FLAGS variable, or
18853    # (2) before a word containing "conftest.", or (3) at the end.
18854    # Note that $ac_compile itself does not contain backslashes and begins
18855    # with a dollar sign (not a hyphen), so the echo should work correctly.
18856    # The option is referenced via a variable to avoid confusing sed.
18857    lt_compile=`echo "$ac_compile" | $SED \
18858    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18860    -e 's:$: $lt_compiler_flag:'`
18861    (eval echo "\"\$as_me:18861: $lt_compile\"" >&5)
18862    (eval "$lt_compile" 2>conftest.err)
18863    ac_status=$?
18864    cat conftest.err >&5
18865    echo "$as_me:18865: \$? = $ac_status" >&5
18866    if (exit $ac_status) && test -s "$ac_outfile"; then
18867      # The compiler can only warn and ignore the option if not recognized
18868      # So say no if there are warnings
18869      if test ! -s conftest.err; then
18870        lt_prog_compiler_pic_works_F77=yes
18871      fi
18872    fi
18873    $rm conftest*
18874
18875 fi
18876 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18877 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18878
18879 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18880     case $lt_prog_compiler_pic_F77 in
18881      "" | " "*) ;;
18882      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18883      esac
18884 else
18885     lt_prog_compiler_pic_F77=
18886      lt_prog_compiler_can_build_shared_F77=no
18887 fi
18888
18889 fi
18890 case "$host_os" in
18891   # For platforms which do not support PIC, -DPIC is meaningless:
18892   *djgpp*)
18893     lt_prog_compiler_pic_F77=
18894     ;;
18895   *)
18896     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18897     ;;
18898 esac
18899
18900 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18901 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18902 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18903   echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905   lt_cv_prog_compiler_c_o_F77=no
18906    $rm -r conftest 2>/dev/null
18907    mkdir conftest
18908    cd conftest
18909    mkdir out
18910    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18911
18912    lt_compiler_flag="-o out/conftest2.$ac_objext"
18913    # Insert the option either (1) after the last *FLAGS variable, or
18914    # (2) before a word containing "conftest.", or (3) at the end.
18915    # Note that $ac_compile itself does not contain backslashes and begins
18916    # with a dollar sign (not a hyphen), so the echo should work correctly.
18917    lt_compile=`echo "$ac_compile" | $SED \
18918    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18920    -e 's:$: $lt_compiler_flag:'`
18921    (eval echo "\"\$as_me:18921: $lt_compile\"" >&5)
18922    (eval "$lt_compile" 2>out/conftest.err)
18923    ac_status=$?
18924    cat out/conftest.err >&5
18925    echo "$as_me:18925: \$? = $ac_status" >&5
18926    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18927    then
18928      # The compiler can only warn and ignore the option if not recognized
18929      # So say no if there are warnings
18930      if test ! -s out/conftest.err; then
18931        lt_cv_prog_compiler_c_o_F77=yes
18932      fi
18933    fi
18934    chmod u+w .
18935    $rm conftest*
18936    # SGI C++ compiler will create directory out/ii_files/ for
18937    # template instantiation
18938    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18939    $rm out/* && rmdir out
18940    cd ..
18941    rmdir conftest
18942    $rm conftest*
18943
18944 fi
18945 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18946 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18947
18948
18949 hard_links="nottested"
18950 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18951   # do not overwrite the value of need_locks provided by the user
18952   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18953 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18954   hard_links=yes
18955   $rm conftest*
18956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18957   touch conftest.a
18958   ln conftest.a conftest.b 2>&5 || hard_links=no
18959   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18960   echo "$as_me:$LINENO: result: $hard_links" >&5
18961 echo "${ECHO_T}$hard_links" >&6
18962   if test "$hard_links" = no; then
18963     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18964 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18965     need_locks=warn
18966   fi
18967 else
18968   need_locks=no
18969 fi
18970
18971 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18972 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18973
18974   runpath_var=
18975   allow_undefined_flag_F77=
18976   enable_shared_with_static_runtimes_F77=no
18977   archive_cmds_F77=
18978   archive_expsym_cmds_F77=
18979   old_archive_From_new_cmds_F77=
18980   old_archive_from_expsyms_cmds_F77=
18981   export_dynamic_flag_spec_F77=
18982   whole_archive_flag_spec_F77=
18983   thread_safe_flag_spec_F77=
18984   hardcode_libdir_flag_spec_F77=
18985   hardcode_libdir_flag_spec_ld_F77=
18986   hardcode_libdir_separator_F77=
18987   hardcode_direct_F77=no
18988   hardcode_minus_L_F77=no
18989   hardcode_shlibpath_var_F77=unsupported
18990   link_all_deplibs_F77=unknown
18991   hardcode_automatic_F77=no
18992   module_cmds_F77=
18993   module_expsym_cmds_F77=
18994   always_export_symbols_F77=no
18995   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18996   # include_expsyms should be a list of space-separated symbols to be *always*
18997   # included in the symbol list
18998   include_expsyms_F77=
18999   # exclude_expsyms can be an extended regexp of symbols to exclude
19000   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19001   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19002   # as well as any symbol that contains `d'.
19003   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19004   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19005   # platforms (ab)use it in PIC code, but their linkers get confused if
19006   # the symbol is explicitly referenced.  Since portable code cannot
19007   # rely on this symbol name, it's probably fine to never include it in
19008   # preloaded symbol tables.
19009   extract_expsyms_cmds=
19010
19011   case $host_os in
19012   cygwin* | mingw* | pw32*)
19013     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19014     # When not using gcc, we currently assume that we are using
19015     # Microsoft Visual C++.
19016     if test "$GCC" != yes; then
19017       with_gnu_ld=no
19018     fi
19019     ;;
19020   openbsd*)
19021     with_gnu_ld=no
19022     ;;
19023   esac
19024
19025   ld_shlibs_F77=yes
19026   if test "$with_gnu_ld" = yes; then
19027     # If archive_cmds runs LD, not CC, wlarc should be empty
19028     wlarc='${wl}'
19029
19030     # See if GNU ld supports shared libraries.
19031     case $host_os in
19032     aix3* | aix4* | aix5*)
19033       # On AIX/PPC, the GNU linker is very broken
19034       if test "$host_cpu" != ia64; then
19035         ld_shlibs_F77=no
19036         cat <<EOF 1>&2
19037
19038 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19039 *** to be unable to reliably create shared libraries on AIX.
19040 *** Therefore, libtool is disabling shared libraries support.  If you
19041 *** really care for shared libraries, you may want to modify your PATH
19042 *** so that a non-GNU linker is found, and then restart.
19043
19044 EOF
19045       fi
19046       ;;
19047
19048     amigaos*)
19049       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)'
19050       hardcode_libdir_flag_spec_F77='-L$libdir'
19051       hardcode_minus_L_F77=yes
19052
19053       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19054       # that the semantics of dynamic libraries on AmigaOS, at least up
19055       # to version 4, is to share data among multiple programs linked
19056       # with the same dynamic library.  Since this doesn't match the
19057       # behavior of shared libraries on other platforms, we can't use
19058       # them.
19059       ld_shlibs_F77=no
19060       ;;
19061
19062     beos*)
19063       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19064         allow_undefined_flag_F77=unsupported
19065         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19066         # support --undefined.  This deserves some investigation.  FIXME
19067         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19068       else
19069         ld_shlibs_F77=no
19070       fi
19071       ;;
19072
19073     cygwin* | mingw* | pw32*)
19074       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19075       # as there is no search path for DLLs.
19076       hardcode_libdir_flag_spec_F77='-L$libdir'
19077       allow_undefined_flag_F77=unsupported
19078       always_export_symbols_F77=no
19079       enable_shared_with_static_runtimes_F77=yes
19080       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19081
19082       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19083         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19084         # If the export-symbols file already is a .def file (1st line
19085         # is EXPORTS), use it as is; otherwise, prepend...
19086         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19087           cp $export_symbols $output_objdir/$soname.def;
19088         else
19089           echo EXPORTS > $output_objdir/$soname.def;
19090           cat $export_symbols >> $output_objdir/$soname.def;
19091         fi~
19092         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19093       else
19094         ld_shlibs=no
19095       fi
19096       ;;
19097
19098     netbsd*)
19099       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19100         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19101         wlarc=
19102       else
19103         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19104         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19105       fi
19106       ;;
19107
19108     solaris* | sysv5*)
19109       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19110         ld_shlibs_F77=no
19111         cat <<EOF 1>&2
19112
19113 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19114 *** create shared libraries on Solaris systems.  Therefore, libtool
19115 *** is disabling shared libraries support.  We urge you to upgrade GNU
19116 *** binutils to release 2.9.1 or newer.  Another option is to modify
19117 *** your PATH or compiler configuration so that the native linker is
19118 *** used, and then restart.
19119
19120 EOF
19121       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19122         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19123         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19124       else
19125         ld_shlibs_F77=no
19126       fi
19127       ;;
19128
19129     sunos4*)
19130       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19131       wlarc=
19132       hardcode_direct_F77=yes
19133       hardcode_shlibpath_var_F77=no
19134       ;;
19135
19136   linux*)
19137     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19138         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19139         archive_cmds_F77="$tmp_archive_cmds"
19140       supports_anon_versioning=no
19141       case `$LD -v 2>/dev/null` in
19142         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19143         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19144         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19145         *\ 2.11.*) ;; # other 2.11 versions
19146         *) supports_anon_versioning=yes ;;
19147       esac
19148       if test $supports_anon_versioning = yes; then
19149         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19151 $echo "local: *; };" >> $output_objdir/$libname.ver~
19152         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19153       else
19154         archive_expsym_cmds_F77="$tmp_archive_cmds"
19155       fi
19156     else
19157       ld_shlibs_F77=no
19158     fi
19159     ;;
19160
19161     *)
19162       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19163         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19165       else
19166         ld_shlibs_F77=no
19167       fi
19168       ;;
19169     esac
19170
19171     if test "$ld_shlibs_F77" = yes; then
19172       runpath_var=LD_RUN_PATH
19173       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19174       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19175       # ancient GNU ld didn't support --whole-archive et. al.
19176       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19177         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19178       else
19179         whole_archive_flag_spec_F77=
19180       fi
19181     fi
19182   else
19183     # PORTME fill in a description of your system's linker (not GNU ld)
19184     case $host_os in
19185     aix3*)
19186       allow_undefined_flag_F77=unsupported
19187       always_export_symbols_F77=yes
19188       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'
19189       # Note: this linker hardcodes the directories in LIBPATH if there
19190       # are no directories specified by -L.
19191       hardcode_minus_L_F77=yes
19192       if test "$GCC" = yes && test -z "$link_static_flag"; then
19193         # Neither direct hardcoding nor static linking is supported with a
19194         # broken collect2.
19195         hardcode_direct_F77=unsupported
19196       fi
19197       ;;
19198
19199     aix4* | aix5*)
19200       if test "$host_cpu" = ia64; then
19201         # On IA64, the linker does run time linking by default, so we don't
19202         # have to do anything special.
19203         aix_use_runtimelinking=no
19204         exp_sym_flag='-Bexport'
19205         no_entry_flag=""
19206       else
19207         # If we're using GNU nm, then we don't want the "-C" option.
19208         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19209         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19210           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'
19211         else
19212           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'
19213         fi
19214         aix_use_runtimelinking=no
19215
19216         # Test if we are trying to use run time linking or normal
19217         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19218         # need to do runtime linking.
19219         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19220           for ld_flag in $LDFLAGS; do
19221           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19222             aix_use_runtimelinking=yes
19223             break
19224           fi
19225           done
19226         esac
19227
19228         exp_sym_flag='-bexport'
19229         no_entry_flag='-bnoentry'
19230       fi
19231
19232       # When large executables or shared objects are built, AIX ld can
19233       # have problems creating the table of contents.  If linking a library
19234       # or program results in "error TOC overflow" add -mminimal-toc to
19235       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19236       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19237
19238       archive_cmds_F77=''
19239       hardcode_direct_F77=yes
19240       hardcode_libdir_separator_F77=':'
19241       link_all_deplibs_F77=yes
19242
19243       if test "$GCC" = yes; then
19244         case $host_os in aix4.012|aix4.012.*)
19245         # We only want to do this on AIX 4.2 and lower, the check
19246         # below for broken collect2 doesn't work under 4.3+
19247           collect2name=`${CC} -print-prog-name=collect2`
19248           if test -f "$collect2name" && \
19249            strings "$collect2name" | grep resolve_lib_name >/dev/null
19250           then
19251           # We have reworked collect2
19252           hardcode_direct_F77=yes
19253           else
19254           # We have old collect2
19255           hardcode_direct_F77=unsupported
19256           # It fails to find uninstalled libraries when the uninstalled
19257           # path is not listed in the libpath.  Setting hardcode_minus_L
19258           # to unsupported forces relinking
19259           hardcode_minus_L_F77=yes
19260           hardcode_libdir_flag_spec_F77='-L$libdir'
19261           hardcode_libdir_separator_F77=
19262           fi
19263         esac
19264         shared_flag='-shared'
19265       else
19266         # not using gcc
19267         if test "$host_cpu" = ia64; then
19268         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19269         # chokes on -Wl,-G. The following line is correct:
19270           shared_flag='-G'
19271         else
19272         if test "$aix_use_runtimelinking" = yes; then
19273             shared_flag='${wl}-G'
19274           else
19275             shared_flag='${wl}-bM:SRE'
19276         fi
19277         fi
19278       fi
19279
19280       # It seems that -bexpall does not export symbols beginning with
19281       # underscore (_), so it is better to generate a list of symbols to export.
19282       always_export_symbols_F77=yes
19283       if test "$aix_use_runtimelinking" = yes; then
19284         # Warning - without using the other runtime loading flags (-brtl),
19285         # -berok will link without error, but may produce a broken library.
19286         allow_undefined_flag_F77='-berok'
19287        # Determine the default libpath from the value encoded in an empty executable.
19288        cat >conftest.$ac_ext <<_ACEOF
19289       program main
19290
19291       end
19292 _ACEOF
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295   (eval $ac_link) 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } &&
19302          { ac_try='test -z "$ac_f77_werror_flag"
19303                          || test ! -s conftest.err'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; } &&
19309          { ac_try='test -s conftest$ac_exeext'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; }; then
19315
19316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19317 }'`
19318 # Check for a 64-bit object if we didn't find anything.
19319 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; }
19320 }'`; fi
19321 else
19322   echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19324
19325 fi
19326 rm -f conftest.err conftest.$ac_objext \
19327       conftest$ac_exeext conftest.$ac_ext
19328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19329
19330        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19331         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"
19332        else
19333         if test "$host_cpu" = ia64; then
19334           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19335           allow_undefined_flag_F77="-z nodefs"
19336           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"
19337         else
19338          # Determine the default libpath from the value encoded in an empty executable.
19339          cat >conftest.$ac_ext <<_ACEOF
19340       program main
19341
19342       end
19343 _ACEOF
19344 rm -f conftest.$ac_objext conftest$ac_exeext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19346   (eval $ac_link) 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } &&
19353          { ac_try='test -z "$ac_f77_werror_flag"
19354                          || test ! -s conftest.err'
19355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356   (eval $ac_try) 2>&5
19357   ac_status=$?
19358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359   (exit $ac_status); }; } &&
19360          { ac_try='test -s conftest$ac_exeext'
19361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362   (eval $ac_try) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; }; then
19366
19367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19368 }'`
19369 # Check for a 64-bit object if we didn't find anything.
19370 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; }
19371 }'`; fi
19372 else
19373   echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 fi
19377 rm -f conftest.err conftest.$ac_objext \
19378       conftest$ac_exeext conftest.$ac_ext
19379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19380
19381          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19382           # Warning - without using the other run time loading flags,
19383           # -berok will link without error, but may produce a broken library.
19384           no_undefined_flag_F77=' ${wl}-bernotok'
19385           allow_undefined_flag_F77=' ${wl}-berok'
19386           # -bexpall does not export symbols beginning with underscore (_)
19387           always_export_symbols_F77=yes
19388           # Exported symbols can be pulled into shared objects from archives
19389           whole_archive_flag_spec_F77=' '
19390           archive_cmds_need_lc_F77=yes
19391           # This is similar to how AIX traditionally builds it's shared libraries.
19392           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'
19393         fi
19394       fi
19395       ;;
19396
19397     amigaos*)
19398       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)'
19399       hardcode_libdir_flag_spec_F77='-L$libdir'
19400       hardcode_minus_L_F77=yes
19401       # see comment about different semantics on the GNU ld section
19402       ld_shlibs_F77=no
19403       ;;
19404
19405     bsdi[45]*)
19406       export_dynamic_flag_spec_F77=-rdynamic
19407       ;;
19408
19409     cygwin* | mingw* | pw32*)
19410       # When not using gcc, we currently assume that we are using
19411       # Microsoft Visual C++.
19412       # hardcode_libdir_flag_spec is actually meaningless, as there is
19413       # no search path for DLLs.
19414       hardcode_libdir_flag_spec_F77=' '
19415       allow_undefined_flag_F77=unsupported
19416       # Tell ltmain to make .lib files, not .a files.
19417       libext=lib
19418       # Tell ltmain to make .dll files, not .so files.
19419       shrext_cmds=".dll"
19420       # FIXME: Setting linknames here is a bad hack.
19421       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19422       # The linker will automatically build a .lib file if we build a DLL.
19423       old_archive_From_new_cmds_F77='true'
19424       # FIXME: Should let the user specify the lib program.
19425       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19426       fix_srcfile_path='`cygpath -w "$srcfile"`'
19427       enable_shared_with_static_runtimes_F77=yes
19428       ;;
19429
19430     darwin* | rhapsody*)
19431       case "$host_os" in
19432         rhapsody* | darwin1.[012])
19433          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19434          ;;
19435        *) # Darwin 1.3 on
19436          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19437            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19438          else
19439            case ${MACOSX_DEPLOYMENT_TARGET} in
19440              10.[012])
19441                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19442                ;;
19443              10.*)
19444                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19445                ;;
19446            esac
19447          fi
19448          ;;
19449       esac
19450       archive_cmds_need_lc_F77=no
19451       hardcode_direct_F77=no
19452       hardcode_automatic_F77=yes
19453       hardcode_shlibpath_var_F77=unsupported
19454       whole_archive_flag_spec_F77=''
19455       link_all_deplibs_F77=yes
19456     if test "$GCC" = yes ; then
19457         output_verbose_link_cmd='echo'
19458         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19459       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19460       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19461       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}'
19462       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}'
19463     else
19464       case "$cc_basename" in
19465         xlc*)
19466          output_verbose_link_cmd='echo'
19467          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19468          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19469           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19470          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}'
19471           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}'
19472           ;;
19473        *)
19474          ld_shlibs_F77=no
19475           ;;
19476       esac
19477     fi
19478       ;;
19479
19480     dgux*)
19481       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19482       hardcode_libdir_flag_spec_F77='-L$libdir'
19483       hardcode_shlibpath_var_F77=no
19484       ;;
19485
19486     freebsd1*)
19487       ld_shlibs_F77=no
19488       ;;
19489
19490     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19491     # support.  Future versions do this automatically, but an explicit c++rt0.o
19492     # does not break anything, and helps significantly (at the cost of a little
19493     # extra space).
19494     freebsd2.2*)
19495       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19496       hardcode_libdir_flag_spec_F77='-R$libdir'
19497       hardcode_direct_F77=yes
19498       hardcode_shlibpath_var_F77=no
19499       ;;
19500
19501     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19502     freebsd2*)
19503       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19504       hardcode_direct_F77=yes
19505       hardcode_minus_L_F77=yes
19506       hardcode_shlibpath_var_F77=no
19507       ;;
19508
19509     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19510     freebsd* | kfreebsd*-gnu)
19511       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19512       hardcode_libdir_flag_spec_F77='-R$libdir'
19513       hardcode_direct_F77=yes
19514       hardcode_shlibpath_var_F77=no
19515       ;;
19516
19517     hpux9*)
19518       if test "$GCC" = yes; then
19519         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'
19520       else
19521         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'
19522       fi
19523       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19524       hardcode_libdir_separator_F77=:
19525       hardcode_direct_F77=yes
19526
19527       # hardcode_minus_L: Not really in the search PATH,
19528       # but as the default location of the library.
19529       hardcode_minus_L_F77=yes
19530       export_dynamic_flag_spec_F77='${wl}-E'
19531       ;;
19532
19533     hpux10* | hpux11*)
19534       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19535         case "$host_cpu" in
19536         hppa*64*|ia64*)
19537           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19538           ;;
19539         *)
19540           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19541           ;;
19542         esac
19543       else
19544         case "$host_cpu" in
19545         hppa*64*|ia64*)
19546           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19547           ;;
19548         *)
19549           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19550           ;;
19551         esac
19552       fi
19553       if test "$with_gnu_ld" = no; then
19554         case "$host_cpu" in
19555         hppa*64*)
19556           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19557           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19558           hardcode_libdir_separator_F77=:
19559           hardcode_direct_F77=no
19560           hardcode_shlibpath_var_F77=no
19561           ;;
19562         ia64*)
19563           hardcode_libdir_flag_spec_F77='-L$libdir'
19564           hardcode_direct_F77=no
19565           hardcode_shlibpath_var_F77=no
19566
19567           # hardcode_minus_L: Not really in the search PATH,
19568           # but as the default location of the library.
19569           hardcode_minus_L_F77=yes
19570           ;;
19571         *)
19572           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19573           hardcode_libdir_separator_F77=:
19574           hardcode_direct_F77=yes
19575           export_dynamic_flag_spec_F77='${wl}-E'
19576
19577           # hardcode_minus_L: Not really in the search PATH,
19578           # but as the default location of the library.
19579           hardcode_minus_L_F77=yes
19580           ;;
19581         esac
19582       fi
19583       ;;
19584
19585     irix5* | irix6* | nonstopux*)
19586       if test "$GCC" = yes; then
19587         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'
19588       else
19589         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'
19590         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19591       fi
19592       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19593       hardcode_libdir_separator_F77=:
19594       link_all_deplibs_F77=yes
19595       ;;
19596
19597     netbsd*)
19598       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19599         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19600       else
19601         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19602       fi
19603       hardcode_libdir_flag_spec_F77='-R$libdir'
19604       hardcode_direct_F77=yes
19605       hardcode_shlibpath_var_F77=no
19606       ;;
19607
19608     newsos6)
19609       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19610       hardcode_direct_F77=yes
19611       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19612       hardcode_libdir_separator_F77=:
19613       hardcode_shlibpath_var_F77=no
19614       ;;
19615
19616     openbsd*)
19617       hardcode_direct_F77=yes
19618       hardcode_shlibpath_var_F77=no
19619       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19620         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19621         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19622         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19623         export_dynamic_flag_spec_F77='${wl}-E'
19624       else
19625        case $host_os in
19626          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19627            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19628            hardcode_libdir_flag_spec_F77='-R$libdir'
19629            ;;
19630          *)
19631            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19632            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19633            ;;
19634        esac
19635       fi
19636       ;;
19637
19638     os2*)
19639       hardcode_libdir_flag_spec_F77='-L$libdir'
19640       hardcode_minus_L_F77=yes
19641       allow_undefined_flag_F77=unsupported
19642       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'
19643       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19644       ;;
19645
19646     osf3*)
19647       if test "$GCC" = yes; then
19648         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19649         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'
19650       else
19651         allow_undefined_flag_F77=' -expect_unresolved \*'
19652         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'
19653       fi
19654       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19655       hardcode_libdir_separator_F77=:
19656       ;;
19657
19658     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19659       if test "$GCC" = yes; then
19660         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19661         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'
19662         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19663       else
19664         allow_undefined_flag_F77=' -expect_unresolved \*'
19665         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'
19666         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~
19667         $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'
19668
19669         # Both c and cxx compiler support -rpath directly
19670         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19671       fi
19672       hardcode_libdir_separator_F77=:
19673       ;;
19674
19675     sco3.2v5*)
19676       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19677       hardcode_shlibpath_var_F77=no
19678       export_dynamic_flag_spec_F77='${wl}-Bexport'
19679       runpath_var=LD_RUN_PATH
19680       hardcode_runpath_var=yes
19681       ;;
19682
19683     solaris*)
19684       no_undefined_flag_F77=' -z text'
19685       if test "$GCC" = yes; then
19686         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19687         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19688           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19689       else
19690         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19691         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19692         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19693       fi
19694       hardcode_libdir_flag_spec_F77='-R$libdir'
19695       hardcode_shlibpath_var_F77=no
19696       case $host_os in
19697       solaris2.[0-5] | solaris2.[0-5].*) ;;
19698       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19699         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19700       esac
19701       link_all_deplibs_F77=yes
19702       ;;
19703
19704     sunos4*)
19705       if test "x$host_vendor" = xsequent; then
19706         # Use $CC to link under sequent, because it throws in some extra .o
19707         # files that make .init and .fini sections work.
19708         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19709       else
19710         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19711       fi
19712       hardcode_libdir_flag_spec_F77='-L$libdir'
19713       hardcode_direct_F77=yes
19714       hardcode_minus_L_F77=yes
19715       hardcode_shlibpath_var_F77=no
19716       ;;
19717
19718     sysv4)
19719       case $host_vendor in
19720         sni)
19721           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19722           hardcode_direct_F77=yes # is this really true???
19723         ;;
19724         siemens)
19725           ## LD is ld it makes a PLAMLIB
19726           ## CC just makes a GrossModule.
19727           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19728           reload_cmds_F77='$CC -r -o $output$reload_objs'
19729           hardcode_direct_F77=no
19730         ;;
19731         motorola)
19732           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19733           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19734         ;;
19735       esac
19736       runpath_var='LD_RUN_PATH'
19737       hardcode_shlibpath_var_F77=no
19738       ;;
19739
19740     sysv4.3*)
19741       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19742       hardcode_shlibpath_var_F77=no
19743       export_dynamic_flag_spec_F77='-Bexport'
19744       ;;
19745
19746     sysv4*MP*)
19747       if test -d /usr/nec; then
19748         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19749         hardcode_shlibpath_var_F77=no
19750         runpath_var=LD_RUN_PATH
19751         hardcode_runpath_var=yes
19752         ld_shlibs_F77=yes
19753       fi
19754       ;;
19755
19756     sysv4.2uw2*)
19757       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19758       hardcode_direct_F77=yes
19759       hardcode_minus_L_F77=no
19760       hardcode_shlibpath_var_F77=no
19761       hardcode_runpath_var=yes
19762       runpath_var=LD_RUN_PATH
19763       ;;
19764
19765    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19766       no_undefined_flag_F77='${wl}-z ${wl}text'
19767       if test "$GCC" = yes; then
19768         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19769       else
19770         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19771       fi
19772       runpath_var='LD_RUN_PATH'
19773       hardcode_shlibpath_var_F77=no
19774       ;;
19775
19776     sysv5*)
19777       no_undefined_flag_F77=' -z text'
19778       # $CC -shared without GNU ld will not create a library from C++
19779       # object files and a static libstdc++, better avoid it by now
19780       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19781       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19782                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19783       hardcode_libdir_flag_spec_F77=
19784       hardcode_shlibpath_var_F77=no
19785       runpath_var='LD_RUN_PATH'
19786       ;;
19787
19788     uts4*)
19789       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19790       hardcode_libdir_flag_spec_F77='-L$libdir'
19791       hardcode_shlibpath_var_F77=no
19792       ;;
19793
19794     *)
19795       ld_shlibs_F77=no
19796       ;;
19797     esac
19798   fi
19799
19800 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19801 echo "${ECHO_T}$ld_shlibs_F77" >&6
19802 test "$ld_shlibs_F77" = no && can_build_shared=no
19803
19804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19805 if test "$GCC" = yes; then
19806   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19807 fi
19808
19809 #
19810 # Do we need to explicitly link libc?
19811 #
19812 case "x$archive_cmds_need_lc_F77" in
19813 x|xyes)
19814   # Assume -lc should be added
19815   archive_cmds_need_lc_F77=yes
19816
19817   if test "$enable_shared" = yes && test "$GCC" = yes; then
19818     case $archive_cmds_F77 in
19819     *'~'*)
19820       # FIXME: we may have to deal with multi-command sequences.
19821       ;;
19822     '$CC '*)
19823       # Test whether the compiler implicitly links with -lc since on some
19824       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19825       # to ld, don't add -lc before -lgcc.
19826       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19827 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19828       $rm conftest*
19829       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19830
19831       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832   (eval $ac_compile) 2>&5
19833   ac_status=$?
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } 2>conftest.err; then
19836         soname=conftest
19837         lib=conftest
19838         libobjs=conftest.$ac_objext
19839         deplibs=
19840         wl=$lt_prog_compiler_wl_F77
19841         compiler_flags=-v
19842         linker_flags=-v
19843         verstring=
19844         output_objdir=.
19845         libname=conftest
19846         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19847         allow_undefined_flag_F77=
19848         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19849   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19850   ac_status=$?
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); }
19853         then
19854           archive_cmds_need_lc_F77=no
19855         else
19856           archive_cmds_need_lc_F77=yes
19857         fi
19858         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19859       else
19860         cat conftest.err 1>&5
19861       fi
19862       $rm conftest*
19863       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19864 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19865       ;;
19866     esac
19867   fi
19868   ;;
19869 esac
19870
19871 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19873 library_names_spec=
19874 libname_spec='lib$name'
19875 soname_spec=
19876 shrext_cmds=".so"
19877 postinstall_cmds=
19878 postuninstall_cmds=
19879 finish_cmds=
19880 finish_eval=
19881 shlibpath_var=
19882 shlibpath_overrides_runpath=unknown
19883 version_type=none
19884 dynamic_linker="$host_os ld.so"
19885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19886 if test "$GCC" = yes; then
19887   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19888   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19889     # if the path contains ";" then we assume it to be the separator
19890     # otherwise default to the standard path separator (i.e. ":") - it is
19891     # assumed that no part of a normal pathname contains ";" but that should
19892     # okay in the real world where ";" in dirpaths is itself problematic.
19893     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19894   else
19895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19896   fi
19897 else
19898   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19899 fi
19900 need_lib_prefix=unknown
19901 hardcode_into_libs=no
19902
19903 # when you set need_version to no, make sure it does not cause -set_version
19904 # flags to be left without arguments
19905 need_version=unknown
19906
19907 case $host_os in
19908 aix3*)
19909   version_type=linux
19910   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19911   shlibpath_var=LIBPATH
19912
19913   # AIX 3 has no versioning support, so we append a major version to the name.
19914   soname_spec='${libname}${release}${shared_ext}$major'
19915   ;;
19916
19917 aix4* | aix5*)
19918   version_type=linux
19919   need_lib_prefix=no
19920   need_version=no
19921   hardcode_into_libs=yes
19922   if test "$host_cpu" = ia64; then
19923     # AIX 5 supports IA64
19924     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19925     shlibpath_var=LD_LIBRARY_PATH
19926   else
19927     # With GCC up to 2.95.x, collect2 would create an import file
19928     # for dependence libraries.  The import file would start with
19929     # the line `#! .'.  This would cause the generated library to
19930     # depend on `.', always an invalid library.  This was fixed in
19931     # development snapshots of GCC prior to 3.0.
19932     case $host_os in
19933       aix4 | aix4.[01] | aix4.[01].*)
19934       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19935            echo ' yes '
19936            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19937         :
19938       else
19939         can_build_shared=no
19940       fi
19941       ;;
19942     esac
19943     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19944     # soname into executable. Probably we can add versioning support to
19945     # collect2, so additional links can be useful in future.
19946     if test "$aix_use_runtimelinking" = yes; then
19947       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19948       # instead of lib<name>.a to let people know that these are not
19949       # typical AIX shared libraries.
19950       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951     else
19952       # We preserve .a as extension for shared libraries through AIX4.2
19953       # and later when we are not doing run time linking.
19954       library_names_spec='${libname}${release}.a $libname.a'
19955       soname_spec='${libname}${release}${shared_ext}$major'
19956     fi
19957     shlibpath_var=LIBPATH
19958   fi
19959   ;;
19960
19961 amigaos*)
19962   library_names_spec='$libname.ixlibrary $libname.a'
19963   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19964   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'
19965   ;;
19966
19967 beos*)
19968   library_names_spec='${libname}${shared_ext}'
19969   dynamic_linker="$host_os ld.so"
19970   shlibpath_var=LIBRARY_PATH
19971   ;;
19972
19973 bsdi[45]*)
19974   version_type=linux
19975   need_version=no
19976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19977   soname_spec='${libname}${release}${shared_ext}$major'
19978   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19979   shlibpath_var=LD_LIBRARY_PATH
19980   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19981   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19982   # the default ld.so.conf also contains /usr/contrib/lib and
19983   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19984   # libtool to hard-code these into programs
19985   ;;
19986
19987 cygwin* | mingw* | pw32*)
19988   version_type=windows
19989   shrext_cmds=".dll"
19990   need_version=no
19991   need_lib_prefix=no
19992
19993   case $GCC,$host_os in
19994   yes,cygwin* | yes,mingw* | yes,pw32*)
19995     library_names_spec='$libname.dll.a'
19996     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19997     postinstall_cmds='base_file=`basename \${file}`~
19998       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19999       dldir=$destdir/`dirname \$dlpath`~
20000       test -d \$dldir || mkdir -p \$dldir~
20001       $install_prog $dir/$dlname \$dldir/$dlname'
20002     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20003       dlpath=$dir/\$dldll~
20004        $rm \$dlpath'
20005     shlibpath_overrides_runpath=yes
20006
20007     case $host_os in
20008     cygwin*)
20009       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20010       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20011       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20012       ;;
20013     mingw*)
20014       # MinGW DLLs use traditional 'lib' prefix
20015       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20016       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20017       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20018         # It is most probably a Windows format PATH printed by
20019         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20020         # path with ; separators, and with drive letters. We can handle the
20021         # drive letters (cygwin fileutils understands them), so leave them,
20022         # especially as we might pass files found there to a mingw objdump,
20023         # which wouldn't understand a cygwinified path. Ahh.
20024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20025       else
20026         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20027       fi
20028       ;;
20029     pw32*)
20030       # pw32 DLLs use 'pw' prefix rather than 'lib'
20031       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20032       ;;
20033     esac
20034     ;;
20035
20036   *)
20037     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20038     ;;
20039   esac
20040   dynamic_linker='Win32 ld.exe'
20041   # FIXME: first we should search . and the directory the executable is in
20042   shlibpath_var=PATH
20043   ;;
20044
20045 darwin* | rhapsody*)
20046   dynamic_linker="$host_os dyld"
20047   version_type=darwin
20048   need_lib_prefix=no
20049   need_version=no
20050   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20051   soname_spec='${libname}${release}${major}$shared_ext'
20052   shlibpath_overrides_runpath=yes
20053   shlibpath_var=DYLD_LIBRARY_PATH
20054   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20055   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20056   if test "$GCC" = yes; then
20057     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"`
20058   else
20059     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20060   fi
20061   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20062   ;;
20063
20064 dgux*)
20065   version_type=linux
20066   need_lib_prefix=no
20067   need_version=no
20068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20069   soname_spec='${libname}${release}${shared_ext}$major'
20070   shlibpath_var=LD_LIBRARY_PATH
20071   ;;
20072
20073 freebsd1*)
20074   dynamic_linker=no
20075   ;;
20076
20077 kfreebsd*-gnu)
20078   version_type=linux
20079   need_lib_prefix=no
20080   need_version=no
20081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20082   soname_spec='${libname}${release}${shared_ext}$major'
20083   shlibpath_var=LD_LIBRARY_PATH
20084   shlibpath_overrides_runpath=no
20085   hardcode_into_libs=yes
20086   dynamic_linker='GNU ld.so'
20087   ;;
20088
20089 freebsd*)
20090   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20091   version_type=freebsd-$objformat
20092   case $version_type in
20093     freebsd-elf*)
20094       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20095       need_version=no
20096       need_lib_prefix=no
20097       ;;
20098     freebsd-*)
20099       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20100       need_version=yes
20101       ;;
20102   esac
20103   shlibpath_var=LD_LIBRARY_PATH
20104   case $host_os in
20105   freebsd2*)
20106     shlibpath_overrides_runpath=yes
20107     ;;
20108   freebsd3.01* | freebsdelf3.01*)
20109     shlibpath_overrides_runpath=yes
20110     hardcode_into_libs=yes
20111     ;;
20112   *) # from 3.2 on
20113     shlibpath_overrides_runpath=no
20114     hardcode_into_libs=yes
20115     ;;
20116   esac
20117   ;;
20118
20119 gnu*)
20120   version_type=linux
20121   need_lib_prefix=no
20122   need_version=no
20123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20124   soname_spec='${libname}${release}${shared_ext}$major'
20125   shlibpath_var=LD_LIBRARY_PATH
20126   hardcode_into_libs=yes
20127   ;;
20128
20129 hpux9* | hpux10* | hpux11*)
20130   # Give a soname corresponding to the major version so that dld.sl refuses to
20131   # link against other versions.
20132   version_type=sunos
20133   need_lib_prefix=no
20134   need_version=no
20135   case "$host_cpu" in
20136   ia64*)
20137     shrext_cmds='.so'
20138     hardcode_into_libs=yes
20139     dynamic_linker="$host_os dld.so"
20140     shlibpath_var=LD_LIBRARY_PATH
20141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143     soname_spec='${libname}${release}${shared_ext}$major'
20144     if test "X$HPUX_IA64_MODE" = X32; then
20145       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20146     else
20147       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20148     fi
20149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20150     ;;
20151    hppa*64*)
20152      shrext_cmds='.sl'
20153      hardcode_into_libs=yes
20154      dynamic_linker="$host_os dld.sl"
20155      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20156      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20157      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158      soname_spec='${libname}${release}${shared_ext}$major'
20159      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20160      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20161      ;;
20162    *)
20163     shrext_cmds='.sl'
20164     dynamic_linker="$host_os dld.sl"
20165     shlibpath_var=SHLIB_PATH
20166     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168     soname_spec='${libname}${release}${shared_ext}$major'
20169     ;;
20170   esac
20171   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20172   postinstall_cmds='chmod 555 $lib'
20173   ;;
20174
20175 irix5* | irix6* | nonstopux*)
20176   case $host_os in
20177     nonstopux*) version_type=nonstopux ;;
20178     *)
20179         if test "$lt_cv_prog_gnu_ld" = yes; then
20180                 version_type=linux
20181         else
20182                 version_type=irix
20183         fi ;;
20184   esac
20185   need_lib_prefix=no
20186   need_version=no
20187   soname_spec='${libname}${release}${shared_ext}$major'
20188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20189   case $host_os in
20190   irix5* | nonstopux*)
20191     libsuff= shlibsuff=
20192     ;;
20193   *)
20194     case $LD in # libtool.m4 will add one of these switches to LD
20195     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20196       libsuff= shlibsuff= libmagic=32-bit;;
20197     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20198       libsuff=32 shlibsuff=N32 libmagic=N32;;
20199     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20200       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20201     *) libsuff= shlibsuff= libmagic=never-match;;
20202     esac
20203     ;;
20204   esac
20205   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20206   shlibpath_overrides_runpath=no
20207   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20208   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20209   hardcode_into_libs=yes
20210   ;;
20211
20212 # No shared lib support for Linux oldld, aout, or coff.
20213 linux*oldld* | linux*aout* | linux*coff*)
20214   dynamic_linker=no
20215   ;;
20216
20217 # This must be Linux ELF.
20218 linux*)
20219   version_type=linux
20220   need_lib_prefix=no
20221   need_version=no
20222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20223   soname_spec='${libname}${release}${shared_ext}$major'
20224   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20225   shlibpath_var=LD_LIBRARY_PATH
20226   shlibpath_overrides_runpath=no
20227   # This implies no fast_install, which is unacceptable.
20228   # Some rework will be needed to allow for fast_install
20229   # before this can be enabled.
20230   hardcode_into_libs=yes
20231
20232   # Append ld.so.conf contents to the search path
20233   if test -f /etc/ld.so.conf; then
20234     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20235     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20236   fi
20237
20238   # We used to test for /lib/ld.so.1 and disable shared libraries on
20239   # powerpc, because MkLinux only supported shared libraries with the
20240   # GNU dynamic linker.  Since this was broken with cross compilers,
20241   # most powerpc-linux boxes support dynamic linking these days and
20242   # people can always --disable-shared, the test was removed, and we
20243   # assume the GNU/Linux dynamic linker is in use.
20244   dynamic_linker='GNU/Linux ld.so'
20245   ;;
20246
20247 knetbsd*-gnu)
20248   version_type=linux
20249   need_lib_prefix=no
20250   need_version=no
20251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20252   soname_spec='${libname}${release}${shared_ext}$major'
20253   shlibpath_var=LD_LIBRARY_PATH
20254   shlibpath_overrides_runpath=no
20255   hardcode_into_libs=yes
20256   dynamic_linker='GNU ld.so'
20257   ;;
20258
20259 netbsd*)
20260   version_type=sunos
20261   need_lib_prefix=no
20262   need_version=no
20263   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20265     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20266     dynamic_linker='NetBSD (a.out) ld.so'
20267   else
20268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20269     soname_spec='${libname}${release}${shared_ext}$major'
20270     dynamic_linker='NetBSD ld.elf_so'
20271   fi
20272   shlibpath_var=LD_LIBRARY_PATH
20273   shlibpath_overrides_runpath=yes
20274   hardcode_into_libs=yes
20275   ;;
20276
20277 newsos6)
20278   version_type=linux
20279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280   shlibpath_var=LD_LIBRARY_PATH
20281   shlibpath_overrides_runpath=yes
20282   ;;
20283
20284 nto-qnx*)
20285   version_type=linux
20286   need_lib_prefix=no
20287   need_version=no
20288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289   soname_spec='${libname}${release}${shared_ext}$major'
20290   shlibpath_var=LD_LIBRARY_PATH
20291   shlibpath_overrides_runpath=yes
20292   ;;
20293
20294 openbsd*)
20295   version_type=sunos
20296   need_lib_prefix=no
20297   need_version=no
20298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20299   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20300   shlibpath_var=LD_LIBRARY_PATH
20301   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20302     case $host_os in
20303       openbsd2.[89] | openbsd2.[89].*)
20304         shlibpath_overrides_runpath=no
20305         ;;
20306       *)
20307         shlibpath_overrides_runpath=yes
20308         ;;
20309       esac
20310   else
20311     shlibpath_overrides_runpath=yes
20312   fi
20313   ;;
20314
20315 os2*)
20316   libname_spec='$name'
20317   shrext_cmds=".dll"
20318   need_lib_prefix=no
20319   library_names_spec='$libname${shared_ext} $libname.a'
20320   dynamic_linker='OS/2 ld.exe'
20321   shlibpath_var=LIBPATH
20322   ;;
20323
20324 osf3* | osf4* | osf5*)
20325   version_type=osf
20326   need_lib_prefix=no
20327   need_version=no
20328   soname_spec='${libname}${release}${shared_ext}$major'
20329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330   shlibpath_var=LD_LIBRARY_PATH
20331   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20332   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20333   ;;
20334
20335 sco3.2v5*)
20336   version_type=osf
20337   soname_spec='${libname}${release}${shared_ext}$major'
20338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20339   shlibpath_var=LD_LIBRARY_PATH
20340   ;;
20341
20342 solaris*)
20343   version_type=linux
20344   need_lib_prefix=no
20345   need_version=no
20346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347   soname_spec='${libname}${release}${shared_ext}$major'
20348   shlibpath_var=LD_LIBRARY_PATH
20349   shlibpath_overrides_runpath=yes
20350   hardcode_into_libs=yes
20351   # ldd complains unless libraries are executable
20352   postinstall_cmds='chmod +x $lib'
20353   ;;
20354
20355 sunos4*)
20356   version_type=sunos
20357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20358   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20359   shlibpath_var=LD_LIBRARY_PATH
20360   shlibpath_overrides_runpath=yes
20361   if test "$with_gnu_ld" = yes; then
20362     need_lib_prefix=no
20363   fi
20364   need_version=yes
20365   ;;
20366
20367 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20368   version_type=linux
20369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20370   soname_spec='${libname}${release}${shared_ext}$major'
20371   shlibpath_var=LD_LIBRARY_PATH
20372   case $host_vendor in
20373     sni)
20374       shlibpath_overrides_runpath=no
20375       need_lib_prefix=no
20376       export_dynamic_flag_spec='${wl}-Blargedynsym'
20377       runpath_var=LD_RUN_PATH
20378       ;;
20379     siemens)
20380       need_lib_prefix=no
20381       ;;
20382     motorola)
20383       need_lib_prefix=no
20384       need_version=no
20385       shlibpath_overrides_runpath=no
20386       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20387       ;;
20388   esac
20389   ;;
20390
20391 sysv4*MP*)
20392   if test -d /usr/nec ;then
20393     version_type=linux
20394     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20395     soname_spec='$libname${shared_ext}.$major'
20396     shlibpath_var=LD_LIBRARY_PATH
20397   fi
20398   ;;
20399
20400 uts4*)
20401   version_type=linux
20402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20403   soname_spec='${libname}${release}${shared_ext}$major'
20404   shlibpath_var=LD_LIBRARY_PATH
20405   ;;
20406
20407 *)
20408   dynamic_linker=no
20409   ;;
20410 esac
20411 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20412 echo "${ECHO_T}$dynamic_linker" >&6
20413 test "$dynamic_linker" = no && can_build_shared=no
20414
20415 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20416 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20417 hardcode_action_F77=
20418 if test -n "$hardcode_libdir_flag_spec_F77" || \
20419    test -n "$runpath_var_F77" || \
20420    test "X$hardcode_automatic_F77" = "Xyes" ; then
20421
20422   # We can hardcode non-existant directories.
20423   if test "$hardcode_direct_F77" != no &&
20424      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20425      # have to relink, otherwise we might link with an installed library
20426      # when we should be linking with a yet-to-be-installed one
20427      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20428      test "$hardcode_minus_L_F77" != no; then
20429     # Linking always hardcodes the temporary library directory.
20430     hardcode_action_F77=relink
20431   else
20432     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20433     hardcode_action_F77=immediate
20434   fi
20435 else
20436   # We cannot hardcode anything, or else we can only hardcode existing
20437   # directories.
20438   hardcode_action_F77=unsupported
20439 fi
20440 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20441 echo "${ECHO_T}$hardcode_action_F77" >&6
20442
20443 if test "$hardcode_action_F77" = relink; then
20444   # Fast installation is not supported
20445   enable_fast_install=no
20446 elif test "$shlibpath_overrides_runpath" = yes ||
20447      test "$enable_shared" = no; then
20448   # Fast installation is not necessary
20449   enable_fast_install=needless
20450 fi
20451
20452 striplib=
20453 old_striplib=
20454 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20455 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20456 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20457   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20458   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20459   echo "$as_me:$LINENO: result: yes" >&5
20460 echo "${ECHO_T}yes" >&6
20461 else
20462 # FIXME - insert some real tests, host_os isn't really good enough
20463   case $host_os in
20464    darwin*)
20465        if test -n "$STRIP" ; then
20466          striplib="$STRIP -x"
20467          echo "$as_me:$LINENO: result: yes" >&5
20468 echo "${ECHO_T}yes" >&6
20469        else
20470   echo "$as_me:$LINENO: result: no" >&5
20471 echo "${ECHO_T}no" >&6
20472 fi
20473        ;;
20474    *)
20475   echo "$as_me:$LINENO: result: no" >&5
20476 echo "${ECHO_T}no" >&6
20477     ;;
20478   esac
20479 fi
20480
20481
20482
20483 # The else clause should only fire when bootstrapping the
20484 # libtool distribution, otherwise you forgot to ship ltmain.sh
20485 # with your package, and you will get complaints that there are
20486 # no rules to generate ltmain.sh.
20487 if test -f "$ltmain"; then
20488   # See if we are running on zsh, and set the options which allow our commands through
20489   # without removal of \ escapes.
20490   if test -n "${ZSH_VERSION+set}" ; then
20491     setopt NO_GLOB_SUBST
20492   fi
20493   # Now quote all the things that may contain metacharacters while being
20494   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20495   # variables and quote the copies for generation of the libtool script.
20496   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20497     SED SHELL STRIP \
20498     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20499     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20500     deplibs_check_method reload_flag reload_cmds need_locks \
20501     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20502     lt_cv_sys_global_symbol_to_c_name_address \
20503     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20504     old_postinstall_cmds old_postuninstall_cmds \
20505     compiler_F77 \
20506     CC_F77 \
20507     LD_F77 \
20508     lt_prog_compiler_wl_F77 \
20509     lt_prog_compiler_pic_F77 \
20510     lt_prog_compiler_static_F77 \
20511     lt_prog_compiler_no_builtin_flag_F77 \
20512     export_dynamic_flag_spec_F77 \
20513     thread_safe_flag_spec_F77 \
20514     whole_archive_flag_spec_F77 \
20515     enable_shared_with_static_runtimes_F77 \
20516     old_archive_cmds_F77 \
20517     old_archive_from_new_cmds_F77 \
20518     predep_objects_F77 \
20519     postdep_objects_F77 \
20520     predeps_F77 \
20521     postdeps_F77 \
20522     compiler_lib_search_path_F77 \
20523     archive_cmds_F77 \
20524     archive_expsym_cmds_F77 \
20525     postinstall_cmds_F77 \
20526     postuninstall_cmds_F77 \
20527     old_archive_from_expsyms_cmds_F77 \
20528     allow_undefined_flag_F77 \
20529     no_undefined_flag_F77 \
20530     export_symbols_cmds_F77 \
20531     hardcode_libdir_flag_spec_F77 \
20532     hardcode_libdir_flag_spec_ld_F77 \
20533     hardcode_libdir_separator_F77 \
20534     hardcode_automatic_F77 \
20535     module_cmds_F77 \
20536     module_expsym_cmds_F77 \
20537     lt_cv_prog_compiler_c_o_F77 \
20538     exclude_expsyms_F77 \
20539     include_expsyms_F77; do
20540
20541     case $var in
20542     old_archive_cmds_F77 | \
20543     old_archive_from_new_cmds_F77 | \
20544     archive_cmds_F77 | \
20545     archive_expsym_cmds_F77 | \
20546     module_cmds_F77 | \
20547     module_expsym_cmds_F77 | \
20548     old_archive_from_expsyms_cmds_F77 | \
20549     export_symbols_cmds_F77 | \
20550     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20551     postinstall_cmds | postuninstall_cmds | \
20552     old_postinstall_cmds | old_postuninstall_cmds | \
20553     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20554       # Double-quote double-evaled strings.
20555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20556       ;;
20557     *)
20558       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20559       ;;
20560     esac
20561   done
20562
20563   case $lt_echo in
20564   *'\$0 --fallback-echo"')
20565     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20566     ;;
20567   esac
20568
20569 cfgfile="$ofile"
20570
20571   cat <<__EOF__ >> "$cfgfile"
20572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20573
20574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20575
20576 # Shell to use when invoking shell scripts.
20577 SHELL=$lt_SHELL
20578
20579 # Whether or not to build shared libraries.
20580 build_libtool_libs=$enable_shared
20581
20582 # Whether or not to build static libraries.
20583 build_old_libs=$enable_static
20584
20585 # Whether or not to add -lc for building shared libraries.
20586 build_libtool_need_lc=$archive_cmds_need_lc_F77
20587
20588 # Whether or not to disallow shared libs when runtime libs are static
20589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20590
20591 # Whether or not to optimize for fast installation.
20592 fast_install=$enable_fast_install
20593
20594 # The host system.
20595 host_alias=$host_alias
20596 host=$host
20597
20598 # An echo program that does not interpret backslashes.
20599 echo=$lt_echo
20600
20601 # The archiver.
20602 AR=$lt_AR
20603 AR_FLAGS=$lt_AR_FLAGS
20604
20605 # A C compiler.
20606 LTCC=$lt_LTCC
20607
20608 # A language-specific compiler.
20609 CC=$lt_compiler_F77
20610
20611 # Is the compiler the GNU C compiler?
20612 with_gcc=$GCC_F77
20613
20614 # An ERE matcher.
20615 EGREP=$lt_EGREP
20616
20617 # The linker used to build libraries.
20618 LD=$lt_LD_F77
20619
20620 # Whether we need hard or soft links.
20621 LN_S=$lt_LN_S
20622
20623 # A BSD-compatible nm program.
20624 NM=$lt_NM
20625
20626 # A symbol stripping program
20627 STRIP=$lt_STRIP
20628
20629 # Used to examine libraries when file_magic_cmd begins "file"
20630 MAGIC_CMD=$MAGIC_CMD
20631
20632 # Used on cygwin: DLL creation program.
20633 DLLTOOL="$DLLTOOL"
20634
20635 # Used on cygwin: object dumper.
20636 OBJDUMP="$OBJDUMP"
20637
20638 # Used on cygwin: assembler.
20639 AS="$AS"
20640
20641 # The name of the directory that contains temporary libtool files.
20642 objdir=$objdir
20643
20644 # How to create reloadable object files.
20645 reload_flag=$lt_reload_flag
20646 reload_cmds=$lt_reload_cmds
20647
20648 # How to pass a linker flag through the compiler.
20649 wl=$lt_lt_prog_compiler_wl_F77
20650
20651 # Object file suffix (normally "o").
20652 objext="$ac_objext"
20653
20654 # Old archive suffix (normally "a").
20655 libext="$libext"
20656
20657 # Shared library suffix (normally ".so").
20658 shrext_cmds='$shrext_cmds'
20659
20660 # Executable file suffix (normally "").
20661 exeext="$exeext"
20662
20663 # Additional compiler flags for building library objects.
20664 pic_flag=$lt_lt_prog_compiler_pic_F77
20665 pic_mode=$pic_mode
20666
20667 # What is the maximum length of a command?
20668 max_cmd_len=$lt_cv_sys_max_cmd_len
20669
20670 # Does compiler simultaneously support -c and -o options?
20671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20672
20673 # Must we lock files when doing compilation ?
20674 need_locks=$lt_need_locks
20675
20676 # Do we need the lib prefix for modules?
20677 need_lib_prefix=$need_lib_prefix
20678
20679 # Do we need a version for libraries?
20680 need_version=$need_version
20681
20682 # Whether dlopen is supported.
20683 dlopen_support=$enable_dlopen
20684
20685 # Whether dlopen of programs is supported.
20686 dlopen_self=$enable_dlopen_self
20687
20688 # Whether dlopen of statically linked programs is supported.
20689 dlopen_self_static=$enable_dlopen_self_static
20690
20691 # Compiler flag to prevent dynamic linking.
20692 link_static_flag=$lt_lt_prog_compiler_static_F77
20693
20694 # Compiler flag to turn off builtin functions.
20695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20696
20697 # Compiler flag to allow reflexive dlopens.
20698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20699
20700 # Compiler flag to generate shared objects directly from archives.
20701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20702
20703 # Compiler flag to generate thread-safe objects.
20704 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20705
20706 # Library versioning type.
20707 version_type=$version_type
20708
20709 # Format of library name prefix.
20710 libname_spec=$lt_libname_spec
20711
20712 # List of archive names.  First name is the real one, the rest are links.
20713 # The last name is the one that the linker finds with -lNAME.
20714 library_names_spec=$lt_library_names_spec
20715
20716 # The coded name of the library, if different from the real name.
20717 soname_spec=$lt_soname_spec
20718
20719 # Commands used to build and install an old-style archive.
20720 RANLIB=$lt_RANLIB
20721 old_archive_cmds=$lt_old_archive_cmds_F77
20722 old_postinstall_cmds=$lt_old_postinstall_cmds
20723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20724
20725 # Create an old-style archive from a shared archive.
20726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20727
20728 # Create a temporary old-style archive to link instead of a shared archive.
20729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20730
20731 # Commands used to build and install a shared archive.
20732 archive_cmds=$lt_archive_cmds_F77
20733 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20734 postinstall_cmds=$lt_postinstall_cmds
20735 postuninstall_cmds=$lt_postuninstall_cmds
20736
20737 # Commands used to build a loadable module (assumed same as above if empty)
20738 module_cmds=$lt_module_cmds_F77
20739 module_expsym_cmds=$lt_module_expsym_cmds_F77
20740
20741 # Commands to strip libraries.
20742 old_striplib=$lt_old_striplib
20743 striplib=$lt_striplib
20744
20745 # Dependencies to place before the objects being linked to create a
20746 # shared library.
20747 predep_objects=$lt_predep_objects_F77
20748
20749 # Dependencies to place after the objects being linked to create a
20750 # shared library.
20751 postdep_objects=$lt_postdep_objects_F77
20752
20753 # Dependencies to place before the objects being linked to create a
20754 # shared library.
20755 predeps=$lt_predeps_F77
20756
20757 # Dependencies to place after the objects being linked to create a
20758 # shared library.
20759 postdeps=$lt_postdeps_F77
20760
20761 # The library search path used internally by the compiler when linking
20762 # a shared library.
20763 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20764
20765 # Method to check whether dependent libraries are shared objects.
20766 deplibs_check_method=$lt_deplibs_check_method
20767
20768 # Command to use when deplibs_check_method == file_magic.
20769 file_magic_cmd=$lt_file_magic_cmd
20770
20771 # Flag that allows shared libraries with undefined symbols to be built.
20772 allow_undefined_flag=$lt_allow_undefined_flag_F77
20773
20774 # Flag that forces no undefined symbols.
20775 no_undefined_flag=$lt_no_undefined_flag_F77
20776
20777 # Commands used to finish a libtool library installation in a directory.
20778 finish_cmds=$lt_finish_cmds
20779
20780 # Same as above, but a single script fragment to be evaled but not shown.
20781 finish_eval=$lt_finish_eval
20782
20783 # Take the output of nm and produce a listing of raw symbols and C names.
20784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20785
20786 # Transform the output of nm in a proper C declaration
20787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20788
20789 # Transform the output of nm in a C name address pair
20790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20791
20792 # This is the shared library runtime path variable.
20793 runpath_var=$runpath_var
20794
20795 # This is the shared library path variable.
20796 shlibpath_var=$shlibpath_var
20797
20798 # Is shlibpath searched before the hard-coded library search path?
20799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20800
20801 # How to hardcode a shared library path into an executable.
20802 hardcode_action=$hardcode_action_F77
20803
20804 # Whether we should hardcode library paths into libraries.
20805 hardcode_into_libs=$hardcode_into_libs
20806
20807 # Flag to hardcode \$libdir into a binary during linking.
20808 # This must work even if \$libdir does not exist.
20809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20810
20811 # If ld is used when linking, flag to hardcode \$libdir into
20812 # a binary during linking. This must work even if \$libdir does
20813 # not exist.
20814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20815
20816 # Whether we need a single -rpath flag with a separated argument.
20817 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20818
20819 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20820 # resulting binary.
20821 hardcode_direct=$hardcode_direct_F77
20822
20823 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20824 # resulting binary.
20825 hardcode_minus_L=$hardcode_minus_L_F77
20826
20827 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20828 # the resulting binary.
20829 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20830
20831 # Set to yes if building a shared library automatically hardcodes DIR into the library
20832 # and all subsequent libraries and executables linked against it.
20833 hardcode_automatic=$hardcode_automatic_F77
20834
20835 # Variables whose values should be saved in libtool wrapper scripts and
20836 # restored at relink time.
20837 variables_saved_for_relink="$variables_saved_for_relink"
20838
20839 # Whether libtool must link a program against all its dependency libraries.
20840 link_all_deplibs=$link_all_deplibs_F77
20841
20842 # Compile-time system search path for libraries
20843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20844
20845 # Run-time system search path for libraries
20846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20847
20848 # Fix the shell variable \$srcfile for the compiler.
20849 fix_srcfile_path="$fix_srcfile_path_F77"
20850
20851 # Set to yes if exported symbols are required.
20852 always_export_symbols=$always_export_symbols_F77
20853
20854 # The commands to list exported symbols.
20855 export_symbols_cmds=$lt_export_symbols_cmds_F77
20856
20857 # The commands to extract the exported symbol list from a shared archive.
20858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20859
20860 # Symbols that should not be listed in the preloaded symbols.
20861 exclude_expsyms=$lt_exclude_expsyms_F77
20862
20863 # Symbols that must always be exported.
20864 include_expsyms=$lt_include_expsyms_F77
20865
20866 # ### END LIBTOOL TAG CONFIG: $tagname
20867
20868 __EOF__
20869
20870
20871 else
20872   # If there is no Makefile yet, we rely on a make rule to execute
20873   # `config.status --recheck' to rerun these tests and create the
20874   # libtool script then.
20875   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20876   if test -f "$ltmain_in"; then
20877     test -f Makefile && make "$ltmain"
20878   fi
20879 fi
20880
20881
20882 ac_ext=c
20883 ac_cpp='$CPP $CPPFLAGS'
20884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887
20888 CC="$lt_save_CC"
20889
20890         else
20891           tagname=""
20892         fi
20893         ;;
20894
20895       GCJ)
20896         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20897           ac_ext=c
20898 ac_cpp='$CPP $CPPFLAGS'
20899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20902
20903
20904 # Source file extension for Java test sources.
20905 ac_ext=java
20906
20907 # Object file extension for compiled Java test sources.
20908 objext=o
20909 objext_GCJ=$objext
20910
20911 # Code to be used in simple compile tests
20912 lt_simple_compile_test_code="class foo {}\n"
20913
20914 # Code to be used in simple link tests
20915 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20916
20917 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20918
20919 # If no C compiler was specified, use CC.
20920 LTCC=${LTCC-"$CC"}
20921
20922 # Allow CC to be a program name with arguments.
20923 compiler=$CC
20924
20925
20926 # Allow CC to be a program name with arguments.
20927 lt_save_CC="$CC"
20928 CC=${GCJ-"gcj"}
20929 compiler=$CC
20930 compiler_GCJ=$CC
20931
20932 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20933 archive_cmds_need_lc_GCJ=no
20934
20935
20936 lt_prog_compiler_no_builtin_flag_GCJ=
20937
20938 if test "$GCC" = yes; then
20939   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20940
20941
20942 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20943 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20944 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   lt_cv_prog_compiler_rtti_exceptions=no
20948   ac_outfile=conftest.$ac_objext
20949    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20950    lt_compiler_flag="-fno-rtti -fno-exceptions"
20951    # Insert the option either (1) after the last *FLAGS variable, or
20952    # (2) before a word containing "conftest.", or (3) at the end.
20953    # Note that $ac_compile itself does not contain backslashes and begins
20954    # with a dollar sign (not a hyphen), so the echo should work correctly.
20955    # The option is referenced via a variable to avoid confusing sed.
20956    lt_compile=`echo "$ac_compile" | $SED \
20957    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20959    -e 's:$: $lt_compiler_flag:'`
20960    (eval echo "\"\$as_me:20960: $lt_compile\"" >&5)
20961    (eval "$lt_compile" 2>conftest.err)
20962    ac_status=$?
20963    cat conftest.err >&5
20964    echo "$as_me:20964: \$? = $ac_status" >&5
20965    if (exit $ac_status) && test -s "$ac_outfile"; then
20966      # The compiler can only warn and ignore the option if not recognized
20967      # So say no if there are warnings
20968      if test ! -s conftest.err; then
20969        lt_cv_prog_compiler_rtti_exceptions=yes
20970      fi
20971    fi
20972    $rm conftest*
20973
20974 fi
20975 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20976 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20977
20978 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20979     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20980 else
20981     :
20982 fi
20983
20984 fi
20985
20986 lt_prog_compiler_wl_GCJ=
20987 lt_prog_compiler_pic_GCJ=
20988 lt_prog_compiler_static_GCJ=
20989
20990 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20991 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20992
20993   if test "$GCC" = yes; then
20994     lt_prog_compiler_wl_GCJ='-Wl,'
20995     lt_prog_compiler_static_GCJ='-static'
20996
20997     case $host_os in
20998       aix*)
20999       # All AIX code is PIC.
21000       if test "$host_cpu" = ia64; then
21001         # AIX 5 now supports IA64 processor
21002         lt_prog_compiler_static_GCJ='-Bstatic'
21003       fi
21004       ;;
21005
21006     amigaos*)
21007       # FIXME: we need at least 68020 code to build shared libraries, but
21008       # adding the `-m68020' flag to GCC prevents building anything better,
21009       # like `-m68040'.
21010       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21011       ;;
21012
21013     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21014       # PIC is the default for these OSes.
21015       ;;
21016
21017     mingw* | pw32* | os2*)
21018       # This hack is so that the source file can tell whether it is being
21019       # built for inclusion in a dll (and should export symbols for example).
21020       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21021       ;;
21022
21023     darwin* | rhapsody*)
21024       # PIC is the default on this platform
21025       # Common symbols not allowed in MH_DYLIB files
21026       lt_prog_compiler_pic_GCJ='-fno-common'
21027       ;;
21028
21029     msdosdjgpp*)
21030       # Just because we use GCC doesn't mean we suddenly get shared libraries
21031       # on systems that don't support them.
21032       lt_prog_compiler_can_build_shared_GCJ=no
21033       enable_shared=no
21034       ;;
21035
21036     sysv4*MP*)
21037       if test -d /usr/nec; then
21038         lt_prog_compiler_pic_GCJ=-Kconform_pic
21039       fi
21040       ;;
21041
21042     hpux*)
21043       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21044       # not for PA HP-UX.
21045       case "$host_cpu" in
21046       hppa*64*|ia64*)
21047         # +Z the default
21048         ;;
21049       *)
21050         lt_prog_compiler_pic_GCJ='-fPIC'
21051         ;;
21052       esac
21053       ;;
21054
21055     *)
21056       lt_prog_compiler_pic_GCJ='-fPIC'
21057       ;;
21058     esac
21059   else
21060     # PORTME Check for flag to pass linker flags through the system compiler.
21061     case $host_os in
21062     aix*)
21063       lt_prog_compiler_wl_GCJ='-Wl,'
21064       if test "$host_cpu" = ia64; then
21065         # AIX 5 now supports IA64 processor
21066         lt_prog_compiler_static_GCJ='-Bstatic'
21067       else
21068         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21069       fi
21070       ;;
21071       darwin*)
21072         # PIC is the default on this platform
21073         # Common symbols not allowed in MH_DYLIB files
21074        case "$cc_basename" in
21075          xlc*)
21076          lt_prog_compiler_pic_GCJ='-qnocommon'
21077          lt_prog_compiler_wl_GCJ='-Wl,'
21078          ;;
21079        esac
21080        ;;
21081
21082     mingw* | pw32* | os2*)
21083       # This hack is so that the source file can tell whether it is being
21084       # built for inclusion in a dll (and should export symbols for example).
21085       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21086       ;;
21087
21088     hpux9* | hpux10* | hpux11*)
21089       lt_prog_compiler_wl_GCJ='-Wl,'
21090       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21091       # not for PA HP-UX.
21092       case "$host_cpu" in
21093       hppa*64*|ia64*)
21094         # +Z the default
21095         ;;
21096       *)
21097         lt_prog_compiler_pic_GCJ='+Z'
21098         ;;
21099       esac
21100       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21101       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21102       ;;
21103
21104     irix5* | irix6* | nonstopux*)
21105       lt_prog_compiler_wl_GCJ='-Wl,'
21106       # PIC (with -KPIC) is the default.
21107       lt_prog_compiler_static_GCJ='-non_shared'
21108       ;;
21109
21110     newsos6)
21111       lt_prog_compiler_pic_GCJ='-KPIC'
21112       lt_prog_compiler_static_GCJ='-Bstatic'
21113       ;;
21114
21115     linux*)
21116       case $CC in
21117       icc* | ecc*)
21118         lt_prog_compiler_wl_GCJ='-Wl,'
21119         lt_prog_compiler_pic_GCJ='-KPIC'
21120         lt_prog_compiler_static_GCJ='-static'
21121         ;;
21122       ccc*)
21123         lt_prog_compiler_wl_GCJ='-Wl,'
21124         # All Alpha code is PIC.
21125         lt_prog_compiler_static_GCJ='-non_shared'
21126         ;;
21127       esac
21128       ;;
21129
21130     osf3* | osf4* | osf5*)
21131       lt_prog_compiler_wl_GCJ='-Wl,'
21132       # All OSF/1 code is PIC.
21133       lt_prog_compiler_static_GCJ='-non_shared'
21134       ;;
21135
21136     sco3.2v5*)
21137       lt_prog_compiler_pic_GCJ='-Kpic'
21138       lt_prog_compiler_static_GCJ='-dn'
21139       ;;
21140
21141     solaris*)
21142       lt_prog_compiler_wl_GCJ='-Wl,'
21143       lt_prog_compiler_pic_GCJ='-KPIC'
21144       lt_prog_compiler_static_GCJ='-Bstatic'
21145       ;;
21146
21147     sunos4*)
21148       lt_prog_compiler_wl_GCJ='-Qoption ld '
21149       lt_prog_compiler_pic_GCJ='-PIC'
21150       lt_prog_compiler_static_GCJ='-Bstatic'
21151       ;;
21152
21153     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21154       lt_prog_compiler_wl_GCJ='-Wl,'
21155       lt_prog_compiler_pic_GCJ='-KPIC'
21156       lt_prog_compiler_static_GCJ='-Bstatic'
21157       ;;
21158
21159     sysv4*MP*)
21160       if test -d /usr/nec ;then
21161         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21162         lt_prog_compiler_static_GCJ='-Bstatic'
21163       fi
21164       ;;
21165
21166     uts4*)
21167       lt_prog_compiler_pic_GCJ='-pic'
21168       lt_prog_compiler_static_GCJ='-Bstatic'
21169       ;;
21170
21171     *)
21172       lt_prog_compiler_can_build_shared_GCJ=no
21173       ;;
21174     esac
21175   fi
21176
21177 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21178 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21179
21180 #
21181 # Check to make sure the PIC flag actually works.
21182 #
21183 if test -n "$lt_prog_compiler_pic_GCJ"; then
21184
21185 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21186 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21187 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21188   echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190   lt_prog_compiler_pic_works_GCJ=no
21191   ac_outfile=conftest.$ac_objext
21192    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21193    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21194    # Insert the option either (1) after the last *FLAGS variable, or
21195    # (2) before a word containing "conftest.", or (3) at the end.
21196    # Note that $ac_compile itself does not contain backslashes and begins
21197    # with a dollar sign (not a hyphen), so the echo should work correctly.
21198    # The option is referenced via a variable to avoid confusing sed.
21199    lt_compile=`echo "$ac_compile" | $SED \
21200    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21202    -e 's:$: $lt_compiler_flag:'`
21203    (eval echo "\"\$as_me:21203: $lt_compile\"" >&5)
21204    (eval "$lt_compile" 2>conftest.err)
21205    ac_status=$?
21206    cat conftest.err >&5
21207    echo "$as_me:21207: \$? = $ac_status" >&5
21208    if (exit $ac_status) && test -s "$ac_outfile"; then
21209      # The compiler can only warn and ignore the option if not recognized
21210      # So say no if there are warnings
21211      if test ! -s conftest.err; then
21212        lt_prog_compiler_pic_works_GCJ=yes
21213      fi
21214    fi
21215    $rm conftest*
21216
21217 fi
21218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21219 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21220
21221 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21222     case $lt_prog_compiler_pic_GCJ in
21223      "" | " "*) ;;
21224      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21225      esac
21226 else
21227     lt_prog_compiler_pic_GCJ=
21228      lt_prog_compiler_can_build_shared_GCJ=no
21229 fi
21230
21231 fi
21232 case "$host_os" in
21233   # For platforms which do not support PIC, -DPIC is meaningless:
21234   *djgpp*)
21235     lt_prog_compiler_pic_GCJ=
21236     ;;
21237   *)
21238     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21239     ;;
21240 esac
21241
21242 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21243 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21244 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247   lt_cv_prog_compiler_c_o_GCJ=no
21248    $rm -r conftest 2>/dev/null
21249    mkdir conftest
21250    cd conftest
21251    mkdir out
21252    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21253
21254    lt_compiler_flag="-o out/conftest2.$ac_objext"
21255    # Insert the option either (1) after the last *FLAGS variable, or
21256    # (2) before a word containing "conftest.", or (3) at the end.
21257    # Note that $ac_compile itself does not contain backslashes and begins
21258    # with a dollar sign (not a hyphen), so the echo should work correctly.
21259    lt_compile=`echo "$ac_compile" | $SED \
21260    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21262    -e 's:$: $lt_compiler_flag:'`
21263    (eval echo "\"\$as_me:21263: $lt_compile\"" >&5)
21264    (eval "$lt_compile" 2>out/conftest.err)
21265    ac_status=$?
21266    cat out/conftest.err >&5
21267    echo "$as_me:21267: \$? = $ac_status" >&5
21268    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21269    then
21270      # The compiler can only warn and ignore the option if not recognized
21271      # So say no if there are warnings
21272      if test ! -s out/conftest.err; then
21273        lt_cv_prog_compiler_c_o_GCJ=yes
21274      fi
21275    fi
21276    chmod u+w .
21277    $rm conftest*
21278    # SGI C++ compiler will create directory out/ii_files/ for
21279    # template instantiation
21280    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21281    $rm out/* && rmdir out
21282    cd ..
21283    rmdir conftest
21284    $rm conftest*
21285
21286 fi
21287 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21288 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21289
21290
21291 hard_links="nottested"
21292 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21293   # do not overwrite the value of need_locks provided by the user
21294   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21295 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21296   hard_links=yes
21297   $rm conftest*
21298   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299   touch conftest.a
21300   ln conftest.a conftest.b 2>&5 || hard_links=no
21301   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21302   echo "$as_me:$LINENO: result: $hard_links" >&5
21303 echo "${ECHO_T}$hard_links" >&6
21304   if test "$hard_links" = no; then
21305     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21306 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21307     need_locks=warn
21308   fi
21309 else
21310   need_locks=no
21311 fi
21312
21313 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21314 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21315
21316   runpath_var=
21317   allow_undefined_flag_GCJ=
21318   enable_shared_with_static_runtimes_GCJ=no
21319   archive_cmds_GCJ=
21320   archive_expsym_cmds_GCJ=
21321   old_archive_From_new_cmds_GCJ=
21322   old_archive_from_expsyms_cmds_GCJ=
21323   export_dynamic_flag_spec_GCJ=
21324   whole_archive_flag_spec_GCJ=
21325   thread_safe_flag_spec_GCJ=
21326   hardcode_libdir_flag_spec_GCJ=
21327   hardcode_libdir_flag_spec_ld_GCJ=
21328   hardcode_libdir_separator_GCJ=
21329   hardcode_direct_GCJ=no
21330   hardcode_minus_L_GCJ=no
21331   hardcode_shlibpath_var_GCJ=unsupported
21332   link_all_deplibs_GCJ=unknown
21333   hardcode_automatic_GCJ=no
21334   module_cmds_GCJ=
21335   module_expsym_cmds_GCJ=
21336   always_export_symbols_GCJ=no
21337   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21338   # include_expsyms should be a list of space-separated symbols to be *always*
21339   # included in the symbol list
21340   include_expsyms_GCJ=
21341   # exclude_expsyms can be an extended regexp of symbols to exclude
21342   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21343   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21344   # as well as any symbol that contains `d'.
21345   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21346   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21347   # platforms (ab)use it in PIC code, but their linkers get confused if
21348   # the symbol is explicitly referenced.  Since portable code cannot
21349   # rely on this symbol name, it's probably fine to never include it in
21350   # preloaded symbol tables.
21351   extract_expsyms_cmds=
21352
21353   case $host_os in
21354   cygwin* | mingw* | pw32*)
21355     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21356     # When not using gcc, we currently assume that we are using
21357     # Microsoft Visual C++.
21358     if test "$GCC" != yes; then
21359       with_gnu_ld=no
21360     fi
21361     ;;
21362   openbsd*)
21363     with_gnu_ld=no
21364     ;;
21365   esac
21366
21367   ld_shlibs_GCJ=yes
21368   if test "$with_gnu_ld" = yes; then
21369     # If archive_cmds runs LD, not CC, wlarc should be empty
21370     wlarc='${wl}'
21371
21372     # See if GNU ld supports shared libraries.
21373     case $host_os in
21374     aix3* | aix4* | aix5*)
21375       # On AIX/PPC, the GNU linker is very broken
21376       if test "$host_cpu" != ia64; then
21377         ld_shlibs_GCJ=no
21378         cat <<EOF 1>&2
21379
21380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21381 *** to be unable to reliably create shared libraries on AIX.
21382 *** Therefore, libtool is disabling shared libraries support.  If you
21383 *** really care for shared libraries, you may want to modify your PATH
21384 *** so that a non-GNU linker is found, and then restart.
21385
21386 EOF
21387       fi
21388       ;;
21389
21390     amigaos*)
21391       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)'
21392       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21393       hardcode_minus_L_GCJ=yes
21394
21395       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21396       # that the semantics of dynamic libraries on AmigaOS, at least up
21397       # to version 4, is to share data among multiple programs linked
21398       # with the same dynamic library.  Since this doesn't match the
21399       # behavior of shared libraries on other platforms, we can't use
21400       # them.
21401       ld_shlibs_GCJ=no
21402       ;;
21403
21404     beos*)
21405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21406         allow_undefined_flag_GCJ=unsupported
21407         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21408         # support --undefined.  This deserves some investigation.  FIXME
21409         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21410       else
21411         ld_shlibs_GCJ=no
21412       fi
21413       ;;
21414
21415     cygwin* | mingw* | pw32*)
21416       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21417       # as there is no search path for DLLs.
21418       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21419       allow_undefined_flag_GCJ=unsupported
21420       always_export_symbols_GCJ=no
21421       enable_shared_with_static_runtimes_GCJ=yes
21422       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21423
21424       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21425         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21426         # If the export-symbols file already is a .def file (1st line
21427         # is EXPORTS), use it as is; otherwise, prepend...
21428         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21429           cp $export_symbols $output_objdir/$soname.def;
21430         else
21431           echo EXPORTS > $output_objdir/$soname.def;
21432           cat $export_symbols >> $output_objdir/$soname.def;
21433         fi~
21434         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21435       else
21436         ld_shlibs=no
21437       fi
21438       ;;
21439
21440     netbsd*)
21441       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21442         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21443         wlarc=
21444       else
21445         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21446         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21447       fi
21448       ;;
21449
21450     solaris* | sysv5*)
21451       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21452         ld_shlibs_GCJ=no
21453         cat <<EOF 1>&2
21454
21455 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21456 *** create shared libraries on Solaris systems.  Therefore, libtool
21457 *** is disabling shared libraries support.  We urge you to upgrade GNU
21458 *** binutils to release 2.9.1 or newer.  Another option is to modify
21459 *** your PATH or compiler configuration so that the native linker is
21460 *** used, and then restart.
21461
21462 EOF
21463       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21464         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21465         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21466       else
21467         ld_shlibs_GCJ=no
21468       fi
21469       ;;
21470
21471     sunos4*)
21472       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21473       wlarc=
21474       hardcode_direct_GCJ=yes
21475       hardcode_shlibpath_var_GCJ=no
21476       ;;
21477
21478   linux*)
21479     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21480         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21481         archive_cmds_GCJ="$tmp_archive_cmds"
21482       supports_anon_versioning=no
21483       case `$LD -v 2>/dev/null` in
21484         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21485         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21486         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21487         *\ 2.11.*) ;; # other 2.11 versions
21488         *) supports_anon_versioning=yes ;;
21489       esac
21490       if test $supports_anon_versioning = yes; then
21491         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21493 $echo "local: *; };" >> $output_objdir/$libname.ver~
21494         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21495       else
21496         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21497       fi
21498     else
21499       ld_shlibs_GCJ=no
21500     fi
21501     ;;
21502
21503     *)
21504       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21505         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21506         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21507       else
21508         ld_shlibs_GCJ=no
21509       fi
21510       ;;
21511     esac
21512
21513     if test "$ld_shlibs_GCJ" = yes; then
21514       runpath_var=LD_RUN_PATH
21515       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21516       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21517       # ancient GNU ld didn't support --whole-archive et. al.
21518       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21519         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21520       else
21521         whole_archive_flag_spec_GCJ=
21522       fi
21523     fi
21524   else
21525     # PORTME fill in a description of your system's linker (not GNU ld)
21526     case $host_os in
21527     aix3*)
21528       allow_undefined_flag_GCJ=unsupported
21529       always_export_symbols_GCJ=yes
21530       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'
21531       # Note: this linker hardcodes the directories in LIBPATH if there
21532       # are no directories specified by -L.
21533       hardcode_minus_L_GCJ=yes
21534       if test "$GCC" = yes && test -z "$link_static_flag"; then
21535         # Neither direct hardcoding nor static linking is supported with a
21536         # broken collect2.
21537         hardcode_direct_GCJ=unsupported
21538       fi
21539       ;;
21540
21541     aix4* | aix5*)
21542       if test "$host_cpu" = ia64; then
21543         # On IA64, the linker does run time linking by default, so we don't
21544         # have to do anything special.
21545         aix_use_runtimelinking=no
21546         exp_sym_flag='-Bexport'
21547         no_entry_flag=""
21548       else
21549         # If we're using GNU nm, then we don't want the "-C" option.
21550         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21551         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21552           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'
21553         else
21554           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'
21555         fi
21556         aix_use_runtimelinking=no
21557
21558         # Test if we are trying to use run time linking or normal
21559         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21560         # need to do runtime linking.
21561         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21562           for ld_flag in $LDFLAGS; do
21563           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21564             aix_use_runtimelinking=yes
21565             break
21566           fi
21567           done
21568         esac
21569
21570         exp_sym_flag='-bexport'
21571         no_entry_flag='-bnoentry'
21572       fi
21573
21574       # When large executables or shared objects are built, AIX ld can
21575       # have problems creating the table of contents.  If linking a library
21576       # or program results in "error TOC overflow" add -mminimal-toc to
21577       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21578       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21579
21580       archive_cmds_GCJ=''
21581       hardcode_direct_GCJ=yes
21582       hardcode_libdir_separator_GCJ=':'
21583       link_all_deplibs_GCJ=yes
21584
21585       if test "$GCC" = yes; then
21586         case $host_os in aix4.012|aix4.012.*)
21587         # We only want to do this on AIX 4.2 and lower, the check
21588         # below for broken collect2 doesn't work under 4.3+
21589           collect2name=`${CC} -print-prog-name=collect2`
21590           if test -f "$collect2name" && \
21591            strings "$collect2name" | grep resolve_lib_name >/dev/null
21592           then
21593           # We have reworked collect2
21594           hardcode_direct_GCJ=yes
21595           else
21596           # We have old collect2
21597           hardcode_direct_GCJ=unsupported
21598           # It fails to find uninstalled libraries when the uninstalled
21599           # path is not listed in the libpath.  Setting hardcode_minus_L
21600           # to unsupported forces relinking
21601           hardcode_minus_L_GCJ=yes
21602           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21603           hardcode_libdir_separator_GCJ=
21604           fi
21605         esac
21606         shared_flag='-shared'
21607       else
21608         # not using gcc
21609         if test "$host_cpu" = ia64; then
21610         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21611         # chokes on -Wl,-G. The following line is correct:
21612           shared_flag='-G'
21613         else
21614         if test "$aix_use_runtimelinking" = yes; then
21615             shared_flag='${wl}-G'
21616           else
21617             shared_flag='${wl}-bM:SRE'
21618         fi
21619         fi
21620       fi
21621
21622       # It seems that -bexpall does not export symbols beginning with
21623       # underscore (_), so it is better to generate a list of symbols to export.
21624       always_export_symbols_GCJ=yes
21625       if test "$aix_use_runtimelinking" = yes; then
21626         # Warning - without using the other runtime loading flags (-brtl),
21627         # -berok will link without error, but may produce a broken library.
21628         allow_undefined_flag_GCJ='-berok'
21629        # Determine the default libpath from the value encoded in an empty executable.
21630        cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h.  */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h.  */
21636
21637 int
21638 main ()
21639 {
21640
21641   ;
21642   return 0;
21643 }
21644 _ACEOF
21645 rm -f conftest.$ac_objext conftest$ac_exeext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647   (eval $ac_link) 2>conftest.er1
21648   ac_status=$?
21649   grep -v '^ *+' conftest.er1 >conftest.err
21650   rm -f conftest.er1
21651   cat conftest.err >&5
21652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); } &&
21654          { ac_try='test -z "$ac_c_werror_flag"
21655                          || test ! -s conftest.err'
21656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657   (eval $ac_try) 2>&5
21658   ac_status=$?
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); }; } &&
21661          { ac_try='test -s conftest$ac_exeext'
21662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663   (eval $ac_try) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; }; then
21667
21668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21669 }'`
21670 # Check for a 64-bit object if we didn't find anything.
21671 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; }
21672 }'`; fi
21673 else
21674   echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 fi
21678 rm -f conftest.err conftest.$ac_objext \
21679       conftest$ac_exeext conftest.$ac_ext
21680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21681
21682        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21683         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"
21684        else
21685         if test "$host_cpu" = ia64; then
21686           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21687           allow_undefined_flag_GCJ="-z nodefs"
21688           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"
21689         else
21690          # Determine the default libpath from the value encoded in an empty executable.
21691          cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697
21698 int
21699 main ()
21700 {
21701
21702   ;
21703   return 0;
21704 }
21705 _ACEOF
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21708   (eval $ac_link) 2>conftest.er1
21709   ac_status=$?
21710   grep -v '^ *+' conftest.er1 >conftest.err
21711   rm -f conftest.er1
21712   cat conftest.err >&5
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); } &&
21715          { ac_try='test -z "$ac_c_werror_flag"
21716                          || test ! -s conftest.err'
21717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718   (eval $ac_try) 2>&5
21719   ac_status=$?
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); }; } &&
21722          { ac_try='test -s conftest$ac_exeext'
21723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724   (eval $ac_try) 2>&5
21725   ac_status=$?
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); }; }; then
21728
21729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21730 }'`
21731 # Check for a 64-bit object if we didn't find anything.
21732 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; }
21733 }'`; fi
21734 else
21735   echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21737
21738 fi
21739 rm -f conftest.err conftest.$ac_objext \
21740       conftest$ac_exeext conftest.$ac_ext
21741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21742
21743          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21744           # Warning - without using the other run time loading flags,
21745           # -berok will link without error, but may produce a broken library.
21746           no_undefined_flag_GCJ=' ${wl}-bernotok'
21747           allow_undefined_flag_GCJ=' ${wl}-berok'
21748           # -bexpall does not export symbols beginning with underscore (_)
21749           always_export_symbols_GCJ=yes
21750           # Exported symbols can be pulled into shared objects from archives
21751           whole_archive_flag_spec_GCJ=' '
21752           archive_cmds_need_lc_GCJ=yes
21753           # This is similar to how AIX traditionally builds it's shared libraries.
21754           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'
21755         fi
21756       fi
21757       ;;
21758
21759     amigaos*)
21760       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)'
21761       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21762       hardcode_minus_L_GCJ=yes
21763       # see comment about different semantics on the GNU ld section
21764       ld_shlibs_GCJ=no
21765       ;;
21766
21767     bsdi[45]*)
21768       export_dynamic_flag_spec_GCJ=-rdynamic
21769       ;;
21770
21771     cygwin* | mingw* | pw32*)
21772       # When not using gcc, we currently assume that we are using
21773       # Microsoft Visual C++.
21774       # hardcode_libdir_flag_spec is actually meaningless, as there is
21775       # no search path for DLLs.
21776       hardcode_libdir_flag_spec_GCJ=' '
21777       allow_undefined_flag_GCJ=unsupported
21778       # Tell ltmain to make .lib files, not .a files.
21779       libext=lib
21780       # Tell ltmain to make .dll files, not .so files.
21781       shrext_cmds=".dll"
21782       # FIXME: Setting linknames here is a bad hack.
21783       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21784       # The linker will automatically build a .lib file if we build a DLL.
21785       old_archive_From_new_cmds_GCJ='true'
21786       # FIXME: Should let the user specify the lib program.
21787       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21788       fix_srcfile_path='`cygpath -w "$srcfile"`'
21789       enable_shared_with_static_runtimes_GCJ=yes
21790       ;;
21791
21792     darwin* | rhapsody*)
21793       case "$host_os" in
21794         rhapsody* | darwin1.[012])
21795          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21796          ;;
21797        *) # Darwin 1.3 on
21798          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21799            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21800          else
21801            case ${MACOSX_DEPLOYMENT_TARGET} in
21802              10.[012])
21803                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21804                ;;
21805              10.*)
21806                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21807                ;;
21808            esac
21809          fi
21810          ;;
21811       esac
21812       archive_cmds_need_lc_GCJ=no
21813       hardcode_direct_GCJ=no
21814       hardcode_automatic_GCJ=yes
21815       hardcode_shlibpath_var_GCJ=unsupported
21816       whole_archive_flag_spec_GCJ=''
21817       link_all_deplibs_GCJ=yes
21818     if test "$GCC" = yes ; then
21819         output_verbose_link_cmd='echo'
21820         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21821       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21822       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21823       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}'
21824       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}'
21825     else
21826       case "$cc_basename" in
21827         xlc*)
21828          output_verbose_link_cmd='echo'
21829          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21830          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21831           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21832          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}'
21833           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}'
21834           ;;
21835        *)
21836          ld_shlibs_GCJ=no
21837           ;;
21838       esac
21839     fi
21840       ;;
21841
21842     dgux*)
21843       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21844       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21845       hardcode_shlibpath_var_GCJ=no
21846       ;;
21847
21848     freebsd1*)
21849       ld_shlibs_GCJ=no
21850       ;;
21851
21852     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21853     # support.  Future versions do this automatically, but an explicit c++rt0.o
21854     # does not break anything, and helps significantly (at the cost of a little
21855     # extra space).
21856     freebsd2.2*)
21857       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21858       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21859       hardcode_direct_GCJ=yes
21860       hardcode_shlibpath_var_GCJ=no
21861       ;;
21862
21863     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21864     freebsd2*)
21865       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21866       hardcode_direct_GCJ=yes
21867       hardcode_minus_L_GCJ=yes
21868       hardcode_shlibpath_var_GCJ=no
21869       ;;
21870
21871     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21872     freebsd* | kfreebsd*-gnu)
21873       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21874       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21875       hardcode_direct_GCJ=yes
21876       hardcode_shlibpath_var_GCJ=no
21877       ;;
21878
21879     hpux9*)
21880       if test "$GCC" = yes; then
21881         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'
21882       else
21883         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'
21884       fi
21885       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21886       hardcode_libdir_separator_GCJ=:
21887       hardcode_direct_GCJ=yes
21888
21889       # hardcode_minus_L: Not really in the search PATH,
21890       # but as the default location of the library.
21891       hardcode_minus_L_GCJ=yes
21892       export_dynamic_flag_spec_GCJ='${wl}-E'
21893       ;;
21894
21895     hpux10* | hpux11*)
21896       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21897         case "$host_cpu" in
21898         hppa*64*|ia64*)
21899           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21900           ;;
21901         *)
21902           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21903           ;;
21904         esac
21905       else
21906         case "$host_cpu" in
21907         hppa*64*|ia64*)
21908           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21909           ;;
21910         *)
21911           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21912           ;;
21913         esac
21914       fi
21915       if test "$with_gnu_ld" = no; then
21916         case "$host_cpu" in
21917         hppa*64*)
21918           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21919           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21920           hardcode_libdir_separator_GCJ=:
21921           hardcode_direct_GCJ=no
21922           hardcode_shlibpath_var_GCJ=no
21923           ;;
21924         ia64*)
21925           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21926           hardcode_direct_GCJ=no
21927           hardcode_shlibpath_var_GCJ=no
21928
21929           # hardcode_minus_L: Not really in the search PATH,
21930           # but as the default location of the library.
21931           hardcode_minus_L_GCJ=yes
21932           ;;
21933         *)
21934           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21935           hardcode_libdir_separator_GCJ=:
21936           hardcode_direct_GCJ=yes
21937           export_dynamic_flag_spec_GCJ='${wl}-E'
21938
21939           # hardcode_minus_L: Not really in the search PATH,
21940           # but as the default location of the library.
21941           hardcode_minus_L_GCJ=yes
21942           ;;
21943         esac
21944       fi
21945       ;;
21946
21947     irix5* | irix6* | nonstopux*)
21948       if test "$GCC" = yes; then
21949         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'
21950       else
21951         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'
21952         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21953       fi
21954       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21955       hardcode_libdir_separator_GCJ=:
21956       link_all_deplibs_GCJ=yes
21957       ;;
21958
21959     netbsd*)
21960       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21961         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21962       else
21963         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21964       fi
21965       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21966       hardcode_direct_GCJ=yes
21967       hardcode_shlibpath_var_GCJ=no
21968       ;;
21969
21970     newsos6)
21971       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21972       hardcode_direct_GCJ=yes
21973       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21974       hardcode_libdir_separator_GCJ=:
21975       hardcode_shlibpath_var_GCJ=no
21976       ;;
21977
21978     openbsd*)
21979       hardcode_direct_GCJ=yes
21980       hardcode_shlibpath_var_GCJ=no
21981       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21982         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21983         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21984         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21985         export_dynamic_flag_spec_GCJ='${wl}-E'
21986       else
21987        case $host_os in
21988          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21989            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21990            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21991            ;;
21992          *)
21993            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21994            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21995            ;;
21996        esac
21997       fi
21998       ;;
21999
22000     os2*)
22001       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22002       hardcode_minus_L_GCJ=yes
22003       allow_undefined_flag_GCJ=unsupported
22004       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'
22005       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22006       ;;
22007
22008     osf3*)
22009       if test "$GCC" = yes; then
22010         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22011         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'
22012       else
22013         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22014         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'
22015       fi
22016       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22017       hardcode_libdir_separator_GCJ=:
22018       ;;
22019
22020     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22021       if test "$GCC" = yes; then
22022         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22023         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'
22024         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22025       else
22026         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22027         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'
22028         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~
22029         $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'
22030
22031         # Both c and cxx compiler support -rpath directly
22032         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22033       fi
22034       hardcode_libdir_separator_GCJ=:
22035       ;;
22036
22037     sco3.2v5*)
22038       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22039       hardcode_shlibpath_var_GCJ=no
22040       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22041       runpath_var=LD_RUN_PATH
22042       hardcode_runpath_var=yes
22043       ;;
22044
22045     solaris*)
22046       no_undefined_flag_GCJ=' -z text'
22047       if test "$GCC" = yes; then
22048         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22049         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22050           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22051       else
22052         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22053         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22054         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22055       fi
22056       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22057       hardcode_shlibpath_var_GCJ=no
22058       case $host_os in
22059       solaris2.[0-5] | solaris2.[0-5].*) ;;
22060       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22061         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22062       esac
22063       link_all_deplibs_GCJ=yes
22064       ;;
22065
22066     sunos4*)
22067       if test "x$host_vendor" = xsequent; then
22068         # Use $CC to link under sequent, because it throws in some extra .o
22069         # files that make .init and .fini sections work.
22070         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22071       else
22072         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22073       fi
22074       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22075       hardcode_direct_GCJ=yes
22076       hardcode_minus_L_GCJ=yes
22077       hardcode_shlibpath_var_GCJ=no
22078       ;;
22079
22080     sysv4)
22081       case $host_vendor in
22082         sni)
22083           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22084           hardcode_direct_GCJ=yes # is this really true???
22085         ;;
22086         siemens)
22087           ## LD is ld it makes a PLAMLIB
22088           ## CC just makes a GrossModule.
22089           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22090           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22091           hardcode_direct_GCJ=no
22092         ;;
22093         motorola)
22094           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22095           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22096         ;;
22097       esac
22098       runpath_var='LD_RUN_PATH'
22099       hardcode_shlibpath_var_GCJ=no
22100       ;;
22101
22102     sysv4.3*)
22103       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22104       hardcode_shlibpath_var_GCJ=no
22105       export_dynamic_flag_spec_GCJ='-Bexport'
22106       ;;
22107
22108     sysv4*MP*)
22109       if test -d /usr/nec; then
22110         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22111         hardcode_shlibpath_var_GCJ=no
22112         runpath_var=LD_RUN_PATH
22113         hardcode_runpath_var=yes
22114         ld_shlibs_GCJ=yes
22115       fi
22116       ;;
22117
22118     sysv4.2uw2*)
22119       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22120       hardcode_direct_GCJ=yes
22121       hardcode_minus_L_GCJ=no
22122       hardcode_shlibpath_var_GCJ=no
22123       hardcode_runpath_var=yes
22124       runpath_var=LD_RUN_PATH
22125       ;;
22126
22127    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22128       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22129       if test "$GCC" = yes; then
22130         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22131       else
22132         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22133       fi
22134       runpath_var='LD_RUN_PATH'
22135       hardcode_shlibpath_var_GCJ=no
22136       ;;
22137
22138     sysv5*)
22139       no_undefined_flag_GCJ=' -z text'
22140       # $CC -shared without GNU ld will not create a library from C++
22141       # object files and a static libstdc++, better avoid it by now
22142       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22143       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22144                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22145       hardcode_libdir_flag_spec_GCJ=
22146       hardcode_shlibpath_var_GCJ=no
22147       runpath_var='LD_RUN_PATH'
22148       ;;
22149
22150     uts4*)
22151       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22152       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22153       hardcode_shlibpath_var_GCJ=no
22154       ;;
22155
22156     *)
22157       ld_shlibs_GCJ=no
22158       ;;
22159     esac
22160   fi
22161
22162 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22163 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22164 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22165
22166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22167 if test "$GCC" = yes; then
22168   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22169 fi
22170
22171 #
22172 # Do we need to explicitly link libc?
22173 #
22174 case "x$archive_cmds_need_lc_GCJ" in
22175 x|xyes)
22176   # Assume -lc should be added
22177   archive_cmds_need_lc_GCJ=yes
22178
22179   if test "$enable_shared" = yes && test "$GCC" = yes; then
22180     case $archive_cmds_GCJ in
22181     *'~'*)
22182       # FIXME: we may have to deal with multi-command sequences.
22183       ;;
22184     '$CC '*)
22185       # Test whether the compiler implicitly links with -lc since on some
22186       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22187       # to ld, don't add -lc before -lgcc.
22188       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22189 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22190       $rm conftest*
22191       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22192
22193       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22194   (eval $ac_compile) 2>&5
22195   ac_status=$?
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } 2>conftest.err; then
22198         soname=conftest
22199         lib=conftest
22200         libobjs=conftest.$ac_objext
22201         deplibs=
22202         wl=$lt_prog_compiler_wl_GCJ
22203         compiler_flags=-v
22204         linker_flags=-v
22205         verstring=
22206         output_objdir=.
22207         libname=conftest
22208         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22209         allow_undefined_flag_GCJ=
22210         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22211   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22212   ac_status=$?
22213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214   (exit $ac_status); }
22215         then
22216           archive_cmds_need_lc_GCJ=no
22217         else
22218           archive_cmds_need_lc_GCJ=yes
22219         fi
22220         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22221       else
22222         cat conftest.err 1>&5
22223       fi
22224       $rm conftest*
22225       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22226 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22227       ;;
22228     esac
22229   fi
22230   ;;
22231 esac
22232
22233 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22234 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22235 library_names_spec=
22236 libname_spec='lib$name'
22237 soname_spec=
22238 shrext_cmds=".so"
22239 postinstall_cmds=
22240 postuninstall_cmds=
22241 finish_cmds=
22242 finish_eval=
22243 shlibpath_var=
22244 shlibpath_overrides_runpath=unknown
22245 version_type=none
22246 dynamic_linker="$host_os ld.so"
22247 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22248 if test "$GCC" = yes; then
22249   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22250   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22251     # if the path contains ";" then we assume it to be the separator
22252     # otherwise default to the standard path separator (i.e. ":") - it is
22253     # assumed that no part of a normal pathname contains ";" but that should
22254     # okay in the real world where ";" in dirpaths is itself problematic.
22255     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22256   else
22257     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22258   fi
22259 else
22260   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22261 fi
22262 need_lib_prefix=unknown
22263 hardcode_into_libs=no
22264
22265 # when you set need_version to no, make sure it does not cause -set_version
22266 # flags to be left without arguments
22267 need_version=unknown
22268
22269 case $host_os in
22270 aix3*)
22271   version_type=linux
22272   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22273   shlibpath_var=LIBPATH
22274
22275   # AIX 3 has no versioning support, so we append a major version to the name.
22276   soname_spec='${libname}${release}${shared_ext}$major'
22277   ;;
22278
22279 aix4* | aix5*)
22280   version_type=linux
22281   need_lib_prefix=no
22282   need_version=no
22283   hardcode_into_libs=yes
22284   if test "$host_cpu" = ia64; then
22285     # AIX 5 supports IA64
22286     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22287     shlibpath_var=LD_LIBRARY_PATH
22288   else
22289     # With GCC up to 2.95.x, collect2 would create an import file
22290     # for dependence libraries.  The import file would start with
22291     # the line `#! .'.  This would cause the generated library to
22292     # depend on `.', always an invalid library.  This was fixed in
22293     # development snapshots of GCC prior to 3.0.
22294     case $host_os in
22295       aix4 | aix4.[01] | aix4.[01].*)
22296       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22297            echo ' yes '
22298            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22299         :
22300       else
22301         can_build_shared=no
22302       fi
22303       ;;
22304     esac
22305     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22306     # soname into executable. Probably we can add versioning support to
22307     # collect2, so additional links can be useful in future.
22308     if test "$aix_use_runtimelinking" = yes; then
22309       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22310       # instead of lib<name>.a to let people know that these are not
22311       # typical AIX shared libraries.
22312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22313     else
22314       # We preserve .a as extension for shared libraries through AIX4.2
22315       # and later when we are not doing run time linking.
22316       library_names_spec='${libname}${release}.a $libname.a'
22317       soname_spec='${libname}${release}${shared_ext}$major'
22318     fi
22319     shlibpath_var=LIBPATH
22320   fi
22321   ;;
22322
22323 amigaos*)
22324   library_names_spec='$libname.ixlibrary $libname.a'
22325   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22326   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'
22327   ;;
22328
22329 beos*)
22330   library_names_spec='${libname}${shared_ext}'
22331   dynamic_linker="$host_os ld.so"
22332   shlibpath_var=LIBRARY_PATH
22333   ;;
22334
22335 bsdi[45]*)
22336   version_type=linux
22337   need_version=no
22338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22339   soname_spec='${libname}${release}${shared_ext}$major'
22340   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22341   shlibpath_var=LD_LIBRARY_PATH
22342   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22343   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22344   # the default ld.so.conf also contains /usr/contrib/lib and
22345   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22346   # libtool to hard-code these into programs
22347   ;;
22348
22349 cygwin* | mingw* | pw32*)
22350   version_type=windows
22351   shrext_cmds=".dll"
22352   need_version=no
22353   need_lib_prefix=no
22354
22355   case $GCC,$host_os in
22356   yes,cygwin* | yes,mingw* | yes,pw32*)
22357     library_names_spec='$libname.dll.a'
22358     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22359     postinstall_cmds='base_file=`basename \${file}`~
22360       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22361       dldir=$destdir/`dirname \$dlpath`~
22362       test -d \$dldir || mkdir -p \$dldir~
22363       $install_prog $dir/$dlname \$dldir/$dlname'
22364     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22365       dlpath=$dir/\$dldll~
22366        $rm \$dlpath'
22367     shlibpath_overrides_runpath=yes
22368
22369     case $host_os in
22370     cygwin*)
22371       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22372       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22373       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22374       ;;
22375     mingw*)
22376       # MinGW DLLs use traditional 'lib' prefix
22377       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22378       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22379       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22380         # It is most probably a Windows format PATH printed by
22381         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22382         # path with ; separators, and with drive letters. We can handle the
22383         # drive letters (cygwin fileutils understands them), so leave them,
22384         # especially as we might pass files found there to a mingw objdump,
22385         # which wouldn't understand a cygwinified path. Ahh.
22386         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22387       else
22388         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22389       fi
22390       ;;
22391     pw32*)
22392       # pw32 DLLs use 'pw' prefix rather than 'lib'
22393       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22394       ;;
22395     esac
22396     ;;
22397
22398   *)
22399     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22400     ;;
22401   esac
22402   dynamic_linker='Win32 ld.exe'
22403   # FIXME: first we should search . and the directory the executable is in
22404   shlibpath_var=PATH
22405   ;;
22406
22407 darwin* | rhapsody*)
22408   dynamic_linker="$host_os dyld"
22409   version_type=darwin
22410   need_lib_prefix=no
22411   need_version=no
22412   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22413   soname_spec='${libname}${release}${major}$shared_ext'
22414   shlibpath_overrides_runpath=yes
22415   shlibpath_var=DYLD_LIBRARY_PATH
22416   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22417   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22418   if test "$GCC" = yes; then
22419     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"`
22420   else
22421     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22422   fi
22423   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22424   ;;
22425
22426 dgux*)
22427   version_type=linux
22428   need_lib_prefix=no
22429   need_version=no
22430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22431   soname_spec='${libname}${release}${shared_ext}$major'
22432   shlibpath_var=LD_LIBRARY_PATH
22433   ;;
22434
22435 freebsd1*)
22436   dynamic_linker=no
22437   ;;
22438
22439 kfreebsd*-gnu)
22440   version_type=linux
22441   need_lib_prefix=no
22442   need_version=no
22443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22444   soname_spec='${libname}${release}${shared_ext}$major'
22445   shlibpath_var=LD_LIBRARY_PATH
22446   shlibpath_overrides_runpath=no
22447   hardcode_into_libs=yes
22448   dynamic_linker='GNU ld.so'
22449   ;;
22450
22451 freebsd*)
22452   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22453   version_type=freebsd-$objformat
22454   case $version_type in
22455     freebsd-elf*)
22456       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22457       need_version=no
22458       need_lib_prefix=no
22459       ;;
22460     freebsd-*)
22461       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22462       need_version=yes
22463       ;;
22464   esac
22465   shlibpath_var=LD_LIBRARY_PATH
22466   case $host_os in
22467   freebsd2*)
22468     shlibpath_overrides_runpath=yes
22469     ;;
22470   freebsd3.01* | freebsdelf3.01*)
22471     shlibpath_overrides_runpath=yes
22472     hardcode_into_libs=yes
22473     ;;
22474   *) # from 3.2 on
22475     shlibpath_overrides_runpath=no
22476     hardcode_into_libs=yes
22477     ;;
22478   esac
22479   ;;
22480
22481 gnu*)
22482   version_type=linux
22483   need_lib_prefix=no
22484   need_version=no
22485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22486   soname_spec='${libname}${release}${shared_ext}$major'
22487   shlibpath_var=LD_LIBRARY_PATH
22488   hardcode_into_libs=yes
22489   ;;
22490
22491 hpux9* | hpux10* | hpux11*)
22492   # Give a soname corresponding to the major version so that dld.sl refuses to
22493   # link against other versions.
22494   version_type=sunos
22495   need_lib_prefix=no
22496   need_version=no
22497   case "$host_cpu" in
22498   ia64*)
22499     shrext_cmds='.so'
22500     hardcode_into_libs=yes
22501     dynamic_linker="$host_os dld.so"
22502     shlibpath_var=LD_LIBRARY_PATH
22503     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22505     soname_spec='${libname}${release}${shared_ext}$major'
22506     if test "X$HPUX_IA64_MODE" = X32; then
22507       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22508     else
22509       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22510     fi
22511     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22512     ;;
22513    hppa*64*)
22514      shrext_cmds='.sl'
22515      hardcode_into_libs=yes
22516      dynamic_linker="$host_os dld.sl"
22517      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22518      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22519      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22520      soname_spec='${libname}${release}${shared_ext}$major'
22521      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22522      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22523      ;;
22524    *)
22525     shrext_cmds='.sl'
22526     dynamic_linker="$host_os dld.sl"
22527     shlibpath_var=SHLIB_PATH
22528     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22530     soname_spec='${libname}${release}${shared_ext}$major'
22531     ;;
22532   esac
22533   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22534   postinstall_cmds='chmod 555 $lib'
22535   ;;
22536
22537 irix5* | irix6* | nonstopux*)
22538   case $host_os in
22539     nonstopux*) version_type=nonstopux ;;
22540     *)
22541         if test "$lt_cv_prog_gnu_ld" = yes; then
22542                 version_type=linux
22543         else
22544                 version_type=irix
22545         fi ;;
22546   esac
22547   need_lib_prefix=no
22548   need_version=no
22549   soname_spec='${libname}${release}${shared_ext}$major'
22550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22551   case $host_os in
22552   irix5* | nonstopux*)
22553     libsuff= shlibsuff=
22554     ;;
22555   *)
22556     case $LD in # libtool.m4 will add one of these switches to LD
22557     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22558       libsuff= shlibsuff= libmagic=32-bit;;
22559     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22560       libsuff=32 shlibsuff=N32 libmagic=N32;;
22561     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22562       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22563     *) libsuff= shlibsuff= libmagic=never-match;;
22564     esac
22565     ;;
22566   esac
22567   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22568   shlibpath_overrides_runpath=no
22569   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22570   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22571   hardcode_into_libs=yes
22572   ;;
22573
22574 # No shared lib support for Linux oldld, aout, or coff.
22575 linux*oldld* | linux*aout* | linux*coff*)
22576   dynamic_linker=no
22577   ;;
22578
22579 # This must be Linux ELF.
22580 linux*)
22581   version_type=linux
22582   need_lib_prefix=no
22583   need_version=no
22584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22585   soname_spec='${libname}${release}${shared_ext}$major'
22586   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22587   shlibpath_var=LD_LIBRARY_PATH
22588   shlibpath_overrides_runpath=no
22589   # This implies no fast_install, which is unacceptable.
22590   # Some rework will be needed to allow for fast_install
22591   # before this can be enabled.
22592   hardcode_into_libs=yes
22593
22594   # Append ld.so.conf contents to the search path
22595   if test -f /etc/ld.so.conf; then
22596     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22597     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22598   fi
22599
22600   # We used to test for /lib/ld.so.1 and disable shared libraries on
22601   # powerpc, because MkLinux only supported shared libraries with the
22602   # GNU dynamic linker.  Since this was broken with cross compilers,
22603   # most powerpc-linux boxes support dynamic linking these days and
22604   # people can always --disable-shared, the test was removed, and we
22605   # assume the GNU/Linux dynamic linker is in use.
22606   dynamic_linker='GNU/Linux ld.so'
22607   ;;
22608
22609 knetbsd*-gnu)
22610   version_type=linux
22611   need_lib_prefix=no
22612   need_version=no
22613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22614   soname_spec='${libname}${release}${shared_ext}$major'
22615   shlibpath_var=LD_LIBRARY_PATH
22616   shlibpath_overrides_runpath=no
22617   hardcode_into_libs=yes
22618   dynamic_linker='GNU ld.so'
22619   ;;
22620
22621 netbsd*)
22622   version_type=sunos
22623   need_lib_prefix=no
22624   need_version=no
22625   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22627     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22628     dynamic_linker='NetBSD (a.out) ld.so'
22629   else
22630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22631     soname_spec='${libname}${release}${shared_ext}$major'
22632     dynamic_linker='NetBSD ld.elf_so'
22633   fi
22634   shlibpath_var=LD_LIBRARY_PATH
22635   shlibpath_overrides_runpath=yes
22636   hardcode_into_libs=yes
22637   ;;
22638
22639 newsos6)
22640   version_type=linux
22641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22642   shlibpath_var=LD_LIBRARY_PATH
22643   shlibpath_overrides_runpath=yes
22644   ;;
22645
22646 nto-qnx*)
22647   version_type=linux
22648   need_lib_prefix=no
22649   need_version=no
22650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651   soname_spec='${libname}${release}${shared_ext}$major'
22652   shlibpath_var=LD_LIBRARY_PATH
22653   shlibpath_overrides_runpath=yes
22654   ;;
22655
22656 openbsd*)
22657   version_type=sunos
22658   need_lib_prefix=no
22659   need_version=no
22660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22661   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22662   shlibpath_var=LD_LIBRARY_PATH
22663   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22664     case $host_os in
22665       openbsd2.[89] | openbsd2.[89].*)
22666         shlibpath_overrides_runpath=no
22667         ;;
22668       *)
22669         shlibpath_overrides_runpath=yes
22670         ;;
22671       esac
22672   else
22673     shlibpath_overrides_runpath=yes
22674   fi
22675   ;;
22676
22677 os2*)
22678   libname_spec='$name'
22679   shrext_cmds=".dll"
22680   need_lib_prefix=no
22681   library_names_spec='$libname${shared_ext} $libname.a'
22682   dynamic_linker='OS/2 ld.exe'
22683   shlibpath_var=LIBPATH
22684   ;;
22685
22686 osf3* | osf4* | osf5*)
22687   version_type=osf
22688   need_lib_prefix=no
22689   need_version=no
22690   soname_spec='${libname}${release}${shared_ext}$major'
22691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22692   shlibpath_var=LD_LIBRARY_PATH
22693   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22694   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22695   ;;
22696
22697 sco3.2v5*)
22698   version_type=osf
22699   soname_spec='${libname}${release}${shared_ext}$major'
22700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22701   shlibpath_var=LD_LIBRARY_PATH
22702   ;;
22703
22704 solaris*)
22705   version_type=linux
22706   need_lib_prefix=no
22707   need_version=no
22708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709   soname_spec='${libname}${release}${shared_ext}$major'
22710   shlibpath_var=LD_LIBRARY_PATH
22711   shlibpath_overrides_runpath=yes
22712   hardcode_into_libs=yes
22713   # ldd complains unless libraries are executable
22714   postinstall_cmds='chmod +x $lib'
22715   ;;
22716
22717 sunos4*)
22718   version_type=sunos
22719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22720   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22721   shlibpath_var=LD_LIBRARY_PATH
22722   shlibpath_overrides_runpath=yes
22723   if test "$with_gnu_ld" = yes; then
22724     need_lib_prefix=no
22725   fi
22726   need_version=yes
22727   ;;
22728
22729 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22730   version_type=linux
22731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22732   soname_spec='${libname}${release}${shared_ext}$major'
22733   shlibpath_var=LD_LIBRARY_PATH
22734   case $host_vendor in
22735     sni)
22736       shlibpath_overrides_runpath=no
22737       need_lib_prefix=no
22738       export_dynamic_flag_spec='${wl}-Blargedynsym'
22739       runpath_var=LD_RUN_PATH
22740       ;;
22741     siemens)
22742       need_lib_prefix=no
22743       ;;
22744     motorola)
22745       need_lib_prefix=no
22746       need_version=no
22747       shlibpath_overrides_runpath=no
22748       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22749       ;;
22750   esac
22751   ;;
22752
22753 sysv4*MP*)
22754   if test -d /usr/nec ;then
22755     version_type=linux
22756     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22757     soname_spec='$libname${shared_ext}.$major'
22758     shlibpath_var=LD_LIBRARY_PATH
22759   fi
22760   ;;
22761
22762 uts4*)
22763   version_type=linux
22764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765   soname_spec='${libname}${release}${shared_ext}$major'
22766   shlibpath_var=LD_LIBRARY_PATH
22767   ;;
22768
22769 *)
22770   dynamic_linker=no
22771   ;;
22772 esac
22773 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22774 echo "${ECHO_T}$dynamic_linker" >&6
22775 test "$dynamic_linker" = no && can_build_shared=no
22776
22777 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22778 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22779 hardcode_action_GCJ=
22780 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22781    test -n "$runpath_var_GCJ" || \
22782    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22783
22784   # We can hardcode non-existant directories.
22785   if test "$hardcode_direct_GCJ" != no &&
22786      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22787      # have to relink, otherwise we might link with an installed library
22788      # when we should be linking with a yet-to-be-installed one
22789      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22790      test "$hardcode_minus_L_GCJ" != no; then
22791     # Linking always hardcodes the temporary library directory.
22792     hardcode_action_GCJ=relink
22793   else
22794     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22795     hardcode_action_GCJ=immediate
22796   fi
22797 else
22798   # We cannot hardcode anything, or else we can only hardcode existing
22799   # directories.
22800   hardcode_action_GCJ=unsupported
22801 fi
22802 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22803 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22804
22805 if test "$hardcode_action_GCJ" = relink; then
22806   # Fast installation is not supported
22807   enable_fast_install=no
22808 elif test "$shlibpath_overrides_runpath" = yes ||
22809      test "$enable_shared" = no; then
22810   # Fast installation is not necessary
22811   enable_fast_install=needless
22812 fi
22813
22814 striplib=
22815 old_striplib=
22816 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22817 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22818 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22819   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22820   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22821   echo "$as_me:$LINENO: result: yes" >&5
22822 echo "${ECHO_T}yes" >&6
22823 else
22824 # FIXME - insert some real tests, host_os isn't really good enough
22825   case $host_os in
22826    darwin*)
22827        if test -n "$STRIP" ; then
22828          striplib="$STRIP -x"
22829          echo "$as_me:$LINENO: result: yes" >&5
22830 echo "${ECHO_T}yes" >&6
22831        else
22832   echo "$as_me:$LINENO: result: no" >&5
22833 echo "${ECHO_T}no" >&6
22834 fi
22835        ;;
22836    *)
22837   echo "$as_me:$LINENO: result: no" >&5
22838 echo "${ECHO_T}no" >&6
22839     ;;
22840   esac
22841 fi
22842
22843 if test "x$enable_dlopen" != xyes; then
22844   enable_dlopen=unknown
22845   enable_dlopen_self=unknown
22846   enable_dlopen_self_static=unknown
22847 else
22848   lt_cv_dlopen=no
22849   lt_cv_dlopen_libs=
22850
22851   case $host_os in
22852   beos*)
22853     lt_cv_dlopen="load_add_on"
22854     lt_cv_dlopen_libs=
22855     lt_cv_dlopen_self=yes
22856     ;;
22857
22858   mingw* | pw32*)
22859     lt_cv_dlopen="LoadLibrary"
22860     lt_cv_dlopen_libs=
22861    ;;
22862
22863   cygwin*)
22864     lt_cv_dlopen="dlopen"
22865     lt_cv_dlopen_libs=
22866    ;;
22867
22868   darwin*)
22869   # if libdl is installed we need to link against it
22870     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22871 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22872 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22873   echo $ECHO_N "(cached) $ECHO_C" >&6
22874 else
22875   ac_check_lib_save_LIBS=$LIBS
22876 LIBS="-ldl  $LIBS"
22877 cat >conftest.$ac_ext <<_ACEOF
22878 /* confdefs.h.  */
22879 _ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h.  */
22883
22884 /* Override any gcc2 internal prototype to avoid an error.  */
22885 #ifdef __cplusplus
22886 extern "C"
22887 #endif
22888 /* We use char because int might match the return type of a gcc2
22889    builtin and then its argument prototype would still apply.  */
22890 char dlopen ();
22891 int
22892 main ()
22893 {
22894 dlopen ();
22895   ;
22896   return 0;
22897 }
22898 _ACEOF
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901   (eval $ac_link) 2>conftest.er1
22902   ac_status=$?
22903   grep -v '^ *+' conftest.er1 >conftest.err
22904   rm -f conftest.er1
22905   cat conftest.err >&5
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); } &&
22908          { ac_try='test -z "$ac_c_werror_flag"
22909                          || test ! -s conftest.err'
22910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911   (eval $ac_try) 2>&5
22912   ac_status=$?
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); }; } &&
22915          { ac_try='test -s conftest$ac_exeext'
22916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917   (eval $ac_try) 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); }; }; then
22921   ac_cv_lib_dl_dlopen=yes
22922 else
22923   echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_cv_lib_dl_dlopen=no
22927 fi
22928 rm -f conftest.err conftest.$ac_objext \
22929       conftest$ac_exeext conftest.$ac_ext
22930 LIBS=$ac_check_lib_save_LIBS
22931 fi
22932 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22933 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22934 if test $ac_cv_lib_dl_dlopen = yes; then
22935   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22936 else
22937
22938     lt_cv_dlopen="dyld"
22939     lt_cv_dlopen_libs=
22940     lt_cv_dlopen_self=yes
22941
22942 fi
22943
22944    ;;
22945
22946   *)
22947     echo "$as_me:$LINENO: checking for shl_load" >&5
22948 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22949 if test "${ac_cv_func_shl_load+set}" = set; then
22950   echo $ECHO_N "(cached) $ECHO_C" >&6
22951 else
22952   cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h.  */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h.  */
22958 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22960 #define shl_load innocuous_shl_load
22961
22962 /* System header to define __stub macros and hopefully few prototypes,
22963     which can conflict with char shl_load (); below.
22964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22965     <limits.h> exists even on freestanding compilers.  */
22966
22967 #ifdef __STDC__
22968 # include <limits.h>
22969 #else
22970 # include <assert.h>
22971 #endif
22972
22973 #undef shl_load
22974
22975 /* Override any gcc2 internal prototype to avoid an error.  */
22976 #ifdef __cplusplus
22977 extern "C"
22978 {
22979 #endif
22980 /* We use char because int might match the return type of a gcc2
22981    builtin and then its argument prototype would still apply.  */
22982 char shl_load ();
22983 /* The GNU C library defines this for functions which it implements
22984     to always fail with ENOSYS.  Some functions are actually named
22985     something starting with __ and the normal name is an alias.  */
22986 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22987 choke me
22988 #else
22989 char (*f) () = shl_load;
22990 #endif
22991 #ifdef __cplusplus
22992 }
22993 #endif
22994
22995 int
22996 main ()
22997 {
22998 return f != shl_load;
22999   ;
23000   return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext conftest$ac_exeext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23005   (eval $ac_link) 2>conftest.er1
23006   ac_status=$?
23007   grep -v '^ *+' conftest.er1 >conftest.err
23008   rm -f conftest.er1
23009   cat conftest.err >&5
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } &&
23012          { ac_try='test -z "$ac_c_werror_flag"
23013                          || test ! -s conftest.err'
23014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015   (eval $ac_try) 2>&5
23016   ac_status=$?
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); }; } &&
23019          { ac_try='test -s conftest$ac_exeext'
23020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021   (eval $ac_try) 2>&5
23022   ac_status=$?
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); }; }; then
23025   ac_cv_func_shl_load=yes
23026 else
23027   echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 ac_cv_func_shl_load=no
23031 fi
23032 rm -f conftest.err conftest.$ac_objext \
23033       conftest$ac_exeext conftest.$ac_ext
23034 fi
23035 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23036 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23037 if test $ac_cv_func_shl_load = yes; then
23038   lt_cv_dlopen="shl_load"
23039 else
23040   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23041 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23042 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23043   echo $ECHO_N "(cached) $ECHO_C" >&6
23044 else
23045   ac_check_lib_save_LIBS=$LIBS
23046 LIBS="-ldld  $LIBS"
23047 cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053
23054 /* Override any gcc2 internal prototype to avoid an error.  */
23055 #ifdef __cplusplus
23056 extern "C"
23057 #endif
23058 /* We use char because int might match the return type of a gcc2
23059    builtin and then its argument prototype would still apply.  */
23060 char shl_load ();
23061 int
23062 main ()
23063 {
23064 shl_load ();
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext conftest$ac_exeext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23071   (eval $ac_link) 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } &&
23078          { ac_try='test -z "$ac_c_werror_flag"
23079                          || test ! -s conftest.err'
23080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081   (eval $ac_try) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; } &&
23085          { ac_try='test -s conftest$ac_exeext'
23086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087   (eval $ac_try) 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; }; then
23091   ac_cv_lib_dld_shl_load=yes
23092 else
23093   echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23095
23096 ac_cv_lib_dld_shl_load=no
23097 fi
23098 rm -f conftest.err conftest.$ac_objext \
23099       conftest$ac_exeext conftest.$ac_ext
23100 LIBS=$ac_check_lib_save_LIBS
23101 fi
23102 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23103 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23104 if test $ac_cv_lib_dld_shl_load = yes; then
23105   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23106 else
23107   echo "$as_me:$LINENO: checking for dlopen" >&5
23108 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23109 if test "${ac_cv_func_dlopen+set}" = set; then
23110   echo $ECHO_N "(cached) $ECHO_C" >&6
23111 else
23112   cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h.  */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h.  */
23118 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23120 #define dlopen innocuous_dlopen
23121
23122 /* System header to define __stub macros and hopefully few prototypes,
23123     which can conflict with char dlopen (); below.
23124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23125     <limits.h> exists even on freestanding compilers.  */
23126
23127 #ifdef __STDC__
23128 # include <limits.h>
23129 #else
23130 # include <assert.h>
23131 #endif
23132
23133 #undef dlopen
23134
23135 /* Override any gcc2 internal prototype to avoid an error.  */
23136 #ifdef __cplusplus
23137 extern "C"
23138 {
23139 #endif
23140 /* We use char because int might match the return type of a gcc2
23141    builtin and then its argument prototype would still apply.  */
23142 char dlopen ();
23143 /* The GNU C library defines this for functions which it implements
23144     to always fail with ENOSYS.  Some functions are actually named
23145     something starting with __ and the normal name is an alias.  */
23146 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23147 choke me
23148 #else
23149 char (*f) () = dlopen;
23150 #endif
23151 #ifdef __cplusplus
23152 }
23153 #endif
23154
23155 int
23156 main ()
23157 {
23158 return f != dlopen;
23159   ;
23160   return 0;
23161 }
23162 _ACEOF
23163 rm -f conftest.$ac_objext conftest$ac_exeext
23164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23165   (eval $ac_link) 2>conftest.er1
23166   ac_status=$?
23167   grep -v '^ *+' conftest.er1 >conftest.err
23168   rm -f conftest.er1
23169   cat conftest.err >&5
23170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171   (exit $ac_status); } &&
23172          { ac_try='test -z "$ac_c_werror_flag"
23173                          || test ! -s conftest.err'
23174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175   (eval $ac_try) 2>&5
23176   ac_status=$?
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); }; } &&
23179          { ac_try='test -s conftest$ac_exeext'
23180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181   (eval $ac_try) 2>&5
23182   ac_status=$?
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); }; }; then
23185   ac_cv_func_dlopen=yes
23186 else
23187   echo "$as_me: failed program was:" >&5
23188 sed 's/^/| /' conftest.$ac_ext >&5
23189
23190 ac_cv_func_dlopen=no
23191 fi
23192 rm -f conftest.err conftest.$ac_objext \
23193       conftest$ac_exeext conftest.$ac_ext
23194 fi
23195 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23196 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23197 if test $ac_cv_func_dlopen = yes; then
23198   lt_cv_dlopen="dlopen"
23199 else
23200   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23201 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23203   echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205   ac_check_lib_save_LIBS=$LIBS
23206 LIBS="-ldl  $LIBS"
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213
23214 /* Override any gcc2 internal prototype to avoid an error.  */
23215 #ifdef __cplusplus
23216 extern "C"
23217 #endif
23218 /* We use char because int might match the return type of a gcc2
23219    builtin and then its argument prototype would still apply.  */
23220 char dlopen ();
23221 int
23222 main ()
23223 {
23224 dlopen ();
23225   ;
23226   return 0;
23227 }
23228 _ACEOF
23229 rm -f conftest.$ac_objext conftest$ac_exeext
23230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23231   (eval $ac_link) 2>conftest.er1
23232   ac_status=$?
23233   grep -v '^ *+' conftest.er1 >conftest.err
23234   rm -f conftest.er1
23235   cat conftest.err >&5
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); } &&
23238          { ac_try='test -z "$ac_c_werror_flag"
23239                          || test ! -s conftest.err'
23240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241   (eval $ac_try) 2>&5
23242   ac_status=$?
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); }; } &&
23245          { ac_try='test -s conftest$ac_exeext'
23246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247   (eval $ac_try) 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); }; }; then
23251   ac_cv_lib_dl_dlopen=yes
23252 else
23253   echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256 ac_cv_lib_dl_dlopen=no
23257 fi
23258 rm -f conftest.err conftest.$ac_objext \
23259       conftest$ac_exeext conftest.$ac_ext
23260 LIBS=$ac_check_lib_save_LIBS
23261 fi
23262 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23263 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23264 if test $ac_cv_lib_dl_dlopen = yes; then
23265   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23266 else
23267   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23268 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23269 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23270   echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272   ac_check_lib_save_LIBS=$LIBS
23273 LIBS="-lsvld  $LIBS"
23274 cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h.  */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h.  */
23280
23281 /* Override any gcc2 internal prototype to avoid an error.  */
23282 #ifdef __cplusplus
23283 extern "C"
23284 #endif
23285 /* We use char because int might match the return type of a gcc2
23286    builtin and then its argument prototype would still apply.  */
23287 char dlopen ();
23288 int
23289 main ()
23290 {
23291 dlopen ();
23292   ;
23293   return 0;
23294 }
23295 _ACEOF
23296 rm -f conftest.$ac_objext conftest$ac_exeext
23297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23298   (eval $ac_link) 2>conftest.er1
23299   ac_status=$?
23300   grep -v '^ *+' conftest.er1 >conftest.err
23301   rm -f conftest.er1
23302   cat conftest.err >&5
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); } &&
23305          { ac_try='test -z "$ac_c_werror_flag"
23306                          || test ! -s conftest.err'
23307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308   (eval $ac_try) 2>&5
23309   ac_status=$?
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); }; } &&
23312          { ac_try='test -s conftest$ac_exeext'
23313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314   (eval $ac_try) 2>&5
23315   ac_status=$?
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); }; }; then
23318   ac_cv_lib_svld_dlopen=yes
23319 else
23320   echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323 ac_cv_lib_svld_dlopen=no
23324 fi
23325 rm -f conftest.err conftest.$ac_objext \
23326       conftest$ac_exeext conftest.$ac_ext
23327 LIBS=$ac_check_lib_save_LIBS
23328 fi
23329 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23330 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23331 if test $ac_cv_lib_svld_dlopen = yes; then
23332   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23333 else
23334   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23335 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23336 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23337   echo $ECHO_N "(cached) $ECHO_C" >&6
23338 else
23339   ac_check_lib_save_LIBS=$LIBS
23340 LIBS="-ldld  $LIBS"
23341 cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h.  */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h.  */
23347
23348 /* Override any gcc2 internal prototype to avoid an error.  */
23349 #ifdef __cplusplus
23350 extern "C"
23351 #endif
23352 /* We use char because int might match the return type of a gcc2
23353    builtin and then its argument prototype would still apply.  */
23354 char dld_link ();
23355 int
23356 main ()
23357 {
23358 dld_link ();
23359   ;
23360   return 0;
23361 }
23362 _ACEOF
23363 rm -f conftest.$ac_objext conftest$ac_exeext
23364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365   (eval $ac_link) 2>conftest.er1
23366   ac_status=$?
23367   grep -v '^ *+' conftest.er1 >conftest.err
23368   rm -f conftest.er1
23369   cat conftest.err >&5
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); } &&
23372          { ac_try='test -z "$ac_c_werror_flag"
23373                          || test ! -s conftest.err'
23374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375   (eval $ac_try) 2>&5
23376   ac_status=$?
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); }; } &&
23379          { ac_try='test -s conftest$ac_exeext'
23380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381   (eval $ac_try) 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; }; then
23385   ac_cv_lib_dld_dld_link=yes
23386 else
23387   echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390 ac_cv_lib_dld_dld_link=no
23391 fi
23392 rm -f conftest.err conftest.$ac_objext \
23393       conftest$ac_exeext conftest.$ac_ext
23394 LIBS=$ac_check_lib_save_LIBS
23395 fi
23396 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23397 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23398 if test $ac_cv_lib_dld_dld_link = yes; then
23399   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23400 fi
23401
23402
23403 fi
23404
23405
23406 fi
23407
23408
23409 fi
23410
23411
23412 fi
23413
23414
23415 fi
23416
23417     ;;
23418   esac
23419
23420   if test "x$lt_cv_dlopen" != xno; then
23421     enable_dlopen=yes
23422   else
23423     enable_dlopen=no
23424   fi
23425
23426   case $lt_cv_dlopen in
23427   dlopen)
23428     save_CPPFLAGS="$CPPFLAGS"
23429     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23430
23431     save_LDFLAGS="$LDFLAGS"
23432     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23433
23434     save_LIBS="$LIBS"
23435     LIBS="$lt_cv_dlopen_libs $LIBS"
23436
23437     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23438 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23439 if test "${lt_cv_dlopen_self+set}" = set; then
23440   echo $ECHO_N "(cached) $ECHO_C" >&6
23441 else
23442           if test "$cross_compiling" = yes; then :
23443   lt_cv_dlopen_self=cross
23444 else
23445   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23446   lt_status=$lt_dlunknown
23447   cat > conftest.$ac_ext <<EOF
23448 #line 23448 "configure"
23449 #include "confdefs.h"
23450
23451 #if HAVE_DLFCN_H
23452 #include <dlfcn.h>
23453 #endif
23454
23455 #include <stdio.h>
23456
23457 #ifdef RTLD_GLOBAL
23458 #  define LT_DLGLOBAL           RTLD_GLOBAL
23459 #else
23460 #  ifdef DL_GLOBAL
23461 #    define LT_DLGLOBAL         DL_GLOBAL
23462 #  else
23463 #    define LT_DLGLOBAL         0
23464 #  endif
23465 #endif
23466
23467 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23468    find out it does not work in some platform. */
23469 #ifndef LT_DLLAZY_OR_NOW
23470 #  ifdef RTLD_LAZY
23471 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23472 #  else
23473 #    ifdef DL_LAZY
23474 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23475 #    else
23476 #      ifdef RTLD_NOW
23477 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23478 #      else
23479 #        ifdef DL_NOW
23480 #          define LT_DLLAZY_OR_NOW      DL_NOW
23481 #        else
23482 #          define LT_DLLAZY_OR_NOW      0
23483 #        endif
23484 #      endif
23485 #    endif
23486 #  endif
23487 #endif
23488
23489 #ifdef __cplusplus
23490 extern "C" void exit (int);
23491 #endif
23492
23493 void fnord() { int i=42;}
23494 int main ()
23495 {
23496   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23497   int status = $lt_dlunknown;
23498
23499   if (self)
23500     {
23501       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23502       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23503       /* dlclose (self); */
23504     }
23505
23506     exit (status);
23507 }
23508 EOF
23509   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510   (eval $ac_link) 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23514     (./conftest; exit; ) 2>/dev/null
23515     lt_status=$?
23516     case x$lt_status in
23517       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23518       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23519       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23520     esac
23521   else :
23522     # compilation failed
23523     lt_cv_dlopen_self=no
23524   fi
23525 fi
23526 rm -fr conftest*
23527
23528
23529 fi
23530 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23531 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23532
23533     if test "x$lt_cv_dlopen_self" = xyes; then
23534       LDFLAGS="$LDFLAGS $link_static_flag"
23535       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23536 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23537 if test "${lt_cv_dlopen_self_static+set}" = set; then
23538   echo $ECHO_N "(cached) $ECHO_C" >&6
23539 else
23540           if test "$cross_compiling" = yes; then :
23541   lt_cv_dlopen_self_static=cross
23542 else
23543   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23544   lt_status=$lt_dlunknown
23545   cat > conftest.$ac_ext <<EOF
23546 #line 23546 "configure"
23547 #include "confdefs.h"
23548
23549 #if HAVE_DLFCN_H
23550 #include <dlfcn.h>
23551 #endif
23552
23553 #include <stdio.h>
23554
23555 #ifdef RTLD_GLOBAL
23556 #  define LT_DLGLOBAL           RTLD_GLOBAL
23557 #else
23558 #  ifdef DL_GLOBAL
23559 #    define LT_DLGLOBAL         DL_GLOBAL
23560 #  else
23561 #    define LT_DLGLOBAL         0
23562 #  endif
23563 #endif
23564
23565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23566    find out it does not work in some platform. */
23567 #ifndef LT_DLLAZY_OR_NOW
23568 #  ifdef RTLD_LAZY
23569 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23570 #  else
23571 #    ifdef DL_LAZY
23572 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23573 #    else
23574 #      ifdef RTLD_NOW
23575 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23576 #      else
23577 #        ifdef DL_NOW
23578 #          define LT_DLLAZY_OR_NOW      DL_NOW
23579 #        else
23580 #          define LT_DLLAZY_OR_NOW      0
23581 #        endif
23582 #      endif
23583 #    endif
23584 #  endif
23585 #endif
23586
23587 #ifdef __cplusplus
23588 extern "C" void exit (int);
23589 #endif
23590
23591 void fnord() { int i=42;}
23592 int main ()
23593 {
23594   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23595   int status = $lt_dlunknown;
23596
23597   if (self)
23598     {
23599       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23600       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23601       /* dlclose (self); */
23602     }
23603
23604     exit (status);
23605 }
23606 EOF
23607   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23608   (eval $ac_link) 2>&5
23609   ac_status=$?
23610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23612     (./conftest; exit; ) 2>/dev/null
23613     lt_status=$?
23614     case x$lt_status in
23615       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23616       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23617       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23618     esac
23619   else :
23620     # compilation failed
23621     lt_cv_dlopen_self_static=no
23622   fi
23623 fi
23624 rm -fr conftest*
23625
23626
23627 fi
23628 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23629 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23630     fi
23631
23632     CPPFLAGS="$save_CPPFLAGS"
23633     LDFLAGS="$save_LDFLAGS"
23634     LIBS="$save_LIBS"
23635     ;;
23636   esac
23637
23638   case $lt_cv_dlopen_self in
23639   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23640   *) enable_dlopen_self=unknown ;;
23641   esac
23642
23643   case $lt_cv_dlopen_self_static in
23644   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23645   *) enable_dlopen_self_static=unknown ;;
23646   esac
23647 fi
23648
23649
23650 # The else clause should only fire when bootstrapping the
23651 # libtool distribution, otherwise you forgot to ship ltmain.sh
23652 # with your package, and you will get complaints that there are
23653 # no rules to generate ltmain.sh.
23654 if test -f "$ltmain"; then
23655   # See if we are running on zsh, and set the options which allow our commands through
23656   # without removal of \ escapes.
23657   if test -n "${ZSH_VERSION+set}" ; then
23658     setopt NO_GLOB_SUBST
23659   fi
23660   # Now quote all the things that may contain metacharacters while being
23661   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23662   # variables and quote the copies for generation of the libtool script.
23663   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23664     SED SHELL STRIP \
23665     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23666     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23667     deplibs_check_method reload_flag reload_cmds need_locks \
23668     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23669     lt_cv_sys_global_symbol_to_c_name_address \
23670     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23671     old_postinstall_cmds old_postuninstall_cmds \
23672     compiler_GCJ \
23673     CC_GCJ \
23674     LD_GCJ \
23675     lt_prog_compiler_wl_GCJ \
23676     lt_prog_compiler_pic_GCJ \
23677     lt_prog_compiler_static_GCJ \
23678     lt_prog_compiler_no_builtin_flag_GCJ \
23679     export_dynamic_flag_spec_GCJ \
23680     thread_safe_flag_spec_GCJ \
23681     whole_archive_flag_spec_GCJ \
23682     enable_shared_with_static_runtimes_GCJ \
23683     old_archive_cmds_GCJ \
23684     old_archive_from_new_cmds_GCJ \
23685     predep_objects_GCJ \
23686     postdep_objects_GCJ \
23687     predeps_GCJ \
23688     postdeps_GCJ \
23689     compiler_lib_search_path_GCJ \
23690     archive_cmds_GCJ \
23691     archive_expsym_cmds_GCJ \
23692     postinstall_cmds_GCJ \
23693     postuninstall_cmds_GCJ \
23694     old_archive_from_expsyms_cmds_GCJ \
23695     allow_undefined_flag_GCJ \
23696     no_undefined_flag_GCJ \
23697     export_symbols_cmds_GCJ \
23698     hardcode_libdir_flag_spec_GCJ \
23699     hardcode_libdir_flag_spec_ld_GCJ \
23700     hardcode_libdir_separator_GCJ \
23701     hardcode_automatic_GCJ \
23702     module_cmds_GCJ \
23703     module_expsym_cmds_GCJ \
23704     lt_cv_prog_compiler_c_o_GCJ \
23705     exclude_expsyms_GCJ \
23706     include_expsyms_GCJ; do
23707
23708     case $var in
23709     old_archive_cmds_GCJ | \
23710     old_archive_from_new_cmds_GCJ | \
23711     archive_cmds_GCJ | \
23712     archive_expsym_cmds_GCJ | \
23713     module_cmds_GCJ | \
23714     module_expsym_cmds_GCJ | \
23715     old_archive_from_expsyms_cmds_GCJ | \
23716     export_symbols_cmds_GCJ | \
23717     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23718     postinstall_cmds | postuninstall_cmds | \
23719     old_postinstall_cmds | old_postuninstall_cmds | \
23720     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23721       # Double-quote double-evaled strings.
23722       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23723       ;;
23724     *)
23725       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23726       ;;
23727     esac
23728   done
23729
23730   case $lt_echo in
23731   *'\$0 --fallback-echo"')
23732     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23733     ;;
23734   esac
23735
23736 cfgfile="$ofile"
23737
23738   cat <<__EOF__ >> "$cfgfile"
23739 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23740
23741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23742
23743 # Shell to use when invoking shell scripts.
23744 SHELL=$lt_SHELL
23745
23746 # Whether or not to build shared libraries.
23747 build_libtool_libs=$enable_shared
23748
23749 # Whether or not to build static libraries.
23750 build_old_libs=$enable_static
23751
23752 # Whether or not to add -lc for building shared libraries.
23753 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23754
23755 # Whether or not to disallow shared libs when runtime libs are static
23756 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23757
23758 # Whether or not to optimize for fast installation.
23759 fast_install=$enable_fast_install
23760
23761 # The host system.
23762 host_alias=$host_alias
23763 host=$host
23764
23765 # An echo program that does not interpret backslashes.
23766 echo=$lt_echo
23767
23768 # The archiver.
23769 AR=$lt_AR
23770 AR_FLAGS=$lt_AR_FLAGS
23771
23772 # A C compiler.
23773 LTCC=$lt_LTCC
23774
23775 # A language-specific compiler.
23776 CC=$lt_compiler_GCJ
23777
23778 # Is the compiler the GNU C compiler?
23779 with_gcc=$GCC_GCJ
23780
23781 # An ERE matcher.
23782 EGREP=$lt_EGREP
23783
23784 # The linker used to build libraries.
23785 LD=$lt_LD_GCJ
23786
23787 # Whether we need hard or soft links.
23788 LN_S=$lt_LN_S
23789
23790 # A BSD-compatible nm program.
23791 NM=$lt_NM
23792
23793 # A symbol stripping program
23794 STRIP=$lt_STRIP
23795
23796 # Used to examine libraries when file_magic_cmd begins "file"
23797 MAGIC_CMD=$MAGIC_CMD
23798
23799 # Used on cygwin: DLL creation program.
23800 DLLTOOL="$DLLTOOL"
23801
23802 # Used on cygwin: object dumper.
23803 OBJDUMP="$OBJDUMP"
23804
23805 # Used on cygwin: assembler.
23806 AS="$AS"
23807
23808 # The name of the directory that contains temporary libtool files.
23809 objdir=$objdir
23810
23811 # How to create reloadable object files.
23812 reload_flag=$lt_reload_flag
23813 reload_cmds=$lt_reload_cmds
23814
23815 # How to pass a linker flag through the compiler.
23816 wl=$lt_lt_prog_compiler_wl_GCJ
23817
23818 # Object file suffix (normally "o").
23819 objext="$ac_objext"
23820
23821 # Old archive suffix (normally "a").
23822 libext="$libext"
23823
23824 # Shared library suffix (normally ".so").
23825 shrext_cmds='$shrext_cmds'
23826
23827 # Executable file suffix (normally "").
23828 exeext="$exeext"
23829
23830 # Additional compiler flags for building library objects.
23831 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23832 pic_mode=$pic_mode
23833
23834 # What is the maximum length of a command?
23835 max_cmd_len=$lt_cv_sys_max_cmd_len
23836
23837 # Does compiler simultaneously support -c and -o options?
23838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23839
23840 # Must we lock files when doing compilation ?
23841 need_locks=$lt_need_locks
23842
23843 # Do we need the lib prefix for modules?
23844 need_lib_prefix=$need_lib_prefix
23845
23846 # Do we need a version for libraries?
23847 need_version=$need_version
23848
23849 # Whether dlopen is supported.
23850 dlopen_support=$enable_dlopen
23851
23852 # Whether dlopen of programs is supported.
23853 dlopen_self=$enable_dlopen_self
23854
23855 # Whether dlopen of statically linked programs is supported.
23856 dlopen_self_static=$enable_dlopen_self_static
23857
23858 # Compiler flag to prevent dynamic linking.
23859 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23860
23861 # Compiler flag to turn off builtin functions.
23862 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23863
23864 # Compiler flag to allow reflexive dlopens.
23865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23866
23867 # Compiler flag to generate shared objects directly from archives.
23868 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23869
23870 # Compiler flag to generate thread-safe objects.
23871 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23872
23873 # Library versioning type.
23874 version_type=$version_type
23875
23876 # Format of library name prefix.
23877 libname_spec=$lt_libname_spec
23878
23879 # List of archive names.  First name is the real one, the rest are links.
23880 # The last name is the one that the linker finds with -lNAME.
23881 library_names_spec=$lt_library_names_spec
23882
23883 # The coded name of the library, if different from the real name.
23884 soname_spec=$lt_soname_spec
23885
23886 # Commands used to build and install an old-style archive.
23887 RANLIB=$lt_RANLIB
23888 old_archive_cmds=$lt_old_archive_cmds_GCJ
23889 old_postinstall_cmds=$lt_old_postinstall_cmds
23890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23891
23892 # Create an old-style archive from a shared archive.
23893 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23894
23895 # Create a temporary old-style archive to link instead of a shared archive.
23896 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23897
23898 # Commands used to build and install a shared archive.
23899 archive_cmds=$lt_archive_cmds_GCJ
23900 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23901 postinstall_cmds=$lt_postinstall_cmds
23902 postuninstall_cmds=$lt_postuninstall_cmds
23903
23904 # Commands used to build a loadable module (assumed same as above if empty)
23905 module_cmds=$lt_module_cmds_GCJ
23906 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23907
23908 # Commands to strip libraries.
23909 old_striplib=$lt_old_striplib
23910 striplib=$lt_striplib
23911
23912 # Dependencies to place before the objects being linked to create a
23913 # shared library.
23914 predep_objects=$lt_predep_objects_GCJ
23915
23916 # Dependencies to place after the objects being linked to create a
23917 # shared library.
23918 postdep_objects=$lt_postdep_objects_GCJ
23919
23920 # Dependencies to place before the objects being linked to create a
23921 # shared library.
23922 predeps=$lt_predeps_GCJ
23923
23924 # Dependencies to place after the objects being linked to create a
23925 # shared library.
23926 postdeps=$lt_postdeps_GCJ
23927
23928 # The library search path used internally by the compiler when linking
23929 # a shared library.
23930 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23931
23932 # Method to check whether dependent libraries are shared objects.
23933 deplibs_check_method=$lt_deplibs_check_method
23934
23935 # Command to use when deplibs_check_method == file_magic.
23936 file_magic_cmd=$lt_file_magic_cmd
23937
23938 # Flag that allows shared libraries with undefined symbols to be built.
23939 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23940
23941 # Flag that forces no undefined symbols.
23942 no_undefined_flag=$lt_no_undefined_flag_GCJ
23943
23944 # Commands used to finish a libtool library installation in a directory.
23945 finish_cmds=$lt_finish_cmds
23946
23947 # Same as above, but a single script fragment to be evaled but not shown.
23948 finish_eval=$lt_finish_eval
23949
23950 # Take the output of nm and produce a listing of raw symbols and C names.
23951 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23952
23953 # Transform the output of nm in a proper C declaration
23954 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23955
23956 # Transform the output of nm in a C name address pair
23957 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23958
23959 # This is the shared library runtime path variable.
23960 runpath_var=$runpath_var
23961
23962 # This is the shared library path variable.
23963 shlibpath_var=$shlibpath_var
23964
23965 # Is shlibpath searched before the hard-coded library search path?
23966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23967
23968 # How to hardcode a shared library path into an executable.
23969 hardcode_action=$hardcode_action_GCJ
23970
23971 # Whether we should hardcode library paths into libraries.
23972 hardcode_into_libs=$hardcode_into_libs
23973
23974 # Flag to hardcode \$libdir into a binary during linking.
23975 # This must work even if \$libdir does not exist.
23976 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23977
23978 # If ld is used when linking, flag to hardcode \$libdir into
23979 # a binary during linking. This must work even if \$libdir does
23980 # not exist.
23981 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23982
23983 # Whether we need a single -rpath flag with a separated argument.
23984 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23985
23986 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23987 # resulting binary.
23988 hardcode_direct=$hardcode_direct_GCJ
23989
23990 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23991 # resulting binary.
23992 hardcode_minus_L=$hardcode_minus_L_GCJ
23993
23994 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23995 # the resulting binary.
23996 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23997
23998 # Set to yes if building a shared library automatically hardcodes DIR into the library
23999 # and all subsequent libraries and executables linked against it.
24000 hardcode_automatic=$hardcode_automatic_GCJ
24001
24002 # Variables whose values should be saved in libtool wrapper scripts and
24003 # restored at relink time.
24004 variables_saved_for_relink="$variables_saved_for_relink"
24005
24006 # Whether libtool must link a program against all its dependency libraries.
24007 link_all_deplibs=$link_all_deplibs_GCJ
24008
24009 # Compile-time system search path for libraries
24010 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24011
24012 # Run-time system search path for libraries
24013 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24014
24015 # Fix the shell variable \$srcfile for the compiler.
24016 fix_srcfile_path="$fix_srcfile_path_GCJ"
24017
24018 # Set to yes if exported symbols are required.
24019 always_export_symbols=$always_export_symbols_GCJ
24020
24021 # The commands to list exported symbols.
24022 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24023
24024 # The commands to extract the exported symbol list from a shared archive.
24025 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24026
24027 # Symbols that should not be listed in the preloaded symbols.
24028 exclude_expsyms=$lt_exclude_expsyms_GCJ
24029
24030 # Symbols that must always be exported.
24031 include_expsyms=$lt_include_expsyms_GCJ
24032
24033 # ### END LIBTOOL TAG CONFIG: $tagname
24034
24035 __EOF__
24036
24037
24038 else
24039   # If there is no Makefile yet, we rely on a make rule to execute
24040   # `config.status --recheck' to rerun these tests and create the
24041   # libtool script then.
24042   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24043   if test -f "$ltmain_in"; then
24044     test -f Makefile && make "$ltmain"
24045   fi
24046 fi
24047
24048
24049 ac_ext=c
24050 ac_cpp='$CPP $CPPFLAGS'
24051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24054
24055 CC="$lt_save_CC"
24056
24057         else
24058           tagname=""
24059         fi
24060         ;;
24061
24062       RC)
24063         ac_ext=c
24064 ac_cpp='$CPP $CPPFLAGS'
24065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24068
24069
24070 # Source file extension for RC test sources.
24071 ac_ext=rc
24072
24073 # Object file extension for compiled RC test sources.
24074 objext=o
24075 objext_RC=$objext
24076
24077 # Code to be used in simple compile tests
24078 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24079
24080 # Code to be used in simple link tests
24081 lt_simple_link_test_code="$lt_simple_compile_test_code"
24082
24083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24084
24085 # If no C compiler was specified, use CC.
24086 LTCC=${LTCC-"$CC"}
24087
24088 # Allow CC to be a program name with arguments.
24089 compiler=$CC
24090
24091
24092 # Allow CC to be a program name with arguments.
24093 lt_save_CC="$CC"
24094 CC=${RC-"windres"}
24095 compiler=$CC
24096 compiler_RC=$CC
24097 lt_cv_prog_compiler_c_o_RC=yes
24098
24099 # The else clause should only fire when bootstrapping the
24100 # libtool distribution, otherwise you forgot to ship ltmain.sh
24101 # with your package, and you will get complaints that there are
24102 # no rules to generate ltmain.sh.
24103 if test -f "$ltmain"; then
24104   # See if we are running on zsh, and set the options which allow our commands through
24105   # without removal of \ escapes.
24106   if test -n "${ZSH_VERSION+set}" ; then
24107     setopt NO_GLOB_SUBST
24108   fi
24109   # Now quote all the things that may contain metacharacters while being
24110   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24111   # variables and quote the copies for generation of the libtool script.
24112   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24113     SED SHELL STRIP \
24114     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24115     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24116     deplibs_check_method reload_flag reload_cmds need_locks \
24117     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24118     lt_cv_sys_global_symbol_to_c_name_address \
24119     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24120     old_postinstall_cmds old_postuninstall_cmds \
24121     compiler_RC \
24122     CC_RC \
24123     LD_RC \
24124     lt_prog_compiler_wl_RC \
24125     lt_prog_compiler_pic_RC \
24126     lt_prog_compiler_static_RC \
24127     lt_prog_compiler_no_builtin_flag_RC \
24128     export_dynamic_flag_spec_RC \
24129     thread_safe_flag_spec_RC \
24130     whole_archive_flag_spec_RC \
24131     enable_shared_with_static_runtimes_RC \
24132     old_archive_cmds_RC \
24133     old_archive_from_new_cmds_RC \
24134     predep_objects_RC \
24135     postdep_objects_RC \
24136     predeps_RC \
24137     postdeps_RC \
24138     compiler_lib_search_path_RC \
24139     archive_cmds_RC \
24140     archive_expsym_cmds_RC \
24141     postinstall_cmds_RC \
24142     postuninstall_cmds_RC \
24143     old_archive_from_expsyms_cmds_RC \
24144     allow_undefined_flag_RC \
24145     no_undefined_flag_RC \
24146     export_symbols_cmds_RC \
24147     hardcode_libdir_flag_spec_RC \
24148     hardcode_libdir_flag_spec_ld_RC \
24149     hardcode_libdir_separator_RC \
24150     hardcode_automatic_RC \
24151     module_cmds_RC \
24152     module_expsym_cmds_RC \
24153     lt_cv_prog_compiler_c_o_RC \
24154     exclude_expsyms_RC \
24155     include_expsyms_RC; do
24156
24157     case $var in
24158     old_archive_cmds_RC | \
24159     old_archive_from_new_cmds_RC | \
24160     archive_cmds_RC | \
24161     archive_expsym_cmds_RC | \
24162     module_cmds_RC | \
24163     module_expsym_cmds_RC | \
24164     old_archive_from_expsyms_cmds_RC | \
24165     export_symbols_cmds_RC | \
24166     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24167     postinstall_cmds | postuninstall_cmds | \
24168     old_postinstall_cmds | old_postuninstall_cmds | \
24169     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24170       # Double-quote double-evaled strings.
24171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24172       ;;
24173     *)
24174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24175       ;;
24176     esac
24177   done
24178
24179   case $lt_echo in
24180   *'\$0 --fallback-echo"')
24181     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24182     ;;
24183   esac
24184
24185 cfgfile="$ofile"
24186
24187   cat <<__EOF__ >> "$cfgfile"
24188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24189
24190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24191
24192 # Shell to use when invoking shell scripts.
24193 SHELL=$lt_SHELL
24194
24195 # Whether or not to build shared libraries.
24196 build_libtool_libs=$enable_shared
24197
24198 # Whether or not to build static libraries.
24199 build_old_libs=$enable_static
24200
24201 # Whether or not to add -lc for building shared libraries.
24202 build_libtool_need_lc=$archive_cmds_need_lc_RC
24203
24204 # Whether or not to disallow shared libs when runtime libs are static
24205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24206
24207 # Whether or not to optimize for fast installation.
24208 fast_install=$enable_fast_install
24209
24210 # The host system.
24211 host_alias=$host_alias
24212 host=$host
24213
24214 # An echo program that does not interpret backslashes.
24215 echo=$lt_echo
24216
24217 # The archiver.
24218 AR=$lt_AR
24219 AR_FLAGS=$lt_AR_FLAGS
24220
24221 # A C compiler.
24222 LTCC=$lt_LTCC
24223
24224 # A language-specific compiler.
24225 CC=$lt_compiler_RC
24226
24227 # Is the compiler the GNU C compiler?
24228 with_gcc=$GCC_RC
24229
24230 # An ERE matcher.
24231 EGREP=$lt_EGREP
24232
24233 # The linker used to build libraries.
24234 LD=$lt_LD_RC
24235
24236 # Whether we need hard or soft links.
24237 LN_S=$lt_LN_S
24238
24239 # A BSD-compatible nm program.
24240 NM=$lt_NM
24241
24242 # A symbol stripping program
24243 STRIP=$lt_STRIP
24244
24245 # Used to examine libraries when file_magic_cmd begins "file"
24246 MAGIC_CMD=$MAGIC_CMD
24247
24248 # Used on cygwin: DLL creation program.
24249 DLLTOOL="$DLLTOOL"
24250
24251 # Used on cygwin: object dumper.
24252 OBJDUMP="$OBJDUMP"
24253
24254 # Used on cygwin: assembler.
24255 AS="$AS"
24256
24257 # The name of the directory that contains temporary libtool files.
24258 objdir=$objdir
24259
24260 # How to create reloadable object files.
24261 reload_flag=$lt_reload_flag
24262 reload_cmds=$lt_reload_cmds
24263
24264 # How to pass a linker flag through the compiler.
24265 wl=$lt_lt_prog_compiler_wl_RC
24266
24267 # Object file suffix (normally "o").
24268 objext="$ac_objext"
24269
24270 # Old archive suffix (normally "a").
24271 libext="$libext"
24272
24273 # Shared library suffix (normally ".so").
24274 shrext_cmds='$shrext_cmds'
24275
24276 # Executable file suffix (normally "").
24277 exeext="$exeext"
24278
24279 # Additional compiler flags for building library objects.
24280 pic_flag=$lt_lt_prog_compiler_pic_RC
24281 pic_mode=$pic_mode
24282
24283 # What is the maximum length of a command?
24284 max_cmd_len=$lt_cv_sys_max_cmd_len
24285
24286 # Does compiler simultaneously support -c and -o options?
24287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24288
24289 # Must we lock files when doing compilation ?
24290 need_locks=$lt_need_locks
24291
24292 # Do we need the lib prefix for modules?
24293 need_lib_prefix=$need_lib_prefix
24294
24295 # Do we need a version for libraries?
24296 need_version=$need_version
24297
24298 # Whether dlopen is supported.
24299 dlopen_support=$enable_dlopen
24300
24301 # Whether dlopen of programs is supported.
24302 dlopen_self=$enable_dlopen_self
24303
24304 # Whether dlopen of statically linked programs is supported.
24305 dlopen_self_static=$enable_dlopen_self_static
24306
24307 # Compiler flag to prevent dynamic linking.
24308 link_static_flag=$lt_lt_prog_compiler_static_RC
24309
24310 # Compiler flag to turn off builtin functions.
24311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24312
24313 # Compiler flag to allow reflexive dlopens.
24314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24315
24316 # Compiler flag to generate shared objects directly from archives.
24317 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24318
24319 # Compiler flag to generate thread-safe objects.
24320 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24321
24322 # Library versioning type.
24323 version_type=$version_type
24324
24325 # Format of library name prefix.
24326 libname_spec=$lt_libname_spec
24327
24328 # List of archive names.  First name is the real one, the rest are links.
24329 # The last name is the one that the linker finds with -lNAME.
24330 library_names_spec=$lt_library_names_spec
24331
24332 # The coded name of the library, if different from the real name.
24333 soname_spec=$lt_soname_spec
24334
24335 # Commands used to build and install an old-style archive.
24336 RANLIB=$lt_RANLIB
24337 old_archive_cmds=$lt_old_archive_cmds_RC
24338 old_postinstall_cmds=$lt_old_postinstall_cmds
24339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24340
24341 # Create an old-style archive from a shared archive.
24342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24343
24344 # Create a temporary old-style archive to link instead of a shared archive.
24345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24346
24347 # Commands used to build and install a shared archive.
24348 archive_cmds=$lt_archive_cmds_RC
24349 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24350 postinstall_cmds=$lt_postinstall_cmds
24351 postuninstall_cmds=$lt_postuninstall_cmds
24352
24353 # Commands used to build a loadable module (assumed same as above if empty)
24354 module_cmds=$lt_module_cmds_RC
24355 module_expsym_cmds=$lt_module_expsym_cmds_RC
24356
24357 # Commands to strip libraries.
24358 old_striplib=$lt_old_striplib
24359 striplib=$lt_striplib
24360
24361 # Dependencies to place before the objects being linked to create a
24362 # shared library.
24363 predep_objects=$lt_predep_objects_RC
24364
24365 # Dependencies to place after the objects being linked to create a
24366 # shared library.
24367 postdep_objects=$lt_postdep_objects_RC
24368
24369 # Dependencies to place before the objects being linked to create a
24370 # shared library.
24371 predeps=$lt_predeps_RC
24372
24373 # Dependencies to place after the objects being linked to create a
24374 # shared library.
24375 postdeps=$lt_postdeps_RC
24376
24377 # The library search path used internally by the compiler when linking
24378 # a shared library.
24379 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24380
24381 # Method to check whether dependent libraries are shared objects.
24382 deplibs_check_method=$lt_deplibs_check_method
24383
24384 # Command to use when deplibs_check_method == file_magic.
24385 file_magic_cmd=$lt_file_magic_cmd
24386
24387 # Flag that allows shared libraries with undefined symbols to be built.
24388 allow_undefined_flag=$lt_allow_undefined_flag_RC
24389
24390 # Flag that forces no undefined symbols.
24391 no_undefined_flag=$lt_no_undefined_flag_RC
24392
24393 # Commands used to finish a libtool library installation in a directory.
24394 finish_cmds=$lt_finish_cmds
24395
24396 # Same as above, but a single script fragment to be evaled but not shown.
24397 finish_eval=$lt_finish_eval
24398
24399 # Take the output of nm and produce a listing of raw symbols and C names.
24400 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24401
24402 # Transform the output of nm in a proper C declaration
24403 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24404
24405 # Transform the output of nm in a C name address pair
24406 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24407
24408 # This is the shared library runtime path variable.
24409 runpath_var=$runpath_var
24410
24411 # This is the shared library path variable.
24412 shlibpath_var=$shlibpath_var
24413
24414 # Is shlibpath searched before the hard-coded library search path?
24415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24416
24417 # How to hardcode a shared library path into an executable.
24418 hardcode_action=$hardcode_action_RC
24419
24420 # Whether we should hardcode library paths into libraries.
24421 hardcode_into_libs=$hardcode_into_libs
24422
24423 # Flag to hardcode \$libdir into a binary during linking.
24424 # This must work even if \$libdir does not exist.
24425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24426
24427 # If ld is used when linking, flag to hardcode \$libdir into
24428 # a binary during linking. This must work even if \$libdir does
24429 # not exist.
24430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24431
24432 # Whether we need a single -rpath flag with a separated argument.
24433 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24434
24435 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24436 # resulting binary.
24437 hardcode_direct=$hardcode_direct_RC
24438
24439 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24440 # resulting binary.
24441 hardcode_minus_L=$hardcode_minus_L_RC
24442
24443 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24444 # the resulting binary.
24445 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24446
24447 # Set to yes if building a shared library automatically hardcodes DIR into the library
24448 # and all subsequent libraries and executables linked against it.
24449 hardcode_automatic=$hardcode_automatic_RC
24450
24451 # Variables whose values should be saved in libtool wrapper scripts and
24452 # restored at relink time.
24453 variables_saved_for_relink="$variables_saved_for_relink"
24454
24455 # Whether libtool must link a program against all its dependency libraries.
24456 link_all_deplibs=$link_all_deplibs_RC
24457
24458 # Compile-time system search path for libraries
24459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24460
24461 # Run-time system search path for libraries
24462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24463
24464 # Fix the shell variable \$srcfile for the compiler.
24465 fix_srcfile_path="$fix_srcfile_path_RC"
24466
24467 # Set to yes if exported symbols are required.
24468 always_export_symbols=$always_export_symbols_RC
24469
24470 # The commands to list exported symbols.
24471 export_symbols_cmds=$lt_export_symbols_cmds_RC
24472
24473 # The commands to extract the exported symbol list from a shared archive.
24474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24475
24476 # Symbols that should not be listed in the preloaded symbols.
24477 exclude_expsyms=$lt_exclude_expsyms_RC
24478
24479 # Symbols that must always be exported.
24480 include_expsyms=$lt_include_expsyms_RC
24481
24482 # ### END LIBTOOL TAG CONFIG: $tagname
24483
24484 __EOF__
24485
24486
24487 else
24488   # If there is no Makefile yet, we rely on a make rule to execute
24489   # `config.status --recheck' to rerun these tests and create the
24490   # libtool script then.
24491   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24492   if test -f "$ltmain_in"; then
24493     test -f Makefile && make "$ltmain"
24494   fi
24495 fi
24496
24497
24498 ac_ext=c
24499 ac_cpp='$CPP $CPPFLAGS'
24500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24503
24504 CC="$lt_save_CC"
24505
24506         ;;
24507
24508       *)
24509         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24510 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24511    { (exit 1); exit 1; }; }
24512         ;;
24513       esac
24514
24515       # Append the new tag name to the list of available tags.
24516       if test -n "$tagname" ; then
24517       available_tags="$available_tags $tagname"
24518     fi
24519     fi
24520   done
24521   IFS="$lt_save_ifs"
24522
24523   # Now substitute the updated list of available tags.
24524   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24525     mv "${ofile}T" "$ofile"
24526     chmod +x "$ofile"
24527   else
24528     rm -f "${ofile}T"
24529     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24530 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24531    { (exit 1); exit 1; }; }
24532   fi
24533 fi
24534
24535
24536
24537 # This can be used to rebuild libtool when needed
24538 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24539
24540 # Always use our own libtool.
24541 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24542
24543 # Prevent multiple expansion
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565 etags_version=`$ETAGS --version 2>&1`
24566 case "$etags_version" in
24567         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24568         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24569         *) ETAGSFLAGS="" ;;
24570 esac
24571 ETAGSFLAGS=$ETAGSFLAGS
24572
24573
24574 echo "$as_me:$LINENO: checking tool compatibility" >&5
24575 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24576
24577 if test "$GCC" != "yes"
24578 then
24579   { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
24580 echo "$as_me: error: gcc required but not found" >&2;}
24581    { (exit 1); exit 1; }; }
24582 fi
24583 if test "$GXX" != "yes"
24584 then
24585   { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
24586 echo "$as_me: error: g++ required but not found" >&2;}
24587    { (exit 1); exit 1; }; }
24588 fi
24589
24590 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24591 if test "$gccmajor" -lt "3"
24592 then
24593   { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24594 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24595    { (exit 1); exit 1; }; }
24596 fi
24597
24598 if test -z "$llvm_cv_gnu_make_command"
24599 then
24600   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24601 echo "$as_me: error: GNU Make required but not found" >&2;}
24602    { (exit 1); exit 1; }; }
24603 fi
24604
24605 echo "$as_me:$LINENO: result: ok" >&5
24606 echo "${ECHO_T}ok" >&6
24607
24608 if test "$PYTHON" = "false" ; then
24609   { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
24610 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
24611 fi
24612 if test "$QMTEST" = "false" ; then
24613   { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
24614 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
24615 fi
24616 if test "$RUNTEST" = "false" ; then
24617   { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
24618 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
24619 fi
24620 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
24621 pymajor=`echo $pyversion | cut -d. -f1`
24622 pyminor=`echo $pyversion | cut -d. -f2`
24623 if test "$pymajor" -ge "2" ; then
24624   if test "$pymajor" -eq "2" ; then
24625     if test "$pyminor" -lt "2" ; then
24626       { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24627 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24628     fi
24629   fi
24630 else
24631   { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24632 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24633 fi
24634
24635 echo "$as_me:$LINENO: result: " >&5
24636 echo "${ECHO_T}" >&6
24637
24638
24639
24640 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24641 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24642 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24643   echo $ECHO_N "(cached) $ECHO_C" >&6
24644 else
24645   ac_check_lib_save_LIBS=$LIBS
24646 LIBS="-lelf  $LIBS"
24647 cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h.  */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h.  */
24653
24654 /* Override any gcc2 internal prototype to avoid an error.  */
24655 #ifdef __cplusplus
24656 extern "C"
24657 #endif
24658 /* We use char because int might match the return type of a gcc2
24659    builtin and then its argument prototype would still apply.  */
24660 char elf_begin ();
24661 int
24662 main ()
24663 {
24664 elf_begin ();
24665   ;
24666   return 0;
24667 }
24668 _ACEOF
24669 rm -f conftest.$ac_objext conftest$ac_exeext
24670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24671   (eval $ac_link) 2>conftest.er1
24672   ac_status=$?
24673   grep -v '^ *+' conftest.er1 >conftest.err
24674   rm -f conftest.er1
24675   cat conftest.err >&5
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); } &&
24678          { ac_try='test -z "$ac_c_werror_flag"
24679                          || test ! -s conftest.err'
24680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681   (eval $ac_try) 2>&5
24682   ac_status=$?
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); }; } &&
24685          { ac_try='test -s conftest$ac_exeext'
24686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687   (eval $ac_try) 2>&5
24688   ac_status=$?
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); }; }; then
24691   ac_cv_lib_elf_elf_begin=yes
24692 else
24693   echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 ac_cv_lib_elf_elf_begin=no
24697 fi
24698 rm -f conftest.err conftest.$ac_objext \
24699       conftest$ac_exeext conftest.$ac_ext
24700 LIBS=$ac_check_lib_save_LIBS
24701 fi
24702 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24703 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24704 if test $ac_cv_lib_elf_elf_begin = yes; then
24705   cat >>confdefs.h <<_ACEOF
24706 #define HAVE_LIBELF 1
24707 _ACEOF
24708
24709   LIBS="-lelf $LIBS"
24710
24711 fi
24712
24713
24714 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24715 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24716 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24717   echo $ECHO_N "(cached) $ECHO_C" >&6
24718 else
24719   ac_func_search_save_LIBS=$LIBS
24720 ac_cv_search_lt_dlopen=no
24721 cat >conftest.$ac_ext <<_ACEOF
24722 /* confdefs.h.  */
24723 _ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h.  */
24727
24728 /* Override any gcc2 internal prototype to avoid an error.  */
24729 #ifdef __cplusplus
24730 extern "C"
24731 #endif
24732 /* We use char because int might match the return type of a gcc2
24733    builtin and then its argument prototype would still apply.  */
24734 char lt_dlopen ();
24735 int
24736 main ()
24737 {
24738 lt_dlopen ();
24739   ;
24740   return 0;
24741 }
24742 _ACEOF
24743 rm -f conftest.$ac_objext conftest$ac_exeext
24744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24745   (eval $ac_link) 2>conftest.er1
24746   ac_status=$?
24747   grep -v '^ *+' conftest.er1 >conftest.err
24748   rm -f conftest.er1
24749   cat conftest.err >&5
24750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751   (exit $ac_status); } &&
24752          { ac_try='test -z "$ac_c_werror_flag"
24753                          || test ! -s conftest.err'
24754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755   (eval $ac_try) 2>&5
24756   ac_status=$?
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); }; } &&
24759          { ac_try='test -s conftest$ac_exeext'
24760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761   (eval $ac_try) 2>&5
24762   ac_status=$?
24763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); }; }; then
24765   ac_cv_search_lt_dlopen="none required"
24766 else
24767   echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24769
24770 fi
24771 rm -f conftest.err conftest.$ac_objext \
24772       conftest$ac_exeext conftest.$ac_ext
24773 if test "$ac_cv_search_lt_dlopen" = no; then
24774   for ac_lib in ltdl; do
24775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24776     cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h.  */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h.  */
24782
24783 /* Override any gcc2 internal prototype to avoid an error.  */
24784 #ifdef __cplusplus
24785 extern "C"
24786 #endif
24787 /* We use char because int might match the return type of a gcc2
24788    builtin and then its argument prototype would still apply.  */
24789 char lt_dlopen ();
24790 int
24791 main ()
24792 {
24793 lt_dlopen ();
24794   ;
24795   return 0;
24796 }
24797 _ACEOF
24798 rm -f conftest.$ac_objext conftest$ac_exeext
24799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24800   (eval $ac_link) 2>conftest.er1
24801   ac_status=$?
24802   grep -v '^ *+' conftest.er1 >conftest.err
24803   rm -f conftest.er1
24804   cat conftest.err >&5
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); } &&
24807          { ac_try='test -z "$ac_c_werror_flag"
24808                          || test ! -s conftest.err'
24809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810   (eval $ac_try) 2>&5
24811   ac_status=$?
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); }; } &&
24814          { ac_try='test -s conftest$ac_exeext'
24815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816   (eval $ac_try) 2>&5
24817   ac_status=$?
24818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); }; }; then
24820   ac_cv_search_lt_dlopen="-l$ac_lib"
24821 break
24822 else
24823   echo "$as_me: failed program was:" >&5
24824 sed 's/^/| /' conftest.$ac_ext >&5
24825
24826 fi
24827 rm -f conftest.err conftest.$ac_objext \
24828       conftest$ac_exeext conftest.$ac_ext
24829   done
24830 fi
24831 LIBS=$ac_func_search_save_LIBS
24832 fi
24833 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24834 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24835 if test "$ac_cv_search_lt_dlopen" != no; then
24836   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24837
24838 cat >>confdefs.h <<\_ACEOF
24839 #define HAVE_LT_DLOPEN 1
24840 _ACEOF
24841
24842 else
24843   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24844                            not be available" >&5
24845 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24846                            not be available" >&2;}
24847 fi
24848
24849
24850 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24851 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24852 if test "${ac_cv_search_dlopen+set}" = set; then
24853   echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855   ac_func_search_save_LIBS=$LIBS
24856 ac_cv_search_dlopen=no
24857 cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h.  */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h.  */
24863
24864 /* Override any gcc2 internal prototype to avoid an error.  */
24865 #ifdef __cplusplus
24866 extern "C"
24867 #endif
24868 /* We use char because int might match the return type of a gcc2
24869    builtin and then its argument prototype would still apply.  */
24870 char dlopen ();
24871 int
24872 main ()
24873 {
24874 dlopen ();
24875   ;
24876   return 0;
24877 }
24878 _ACEOF
24879 rm -f conftest.$ac_objext conftest$ac_exeext
24880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24881   (eval $ac_link) 2>conftest.er1
24882   ac_status=$?
24883   grep -v '^ *+' conftest.er1 >conftest.err
24884   rm -f conftest.er1
24885   cat conftest.err >&5
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); } &&
24888          { ac_try='test -z "$ac_c_werror_flag"
24889                          || test ! -s conftest.err'
24890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891   (eval $ac_try) 2>&5
24892   ac_status=$?
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); }; } &&
24895          { ac_try='test -s conftest$ac_exeext'
24896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24897   (eval $ac_try) 2>&5
24898   ac_status=$?
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); }; }; then
24901   ac_cv_search_dlopen="none required"
24902 else
24903   echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24905
24906 fi
24907 rm -f conftest.err conftest.$ac_objext \
24908       conftest$ac_exeext conftest.$ac_ext
24909 if test "$ac_cv_search_dlopen" = no; then
24910   for ac_lib in dl; do
24911     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24912     cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918
24919 /* Override any gcc2 internal prototype to avoid an error.  */
24920 #ifdef __cplusplus
24921 extern "C"
24922 #endif
24923 /* We use char because int might match the return type of a gcc2
24924    builtin and then its argument prototype would still apply.  */
24925 char dlopen ();
24926 int
24927 main ()
24928 {
24929 dlopen ();
24930   ;
24931   return 0;
24932 }
24933 _ACEOF
24934 rm -f conftest.$ac_objext conftest$ac_exeext
24935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24936   (eval $ac_link) 2>conftest.er1
24937   ac_status=$?
24938   grep -v '^ *+' conftest.er1 >conftest.err
24939   rm -f conftest.er1
24940   cat conftest.err >&5
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); } &&
24943          { ac_try='test -z "$ac_c_werror_flag"
24944                          || test ! -s conftest.err'
24945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946   (eval $ac_try) 2>&5
24947   ac_status=$?
24948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949   (exit $ac_status); }; } &&
24950          { ac_try='test -s conftest$ac_exeext'
24951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952   (eval $ac_try) 2>&5
24953   ac_status=$?
24954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955   (exit $ac_status); }; }; then
24956   ac_cv_search_dlopen="-l$ac_lib"
24957 break
24958 else
24959   echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24961
24962 fi
24963 rm -f conftest.err conftest.$ac_objext \
24964       conftest$ac_exeext conftest.$ac_ext
24965   done
24966 fi
24967 LIBS=$ac_func_search_save_LIBS
24968 fi
24969 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24970 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24971 if test "$ac_cv_search_dlopen" != no; then
24972   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24973
24974 cat >>confdefs.h <<\_ACEOF
24975 #define HAVE_DLOPEN 1
24976 _ACEOF
24977
24978 else
24979   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24980 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24981 fi
24982
24983
24984 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24985 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24986 if test "${ac_cv_search_mallinfo+set}" = set; then
24987   echo $ECHO_N "(cached) $ECHO_C" >&6
24988 else
24989   ac_func_search_save_LIBS=$LIBS
24990 ac_cv_search_mallinfo=no
24991 cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h.  */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h.  */
24997
24998 /* Override any gcc2 internal prototype to avoid an error.  */
24999 #ifdef __cplusplus
25000 extern "C"
25001 #endif
25002 /* We use char because int might match the return type of a gcc2
25003    builtin and then its argument prototype would still apply.  */
25004 char mallinfo ();
25005 int
25006 main ()
25007 {
25008 mallinfo ();
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25015   (eval $ac_link) 2>conftest.er1
25016   ac_status=$?
25017   grep -v '^ *+' conftest.er1 >conftest.err
25018   rm -f conftest.er1
25019   cat conftest.err >&5
25020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021   (exit $ac_status); } &&
25022          { ac_try='test -z "$ac_c_werror_flag"
25023                          || test ! -s conftest.err'
25024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025   (eval $ac_try) 2>&5
25026   ac_status=$?
25027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028   (exit $ac_status); }; } &&
25029          { ac_try='test -s conftest$ac_exeext'
25030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031   (eval $ac_try) 2>&5
25032   ac_status=$?
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); }; }; then
25035   ac_cv_search_mallinfo="none required"
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040 fi
25041 rm -f conftest.err conftest.$ac_objext \
25042       conftest$ac_exeext conftest.$ac_ext
25043 if test "$ac_cv_search_mallinfo" = no; then
25044   for ac_lib in malloc; do
25045     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25046     cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h.  */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h.  */
25052
25053 /* Override any gcc2 internal prototype to avoid an error.  */
25054 #ifdef __cplusplus
25055 extern "C"
25056 #endif
25057 /* We use char because int might match the return type of a gcc2
25058    builtin and then its argument prototype would still apply.  */
25059 char mallinfo ();
25060 int
25061 main ()
25062 {
25063 mallinfo ();
25064   ;
25065   return 0;
25066 }
25067 _ACEOF
25068 rm -f conftest.$ac_objext conftest$ac_exeext
25069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25070   (eval $ac_link) 2>conftest.er1
25071   ac_status=$?
25072   grep -v '^ *+' conftest.er1 >conftest.err
25073   rm -f conftest.er1
25074   cat conftest.err >&5
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } &&
25077          { ac_try='test -z "$ac_c_werror_flag"
25078                          || test ! -s conftest.err'
25079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25080   (eval $ac_try) 2>&5
25081   ac_status=$?
25082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); }; } &&
25084          { ac_try='test -s conftest$ac_exeext'
25085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086   (eval $ac_try) 2>&5
25087   ac_status=$?
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); }; }; then
25090   ac_cv_search_mallinfo="-l$ac_lib"
25091 break
25092 else
25093   echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25095
25096 fi
25097 rm -f conftest.err conftest.$ac_objext \
25098       conftest$ac_exeext conftest.$ac_ext
25099   done
25100 fi
25101 LIBS=$ac_func_search_save_LIBS
25102 fi
25103 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25104 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25105 if test "$ac_cv_search_mallinfo" != no; then
25106   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25107
25108 cat >>confdefs.h <<\_ACEOF
25109 #define HAVE_MALLINFO 1
25110 _ACEOF
25111
25112 fi
25113
25114
25115 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25116 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25117 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25118   echo $ECHO_N "(cached) $ECHO_C" >&6
25119 else
25120   ac_func_search_save_LIBS=$LIBS
25121 ac_cv_search_pthread_mutex_lock=no
25122 cat >conftest.$ac_ext <<_ACEOF
25123 /* confdefs.h.  */
25124 _ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h.  */
25128
25129 /* Override any gcc2 internal prototype to avoid an error.  */
25130 #ifdef __cplusplus
25131 extern "C"
25132 #endif
25133 /* We use char because int might match the return type of a gcc2
25134    builtin and then its argument prototype would still apply.  */
25135 char pthread_mutex_lock ();
25136 int
25137 main ()
25138 {
25139 pthread_mutex_lock ();
25140   ;
25141   return 0;
25142 }
25143 _ACEOF
25144 rm -f conftest.$ac_objext conftest$ac_exeext
25145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25146   (eval $ac_link) 2>conftest.er1
25147   ac_status=$?
25148   grep -v '^ *+' conftest.er1 >conftest.err
25149   rm -f conftest.er1
25150   cat conftest.err >&5
25151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152   (exit $ac_status); } &&
25153          { ac_try='test -z "$ac_c_werror_flag"
25154                          || test ! -s conftest.err'
25155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25156   (eval $ac_try) 2>&5
25157   ac_status=$?
25158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159   (exit $ac_status); }; } &&
25160          { ac_try='test -s conftest$ac_exeext'
25161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25162   (eval $ac_try) 2>&5
25163   ac_status=$?
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); }; }; then
25166   ac_cv_search_pthread_mutex_lock="none required"
25167 else
25168   echo "$as_me: failed program was:" >&5
25169 sed 's/^/| /' conftest.$ac_ext >&5
25170
25171 fi
25172 rm -f conftest.err conftest.$ac_objext \
25173       conftest$ac_exeext conftest.$ac_ext
25174 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25175   for ac_lib in pthread; do
25176     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25177     cat >conftest.$ac_ext <<_ACEOF
25178 /* confdefs.h.  */
25179 _ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h.  */
25183
25184 /* Override any gcc2 internal prototype to avoid an error.  */
25185 #ifdef __cplusplus
25186 extern "C"
25187 #endif
25188 /* We use char because int might match the return type of a gcc2
25189    builtin and then its argument prototype would still apply.  */
25190 char pthread_mutex_lock ();
25191 int
25192 main ()
25193 {
25194 pthread_mutex_lock ();
25195   ;
25196   return 0;
25197 }
25198 _ACEOF
25199 rm -f conftest.$ac_objext conftest$ac_exeext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25201   (eval $ac_link) 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } &&
25208          { ac_try='test -z "$ac_c_werror_flag"
25209                          || test ! -s conftest.err'
25210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211   (eval $ac_try) 2>&5
25212   ac_status=$?
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); }; } &&
25215          { ac_try='test -s conftest$ac_exeext'
25216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217   (eval $ac_try) 2>&5
25218   ac_status=$?
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); }; }; then
25221   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25222 break
25223 else
25224   echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25226
25227 fi
25228 rm -f conftest.err conftest.$ac_objext \
25229       conftest$ac_exeext conftest.$ac_ext
25230   done
25231 fi
25232 LIBS=$ac_func_search_save_LIBS
25233 fi
25234 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25235 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25236 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25237   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25238
25239 cat >>confdefs.h <<\_ACEOF
25240 #define HAVE_PTHREAD_MUTEX_LOCK 1
25241 _ACEOF
25242
25243 fi
25244
25245
25246
25247 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25248 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25249 if test "${ac_cv_header_stdc+set}" = set; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252   cat >conftest.$ac_ext <<_ACEOF
25253 /* confdefs.h.  */
25254 _ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h.  */
25258 #include <stdlib.h>
25259 #include <stdarg.h>
25260 #include <string.h>
25261 #include <float.h>
25262
25263 int
25264 main ()
25265 {
25266
25267   ;
25268   return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25273   (eval $ac_compile) 2>conftest.er1
25274   ac_status=$?
25275   grep -v '^ *+' conftest.er1 >conftest.err
25276   rm -f conftest.er1
25277   cat conftest.err >&5
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); } &&
25280          { ac_try='test -z "$ac_c_werror_flag"
25281                          || test ! -s conftest.err'
25282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283   (eval $ac_try) 2>&5
25284   ac_status=$?
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); }; } &&
25287          { ac_try='test -s conftest.$ac_objext'
25288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289   (eval $ac_try) 2>&5
25290   ac_status=$?
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); }; }; then
25293   ac_cv_header_stdc=yes
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298 ac_cv_header_stdc=no
25299 fi
25300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25301
25302 if test $ac_cv_header_stdc = yes; then
25303   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25304   cat >conftest.$ac_ext <<_ACEOF
25305 /* confdefs.h.  */
25306 _ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h.  */
25310 #include <string.h>
25311
25312 _ACEOF
25313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25314   $EGREP "memchr" >/dev/null 2>&1; then
25315   :
25316 else
25317   ac_cv_header_stdc=no
25318 fi
25319 rm -f conftest*
25320
25321 fi
25322
25323 if test $ac_cv_header_stdc = yes; then
25324   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25325   cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h.  */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h.  */
25331 #include <stdlib.h>
25332
25333 _ACEOF
25334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25335   $EGREP "free" >/dev/null 2>&1; then
25336   :
25337 else
25338   ac_cv_header_stdc=no
25339 fi
25340 rm -f conftest*
25341
25342 fi
25343
25344 if test $ac_cv_header_stdc = yes; then
25345   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25346   if test "$cross_compiling" = yes; then
25347   :
25348 else
25349   cat >conftest.$ac_ext <<_ACEOF
25350 /* confdefs.h.  */
25351 _ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h.  */
25355 #include <ctype.h>
25356 #if ((' ' & 0x0FF) == 0x020)
25357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25359 #else
25360 # define ISLOWER(c) \
25361                    (('a' <= (c) && (c) <= 'i') \
25362                      || ('j' <= (c) && (c) <= 'r') \
25363                      || ('s' <= (c) && (c) <= 'z'))
25364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25365 #endif
25366
25367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25368 int
25369 main ()
25370 {
25371   int i;
25372   for (i = 0; i < 256; i++)
25373     if (XOR (islower (i), ISLOWER (i))
25374         || toupper (i) != TOUPPER (i))
25375       exit(2);
25376   exit (0);
25377 }
25378 _ACEOF
25379 rm -f conftest$ac_exeext
25380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25381   (eval $ac_link) 2>&5
25382   ac_status=$?
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386   (eval $ac_try) 2>&5
25387   ac_status=$?
25388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389   (exit $ac_status); }; }; then
25390   :
25391 else
25392   echo "$as_me: program exited with status $ac_status" >&5
25393 echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25395
25396 ( exit $ac_status )
25397 ac_cv_header_stdc=no
25398 fi
25399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25400 fi
25401 fi
25402 fi
25403 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25404 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25405 if test $ac_cv_header_stdc = yes; then
25406
25407 cat >>confdefs.h <<\_ACEOF
25408 #define STDC_HEADERS 1
25409 _ACEOF
25410
25411 fi
25412
25413
25414 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25415 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25416 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25417   echo $ECHO_N "(cached) $ECHO_C" >&6
25418 else
25419   cat >conftest.$ac_ext <<_ACEOF
25420 /* confdefs.h.  */
25421 _ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h.  */
25425 #include <sys/types.h>
25426 #include <sys/wait.h>
25427 #ifndef WEXITSTATUS
25428 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25429 #endif
25430 #ifndef WIFEXITED
25431 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25432 #endif
25433
25434 int
25435 main ()
25436 {
25437   int s;
25438   wait (&s);
25439   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25440   ;
25441   return 0;
25442 }
25443 _ACEOF
25444 rm -f conftest.$ac_objext
25445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25446   (eval $ac_compile) 2>conftest.er1
25447   ac_status=$?
25448   grep -v '^ *+' conftest.er1 >conftest.err
25449   rm -f conftest.er1
25450   cat conftest.err >&5
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); } &&
25453          { ac_try='test -z "$ac_c_werror_flag"
25454                          || test ! -s conftest.err'
25455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456   (eval $ac_try) 2>&5
25457   ac_status=$?
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); }; } &&
25460          { ac_try='test -s conftest.$ac_objext'
25461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25462   (eval $ac_try) 2>&5
25463   ac_status=$?
25464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465   (exit $ac_status); }; }; then
25466   ac_cv_header_sys_wait_h=yes
25467 else
25468   echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25470
25471 ac_cv_header_sys_wait_h=no
25472 fi
25473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25474 fi
25475 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25476 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25477 if test $ac_cv_header_sys_wait_h = yes; then
25478
25479 cat >>confdefs.h <<\_ACEOF
25480 #define HAVE_SYS_WAIT_H 1
25481 _ACEOF
25482
25483 fi
25484
25485
25486
25487
25488
25489
25490 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25491 do
25492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25494   echo "$as_me:$LINENO: checking for $ac_header" >&5
25495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25497   echo $ECHO_N "(cached) $ECHO_C" >&6
25498 fi
25499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25501 else
25502   # Is the header compilable?
25503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h.  */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h.  */
25511 $ac_includes_default
25512 #include <$ac_header>
25513 _ACEOF
25514 rm -f conftest.$ac_objext
25515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516   (eval $ac_compile) 2>conftest.er1
25517   ac_status=$?
25518   grep -v '^ *+' conftest.er1 >conftest.err
25519   rm -f conftest.er1
25520   cat conftest.err >&5
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); } &&
25523          { ac_try='test -z "$ac_c_werror_flag"
25524                          || test ! -s conftest.err'
25525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526   (eval $ac_try) 2>&5
25527   ac_status=$?
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); }; } &&
25530          { ac_try='test -s conftest.$ac_objext'
25531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532   (eval $ac_try) 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; }; then
25536   ac_header_compiler=yes
25537 else
25538   echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25540
25541 ac_header_compiler=no
25542 fi
25543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25545 echo "${ECHO_T}$ac_header_compiler" >&6
25546
25547 # Is the header present?
25548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25550 cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h.  */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h.  */
25556 #include <$ac_header>
25557 _ACEOF
25558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25560   ac_status=$?
25561   grep -v '^ *+' conftest.er1 >conftest.err
25562   rm -f conftest.er1
25563   cat conftest.err >&5
25564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565   (exit $ac_status); } >/dev/null; then
25566   if test -s conftest.err; then
25567     ac_cpp_err=$ac_c_preproc_warn_flag
25568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25569   else
25570     ac_cpp_err=
25571   fi
25572 else
25573   ac_cpp_err=yes
25574 fi
25575 if test -z "$ac_cpp_err"; then
25576   ac_header_preproc=yes
25577 else
25578   echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25580
25581   ac_header_preproc=no
25582 fi
25583 rm -f conftest.err conftest.$ac_ext
25584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25585 echo "${ECHO_T}$ac_header_preproc" >&6
25586
25587 # So?  What about this header?
25588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25589   yes:no: )
25590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25594     ac_header_preproc=yes
25595     ;;
25596   no:yes:* )
25597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25609     (
25610       cat <<\_ASBOX
25611 ## ----------------------------------- ##
25612 ## Report this to llvmbugs@cs.uiuc.edu ##
25613 ## ----------------------------------- ##
25614 _ASBOX
25615     ) |
25616       sed "s/^/$as_me: WARNING:     /" >&2
25617     ;;
25618 esac
25619 echo "$as_me:$LINENO: checking for $ac_header" >&5
25620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25622   echo $ECHO_N "(cached) $ECHO_C" >&6
25623 else
25624   eval "$as_ac_Header=\$ac_header_preproc"
25625 fi
25626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25628
25629 fi
25630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25631   cat >>confdefs.h <<_ACEOF
25632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25633 _ACEOF
25634
25635 fi
25636
25637 done
25638
25639
25640
25641
25642
25643
25644 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25645 do
25646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25648   echo "$as_me:$LINENO: checking for $ac_header" >&5
25649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25651   echo $ECHO_N "(cached) $ECHO_C" >&6
25652 fi
25653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25655 else
25656   # Is the header compilable?
25657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25659 cat >conftest.$ac_ext <<_ACEOF
25660 /* confdefs.h.  */
25661 _ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h.  */
25665 $ac_includes_default
25666 #include <$ac_header>
25667 _ACEOF
25668 rm -f conftest.$ac_objext
25669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25670   (eval $ac_compile) 2>conftest.er1
25671   ac_status=$?
25672   grep -v '^ *+' conftest.er1 >conftest.err
25673   rm -f conftest.er1
25674   cat conftest.err >&5
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); } &&
25677          { ac_try='test -z "$ac_c_werror_flag"
25678                          || test ! -s conftest.err'
25679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680   (eval $ac_try) 2>&5
25681   ac_status=$?
25682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); }; } &&
25684          { ac_try='test -s conftest.$ac_objext'
25685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686   (eval $ac_try) 2>&5
25687   ac_status=$?
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; }; then
25690   ac_header_compiler=yes
25691 else
25692   echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25694
25695 ac_header_compiler=no
25696 fi
25697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25699 echo "${ECHO_T}$ac_header_compiler" >&6
25700
25701 # Is the header present?
25702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25704 cat >conftest.$ac_ext <<_ACEOF
25705 /* confdefs.h.  */
25706 _ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h.  */
25710 #include <$ac_header>
25711 _ACEOF
25712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25714   ac_status=$?
25715   grep -v '^ *+' conftest.er1 >conftest.err
25716   rm -f conftest.er1
25717   cat conftest.err >&5
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); } >/dev/null; then
25720   if test -s conftest.err; then
25721     ac_cpp_err=$ac_c_preproc_warn_flag
25722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25723   else
25724     ac_cpp_err=
25725   fi
25726 else
25727   ac_cpp_err=yes
25728 fi
25729 if test -z "$ac_cpp_err"; then
25730   ac_header_preproc=yes
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735   ac_header_preproc=no
25736 fi
25737 rm -f conftest.err conftest.$ac_ext
25738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25739 echo "${ECHO_T}$ac_header_preproc" >&6
25740
25741 # So?  What about this header?
25742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25743   yes:no: )
25744     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25748     ac_header_preproc=yes
25749     ;;
25750   no:yes:* )
25751     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25753     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25754 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25755     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25757     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25758 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25761     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25763     (
25764       cat <<\_ASBOX
25765 ## ----------------------------------- ##
25766 ## Report this to llvmbugs@cs.uiuc.edu ##
25767 ## ----------------------------------- ##
25768 _ASBOX
25769     ) |
25770       sed "s/^/$as_me: WARNING:     /" >&2
25771     ;;
25772 esac
25773 echo "$as_me:$LINENO: checking for $ac_header" >&5
25774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25776   echo $ECHO_N "(cached) $ECHO_C" >&6
25777 else
25778   eval "$as_ac_Header=\$ac_header_preproc"
25779 fi
25780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25782
25783 fi
25784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25785   cat >>confdefs.h <<_ACEOF
25786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25787 _ACEOF
25788
25789 fi
25790
25791 done
25792
25793
25794
25795
25796 for ac_header in malloc.h unistd.h windows.h
25797 do
25798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25800   echo "$as_me:$LINENO: checking for $ac_header" >&5
25801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25803   echo $ECHO_N "(cached) $ECHO_C" >&6
25804 fi
25805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25807 else
25808   # Is the header compilable?
25809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25811 cat >conftest.$ac_ext <<_ACEOF
25812 /* confdefs.h.  */
25813 _ACEOF
25814 cat confdefs.h >>conftest.$ac_ext
25815 cat >>conftest.$ac_ext <<_ACEOF
25816 /* end confdefs.h.  */
25817 $ac_includes_default
25818 #include <$ac_header>
25819 _ACEOF
25820 rm -f conftest.$ac_objext
25821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25822   (eval $ac_compile) 2>conftest.er1
25823   ac_status=$?
25824   grep -v '^ *+' conftest.er1 >conftest.err
25825   rm -f conftest.er1
25826   cat conftest.err >&5
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } &&
25829          { ac_try='test -z "$ac_c_werror_flag"
25830                          || test ! -s conftest.err'
25831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832   (eval $ac_try) 2>&5
25833   ac_status=$?
25834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835   (exit $ac_status); }; } &&
25836          { ac_try='test -s conftest.$ac_objext'
25837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838   (eval $ac_try) 2>&5
25839   ac_status=$?
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); }; }; then
25842   ac_header_compiler=yes
25843 else
25844   echo "$as_me: failed program was:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25846
25847 ac_header_compiler=no
25848 fi
25849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25851 echo "${ECHO_T}$ac_header_compiler" >&6
25852
25853 # Is the header present?
25854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25856 cat >conftest.$ac_ext <<_ACEOF
25857 /* confdefs.h.  */
25858 _ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h.  */
25862 #include <$ac_header>
25863 _ACEOF
25864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25866   ac_status=$?
25867   grep -v '^ *+' conftest.er1 >conftest.err
25868   rm -f conftest.er1
25869   cat conftest.err >&5
25870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871   (exit $ac_status); } >/dev/null; then
25872   if test -s conftest.err; then
25873     ac_cpp_err=$ac_c_preproc_warn_flag
25874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25875   else
25876     ac_cpp_err=
25877   fi
25878 else
25879   ac_cpp_err=yes
25880 fi
25881 if test -z "$ac_cpp_err"; then
25882   ac_header_preproc=yes
25883 else
25884   echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887   ac_header_preproc=no
25888 fi
25889 rm -f conftest.err conftest.$ac_ext
25890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25891 echo "${ECHO_T}$ac_header_preproc" >&6
25892
25893 # So?  What about this header?
25894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25895   yes:no: )
25896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25900     ac_header_preproc=yes
25901     ;;
25902   no:yes:* )
25903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25915     (
25916       cat <<\_ASBOX
25917 ## ----------------------------------- ##
25918 ## Report this to llvmbugs@cs.uiuc.edu ##
25919 ## ----------------------------------- ##
25920 _ASBOX
25921     ) |
25922       sed "s/^/$as_me: WARNING:     /" >&2
25923     ;;
25924 esac
25925 echo "$as_me:$LINENO: checking for $ac_header" >&5
25926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25928   echo $ECHO_N "(cached) $ECHO_C" >&6
25929 else
25930   eval "$as_ac_Header=\$ac_header_preproc"
25931 fi
25932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25934
25935 fi
25936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25937   cat >>confdefs.h <<_ACEOF
25938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25939 _ACEOF
25940
25941 fi
25942
25943 done
25944
25945 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25946 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25947 if test "${ac_cv_header_time+set}" = set; then
25948   echo $ECHO_N "(cached) $ECHO_C" >&6
25949 else
25950   cat >conftest.$ac_ext <<_ACEOF
25951 /* confdefs.h.  */
25952 _ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h.  */
25956 #include <sys/types.h>
25957 #include <sys/time.h>
25958 #include <time.h>
25959
25960 int
25961 main ()
25962 {
25963 if ((struct tm *) 0)
25964 return 0;
25965   ;
25966   return 0;
25967 }
25968 _ACEOF
25969 rm -f conftest.$ac_objext
25970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25971   (eval $ac_compile) 2>conftest.er1
25972   ac_status=$?
25973   grep -v '^ *+' conftest.er1 >conftest.err
25974   rm -f conftest.er1
25975   cat conftest.err >&5
25976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977   (exit $ac_status); } &&
25978          { ac_try='test -z "$ac_c_werror_flag"
25979                          || test ! -s conftest.err'
25980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981   (eval $ac_try) 2>&5
25982   ac_status=$?
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); }; } &&
25985          { ac_try='test -s conftest.$ac_objext'
25986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987   (eval $ac_try) 2>&5
25988   ac_status=$?
25989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990   (exit $ac_status); }; }; then
25991   ac_cv_header_time=yes
25992 else
25993   echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25995
25996 ac_cv_header_time=no
25997 fi
25998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25999 fi
26000 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26001 echo "${ECHO_T}$ac_cv_header_time" >&6
26002 if test $ac_cv_header_time = yes; then
26003
26004 cat >>confdefs.h <<\_ACEOF
26005 #define TIME_WITH_SYS_TIME 1
26006 _ACEOF
26007
26008 fi
26009
26010 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26011 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26012 if test "${ac_cv_header_mmap_anon+set}" = set; then
26013   echo $ECHO_N "(cached) $ECHO_C" >&6
26014 else
26015    ac_ext=c
26016 ac_cpp='$CPP $CPPFLAGS'
26017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26020
26021   cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h.  */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h.  */
26027 #include <sys/mman.h>
26028 #include <unistd.h>
26029 #include <fcntl.h>
26030 int
26031 main ()
26032 {
26033 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26034   ;
26035   return 0;
26036 }
26037 _ACEOF
26038 rm -f conftest.$ac_objext
26039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26040   (eval $ac_compile) 2>conftest.er1
26041   ac_status=$?
26042   grep -v '^ *+' conftest.er1 >conftest.err
26043   rm -f conftest.er1
26044   cat conftest.err >&5
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); } &&
26047          { ac_try='test -z "$ac_c_werror_flag"
26048                          || test ! -s conftest.err'
26049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050   (eval $ac_try) 2>&5
26051   ac_status=$?
26052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053   (exit $ac_status); }; } &&
26054          { ac_try='test -s conftest.$ac_objext'
26055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056   (eval $ac_try) 2>&5
26057   ac_status=$?
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); }; }; then
26060   ac_cv_header_mmap_anon=yes
26061 else
26062   echo "$as_me: failed program was:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26064
26065 ac_cv_header_mmap_anon=no
26066 fi
26067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26068   ac_ext=c
26069 ac_cpp='$CPP $CPPFLAGS'
26070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26073
26074
26075 fi
26076 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26077 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26078 if test "$ac_cv_header_mmap_anon" = yes; then
26079
26080 cat >>confdefs.h <<\_ACEOF
26081 #define HAVE_MMAP_ANONYMOUS
26082 _ACEOF
26083
26084 fi
26085
26086
26087
26088
26089 for ac_header in inttypes.h stdint.h
26090 do
26091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26093   echo "$as_me:$LINENO: checking for $ac_header" >&5
26094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26096   echo $ECHO_N "(cached) $ECHO_C" >&6
26097 fi
26098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26100 else
26101   # Is the header compilable?
26102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26104 cat >conftest.$ac_ext <<_ACEOF
26105 /* confdefs.h.  */
26106 _ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h.  */
26110 $ac_includes_default
26111 #include <$ac_header>
26112 _ACEOF
26113 rm -f conftest.$ac_objext
26114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26115   (eval $ac_compile) 2>conftest.er1
26116   ac_status=$?
26117   grep -v '^ *+' conftest.er1 >conftest.err
26118   rm -f conftest.er1
26119   cat conftest.err >&5
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); } &&
26122          { ac_try='test -z "$ac_c_werror_flag"
26123                          || test ! -s conftest.err'
26124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125   (eval $ac_try) 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); }; } &&
26129          { ac_try='test -s conftest.$ac_objext'
26130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131   (eval $ac_try) 2>&5
26132   ac_status=$?
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); }; }; then
26135   ac_header_compiler=yes
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140 ac_header_compiler=no
26141 fi
26142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26144 echo "${ECHO_T}$ac_header_compiler" >&6
26145
26146 # Is the header present?
26147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26149 cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155 #include <$ac_header>
26156 _ACEOF
26157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26159   ac_status=$?
26160   grep -v '^ *+' conftest.er1 >conftest.err
26161   rm -f conftest.er1
26162   cat conftest.err >&5
26163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164   (exit $ac_status); } >/dev/null; then
26165   if test -s conftest.err; then
26166     ac_cpp_err=$ac_c_preproc_warn_flag
26167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26168   else
26169     ac_cpp_err=
26170   fi
26171 else
26172   ac_cpp_err=yes
26173 fi
26174 if test -z "$ac_cpp_err"; then
26175   ac_header_preproc=yes
26176 else
26177   echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26179
26180   ac_header_preproc=no
26181 fi
26182 rm -f conftest.err conftest.$ac_ext
26183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26184 echo "${ECHO_T}$ac_header_preproc" >&6
26185
26186 # So?  What about this header?
26187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26188   yes:no: )
26189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26193     ac_header_preproc=yes
26194     ;;
26195   no:yes:* )
26196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26208     (
26209       cat <<\_ASBOX
26210 ## ----------------------------------- ##
26211 ## Report this to llvmbugs@cs.uiuc.edu ##
26212 ## ----------------------------------- ##
26213 _ASBOX
26214     ) |
26215       sed "s/^/$as_me: WARNING:     /" >&2
26216     ;;
26217 esac
26218 echo "$as_me:$LINENO: checking for $ac_header" >&5
26219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26221   echo $ECHO_N "(cached) $ECHO_C" >&6
26222 else
26223   eval "$as_ac_Header=\$ac_header_preproc"
26224 fi
26225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26227
26228 fi
26229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26230   cat >>confdefs.h <<_ACEOF
26231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26232 _ACEOF
26233
26234 fi
26235
26236 done
26237
26238
26239
26240 echo "$as_me:$LINENO: checking for pid_t" >&5
26241 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26242 if test "${ac_cv_type_pid_t+set}" = set; then
26243   echo $ECHO_N "(cached) $ECHO_C" >&6
26244 else
26245   cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251 $ac_includes_default
26252 int
26253 main ()
26254 {
26255 if ((pid_t *) 0)
26256   return 0;
26257 if (sizeof (pid_t))
26258   return 0;
26259   ;
26260   return 0;
26261 }
26262 _ACEOF
26263 rm -f conftest.$ac_objext
26264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26265   (eval $ac_compile) 2>conftest.er1
26266   ac_status=$?
26267   grep -v '^ *+' conftest.er1 >conftest.err
26268   rm -f conftest.er1
26269   cat conftest.err >&5
26270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271   (exit $ac_status); } &&
26272          { ac_try='test -z "$ac_c_werror_flag"
26273                          || test ! -s conftest.err'
26274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275   (eval $ac_try) 2>&5
26276   ac_status=$?
26277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278   (exit $ac_status); }; } &&
26279          { ac_try='test -s conftest.$ac_objext'
26280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281   (eval $ac_try) 2>&5
26282   ac_status=$?
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); }; }; then
26285   ac_cv_type_pid_t=yes
26286 else
26287   echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26289
26290 ac_cv_type_pid_t=no
26291 fi
26292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26293 fi
26294 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26295 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26296 if test $ac_cv_type_pid_t = yes; then
26297   :
26298 else
26299
26300 cat >>confdefs.h <<_ACEOF
26301 #define pid_t int
26302 _ACEOF
26303
26304 fi
26305
26306 echo "$as_me:$LINENO: checking for size_t" >&5
26307 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26308 if test "${ac_cv_type_size_t+set}" = set; then
26309   echo $ECHO_N "(cached) $ECHO_C" >&6
26310 else
26311   cat >conftest.$ac_ext <<_ACEOF
26312 /* confdefs.h.  */
26313 _ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h.  */
26317 $ac_includes_default
26318 int
26319 main ()
26320 {
26321 if ((size_t *) 0)
26322   return 0;
26323 if (sizeof (size_t))
26324   return 0;
26325   ;
26326   return 0;
26327 }
26328 _ACEOF
26329 rm -f conftest.$ac_objext
26330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26331   (eval $ac_compile) 2>conftest.er1
26332   ac_status=$?
26333   grep -v '^ *+' conftest.er1 >conftest.err
26334   rm -f conftest.er1
26335   cat conftest.err >&5
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); } &&
26338          { ac_try='test -z "$ac_c_werror_flag"
26339                          || test ! -s conftest.err'
26340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341   (eval $ac_try) 2>&5
26342   ac_status=$?
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); }; } &&
26345          { ac_try='test -s conftest.$ac_objext'
26346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347   (eval $ac_try) 2>&5
26348   ac_status=$?
26349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); }; }; then
26351   ac_cv_type_size_t=yes
26352 else
26353   echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26355
26356 ac_cv_type_size_t=no
26357 fi
26358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26359 fi
26360 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26361 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26362 if test $ac_cv_type_size_t = yes; then
26363   :
26364 else
26365
26366 cat >>confdefs.h <<_ACEOF
26367 #define size_t unsigned
26368 _ACEOF
26369
26370 fi
26371
26372 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26373 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26374 if test "${ac_cv_type_signal+set}" = set; then
26375   echo $ECHO_N "(cached) $ECHO_C" >&6
26376 else
26377   cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h.  */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h.  */
26383 #include <sys/types.h>
26384 #include <signal.h>
26385 #ifdef signal
26386 # undef signal
26387 #endif
26388 #ifdef __cplusplus
26389 extern "C" void (*signal (int, void (*)(int)))(int);
26390 #else
26391 void (*signal ()) ();
26392 #endif
26393
26394 int
26395 main ()
26396 {
26397 int i;
26398   ;
26399   return 0;
26400 }
26401 _ACEOF
26402 rm -f conftest.$ac_objext
26403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26404   (eval $ac_compile) 2>conftest.er1
26405   ac_status=$?
26406   grep -v '^ *+' conftest.er1 >conftest.err
26407   rm -f conftest.er1
26408   cat conftest.err >&5
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); } &&
26411          { ac_try='test -z "$ac_c_werror_flag"
26412                          || test ! -s conftest.err'
26413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414   (eval $ac_try) 2>&5
26415   ac_status=$?
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); }; } &&
26418          { ac_try='test -s conftest.$ac_objext'
26419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420   (eval $ac_try) 2>&5
26421   ac_status=$?
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); }; }; then
26424   ac_cv_type_signal=void
26425 else
26426   echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26428
26429 ac_cv_type_signal=int
26430 fi
26431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26432 fi
26433 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26434 echo "${ECHO_T}$ac_cv_type_signal" >&6
26435
26436 cat >>confdefs.h <<_ACEOF
26437 #define RETSIGTYPE $ac_cv_type_signal
26438 _ACEOF
26439
26440
26441 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26442 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26443 if test "${ac_cv_struct_tm+set}" = set; then
26444   echo $ECHO_N "(cached) $ECHO_C" >&6
26445 else
26446   cat >conftest.$ac_ext <<_ACEOF
26447 /* confdefs.h.  */
26448 _ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h.  */
26452 #include <sys/types.h>
26453 #include <time.h>
26454
26455 int
26456 main ()
26457 {
26458 struct tm *tp; tp->tm_sec;
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465   (eval $ac_compile) 2>conftest.er1
26466   ac_status=$?
26467   grep -v '^ *+' conftest.er1 >conftest.err
26468   rm -f conftest.er1
26469   cat conftest.err >&5
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } &&
26472          { ac_try='test -z "$ac_c_werror_flag"
26473                          || test ! -s conftest.err'
26474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475   (eval $ac_try) 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); }; } &&
26479          { ac_try='test -s conftest.$ac_objext'
26480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481   (eval $ac_try) 2>&5
26482   ac_status=$?
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); }; }; then
26485   ac_cv_struct_tm=time.h
26486 else
26487   echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490 ac_cv_struct_tm=sys/time.h
26491 fi
26492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26493 fi
26494 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26495 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26496 if test $ac_cv_struct_tm = sys/time.h; then
26497
26498 cat >>confdefs.h <<\_ACEOF
26499 #define TM_IN_SYS_TIME 1
26500 _ACEOF
26501
26502 fi
26503
26504 echo "$as_me:$LINENO: checking for int64_t" >&5
26505 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26506 if test "${ac_cv_type_int64_t+set}" = set; then
26507   echo $ECHO_N "(cached) $ECHO_C" >&6
26508 else
26509   cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515 $ac_includes_default
26516 int
26517 main ()
26518 {
26519 if ((int64_t *) 0)
26520   return 0;
26521 if (sizeof (int64_t))
26522   return 0;
26523   ;
26524   return 0;
26525 }
26526 _ACEOF
26527 rm -f conftest.$ac_objext
26528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26529   (eval $ac_compile) 2>conftest.er1
26530   ac_status=$?
26531   grep -v '^ *+' conftest.er1 >conftest.err
26532   rm -f conftest.er1
26533   cat conftest.err >&5
26534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535   (exit $ac_status); } &&
26536          { ac_try='test -z "$ac_c_werror_flag"
26537                          || test ! -s conftest.err'
26538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539   (eval $ac_try) 2>&5
26540   ac_status=$?
26541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542   (exit $ac_status); }; } &&
26543          { ac_try='test -s conftest.$ac_objext'
26544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26545   (eval $ac_try) 2>&5
26546   ac_status=$?
26547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548   (exit $ac_status); }; }; then
26549   ac_cv_type_int64_t=yes
26550 else
26551   echo "$as_me: failed program was:" >&5
26552 sed 's/^/| /' conftest.$ac_ext >&5
26553
26554 ac_cv_type_int64_t=no
26555 fi
26556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26557 fi
26558 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26559 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26560 if test $ac_cv_type_int64_t = yes; then
26561
26562 cat >>confdefs.h <<_ACEOF
26563 #define HAVE_INT64_T 1
26564 _ACEOF
26565
26566
26567 else
26568   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26569 echo "$as_me: error: Type int64_t required but not found" >&2;}
26570    { (exit 1); exit 1; }; }
26571 fi
26572
26573 echo "$as_me:$LINENO: checking for uint64_t" >&5
26574 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26575 if test "${ac_cv_type_uint64_t+set}" = set; then
26576   echo $ECHO_N "(cached) $ECHO_C" >&6
26577 else
26578   cat >conftest.$ac_ext <<_ACEOF
26579 /* confdefs.h.  */
26580 _ACEOF
26581 cat confdefs.h >>conftest.$ac_ext
26582 cat >>conftest.$ac_ext <<_ACEOF
26583 /* end confdefs.h.  */
26584 $ac_includes_default
26585 int
26586 main ()
26587 {
26588 if ((uint64_t *) 0)
26589   return 0;
26590 if (sizeof (uint64_t))
26591   return 0;
26592   ;
26593   return 0;
26594 }
26595 _ACEOF
26596 rm -f conftest.$ac_objext
26597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26598   (eval $ac_compile) 2>conftest.er1
26599   ac_status=$?
26600   grep -v '^ *+' conftest.er1 >conftest.err
26601   rm -f conftest.er1
26602   cat conftest.err >&5
26603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); } &&
26605          { ac_try='test -z "$ac_c_werror_flag"
26606                          || test ! -s conftest.err'
26607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608   (eval $ac_try) 2>&5
26609   ac_status=$?
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); }; } &&
26612          { ac_try='test -s conftest.$ac_objext'
26613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614   (eval $ac_try) 2>&5
26615   ac_status=$?
26616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617   (exit $ac_status); }; }; then
26618   ac_cv_type_uint64_t=yes
26619 else
26620   echo "$as_me: failed program was:" >&5
26621 sed 's/^/| /' conftest.$ac_ext >&5
26622
26623 ac_cv_type_uint64_t=no
26624 fi
26625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26626 fi
26627 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26628 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26629 if test $ac_cv_type_uint64_t = yes; then
26630
26631 cat >>confdefs.h <<_ACEOF
26632 #define HAVE_UINT64_T 1
26633 _ACEOF
26634
26635
26636 else
26637   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26638 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26639 if test "${ac_cv_type_u_int64_t+set}" = set; then
26640   echo $ECHO_N "(cached) $ECHO_C" >&6
26641 else
26642   cat >conftest.$ac_ext <<_ACEOF
26643 /* confdefs.h.  */
26644 _ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h.  */
26648 $ac_includes_default
26649 int
26650 main ()
26651 {
26652 if ((u_int64_t *) 0)
26653   return 0;
26654 if (sizeof (u_int64_t))
26655   return 0;
26656   ;
26657   return 0;
26658 }
26659 _ACEOF
26660 rm -f conftest.$ac_objext
26661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26662   (eval $ac_compile) 2>conftest.er1
26663   ac_status=$?
26664   grep -v '^ *+' conftest.er1 >conftest.err
26665   rm -f conftest.er1
26666   cat conftest.err >&5
26667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); } &&
26669          { ac_try='test -z "$ac_c_werror_flag"
26670                          || test ! -s conftest.err'
26671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672   (eval $ac_try) 2>&5
26673   ac_status=$?
26674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675   (exit $ac_status); }; } &&
26676          { ac_try='test -s conftest.$ac_objext'
26677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26678   (eval $ac_try) 2>&5
26679   ac_status=$?
26680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681   (exit $ac_status); }; }; then
26682   ac_cv_type_u_int64_t=yes
26683 else
26684   echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26686
26687 ac_cv_type_u_int64_t=no
26688 fi
26689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26690 fi
26691 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26692 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26693 if test $ac_cv_type_u_int64_t = yes; then
26694
26695 cat >>confdefs.h <<_ACEOF
26696 #define HAVE_U_INT64_T 1
26697 _ACEOF
26698
26699
26700 else
26701   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26702 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26703    { (exit 1); exit 1; }; }
26704 fi
26705
26706 fi
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26717 do
26718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26719 echo "$as_me:$LINENO: checking for $ac_func" >&5
26720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26721 if eval "test \"\${$as_ac_var+set}\" = set"; then
26722   echo $ECHO_N "(cached) $ECHO_C" >&6
26723 else
26724   cat >conftest.$ac_ext <<_ACEOF
26725 /* confdefs.h.  */
26726 _ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h.  */
26730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26732 #define $ac_func innocuous_$ac_func
26733
26734 /* System header to define __stub macros and hopefully few prototypes,
26735     which can conflict with char $ac_func (); below.
26736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26737     <limits.h> exists even on freestanding compilers.  */
26738
26739 #ifdef __STDC__
26740 # include <limits.h>
26741 #else
26742 # include <assert.h>
26743 #endif
26744
26745 #undef $ac_func
26746
26747 /* Override any gcc2 internal prototype to avoid an error.  */
26748 #ifdef __cplusplus
26749 extern "C"
26750 {
26751 #endif
26752 /* We use char because int might match the return type of a gcc2
26753    builtin and then its argument prototype would still apply.  */
26754 char $ac_func ();
26755 /* The GNU C library defines this for functions which it implements
26756     to always fail with ENOSYS.  Some functions are actually named
26757     something starting with __ and the normal name is an alias.  */
26758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26759 choke me
26760 #else
26761 char (*f) () = $ac_func;
26762 #endif
26763 #ifdef __cplusplus
26764 }
26765 #endif
26766
26767 int
26768 main ()
26769 {
26770 return f != $ac_func;
26771   ;
26772   return 0;
26773 }
26774 _ACEOF
26775 rm -f conftest.$ac_objext conftest$ac_exeext
26776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26777   (eval $ac_link) 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } &&
26784          { ac_try='test -z "$ac_c_werror_flag"
26785                          || test ! -s conftest.err'
26786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787   (eval $ac_try) 2>&5
26788   ac_status=$?
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); }; } &&
26791          { ac_try='test -s conftest$ac_exeext'
26792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793   (eval $ac_try) 2>&5
26794   ac_status=$?
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); }; }; then
26797   eval "$as_ac_var=yes"
26798 else
26799   echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 eval "$as_ac_var=no"
26803 fi
26804 rm -f conftest.err conftest.$ac_objext \
26805       conftest$ac_exeext conftest.$ac_ext
26806 fi
26807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26809 if test `eval echo '${'$as_ac_var'}'` = yes; then
26810   cat >>confdefs.h <<_ACEOF
26811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26812 _ACEOF
26813
26814 fi
26815 done
26816
26817
26818
26819
26820 for ac_func in strdup strtoq strtoll
26821 do
26822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26823 echo "$as_me:$LINENO: checking for $ac_func" >&5
26824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26825 if eval "test \"\${$as_ac_var+set}\" = set"; then
26826   echo $ECHO_N "(cached) $ECHO_C" >&6
26827 else
26828   cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h.  */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h.  */
26834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26836 #define $ac_func innocuous_$ac_func
26837
26838 /* System header to define __stub macros and hopefully few prototypes,
26839     which can conflict with char $ac_func (); below.
26840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26841     <limits.h> exists even on freestanding compilers.  */
26842
26843 #ifdef __STDC__
26844 # include <limits.h>
26845 #else
26846 # include <assert.h>
26847 #endif
26848
26849 #undef $ac_func
26850
26851 /* Override any gcc2 internal prototype to avoid an error.  */
26852 #ifdef __cplusplus
26853 extern "C"
26854 {
26855 #endif
26856 /* We use char because int might match the return type of a gcc2
26857    builtin and then its argument prototype would still apply.  */
26858 char $ac_func ();
26859 /* The GNU C library defines this for functions which it implements
26860     to always fail with ENOSYS.  Some functions are actually named
26861     something starting with __ and the normal name is an alias.  */
26862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26863 choke me
26864 #else
26865 char (*f) () = $ac_func;
26866 #endif
26867 #ifdef __cplusplus
26868 }
26869 #endif
26870
26871 int
26872 main ()
26873 {
26874 return f != $ac_func;
26875   ;
26876   return 0;
26877 }
26878 _ACEOF
26879 rm -f conftest.$ac_objext conftest$ac_exeext
26880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26881   (eval $ac_link) 2>conftest.er1
26882   ac_status=$?
26883   grep -v '^ *+' conftest.er1 >conftest.err
26884   rm -f conftest.er1
26885   cat conftest.err >&5
26886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887   (exit $ac_status); } &&
26888          { ac_try='test -z "$ac_c_werror_flag"
26889                          || test ! -s conftest.err'
26890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891   (eval $ac_try) 2>&5
26892   ac_status=$?
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); }; } &&
26895          { ac_try='test -s conftest$ac_exeext'
26896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897   (eval $ac_try) 2>&5
26898   ac_status=$?
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); }; }; then
26901   eval "$as_ac_var=yes"
26902 else
26903   echo "$as_me: failed program was:" >&5
26904 sed 's/^/| /' conftest.$ac_ext >&5
26905
26906 eval "$as_ac_var=no"
26907 fi
26908 rm -f conftest.err conftest.$ac_objext \
26909       conftest$ac_exeext conftest.$ac_ext
26910 fi
26911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26913 if test `eval echo '${'$as_ac_var'}'` = yes; then
26914   cat >>confdefs.h <<_ACEOF
26915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26916 _ACEOF
26917
26918 fi
26919 done
26920
26921 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26922 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26923 if test "${llvm_cv_c_printf_a+set}" = set; then
26924   echo $ECHO_N "(cached) $ECHO_C" >&6
26925 else
26926   ac_ext=c
26927 ac_cpp='$CPP $CPPFLAGS'
26928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26931
26932  if test "$cross_compiling" = yes; then
26933   llvmac_cv_c_printf_a=no
26934 else
26935   cat >conftest.$ac_ext <<_ACEOF
26936
26937   /* confdefs.h.  */
26938 _ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h.  */
26942
26943 #include <stdio.h>
26944 #include <stdlib.h>
26945
26946 int
26947 main ()
26948 {
26949
26950 volatile double A, B;
26951 char Buffer[100];
26952 A = 1;
26953 A /= 10.0;
26954 sprintf(Buffer, "%a", A);
26955 B = atof(Buffer);
26956 if (A != B)
26957   return (1);
26958 if (A != 0x1.999999999999ap-4)
26959   return (1);
26960 return (0);
26961   ;
26962   return 0;
26963 }
26964 _ACEOF
26965 rm -f conftest$ac_exeext
26966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26967   (eval $ac_link) 2>&5
26968   ac_status=$?
26969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26972   (eval $ac_try) 2>&5
26973   ac_status=$?
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); }; }; then
26976   llvm_cv_c_printf_a=yes
26977 else
26978   echo "$as_me: program exited with status $ac_status" >&5
26979 echo "$as_me: failed program was:" >&5
26980 sed 's/^/| /' conftest.$ac_ext >&5
26981
26982 ( exit $ac_status )
26983 llvmac_cv_c_printf_a=no
26984 fi
26985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26986 fi
26987  ac_ext=c
26988 ac_cpp='$CPP $CPPFLAGS'
26989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26992
26993 fi
26994 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26995 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26996  if test "$llvm_cv_c_printf_a" = "yes"; then
26997
26998 cat >>confdefs.h <<\_ACEOF
26999 #define HAVE_PRINTF_A 1
27000 _ACEOF
27001
27002  fi
27003
27004 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27005 # for constant arguments.  Useless!
27006 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27007 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27008 if test "${ac_cv_working_alloca_h+set}" = set; then
27009   echo $ECHO_N "(cached) $ECHO_C" >&6
27010 else
27011   cat >conftest.$ac_ext <<_ACEOF
27012 /* confdefs.h.  */
27013 _ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h.  */
27017 #include <alloca.h>
27018 int
27019 main ()
27020 {
27021 char *p = (char *) alloca (2 * sizeof (int));
27022   ;
27023   return 0;
27024 }
27025 _ACEOF
27026 rm -f conftest.$ac_objext conftest$ac_exeext
27027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27028   (eval $ac_link) 2>conftest.er1
27029   ac_status=$?
27030   grep -v '^ *+' conftest.er1 >conftest.err
27031   rm -f conftest.er1
27032   cat conftest.err >&5
27033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034   (exit $ac_status); } &&
27035          { ac_try='test -z "$ac_c_werror_flag"
27036                          || test ! -s conftest.err'
27037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27038   (eval $ac_try) 2>&5
27039   ac_status=$?
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; } &&
27042          { ac_try='test -s conftest$ac_exeext'
27043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044   (eval $ac_try) 2>&5
27045   ac_status=$?
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); }; }; then
27048   ac_cv_working_alloca_h=yes
27049 else
27050   echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27052
27053 ac_cv_working_alloca_h=no
27054 fi
27055 rm -f conftest.err conftest.$ac_objext \
27056       conftest$ac_exeext conftest.$ac_ext
27057 fi
27058 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27059 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27060 if test $ac_cv_working_alloca_h = yes; then
27061
27062 cat >>confdefs.h <<\_ACEOF
27063 #define HAVE_ALLOCA_H 1
27064 _ACEOF
27065
27066 fi
27067
27068 echo "$as_me:$LINENO: checking for alloca" >&5
27069 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27070 if test "${ac_cv_func_alloca_works+set}" = set; then
27071   echo $ECHO_N "(cached) $ECHO_C" >&6
27072 else
27073   cat >conftest.$ac_ext <<_ACEOF
27074 /* confdefs.h.  */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h.  */
27079 #ifdef __GNUC__
27080 # define alloca __builtin_alloca
27081 #else
27082 # ifdef _MSC_VER
27083 #  include <malloc.h>
27084 #  define alloca _alloca
27085 # else
27086 #  if HAVE_ALLOCA_H
27087 #   include <alloca.h>
27088 #  else
27089 #   ifdef _AIX
27090  #pragma alloca
27091 #   else
27092 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27093 char *alloca ();
27094 #    endif
27095 #   endif
27096 #  endif
27097 # endif
27098 #endif
27099
27100 int
27101 main ()
27102 {
27103 char *p = (char *) alloca (1);
27104   ;
27105   return 0;
27106 }
27107 _ACEOF
27108 rm -f conftest.$ac_objext conftest$ac_exeext
27109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27110   (eval $ac_link) 2>conftest.er1
27111   ac_status=$?
27112   grep -v '^ *+' conftest.er1 >conftest.err
27113   rm -f conftest.er1
27114   cat conftest.err >&5
27115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116   (exit $ac_status); } &&
27117          { ac_try='test -z "$ac_c_werror_flag"
27118                          || test ! -s conftest.err'
27119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120   (eval $ac_try) 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; } &&
27124          { ac_try='test -s conftest$ac_exeext'
27125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126   (eval $ac_try) 2>&5
27127   ac_status=$?
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); }; }; then
27130   ac_cv_func_alloca_works=yes
27131 else
27132   echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27134
27135 ac_cv_func_alloca_works=no
27136 fi
27137 rm -f conftest.err conftest.$ac_objext \
27138       conftest$ac_exeext conftest.$ac_ext
27139 fi
27140 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27141 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27142
27143 if test $ac_cv_func_alloca_works = yes; then
27144
27145 cat >>confdefs.h <<\_ACEOF
27146 #define HAVE_ALLOCA 1
27147 _ACEOF
27148
27149 else
27150   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27151 # that cause trouble.  Some versions do not even contain alloca or
27152 # contain a buggy version.  If you still want to use their alloca,
27153 # use ar to extract alloca.o from them instead of compiling alloca.c.
27154
27155 ALLOCA=alloca.$ac_objext
27156
27157 cat >>confdefs.h <<\_ACEOF
27158 #define C_ALLOCA 1
27159 _ACEOF
27160
27161
27162 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27163 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27164 if test "${ac_cv_os_cray+set}" = set; then
27165   echo $ECHO_N "(cached) $ECHO_C" >&6
27166 else
27167   cat >conftest.$ac_ext <<_ACEOF
27168 /* confdefs.h.  */
27169 _ACEOF
27170 cat confdefs.h >>conftest.$ac_ext
27171 cat >>conftest.$ac_ext <<_ACEOF
27172 /* end confdefs.h.  */
27173 #if defined(CRAY) && ! defined(CRAY2)
27174 webecray
27175 #else
27176 wenotbecray
27177 #endif
27178
27179 _ACEOF
27180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27181   $EGREP "webecray" >/dev/null 2>&1; then
27182   ac_cv_os_cray=yes
27183 else
27184   ac_cv_os_cray=no
27185 fi
27186 rm -f conftest*
27187
27188 fi
27189 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27190 echo "${ECHO_T}$ac_cv_os_cray" >&6
27191 if test $ac_cv_os_cray = yes; then
27192   for ac_func in _getb67 GETB67 getb67; do
27193     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27194 echo "$as_me:$LINENO: checking for $ac_func" >&5
27195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27196 if eval "test \"\${$as_ac_var+set}\" = set"; then
27197   echo $ECHO_N "(cached) $ECHO_C" >&6
27198 else
27199   cat >conftest.$ac_ext <<_ACEOF
27200 /* confdefs.h.  */
27201 _ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h.  */
27205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27207 #define $ac_func innocuous_$ac_func
27208
27209 /* System header to define __stub macros and hopefully few prototypes,
27210     which can conflict with char $ac_func (); below.
27211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27212     <limits.h> exists even on freestanding compilers.  */
27213
27214 #ifdef __STDC__
27215 # include <limits.h>
27216 #else
27217 # include <assert.h>
27218 #endif
27219
27220 #undef $ac_func
27221
27222 /* Override any gcc2 internal prototype to avoid an error.  */
27223 #ifdef __cplusplus
27224 extern "C"
27225 {
27226 #endif
27227 /* We use char because int might match the return type of a gcc2
27228    builtin and then its argument prototype would still apply.  */
27229 char $ac_func ();
27230 /* The GNU C library defines this for functions which it implements
27231     to always fail with ENOSYS.  Some functions are actually named
27232     something starting with __ and the normal name is an alias.  */
27233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27234 choke me
27235 #else
27236 char (*f) () = $ac_func;
27237 #endif
27238 #ifdef __cplusplus
27239 }
27240 #endif
27241
27242 int
27243 main ()
27244 {
27245 return f != $ac_func;
27246   ;
27247   return 0;
27248 }
27249 _ACEOF
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27252   (eval $ac_link) 2>conftest.er1
27253   ac_status=$?
27254   grep -v '^ *+' conftest.er1 >conftest.err
27255   rm -f conftest.er1
27256   cat conftest.err >&5
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); } &&
27259          { ac_try='test -z "$ac_c_werror_flag"
27260                          || test ! -s conftest.err'
27261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262   (eval $ac_try) 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; } &&
27266          { ac_try='test -s conftest$ac_exeext'
27267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268   (eval $ac_try) 2>&5
27269   ac_status=$?
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); }; }; then
27272   eval "$as_ac_var=yes"
27273 else
27274   echo "$as_me: failed program was:" >&5
27275 sed 's/^/| /' conftest.$ac_ext >&5
27276
27277 eval "$as_ac_var=no"
27278 fi
27279 rm -f conftest.err conftest.$ac_objext \
27280       conftest$ac_exeext conftest.$ac_ext
27281 fi
27282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27284 if test `eval echo '${'$as_ac_var'}'` = yes; then
27285
27286 cat >>confdefs.h <<_ACEOF
27287 #define CRAY_STACKSEG_END $ac_func
27288 _ACEOF
27289
27290     break
27291 fi
27292
27293   done
27294 fi
27295
27296 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27297 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27298 if test "${ac_cv_c_stack_direction+set}" = set; then
27299   echo $ECHO_N "(cached) $ECHO_C" >&6
27300 else
27301   if test "$cross_compiling" = yes; then
27302   ac_cv_c_stack_direction=0
27303 else
27304   cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h.  */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h.  */
27310 int
27311 find_stack_direction ()
27312 {
27313   static char *addr = 0;
27314   auto char dummy;
27315   if (addr == 0)
27316     {
27317       addr = &dummy;
27318       return find_stack_direction ();
27319     }
27320   else
27321     return (&dummy > addr) ? 1 : -1;
27322 }
27323
27324 int
27325 main ()
27326 {
27327   exit (find_stack_direction () < 0);
27328 }
27329 _ACEOF
27330 rm -f conftest$ac_exeext
27331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27332   (eval $ac_link) 2>&5
27333   ac_status=$?
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337   (eval $ac_try) 2>&5
27338   ac_status=$?
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); }; }; then
27341   ac_cv_c_stack_direction=1
27342 else
27343   echo "$as_me: program exited with status $ac_status" >&5
27344 echo "$as_me: failed program was:" >&5
27345 sed 's/^/| /' conftest.$ac_ext >&5
27346
27347 ( exit $ac_status )
27348 ac_cv_c_stack_direction=-1
27349 fi
27350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27351 fi
27352 fi
27353 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27354 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27355
27356 cat >>confdefs.h <<_ACEOF
27357 #define STACK_DIRECTION $ac_cv_c_stack_direction
27358 _ACEOF
27359
27360
27361 fi
27362
27363
27364 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27365 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27366 if test "${ac_cv_func_rand48+set}" = set; then
27367   echo $ECHO_N "(cached) $ECHO_C" >&6
27368 else
27369   ac_ext=cc
27370 ac_cpp='$CXXCPP $CPPFLAGS'
27371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27374
27375    cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h.  */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h.  */
27381 #include <stdlib.h>
27382 int
27383 main ()
27384 {
27385 srand48(0);lrand48();drand48();
27386   ;
27387   return 0;
27388 }
27389 _ACEOF
27390 rm -f conftest.$ac_objext
27391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27392   (eval $ac_compile) 2>conftest.er1
27393   ac_status=$?
27394   grep -v '^ *+' conftest.er1 >conftest.err
27395   rm -f conftest.er1
27396   cat conftest.err >&5
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); } &&
27399          { ac_try='test -z "$ac_cxx_werror_flag"
27400                          || test ! -s conftest.err'
27401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402   (eval $ac_try) 2>&5
27403   ac_status=$?
27404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); }; } &&
27406          { ac_try='test -s conftest.$ac_objext'
27407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408   (eval $ac_try) 2>&5
27409   ac_status=$?
27410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); }; }; then
27412   ac_cv_func_rand48=yes
27413 else
27414   echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27416
27417 ac_cv_func_rand48=no
27418 fi
27419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27420   ac_ext=c
27421 ac_cpp='$CPP $CPPFLAGS'
27422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27425
27426 fi
27427 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27428 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27429
27430 if test "$ac_cv_func_rand48" = "yes" ; then
27431
27432 cat >>confdefs.h <<\_ACEOF
27433 #define HAVE_RAND48 1
27434 _ACEOF
27435
27436 fi
27437
27438
27439 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27440 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27441 if test "${ac_cv_cxx_namespaces+set}" = set; then
27442   echo $ECHO_N "(cached) $ECHO_C" >&6
27443 else
27444   ac_ext=cc
27445 ac_cpp='$CXXCPP $CPPFLAGS'
27446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27449
27450  cat >conftest.$ac_ext <<_ACEOF
27451 /* confdefs.h.  */
27452 _ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h.  */
27456 namespace Outer { namespace Inner { int i = 0; }}
27457 int
27458 main ()
27459 {
27460 using namespace Outer::Inner; return i;
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 rm -f conftest.$ac_objext
27466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27467   (eval $ac_compile) 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } &&
27474          { ac_try='test -z "$ac_cxx_werror_flag"
27475                          || test ! -s conftest.err'
27476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477   (eval $ac_try) 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; } &&
27481          { ac_try='test -s conftest.$ac_objext'
27482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483   (eval $ac_try) 2>&5
27484   ac_status=$?
27485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486   (exit $ac_status); }; }; then
27487   ac_cv_cxx_namespaces=yes
27488 else
27489   echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27491
27492 ac_cv_cxx_namespaces=no
27493 fi
27494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27495  ac_ext=c
27496 ac_cpp='$CPP $CPPFLAGS'
27497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27500
27501
27502 fi
27503 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27504 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27505 if test "$ac_cv_cxx_namespaces" = yes; then
27506
27507 cat >>confdefs.h <<\_ACEOF
27508 #define HAVE_NAMESPACES
27509 _ACEOF
27510
27511 fi
27512
27513 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27514 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27515 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27516   echo $ECHO_N "(cached) $ECHO_C" >&6
27517 else
27518
27519   ac_ext=cc
27520 ac_cpp='$CXXCPP $CPPFLAGS'
27521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27524
27525   cat >conftest.$ac_ext <<_ACEOF
27526 /* confdefs.h.  */
27527 _ACEOF
27528 cat confdefs.h >>conftest.$ac_ext
27529 cat >>conftest.$ac_ext <<_ACEOF
27530 /* end confdefs.h.  */
27531 #include <ext/hash_map>
27532 #ifdef HAVE_NAMESPACES
27533 using namespace std;
27534 #endif
27535 int
27536 main ()
27537 {
27538 hash_map<int, int> t;
27539   ;
27540   return 0;
27541 }
27542 _ACEOF
27543 rm -f conftest.$ac_objext
27544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27545   (eval $ac_compile) 2>conftest.er1
27546   ac_status=$?
27547   grep -v '^ *+' conftest.er1 >conftest.err
27548   rm -f conftest.er1
27549   cat conftest.err >&5
27550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551   (exit $ac_status); } &&
27552          { ac_try='test -z "$ac_cxx_werror_flag"
27553                          || test ! -s conftest.err'
27554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555   (eval $ac_try) 2>&5
27556   ac_status=$?
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); }; } &&
27559          { ac_try='test -s conftest.$ac_objext'
27560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561   (eval $ac_try) 2>&5
27562   ac_status=$?
27563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564   (exit $ac_status); }; }; then
27565   ac_cv_cxx_have_std_ext_hash_map=yes
27566 else
27567   echo "$as_me: failed program was:" >&5
27568 sed 's/^/| /' conftest.$ac_ext >&5
27569
27570 ac_cv_cxx_have_std_ext_hash_map=no
27571 fi
27572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27573   ac_ext=c
27574 ac_cpp='$CPP $CPPFLAGS'
27575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27578
27579 fi
27580 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27581 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27582  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27583  then
27584
27585 cat >>confdefs.h <<\_ACEOF
27586 #define HAVE_STD_EXT_HASH_MAP 1
27587 _ACEOF
27588
27589  else
27590
27591 cat >>confdefs.h <<\_ACEOF
27592 #define HAVE_STD_EXT_HASH_MAP 0
27593 _ACEOF
27594
27595  fi
27596
27597  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27598 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27599 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27600   echo $ECHO_N "(cached) $ECHO_C" >&6
27601 else
27602
27603   ac_ext=cc
27604 ac_cpp='$CXXCPP $CPPFLAGS'
27605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27608
27609   cat >conftest.$ac_ext <<_ACEOF
27610 /* confdefs.h.  */
27611 _ACEOF
27612 cat confdefs.h >>conftest.$ac_ext
27613 cat >>conftest.$ac_ext <<_ACEOF
27614 /* end confdefs.h.  */
27615 #include <ext/hash_map>
27616 #ifdef HAVE_NAMESPACES
27617 using namespace __gnu_cxx;
27618 #endif
27619 int
27620 main ()
27621 {
27622 hash_map<int,int> t;
27623   ;
27624   return 0;
27625 }
27626 _ACEOF
27627 rm -f conftest.$ac_objext
27628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27629   (eval $ac_compile) 2>conftest.er1
27630   ac_status=$?
27631   grep -v '^ *+' conftest.er1 >conftest.err
27632   rm -f conftest.er1
27633   cat conftest.err >&5
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); } &&
27636          { ac_try='test -z "$ac_cxx_werror_flag"
27637                          || test ! -s conftest.err'
27638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639   (eval $ac_try) 2>&5
27640   ac_status=$?
27641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642   (exit $ac_status); }; } &&
27643          { ac_try='test -s conftest.$ac_objext'
27644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645   (eval $ac_try) 2>&5
27646   ac_status=$?
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); }; }; then
27649   ac_cv_cxx_have_gnu_ext_hash_map=yes
27650 else
27651   echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27653
27654 ac_cv_cxx_have_gnu_ext_hash_map=no
27655 fi
27656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27657   ac_ext=c
27658 ac_cpp='$CPP $CPPFLAGS'
27659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27662
27663 fi
27664 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27665 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27666  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27667  then
27668
27669 cat >>confdefs.h <<\_ACEOF
27670 #define HAVE_GNU_EXT_HASH_MAP 1
27671 _ACEOF
27672
27673  else
27674
27675 cat >>confdefs.h <<\_ACEOF
27676 #define HAVE_GNU_EXT_HASH_MAP 0
27677 _ACEOF
27678
27679  fi
27680
27681  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27682 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27683 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27684   echo $ECHO_N "(cached) $ECHO_C" >&6
27685 else
27686
27687   ac_ext=cc
27688 ac_cpp='$CXXCPP $CPPFLAGS'
27689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27692
27693   cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h.  */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h.  */
27699 #include <hash_map>
27700 int
27701 main ()
27702 {
27703 hash_map<int,int> t;
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest.$ac_objext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27710   (eval $ac_compile) 2>conftest.er1
27711   ac_status=$?
27712   grep -v '^ *+' conftest.er1 >conftest.err
27713   rm -f conftest.er1
27714   cat conftest.err >&5
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); } &&
27717          { ac_try='test -z "$ac_cxx_werror_flag"
27718                          || test ! -s conftest.err'
27719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720   (eval $ac_try) 2>&5
27721   ac_status=$?
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); }; } &&
27724          { ac_try='test -s conftest.$ac_objext'
27725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726   (eval $ac_try) 2>&5
27727   ac_status=$?
27728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); }; }; then
27730   ac_cv_cxx_have_global_hash_map=yes
27731 else
27732   echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27734
27735 ac_cv_cxx_have_global_hash_map=no
27736 fi
27737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27738   ac_ext=c
27739 ac_cpp='$CPP $CPPFLAGS'
27740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27743
27744 fi
27745 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27746 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27747  if test "$ac_cv_cxx_have_global_hash_map" = yes
27748  then
27749
27750 cat >>confdefs.h <<\_ACEOF
27751 #define HAVE_GLOBAL_HASH_MAP 1
27752 _ACEOF
27753
27754  else
27755
27756 cat >>confdefs.h <<\_ACEOF
27757 #define HAVE_GLOBAL_HASH_MAP 0
27758 _ACEOF
27759
27760  fi
27761
27762 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27763 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27764 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27765   echo $ECHO_N "(cached) $ECHO_C" >&6
27766 else
27767
27768   ac_ext=cc
27769 ac_cpp='$CXXCPP $CPPFLAGS'
27770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27773
27774   cat >conftest.$ac_ext <<_ACEOF
27775 /* confdefs.h.  */
27776 _ACEOF
27777 cat confdefs.h >>conftest.$ac_ext
27778 cat >>conftest.$ac_ext <<_ACEOF
27779 /* end confdefs.h.  */
27780 #include <ext/hash_set>
27781 #ifdef HAVE_NAMESPACES
27782 using namespace std;
27783 #endif
27784 int
27785 main ()
27786 {
27787 hash_set<int> t;
27788   ;
27789   return 0;
27790 }
27791 _ACEOF
27792 rm -f conftest.$ac_objext
27793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27794   (eval $ac_compile) 2>conftest.er1
27795   ac_status=$?
27796   grep -v '^ *+' conftest.er1 >conftest.err
27797   rm -f conftest.er1
27798   cat conftest.err >&5
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); } &&
27801          { ac_try='test -z "$ac_cxx_werror_flag"
27802                          || test ! -s conftest.err'
27803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804   (eval $ac_try) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); }; } &&
27808          { ac_try='test -s conftest.$ac_objext'
27809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810   (eval $ac_try) 2>&5
27811   ac_status=$?
27812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813   (exit $ac_status); }; }; then
27814   ac_cv_cxx_have_std_ext_hash_set=yes
27815 else
27816   echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27818
27819 ac_cv_cxx_have_std_ext_hash_set=no
27820 fi
27821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27822   ac_ext=c
27823 ac_cpp='$CPP $CPPFLAGS'
27824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27827
27828 fi
27829 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27830 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27831  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27832  then
27833
27834 cat >>confdefs.h <<\_ACEOF
27835 #define HAVE_STD_EXT_HASH_SET 1
27836 _ACEOF
27837
27838  else
27839
27840 cat >>confdefs.h <<\_ACEOF
27841 #define HAVE_STD_EXT_HASH_SET 0
27842 _ACEOF
27843
27844  fi
27845
27846  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27847 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27848 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27849   echo $ECHO_N "(cached) $ECHO_C" >&6
27850 else
27851
27852   ac_ext=cc
27853 ac_cpp='$CXXCPP $CPPFLAGS'
27854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27857
27858   cat >conftest.$ac_ext <<_ACEOF
27859 /* confdefs.h.  */
27860 _ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h.  */
27864 #include <ext/hash_set>
27865 #ifdef HAVE_NAMESPACES
27866 using namespace __gnu_cxx;
27867 #endif
27868 int
27869 main ()
27870 {
27871 hash_set<int> t;
27872   ;
27873   return 0;
27874 }
27875 _ACEOF
27876 rm -f conftest.$ac_objext
27877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27878   (eval $ac_compile) 2>conftest.er1
27879   ac_status=$?
27880   grep -v '^ *+' conftest.er1 >conftest.err
27881   rm -f conftest.er1
27882   cat conftest.err >&5
27883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884   (exit $ac_status); } &&
27885          { ac_try='test -z "$ac_cxx_werror_flag"
27886                          || test ! -s conftest.err'
27887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888   (eval $ac_try) 2>&5
27889   ac_status=$?
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); }; } &&
27892          { ac_try='test -s conftest.$ac_objext'
27893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27894   (eval $ac_try) 2>&5
27895   ac_status=$?
27896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897   (exit $ac_status); }; }; then
27898   ac_cv_cxx_have_gnu_ext_hash_set=yes
27899 else
27900   echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27902
27903 ac_cv_cxx_have_gnu_ext_hash_set=no
27904 fi
27905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27906   ac_ext=c
27907 ac_cpp='$CPP $CPPFLAGS'
27908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27911
27912 fi
27913 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27914 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27915  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27916  then
27917
27918 cat >>confdefs.h <<\_ACEOF
27919 #define HAVE_GNU_EXT_HASH_SET 1
27920 _ACEOF
27921
27922  else
27923
27924 cat >>confdefs.h <<\_ACEOF
27925 #define HAVE_GNU_EXT_HASH_SET 0
27926 _ACEOF
27927
27928  fi
27929
27930  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27931 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27932 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27933   echo $ECHO_N "(cached) $ECHO_C" >&6
27934 else
27935
27936   ac_ext=cc
27937 ac_cpp='$CXXCPP $CPPFLAGS'
27938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27941
27942   cat >conftest.$ac_ext <<_ACEOF
27943 /* confdefs.h.  */
27944 _ACEOF
27945 cat confdefs.h >>conftest.$ac_ext
27946 cat >>conftest.$ac_ext <<_ACEOF
27947 /* end confdefs.h.  */
27948 #include <hash_set>
27949 int
27950 main ()
27951 {
27952 hash_set<int> t; return 0;
27953   ;
27954   return 0;
27955 }
27956 _ACEOF
27957 rm -f conftest.$ac_objext
27958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27959   (eval $ac_compile) 2>conftest.er1
27960   ac_status=$?
27961   grep -v '^ *+' conftest.er1 >conftest.err
27962   rm -f conftest.er1
27963   cat conftest.err >&5
27964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965   (exit $ac_status); } &&
27966          { ac_try='test -z "$ac_cxx_werror_flag"
27967                          || test ! -s conftest.err'
27968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969   (eval $ac_try) 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; } &&
27973          { ac_try='test -s conftest.$ac_objext'
27974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975   (eval $ac_try) 2>&5
27976   ac_status=$?
27977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); }; }; then
27979   ac_cv_cxx_have_global_hash_set=yes
27980 else
27981   echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27983
27984 ac_cv_cxx_have_global_hash_set=no
27985 fi
27986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27987   ac_ext=c
27988 ac_cpp='$CPP $CPPFLAGS'
27989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27992
27993 fi
27994 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27995 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
27996  if test "$ac_cv_cxx_have_global_hash_set" = yes
27997  then
27998
27999 cat >>confdefs.h <<\_ACEOF
28000 #define HAVE_GLOBAL_HASH_SET 1
28001 _ACEOF
28002
28003  else
28004
28005 cat >>confdefs.h <<\_ACEOF
28006 #define HAVE_GLOBAL_HASH_SET 0
28007 _ACEOF
28008
28009  fi
28010
28011 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28012 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28013 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28014   echo $ECHO_N "(cached) $ECHO_C" >&6
28015 else
28016
28017   ac_ext=cc
28018 ac_cpp='$CXXCPP $CPPFLAGS'
28019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28022
28023   cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029 #include <iterator>
28030 #ifdef HAVE_NAMESPACES
28031 using namespace std;
28032 #endif
28033 int
28034 main ()
28035 {
28036 iterator<int,int,int> t; return 0;
28037   ;
28038   return 0;
28039 }
28040 _ACEOF
28041 rm -f conftest.$ac_objext
28042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28043   (eval $ac_compile) 2>conftest.er1
28044   ac_status=$?
28045   grep -v '^ *+' conftest.er1 >conftest.err
28046   rm -f conftest.er1
28047   cat conftest.err >&5
28048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049   (exit $ac_status); } &&
28050          { ac_try='test -z "$ac_cxx_werror_flag"
28051                          || test ! -s conftest.err'
28052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053   (eval $ac_try) 2>&5
28054   ac_status=$?
28055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056   (exit $ac_status); }; } &&
28057          { ac_try='test -s conftest.$ac_objext'
28058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059   (eval $ac_try) 2>&5
28060   ac_status=$?
28061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062   (exit $ac_status); }; }; then
28063   ac_cv_cxx_have_std_iterator=yes
28064 else
28065   echo "$as_me: failed program was:" >&5
28066 sed 's/^/| /' conftest.$ac_ext >&5
28067
28068 ac_cv_cxx_have_std_iterator=no
28069 fi
28070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28071   ac_ext=c
28072 ac_cpp='$CPP $CPPFLAGS'
28073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28076
28077
28078 fi
28079 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28080 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28081 if test "$ac_cv_cxx_have_std_iterator" = yes
28082 then
28083
28084 cat >>confdefs.h <<\_ACEOF
28085 #define HAVE_STD_ITERATOR 1
28086 _ACEOF
28087
28088 else
28089
28090 cat >>confdefs.h <<\_ACEOF
28091 #define HAVE_STD_ITERATOR 0
28092 _ACEOF
28093
28094 fi
28095
28096 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28097 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28098 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28099   echo $ECHO_N "(cached) $ECHO_C" >&6
28100 else
28101
28102   ac_ext=cc
28103 ac_cpp='$CXXCPP $CPPFLAGS'
28104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28107
28108   cat >conftest.$ac_ext <<_ACEOF
28109 /* confdefs.h.  */
28110 _ACEOF
28111 cat confdefs.h >>conftest.$ac_ext
28112 cat >>conftest.$ac_ext <<_ACEOF
28113 /* end confdefs.h.  */
28114 #include <iterator>
28115 #ifdef HAVE_NAMESPACES
28116 using namespace std;
28117 #endif
28118 int
28119 main ()
28120 {
28121 bidirectional_iterator<int,int> t; return 0;
28122   ;
28123   return 0;
28124 }
28125 _ACEOF
28126 rm -f conftest.$ac_objext
28127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28128   (eval $ac_compile) 2>conftest.er1
28129   ac_status=$?
28130   grep -v '^ *+' conftest.er1 >conftest.err
28131   rm -f conftest.er1
28132   cat conftest.err >&5
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); } &&
28135          { ac_try='test -z "$ac_cxx_werror_flag"
28136                          || test ! -s conftest.err'
28137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138   (eval $ac_try) 2>&5
28139   ac_status=$?
28140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141   (exit $ac_status); }; } &&
28142          { ac_try='test -s conftest.$ac_objext'
28143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144   (eval $ac_try) 2>&5
28145   ac_status=$?
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); }; }; then
28148   ac_cv_cxx_have_bi_iterator=yes
28149 else
28150   echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28152
28153 ac_cv_cxx_have_bi_iterator=no
28154 fi
28155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28156   ac_ext=c
28157 ac_cpp='$CPP $CPPFLAGS'
28158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28161
28162
28163 fi
28164 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28165 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28166 if test "$ac_cv_cxx_have_bi_iterator" = yes
28167 then
28168
28169 cat >>confdefs.h <<\_ACEOF
28170 #define HAVE_BI_ITERATOR 1
28171 _ACEOF
28172
28173 else
28174
28175 cat >>confdefs.h <<\_ACEOF
28176 #define HAVE_BI_ITERATOR 0
28177 _ACEOF
28178
28179 fi
28180
28181 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28182 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28183 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28184   echo $ECHO_N "(cached) $ECHO_C" >&6
28185 else
28186
28187   ac_ext=cc
28188 ac_cpp='$CXXCPP $CPPFLAGS'
28189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28192
28193   cat >conftest.$ac_ext <<_ACEOF
28194 /* confdefs.h.  */
28195 _ACEOF
28196 cat confdefs.h >>conftest.$ac_ext
28197 cat >>conftest.$ac_ext <<_ACEOF
28198 /* end confdefs.h.  */
28199 #include <iterator>
28200 #ifdef HAVE_NAMESPACES
28201 using namespace std;
28202 #endif
28203 int
28204 main ()
28205 {
28206 forward_iterator<int,int> t; return 0;
28207   ;
28208   return 0;
28209 }
28210 _ACEOF
28211 rm -f conftest.$ac_objext
28212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28213   (eval $ac_compile) 2>conftest.er1
28214   ac_status=$?
28215   grep -v '^ *+' conftest.er1 >conftest.err
28216   rm -f conftest.er1
28217   cat conftest.err >&5
28218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219   (exit $ac_status); } &&
28220          { ac_try='test -z "$ac_cxx_werror_flag"
28221                          || test ! -s conftest.err'
28222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28223   (eval $ac_try) 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); }; } &&
28227          { ac_try='test -s conftest.$ac_objext'
28228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229   (eval $ac_try) 2>&5
28230   ac_status=$?
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); }; }; then
28233   ac_cv_cxx_have_fwd_iterator=yes
28234 else
28235   echo "$as_me: failed program was:" >&5
28236 sed 's/^/| /' conftest.$ac_ext >&5
28237
28238 ac_cv_cxx_have_fwd_iterator=no
28239 fi
28240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28241   ac_ext=c
28242 ac_cpp='$CPP $CPPFLAGS'
28243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28246
28247
28248 fi
28249 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28250 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28251 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28252 then
28253
28254 cat >>confdefs.h <<\_ACEOF
28255 #define HAVE_FWD_ITERATOR 1
28256 _ACEOF
28257
28258 else
28259
28260 cat >>confdefs.h <<\_ACEOF
28261 #define HAVE_FWD_ITERATOR 0
28262 _ACEOF
28263
28264 fi
28265
28266
28267 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28268 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28269 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272   ac_ext=cc
28273 ac_cpp='$CXXCPP $CPPFLAGS'
28274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28277
28278    cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284 #include <math.h>
28285 int
28286 main ()
28287 {
28288 float f; isnan(f);
28289   ;
28290   return 0;
28291 }
28292 _ACEOF
28293 rm -f conftest.$ac_objext
28294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28295   (eval $ac_compile) 2>conftest.er1
28296   ac_status=$?
28297   grep -v '^ *+' conftest.er1 >conftest.err
28298   rm -f conftest.er1
28299   cat conftest.err >&5
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); } &&
28302          { ac_try='test -z "$ac_cxx_werror_flag"
28303                          || test ! -s conftest.err'
28304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305   (eval $ac_try) 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; } &&
28309          { ac_try='test -s conftest.$ac_objext'
28310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311   (eval $ac_try) 2>&5
28312   ac_status=$?
28313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314   (exit $ac_status); }; }; then
28315   ac_cv_func_isnan_in_math_h=yes
28316 else
28317   echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28319
28320 ac_cv_func_isnan_in_math_h=no
28321 fi
28322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28323   ac_ext=c
28324 ac_cpp='$CPP $CPPFLAGS'
28325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28328
28329 fi
28330 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28331 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28332
28333
28334 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28335
28336 cat >>confdefs.h <<\_ACEOF
28337 #define HAVE_ISNAN_IN_MATH_H 1
28338 _ACEOF
28339
28340 fi
28341
28342 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28343 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28344 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28345   echo $ECHO_N "(cached) $ECHO_C" >&6
28346 else
28347   ac_ext=cc
28348 ac_cpp='$CXXCPP $CPPFLAGS'
28349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28352
28353    cat >conftest.$ac_ext <<_ACEOF
28354 /* confdefs.h.  */
28355 _ACEOF
28356 cat confdefs.h >>conftest.$ac_ext
28357 cat >>conftest.$ac_ext <<_ACEOF
28358 /* end confdefs.h.  */
28359 #include <cmath>
28360 int
28361 main ()
28362 {
28363 float f; isnan(f);
28364   ;
28365   return 0;
28366 }
28367 _ACEOF
28368 rm -f conftest.$ac_objext
28369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28370   (eval $ac_compile) 2>conftest.er1
28371   ac_status=$?
28372   grep -v '^ *+' conftest.er1 >conftest.err
28373   rm -f conftest.er1
28374   cat conftest.err >&5
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); } &&
28377          { ac_try='test -z "$ac_cxx_werror_flag"
28378                          || test ! -s conftest.err'
28379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28380   (eval $ac_try) 2>&5
28381   ac_status=$?
28382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383   (exit $ac_status); }; } &&
28384          { ac_try='test -s conftest.$ac_objext'
28385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28386   (eval $ac_try) 2>&5
28387   ac_status=$?
28388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389   (exit $ac_status); }; }; then
28390   ac_cv_func_isnan_in_cmath=yes
28391 else
28392   echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28394
28395 ac_cv_func_isnan_in_cmath=no
28396 fi
28397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28398   ac_ext=c
28399 ac_cpp='$CPP $CPPFLAGS'
28400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28403
28404 fi
28405 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28406 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28407
28408 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28409
28410 cat >>confdefs.h <<\_ACEOF
28411 #define HAVE_ISNAN_IN_CMATH 1
28412 _ACEOF
28413
28414 fi
28415
28416 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28417 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28418 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28419   echo $ECHO_N "(cached) $ECHO_C" >&6
28420 else
28421   ac_ext=cc
28422 ac_cpp='$CXXCPP $CPPFLAGS'
28423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28426
28427    cat >conftest.$ac_ext <<_ACEOF
28428 /* confdefs.h.  */
28429 _ACEOF
28430 cat confdefs.h >>conftest.$ac_ext
28431 cat >>conftest.$ac_ext <<_ACEOF
28432 /* end confdefs.h.  */
28433 #include <cmath>
28434 int
28435 main ()
28436 {
28437 float f; std::isnan(f);
28438   ;
28439   return 0;
28440 }
28441 _ACEOF
28442 rm -f conftest.$ac_objext
28443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28444   (eval $ac_compile) 2>conftest.er1
28445   ac_status=$?
28446   grep -v '^ *+' conftest.er1 >conftest.err
28447   rm -f conftest.er1
28448   cat conftest.err >&5
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); } &&
28451          { ac_try='test -z "$ac_cxx_werror_flag"
28452                          || test ! -s conftest.err'
28453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454   (eval $ac_try) 2>&5
28455   ac_status=$?
28456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457   (exit $ac_status); }; } &&
28458          { ac_try='test -s conftest.$ac_objext'
28459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460   (eval $ac_try) 2>&5
28461   ac_status=$?
28462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463   (exit $ac_status); }; }; then
28464   ac_cv_func_std_isnan_in_cmath=yes
28465 else
28466   echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28468
28469 ac_cv_func_std_isnan_in_cmath=no
28470 fi
28471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28472   ac_ext=c
28473 ac_cpp='$CPP $CPPFLAGS'
28474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28477
28478 fi
28479 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28480 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28481
28482 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28483
28484 cat >>confdefs.h <<\_ACEOF
28485 #define HAVE_STD_ISNAN_IN_CMATH 1
28486 _ACEOF
28487
28488 fi
28489
28490
28491 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28492 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28493 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28494   echo $ECHO_N "(cached) $ECHO_C" >&6
28495 else
28496   ac_ext=cc
28497 ac_cpp='$CXXCPP $CPPFLAGS'
28498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28501
28502    cat >conftest.$ac_ext <<_ACEOF
28503 /* confdefs.h.  */
28504 _ACEOF
28505 cat confdefs.h >>conftest.$ac_ext
28506 cat >>conftest.$ac_ext <<_ACEOF
28507 /* end confdefs.h.  */
28508 #include <math.h>
28509 int
28510 main ()
28511 {
28512 float f; isinf(f);
28513   ;
28514   return 0;
28515 }
28516 _ACEOF
28517 rm -f conftest.$ac_objext
28518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28519   (eval $ac_compile) 2>conftest.er1
28520   ac_status=$?
28521   grep -v '^ *+' conftest.er1 >conftest.err
28522   rm -f conftest.er1
28523   cat conftest.err >&5
28524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525   (exit $ac_status); } &&
28526          { ac_try='test -z "$ac_cxx_werror_flag"
28527                          || test ! -s conftest.err'
28528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529   (eval $ac_try) 2>&5
28530   ac_status=$?
28531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532   (exit $ac_status); }; } &&
28533          { ac_try='test -s conftest.$ac_objext'
28534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535   (eval $ac_try) 2>&5
28536   ac_status=$?
28537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538   (exit $ac_status); }; }; then
28539   ac_cv_func_isinf_in_math_h=yes
28540 else
28541   echo "$as_me: failed program was:" >&5
28542 sed 's/^/| /' conftest.$ac_ext >&5
28543
28544 ac_cv_func_isinf_in_math_h=no
28545 fi
28546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28547   ac_ext=c
28548 ac_cpp='$CPP $CPPFLAGS'
28549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28552
28553 fi
28554 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28555 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28556
28557 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28558
28559 cat >>confdefs.h <<\_ACEOF
28560 #define HAVE_ISINF_IN_MATH_H 1
28561 _ACEOF
28562
28563 fi
28564
28565 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28566 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28567 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28568   echo $ECHO_N "(cached) $ECHO_C" >&6
28569 else
28570   ac_ext=cc
28571 ac_cpp='$CXXCPP $CPPFLAGS'
28572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28575
28576    cat >conftest.$ac_ext <<_ACEOF
28577 /* confdefs.h.  */
28578 _ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h.  */
28582 #include <cmath>
28583 int
28584 main ()
28585 {
28586 float f; isinf(f);
28587   ;
28588   return 0;
28589 }
28590 _ACEOF
28591 rm -f conftest.$ac_objext
28592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28593   (eval $ac_compile) 2>conftest.er1
28594   ac_status=$?
28595   grep -v '^ *+' conftest.er1 >conftest.err
28596   rm -f conftest.er1
28597   cat conftest.err >&5
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } &&
28600          { ac_try='test -z "$ac_cxx_werror_flag"
28601                          || test ! -s conftest.err'
28602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603   (eval $ac_try) 2>&5
28604   ac_status=$?
28605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606   (exit $ac_status); }; } &&
28607          { ac_try='test -s conftest.$ac_objext'
28608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609   (eval $ac_try) 2>&5
28610   ac_status=$?
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); }; }; then
28613   ac_cv_func_isinf_in_cmath=yes
28614 else
28615   echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28617
28618 ac_cv_func_isinf_in_cmath=no
28619 fi
28620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28621   ac_ext=c
28622 ac_cpp='$CPP $CPPFLAGS'
28623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28626
28627 fi
28628 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28629 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28630
28631 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28632
28633 cat >>confdefs.h <<\_ACEOF
28634 #define HAVE_ISINF_IN_CMATH 1
28635 _ACEOF
28636
28637 fi
28638
28639 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28640 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28641 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28642   echo $ECHO_N "(cached) $ECHO_C" >&6
28643 else
28644   ac_ext=cc
28645 ac_cpp='$CXXCPP $CPPFLAGS'
28646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28649
28650    cat >conftest.$ac_ext <<_ACEOF
28651 /* confdefs.h.  */
28652 _ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h.  */
28656 #include <cmath>
28657 int
28658 main ()
28659 {
28660 float f; std::isinf(f)}
28661   ;
28662   return 0;
28663 }
28664 _ACEOF
28665 rm -f conftest.$ac_objext
28666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28667   (eval $ac_compile) 2>conftest.er1
28668   ac_status=$?
28669   grep -v '^ *+' conftest.er1 >conftest.err
28670   rm -f conftest.er1
28671   cat conftest.err >&5
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); } &&
28674          { ac_try='test -z "$ac_cxx_werror_flag"
28675                          || test ! -s conftest.err'
28676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677   (eval $ac_try) 2>&5
28678   ac_status=$?
28679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680   (exit $ac_status); }; } &&
28681          { ac_try='test -s conftest.$ac_objext'
28682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683   (eval $ac_try) 2>&5
28684   ac_status=$?
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); }; }; then
28687   ac_cv_func_std_isinf_in_cmath=yes
28688 else
28689   echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28691
28692 ac_cv_func_std_isinf_in_cmath=no
28693 fi
28694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28695   ac_ext=c
28696 ac_cpp='$CPP $CPPFLAGS'
28697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28700
28701 fi
28702 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28703 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28704
28705 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28706
28707 cat >>confdefs.h <<\_ACEOF
28708 #define HAVE_STD_ISINF_IN_CMATH 1
28709 _ACEOF
28710
28711 fi
28712
28713 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28714 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28715 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28716   echo $ECHO_N "(cached) $ECHO_C" >&6
28717 else
28718   ac_ext=cc
28719 ac_cpp='$CXXCPP $CPPFLAGS'
28720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28723
28724    cat >conftest.$ac_ext <<_ACEOF
28725 /* confdefs.h.  */
28726 _ACEOF
28727 cat confdefs.h >>conftest.$ac_ext
28728 cat >>conftest.$ac_ext <<_ACEOF
28729 /* end confdefs.h.  */
28730 #include <ieeefp.h>
28731 int
28732 main ()
28733 {
28734 float f; finite(f);
28735   ;
28736   return 0;
28737 }
28738 _ACEOF
28739 rm -f conftest.$ac_objext
28740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28741   (eval $ac_compile) 2>conftest.er1
28742   ac_status=$?
28743   grep -v '^ *+' conftest.er1 >conftest.err
28744   rm -f conftest.er1
28745   cat conftest.err >&5
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); } &&
28748          { ac_try='test -z "$ac_cxx_werror_flag"
28749                          || test ! -s conftest.err'
28750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751   (eval $ac_try) 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; } &&
28755          { ac_try='test -s conftest.$ac_objext'
28756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757   (eval $ac_try) 2>&5
28758   ac_status=$?
28759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760   (exit $ac_status); }; }; then
28761   ac_cv_func_finite_in_ieeefp_h=yes
28762 else
28763   echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28765
28766 ac_cv_func_finite_in_ieeefp_h=no
28767 fi
28768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28769   ac_ext=c
28770 ac_cpp='$CPP $CPPFLAGS'
28771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28774
28775 fi
28776 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28777 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28778
28779 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28780
28781 cat >>confdefs.h <<\_ACEOF
28782 #define HAVE_FINITE_IN_IEEEFP_H 1
28783 _ACEOF
28784
28785 fi
28786
28787
28788
28789
28790
28791 for ac_header in stdlib.h unistd.h
28792 do
28793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28795   echo "$as_me:$LINENO: checking for $ac_header" >&5
28796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28798   echo $ECHO_N "(cached) $ECHO_C" >&6
28799 fi
28800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28802 else
28803   # Is the header compilable?
28804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28806 cat >conftest.$ac_ext <<_ACEOF
28807 /* confdefs.h.  */
28808 _ACEOF
28809 cat confdefs.h >>conftest.$ac_ext
28810 cat >>conftest.$ac_ext <<_ACEOF
28811 /* end confdefs.h.  */
28812 $ac_includes_default
28813 #include <$ac_header>
28814 _ACEOF
28815 rm -f conftest.$ac_objext
28816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28817   (eval $ac_compile) 2>conftest.er1
28818   ac_status=$?
28819   grep -v '^ *+' conftest.er1 >conftest.err
28820   rm -f conftest.er1
28821   cat conftest.err >&5
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); } &&
28824          { ac_try='test -z "$ac_c_werror_flag"
28825                          || test ! -s conftest.err'
28826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28827   (eval $ac_try) 2>&5
28828   ac_status=$?
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); }; } &&
28831          { ac_try='test -s conftest.$ac_objext'
28832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833   (eval $ac_try) 2>&5
28834   ac_status=$?
28835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836   (exit $ac_status); }; }; then
28837   ac_header_compiler=yes
28838 else
28839   echo "$as_me: failed program was:" >&5
28840 sed 's/^/| /' conftest.$ac_ext >&5
28841
28842 ac_header_compiler=no
28843 fi
28844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28846 echo "${ECHO_T}$ac_header_compiler" >&6
28847
28848 # Is the header present?
28849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28851 cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h.  */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h.  */
28857 #include <$ac_header>
28858 _ACEOF
28859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28861   ac_status=$?
28862   grep -v '^ *+' conftest.er1 >conftest.err
28863   rm -f conftest.er1
28864   cat conftest.err >&5
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); } >/dev/null; then
28867   if test -s conftest.err; then
28868     ac_cpp_err=$ac_c_preproc_warn_flag
28869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28870   else
28871     ac_cpp_err=
28872   fi
28873 else
28874   ac_cpp_err=yes
28875 fi
28876 if test -z "$ac_cpp_err"; then
28877   ac_header_preproc=yes
28878 else
28879   echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28881
28882   ac_header_preproc=no
28883 fi
28884 rm -f conftest.err conftest.$ac_ext
28885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28886 echo "${ECHO_T}$ac_header_preproc" >&6
28887
28888 # So?  What about this header?
28889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28890   yes:no: )
28891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28895     ac_header_preproc=yes
28896     ;;
28897   no:yes:* )
28898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28910     (
28911       cat <<\_ASBOX
28912 ## ----------------------------------- ##
28913 ## Report this to llvmbugs@cs.uiuc.edu ##
28914 ## ----------------------------------- ##
28915 _ASBOX
28916     ) |
28917       sed "s/^/$as_me: WARNING:     /" >&2
28918     ;;
28919 esac
28920 echo "$as_me:$LINENO: checking for $ac_header" >&5
28921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28923   echo $ECHO_N "(cached) $ECHO_C" >&6
28924 else
28925   eval "$as_ac_Header=\$ac_header_preproc"
28926 fi
28927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28929
28930 fi
28931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28932   cat >>confdefs.h <<_ACEOF
28933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28934 _ACEOF
28935
28936 fi
28937
28938 done
28939
28940
28941 for ac_func in getpagesize
28942 do
28943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28944 echo "$as_me:$LINENO: checking for $ac_func" >&5
28945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28946 if eval "test \"\${$as_ac_var+set}\" = set"; then
28947   echo $ECHO_N "(cached) $ECHO_C" >&6
28948 else
28949   cat >conftest.$ac_ext <<_ACEOF
28950 /* confdefs.h.  */
28951 _ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h.  */
28955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28957 #define $ac_func innocuous_$ac_func
28958
28959 /* System header to define __stub macros and hopefully few prototypes,
28960     which can conflict with char $ac_func (); below.
28961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28962     <limits.h> exists even on freestanding compilers.  */
28963
28964 #ifdef __STDC__
28965 # include <limits.h>
28966 #else
28967 # include <assert.h>
28968 #endif
28969
28970 #undef $ac_func
28971
28972 /* Override any gcc2 internal prototype to avoid an error.  */
28973 #ifdef __cplusplus
28974 extern "C"
28975 {
28976 #endif
28977 /* We use char because int might match the return type of a gcc2
28978    builtin and then its argument prototype would still apply.  */
28979 char $ac_func ();
28980 /* The GNU C library defines this for functions which it implements
28981     to always fail with ENOSYS.  Some functions are actually named
28982     something starting with __ and the normal name is an alias.  */
28983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28984 choke me
28985 #else
28986 char (*f) () = $ac_func;
28987 #endif
28988 #ifdef __cplusplus
28989 }
28990 #endif
28991
28992 int
28993 main ()
28994 {
28995 return f != $ac_func;
28996   ;
28997   return 0;
28998 }
28999 _ACEOF
29000 rm -f conftest.$ac_objext conftest$ac_exeext
29001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29002   (eval $ac_link) 2>conftest.er1
29003   ac_status=$?
29004   grep -v '^ *+' conftest.er1 >conftest.err
29005   rm -f conftest.er1
29006   cat conftest.err >&5
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); } &&
29009          { ac_try='test -z "$ac_c_werror_flag"
29010                          || test ! -s conftest.err'
29011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012   (eval $ac_try) 2>&5
29013   ac_status=$?
29014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015   (exit $ac_status); }; } &&
29016          { ac_try='test -s conftest$ac_exeext'
29017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29018   (eval $ac_try) 2>&5
29019   ac_status=$?
29020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021   (exit $ac_status); }; }; then
29022   eval "$as_ac_var=yes"
29023 else
29024   echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29026
29027 eval "$as_ac_var=no"
29028 fi
29029 rm -f conftest.err conftest.$ac_objext \
29030       conftest$ac_exeext conftest.$ac_ext
29031 fi
29032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29034 if test `eval echo '${'$as_ac_var'}'` = yes; then
29035   cat >>confdefs.h <<_ACEOF
29036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29037 _ACEOF
29038
29039 fi
29040 done
29041
29042 echo "$as_me:$LINENO: checking for working mmap" >&5
29043 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29044 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29045   echo $ECHO_N "(cached) $ECHO_C" >&6
29046 else
29047   if test "$cross_compiling" = yes; then
29048   ac_cv_func_mmap_fixed_mapped=no
29049 else
29050   cat >conftest.$ac_ext <<_ACEOF
29051 /* confdefs.h.  */
29052 _ACEOF
29053 cat confdefs.h >>conftest.$ac_ext
29054 cat >>conftest.$ac_ext <<_ACEOF
29055 /* end confdefs.h.  */
29056 $ac_includes_default
29057 /* malloc might have been renamed as rpl_malloc. */
29058 #undef malloc
29059
29060 /* Thanks to Mike Haertel and Jim Avera for this test.
29061    Here is a matrix of mmap possibilities:
29062         mmap private not fixed
29063         mmap private fixed at somewhere currently unmapped
29064         mmap private fixed at somewhere already mapped
29065         mmap shared not fixed
29066         mmap shared fixed at somewhere currently unmapped
29067         mmap shared fixed at somewhere already mapped
29068    For private mappings, we should verify that changes cannot be read()
29069    back from the file, nor mmap's back from the file at a different
29070    address.  (There have been systems where private was not correctly
29071    implemented like the infamous i386 svr4.0, and systems where the
29072    VM page cache was not coherent with the file system buffer cache
29073    like early versions of FreeBSD and possibly contemporary NetBSD.)
29074    For shared mappings, we should conversely verify that changes get
29075    propagated back to all the places they're supposed to be.
29076
29077    Grep wants private fixed already mapped.
29078    The main things grep needs to know about mmap are:
29079    * does it exist and is it safe to write into the mmap'd area
29080    * how to use it (BSD variants)  */
29081
29082 #include <fcntl.h>
29083 #include <sys/mman.h>
29084
29085 #if !STDC_HEADERS && !HAVE_STDLIB_H
29086 char *malloc ();
29087 #endif
29088
29089 /* This mess was copied from the GNU getpagesize.h.  */
29090 #if !HAVE_GETPAGESIZE
29091 /* Assume that all systems that can run configure have sys/param.h.  */
29092 # if !HAVE_SYS_PARAM_H
29093 #  define HAVE_SYS_PARAM_H 1
29094 # endif
29095
29096 # ifdef _SC_PAGESIZE
29097 #  define getpagesize() sysconf(_SC_PAGESIZE)
29098 # else /* no _SC_PAGESIZE */
29099 #  if HAVE_SYS_PARAM_H
29100 #   include <sys/param.h>
29101 #   ifdef EXEC_PAGESIZE
29102 #    define getpagesize() EXEC_PAGESIZE
29103 #   else /* no EXEC_PAGESIZE */
29104 #    ifdef NBPG
29105 #     define getpagesize() NBPG * CLSIZE
29106 #     ifndef CLSIZE
29107 #      define CLSIZE 1
29108 #     endif /* no CLSIZE */
29109 #    else /* no NBPG */
29110 #     ifdef NBPC
29111 #      define getpagesize() NBPC
29112 #     else /* no NBPC */
29113 #      ifdef PAGESIZE
29114 #       define getpagesize() PAGESIZE
29115 #      endif /* PAGESIZE */
29116 #     endif /* no NBPC */
29117 #    endif /* no NBPG */
29118 #   endif /* no EXEC_PAGESIZE */
29119 #  else /* no HAVE_SYS_PARAM_H */
29120 #   define getpagesize() 8192   /* punt totally */
29121 #  endif /* no HAVE_SYS_PARAM_H */
29122 # endif /* no _SC_PAGESIZE */
29123
29124 #endif /* no HAVE_GETPAGESIZE */
29125
29126 int
29127 main ()
29128 {
29129   char *data, *data2, *data3;
29130   int i, pagesize;
29131   int fd;
29132
29133   pagesize = getpagesize ();
29134
29135   /* First, make a file with some known garbage in it. */
29136   data = (char *) malloc (pagesize);
29137   if (!data)
29138     exit (1);
29139   for (i = 0; i < pagesize; ++i)
29140     *(data + i) = rand ();
29141   umask (0);
29142   fd = creat ("conftest.mmap", 0600);
29143   if (fd < 0)
29144     exit (1);
29145   if (write (fd, data, pagesize) != pagesize)
29146     exit (1);
29147   close (fd);
29148
29149   /* Next, try to mmap the file at a fixed address which already has
29150      something else allocated at it.  If we can, also make sure that
29151      we see the same garbage.  */
29152   fd = open ("conftest.mmap", O_RDWR);
29153   if (fd < 0)
29154     exit (1);
29155   data2 = (char *) malloc (2 * pagesize);
29156   if (!data2)
29157     exit (1);
29158   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29159   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29160                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29161     exit (1);
29162   for (i = 0; i < pagesize; ++i)
29163     if (*(data + i) != *(data2 + i))
29164       exit (1);
29165
29166   /* Finally, make sure that changes to the mapped area do not
29167      percolate back to the file as seen by read().  (This is a bug on
29168      some variants of i386 svr4.0.)  */
29169   for (i = 0; i < pagesize; ++i)
29170     *(data2 + i) = *(data2 + i) + 1;
29171   data3 = (char *) malloc (pagesize);
29172   if (!data3)
29173     exit (1);
29174   if (read (fd, data3, pagesize) != pagesize)
29175     exit (1);
29176   for (i = 0; i < pagesize; ++i)
29177     if (*(data + i) != *(data3 + i))
29178       exit (1);
29179   close (fd);
29180   exit (0);
29181 }
29182 _ACEOF
29183 rm -f conftest$ac_exeext
29184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29185   (eval $ac_link) 2>&5
29186   ac_status=$?
29187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190   (eval $ac_try) 2>&5
29191   ac_status=$?
29192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); }; }; then
29194   ac_cv_func_mmap_fixed_mapped=yes
29195 else
29196   echo "$as_me: program exited with status $ac_status" >&5
29197 echo "$as_me: failed program was:" >&5
29198 sed 's/^/| /' conftest.$ac_ext >&5
29199
29200 ( exit $ac_status )
29201 ac_cv_func_mmap_fixed_mapped=no
29202 fi
29203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29204 fi
29205 fi
29206 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29207 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29208 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29209
29210 cat >>confdefs.h <<\_ACEOF
29211 #define HAVE_MMAP 1
29212 _ACEOF
29213
29214 fi
29215 rm -f conftest.mmap
29216
29217 echo "$as_me:$LINENO: checking for mmap of files" >&5
29218 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29219 if test "${ac_cv_func_mmap_file+set}" = set; then
29220   echo $ECHO_N "(cached) $ECHO_C" >&6
29221 else
29222    ac_ext=c
29223 ac_cpp='$CPP $CPPFLAGS'
29224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29227
29228   if test "$cross_compiling" = yes; then
29229   ac_cv_func_mmap_file=no
29230 else
29231   cat >conftest.$ac_ext <<_ACEOF
29232
29233     /* confdefs.h.  */
29234 _ACEOF
29235 cat confdefs.h >>conftest.$ac_ext
29236 cat >>conftest.$ac_ext <<_ACEOF
29237 /* end confdefs.h.  */
29238
29239 #include <sys/types.h>
29240 #include <sys/mman.h>
29241 #include <fcntl.h>
29242
29243 int
29244 main ()
29245 {
29246
29247   int fd;
29248   fd = creat ("foo",0777);
29249   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29250   unlink ("foo");
29251   return (fd != (int) MAP_FAILED);
29252   ;
29253   return 0;
29254 }
29255 _ACEOF
29256 rm -f conftest$ac_exeext
29257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29258   (eval $ac_link) 2>&5
29259   ac_status=$?
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263   (eval $ac_try) 2>&5
29264   ac_status=$?
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); }; }; then
29267   ac_cv_func_mmap_file=yes
29268 else
29269   echo "$as_me: program exited with status $ac_status" >&5
29270 echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29272
29273 ( exit $ac_status )
29274 ac_cv_func_mmap_file=no
29275 fi
29276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29277 fi
29278   ac_ext=c
29279 ac_cpp='$CPP $CPPFLAGS'
29280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29283
29284
29285 fi
29286 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29287 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29288 if test "$ac_cv_func_mmap_file" = yes; then
29289
29290 cat >>confdefs.h <<\_ACEOF
29291 #define HAVE_MMAP_FILE
29292 _ACEOF
29293
29294    MMAP_FILE=yes
29295
29296 fi
29297
29298 echo "$as_me:$LINENO: checking for mprotect" >&5
29299 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29300 if test "${ac_cv_func_mprotect+set}" = set; then
29301   echo $ECHO_N "(cached) $ECHO_C" >&6
29302 else
29303   cat >conftest.$ac_ext <<_ACEOF
29304 /* confdefs.h.  */
29305 _ACEOF
29306 cat confdefs.h >>conftest.$ac_ext
29307 cat >>conftest.$ac_ext <<_ACEOF
29308 /* end confdefs.h.  */
29309 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29311 #define mprotect innocuous_mprotect
29312
29313 /* System header to define __stub macros and hopefully few prototypes,
29314     which can conflict with char mprotect (); below.
29315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29316     <limits.h> exists even on freestanding compilers.  */
29317
29318 #ifdef __STDC__
29319 # include <limits.h>
29320 #else
29321 # include <assert.h>
29322 #endif
29323
29324 #undef mprotect
29325
29326 /* Override any gcc2 internal prototype to avoid an error.  */
29327 #ifdef __cplusplus
29328 extern "C"
29329 {
29330 #endif
29331 /* We use char because int might match the return type of a gcc2
29332    builtin and then its argument prototype would still apply.  */
29333 char mprotect ();
29334 /* The GNU C library defines this for functions which it implements
29335     to always fail with ENOSYS.  Some functions are actually named
29336     something starting with __ and the normal name is an alias.  */
29337 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29338 choke me
29339 #else
29340 char (*f) () = mprotect;
29341 #endif
29342 #ifdef __cplusplus
29343 }
29344 #endif
29345
29346 int
29347 main ()
29348 {
29349 return f != mprotect;
29350   ;
29351   return 0;
29352 }
29353 _ACEOF
29354 rm -f conftest.$ac_objext conftest$ac_exeext
29355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29356   (eval $ac_link) 2>conftest.er1
29357   ac_status=$?
29358   grep -v '^ *+' conftest.er1 >conftest.err
29359   rm -f conftest.er1
29360   cat conftest.err >&5
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); } &&
29363          { ac_try='test -z "$ac_c_werror_flag"
29364                          || test ! -s conftest.err'
29365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366   (eval $ac_try) 2>&5
29367   ac_status=$?
29368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369   (exit $ac_status); }; } &&
29370          { ac_try='test -s conftest$ac_exeext'
29371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29372   (eval $ac_try) 2>&5
29373   ac_status=$?
29374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); }; }; then
29376   ac_cv_func_mprotect=yes
29377 else
29378   echo "$as_me: failed program was:" >&5
29379 sed 's/^/| /' conftest.$ac_ext >&5
29380
29381 ac_cv_func_mprotect=no
29382 fi
29383 rm -f conftest.err conftest.$ac_objext \
29384       conftest$ac_exeext conftest.$ac_ext
29385 fi
29386 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29387 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29388 if test $ac_cv_func_mprotect = yes; then
29389   :
29390 else
29391   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29392 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29393    { (exit 1); exit 1; }; }
29394 fi
29395
29396
29397 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29398 then
29399   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29400 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29401 fi
29402 if test "$ac_cv_func_mmap_file" = "no"
29403 then
29404   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29405 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29406 fi
29407
29408
29409 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29410 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29411 if test "${llvm_cv_llvmgcc+set}" = set; then
29412   echo $ECHO_N "(cached) $ECHO_C" >&6
29413 else
29414   llvm_cv_llvmgcc='llvmgcc_not_found'
29415 if test -d "$LLVMGCCDIR" ; then
29416   if test -x "$LLVMGCCDIR/bin/gcc" ; then
29417     llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29418   fi
29419 fi
29420 fi
29421 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29422 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29423
29424 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29425 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29426 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29427   echo $ECHO_N "(cached) $ECHO_C" >&6
29428 else
29429   llvm_cv_llvmgcc_sanity="no"
29430 if test -x "$llvm_cv_llvmgcc" ; then
29431   cp /dev/null conftest.c
29432   "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29433   if test $? -eq 0 ; then
29434     llvm_cv_llvmgcc_sanity="yes"
29435   fi
29436   rm conftest.c
29437 fi
29438 fi
29439 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29440 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29441
29442 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29443   LLVMGCC="$llvm_cv_llvmgcc"
29444
29445   llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29446   LLVMCC1=$llvmcc1path
29447
29448   llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29449   LLVMCC1PLUS=$llvmcc1pluspath
29450
29451 fi
29452
29453 SHLIBEXT=$libltdl_cv_shlibext
29454
29455
29456 # Translate the various configuration directories and other basic
29457 # information into substitutions that will end up in Makefile.config.in
29458 # that these configured values can be used by the makefiles
29459 eval LLVM_PREFIX="${prefix}";
29460 eval LLVM_BINDIR="${prefix}/bin";
29461 eval LLVM_LIBDIR="${prefix}/lib";
29462 eval LLVM_DATADIR="${prefix}/share/llvm";
29463 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29464 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29465 eval LLVM_INCLUDEDIR="${prefix}/include";
29466 eval LLVM_INFODIR="${prefix}/info";
29467 eval LLVM_MANDIR="${prefix}/man";
29468 LLVM_CONFIGTIME=`date`
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480 # Place the various directores into the config.h file as #defines so that we
29481 # can know about the installation paths within LLVM.
29482
29483 cat >>confdefs.h <<_ACEOF
29484 #define LLVM_PREFIX "$LLVM_PREFIX"
29485 _ACEOF
29486
29487
29488 cat >>confdefs.h <<_ACEOF
29489 #define LLVM_BINDIR "$LLVM_BINDIR"
29490 _ACEOF
29491
29492
29493 cat >>confdefs.h <<_ACEOF
29494 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29495 _ACEOF
29496
29497
29498 cat >>confdefs.h <<_ACEOF
29499 #define LLVM_DATADIR "$LLVM_DATADIR"
29500 _ACEOF
29501
29502
29503 cat >>confdefs.h <<_ACEOF
29504 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29505 _ACEOF
29506
29507
29508 cat >>confdefs.h <<_ACEOF
29509 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29510 _ACEOF
29511
29512
29513 cat >>confdefs.h <<_ACEOF
29514 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29515 _ACEOF
29516
29517
29518 cat >>confdefs.h <<_ACEOF
29519 #define LLVM_INFODIR "$LLVM_INFODIR"
29520 _ACEOF
29521
29522
29523 cat >>confdefs.h <<_ACEOF
29524 #define LLVM_MANDIR "$LLVM_MANDIR"
29525 _ACEOF
29526
29527
29528 cat >>confdefs.h <<_ACEOF
29529 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29530 _ACEOF
29531
29532
29533
29534           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29535
29536
29537           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29538
29539           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29540
29541           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29542
29543           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29544
29545           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29546
29547
29548           ac_config_files="$ac_config_files Makefile.config"
29549
29550
29551                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29552
29553
29554           ac_config_files="$ac_config_files docs/doxygen.cfg"
29555
29556
29557           ac_config_commands="$ac_config_commands Makefile"
29558
29559
29560           ac_config_commands="$ac_config_commands Makefile.common"
29561
29562
29563           ac_config_commands="$ac_config_commands examples/Makefile"
29564
29565
29566           ac_config_commands="$ac_config_commands lib/Makefile"
29567
29568
29569           ac_config_commands="$ac_config_commands runtime/Makefile"
29570
29571
29572           ac_config_commands="$ac_config_commands test/Makefile"
29573
29574
29575           ac_config_commands="$ac_config_commands test/Makefile.tests"
29576
29577
29578           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29579
29580
29581           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29582
29583
29584           ac_config_commands="$ac_config_commands tools/Makefile"
29585
29586
29587           ac_config_commands="$ac_config_commands utils/Makefile"
29588
29589
29590           ac_config_commands="$ac_config_commands projects/Makefile"
29591
29592
29593
29594 cat >confcache <<\_ACEOF
29595 # This file is a shell script that caches the results of configure
29596 # tests run on this system so they can be shared between configure
29597 # scripts and configure runs, see configure's option --config-cache.
29598 # It is not useful on other systems.  If it contains results you don't
29599 # want to keep, you may remove or edit it.
29600 #
29601 # config.status only pays attention to the cache file if you give it
29602 # the --recheck option to rerun configure.
29603 #
29604 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29606 # following values.
29607
29608 _ACEOF
29609
29610 # The following way of writing the cache mishandles newlines in values,
29611 # but we know of no workaround that is simple, portable, and efficient.
29612 # So, don't put newlines in cache variables' values.
29613 # Ultrix sh set writes to stderr and can't be redirected directly,
29614 # and sets the high bit in the cache file unless we assign to the vars.
29615 {
29616   (set) 2>&1 |
29617     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29618     *ac_space=\ *)
29619       # `set' does not quote correctly, so add quotes (double-quote
29620       # substitution turns \\\\ into \\, and sed turns \\ into \).
29621       sed -n \
29622         "s/'/'\\\\''/g;
29623           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29624       ;;
29625     *)
29626       # `set' quotes correctly as required by POSIX, so do not add quotes.
29627       sed -n \
29628         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29629       ;;
29630     esac;
29631 } |
29632   sed '
29633      t clear
29634      : clear
29635      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29636      t end
29637      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29638      : end' >>confcache
29639 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29640   if test -w $cache_file; then
29641     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29642     cat confcache >$cache_file
29643   else
29644     echo "not updating unwritable cache $cache_file"
29645   fi
29646 fi
29647 rm -f confcache
29648
29649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29650 # Let make expand exec_prefix.
29651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29652
29653 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29654 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29655 # trailing colons and then remove the whole line if VPATH becomes empty
29656 # (actually we leave an empty line to preserve line numbers).
29657 if test "x$srcdir" = x.; then
29658   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29659 s/:*\$(srcdir):*/:/;
29660 s/:*\${srcdir}:*/:/;
29661 s/:*@srcdir@:*/:/;
29662 s/^\([^=]*=[     ]*\):*/\1/;
29663 s/:*$//;
29664 s/^[^=]*=[       ]*$//;
29665 }'
29666 fi
29667
29668 DEFS=-DHAVE_CONFIG_H
29669
29670 ac_libobjs=
29671 ac_ltlibobjs=
29672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29673   # 1. Remove the extension, and $U if already installed.
29674   ac_i=`echo "$ac_i" |
29675          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29676   # 2. Add them.
29677   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29678   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29679 done
29680 LIBOBJS=$ac_libobjs
29681
29682 LTLIBOBJS=$ac_ltlibobjs
29683
29684
29685 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29686   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29687 Usually this means the macro was only invoked conditionally." >&5
29688 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29689 Usually this means the macro was only invoked conditionally." >&2;}
29690    { (exit 1); exit 1; }; }
29691 fi
29692 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29693   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29694 Usually this means the macro was only invoked conditionally." >&5
29695 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29696 Usually this means the macro was only invoked conditionally." >&2;}
29697    { (exit 1); exit 1; }; }
29698 fi
29699
29700 : ${CONFIG_STATUS=./config.status}
29701 ac_clean_files_save=$ac_clean_files
29702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29703 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29704 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29705 cat >$CONFIG_STATUS <<_ACEOF
29706 #! $SHELL
29707 # Generated by $as_me.
29708 # Run this file to recreate the current configuration.
29709 # Compiler output produced by configure, useful for debugging
29710 # configure, is in config.log if it exists.
29711
29712 debug=false
29713 ac_cs_recheck=false
29714 ac_cs_silent=false
29715 SHELL=\${CONFIG_SHELL-$SHELL}
29716 _ACEOF
29717
29718 cat >>$CONFIG_STATUS <<\_ACEOF
29719 ## --------------------- ##
29720 ## M4sh Initialization.  ##
29721 ## --------------------- ##
29722
29723 # Be Bourne compatible
29724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29725   emulate sh
29726   NULLCMD=:
29727   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29728   # is contrary to our usage.  Disable this feature.
29729   alias -g '${1+"$@"}'='"$@"'
29730 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29731   set -o posix
29732 fi
29733 DUALCASE=1; export DUALCASE # for MKS sh
29734
29735 # Support unset when possible.
29736 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29737   as_unset=unset
29738 else
29739   as_unset=false
29740 fi
29741
29742
29743 # Work around bugs in pre-3.0 UWIN ksh.
29744 $as_unset ENV MAIL MAILPATH
29745 PS1='$ '
29746 PS2='> '
29747 PS4='+ '
29748
29749 # NLS nuisances.
29750 for as_var in \
29751   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29752   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29753   LC_TELEPHONE LC_TIME
29754 do
29755   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29756     eval $as_var=C; export $as_var
29757   else
29758     $as_unset $as_var
29759   fi
29760 done
29761
29762 # Required to use basename.
29763 if expr a : '\(a\)' >/dev/null 2>&1; then
29764   as_expr=expr
29765 else
29766   as_expr=false
29767 fi
29768
29769 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29770   as_basename=basename
29771 else
29772   as_basename=false
29773 fi
29774
29775
29776 # Name of the executable.
29777 as_me=`$as_basename "$0" ||
29778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29779          X"$0" : 'X\(//\)$' \| \
29780          X"$0" : 'X\(/\)$' \| \
29781          .     : '\(.\)' 2>/dev/null ||
29782 echo X/"$0" |
29783     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29784           /^X\/\(\/\/\)$/{ s//\1/; q; }
29785           /^X\/\(\/\).*/{ s//\1/; q; }
29786           s/.*/./; q'`
29787
29788
29789 # PATH needs CR, and LINENO needs CR and PATH.
29790 # Avoid depending upon Character Ranges.
29791 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29792 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29793 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29794 as_cr_digits='0123456789'
29795 as_cr_alnum=$as_cr_Letters$as_cr_digits
29796
29797 # The user is always right.
29798 if test "${PATH_SEPARATOR+set}" != set; then
29799   echo "#! /bin/sh" >conf$$.sh
29800   echo  "exit 0"   >>conf$$.sh
29801   chmod +x conf$$.sh
29802   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29803     PATH_SEPARATOR=';'
29804   else
29805     PATH_SEPARATOR=:
29806   fi
29807   rm -f conf$$.sh
29808 fi
29809
29810
29811   as_lineno_1=$LINENO
29812   as_lineno_2=$LINENO
29813   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29814   test "x$as_lineno_1" != "x$as_lineno_2" &&
29815   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29816   # Find who we are.  Look in the path if we contain no path at all
29817   # relative or not.
29818   case $0 in
29819     *[\\/]* ) as_myself=$0 ;;
29820     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29821 for as_dir in $PATH
29822 do
29823   IFS=$as_save_IFS
29824   test -z "$as_dir" && as_dir=.
29825   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29826 done
29827
29828        ;;
29829   esac
29830   # We did not find ourselves, most probably we were run as `sh COMMAND'
29831   # in which case we are not to be found in the path.
29832   if test "x$as_myself" = x; then
29833     as_myself=$0
29834   fi
29835   if test ! -f "$as_myself"; then
29836     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29837 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29838    { (exit 1); exit 1; }; }
29839   fi
29840   case $CONFIG_SHELL in
29841   '')
29842     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29843 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29844 do
29845   IFS=$as_save_IFS
29846   test -z "$as_dir" && as_dir=.
29847   for as_base in sh bash ksh sh5; do
29848          case $as_dir in
29849          /*)
29850            if ("$as_dir/$as_base" -c '
29851   as_lineno_1=$LINENO
29852   as_lineno_2=$LINENO
29853   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29854   test "x$as_lineno_1" != "x$as_lineno_2" &&
29855   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29856              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29857              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29858              CONFIG_SHELL=$as_dir/$as_base
29859              export CONFIG_SHELL
29860              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29861            fi;;
29862          esac
29863        done
29864 done
29865 ;;
29866   esac
29867
29868   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29869   # uniformly replaced by the line number.  The first 'sed' inserts a
29870   # line-number line before each line; the second 'sed' does the real
29871   # work.  The second script uses 'N' to pair each line-number line
29872   # with the numbered line, and appends trailing '-' during
29873   # substitution so that $LINENO is not a special case at line end.
29874   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29875   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29876   sed '=' <$as_myself |
29877     sed '
29878       N
29879       s,$,-,
29880       : loop
29881       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29882       t loop
29883       s,-$,,
29884       s,^['$as_cr_digits']*\n,,
29885     ' >$as_me.lineno &&
29886   chmod +x $as_me.lineno ||
29887     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29888 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29889    { (exit 1); exit 1; }; }
29890
29891   # Don't try to exec as it changes $[0], causing all sort of problems
29892   # (the dirname of $[0] is not the place where we might find the
29893   # original and so on.  Autoconf is especially sensible to this).
29894   . ./$as_me.lineno
29895   # Exit status is that of the last command.
29896   exit
29897 }
29898
29899
29900 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29901   *c*,-n*) ECHO_N= ECHO_C='
29902 ' ECHO_T='      ' ;;
29903   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29904   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29905 esac
29906
29907 if expr a : '\(a\)' >/dev/null 2>&1; then
29908   as_expr=expr
29909 else
29910   as_expr=false
29911 fi
29912
29913 rm -f conf$$ conf$$.exe conf$$.file
29914 echo >conf$$.file
29915 if ln -s conf$$.file conf$$ 2>/dev/null; then
29916   # We could just check for DJGPP; but this test a) works b) is more generic
29917   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29918   if test -f conf$$.exe; then
29919     # Don't use ln at all; we don't have any links
29920     as_ln_s='cp -p'
29921   else
29922     as_ln_s='ln -s'
29923   fi
29924 elif ln conf$$.file conf$$ 2>/dev/null; then
29925   as_ln_s=ln
29926 else
29927   as_ln_s='cp -p'
29928 fi
29929 rm -f conf$$ conf$$.exe conf$$.file
29930
29931 if mkdir -p . 2>/dev/null; then
29932   as_mkdir_p=:
29933 else
29934   test -d ./-p && rmdir ./-p
29935   as_mkdir_p=false
29936 fi
29937
29938 as_executable_p="test -f"
29939
29940 # Sed expression to map a string onto a valid CPP name.
29941 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29942
29943 # Sed expression to map a string onto a valid variable name.
29944 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29945
29946
29947 # IFS
29948 # We need space, tab and new line, in precisely that order.
29949 as_nl='
29950 '
29951 IFS="   $as_nl"
29952
29953 # CDPATH.
29954 $as_unset CDPATH
29955
29956 exec 6>&1
29957
29958 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29959 # report actual input values of CONFIG_FILES etc. instead of their
29960 # values after options handling.  Logging --version etc. is OK.
29961 exec 5>>config.log
29962 {
29963   echo
29964   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29965 ## Running $as_me. ##
29966 _ASBOX
29967 } >&5
29968 cat >&5 <<_CSEOF
29969
29970 This file was extended by llvm $as_me 1.4, which was
29971 generated by GNU Autoconf 2.59.  Invocation command line was
29972
29973   CONFIG_FILES    = $CONFIG_FILES
29974   CONFIG_HEADERS  = $CONFIG_HEADERS
29975   CONFIG_LINKS    = $CONFIG_LINKS
29976   CONFIG_COMMANDS = $CONFIG_COMMANDS
29977   $ $0 $@
29978
29979 _CSEOF
29980 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29981 echo >&5
29982 _ACEOF
29983
29984 # Files that config.status was made for.
29985 if test -n "$ac_config_files"; then
29986   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29987 fi
29988
29989 if test -n "$ac_config_headers"; then
29990   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29991 fi
29992
29993 if test -n "$ac_config_links"; then
29994   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29995 fi
29996
29997 if test -n "$ac_config_commands"; then
29998   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29999 fi
30000
30001 cat >>$CONFIG_STATUS <<\_ACEOF
30002
30003 ac_cs_usage="\
30004 \`$as_me' instantiates files from templates according to the
30005 current configuration.
30006
30007 Usage: $0 [OPTIONS] [FILE]...
30008
30009   -h, --help       print this help, then exit
30010   -V, --version    print version number, then exit
30011   -q, --quiet      do not print progress messages
30012   -d, --debug      don't remove temporary files
30013       --recheck    update $as_me by reconfiguring in the same conditions
30014   --file=FILE[:TEMPLATE]
30015                    instantiate the configuration file FILE
30016   --header=FILE[:TEMPLATE]
30017                    instantiate the configuration header FILE
30018
30019 Configuration files:
30020 $config_files
30021
30022 Configuration headers:
30023 $config_headers
30024
30025 Configuration links:
30026 $config_links
30027
30028 Configuration commands:
30029 $config_commands
30030
30031 Report bugs to <bug-autoconf@gnu.org>."
30032 _ACEOF
30033
30034 cat >>$CONFIG_STATUS <<_ACEOF
30035 ac_cs_version="\\
30036 llvm config.status 1.4
30037 configured by $0, generated by GNU Autoconf 2.59,
30038   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30039
30040 Copyright (C) 2003 Free Software Foundation, Inc.
30041 This config.status script is free software; the Free Software Foundation
30042 gives unlimited permission to copy, distribute and modify it."
30043 srcdir=$srcdir
30044 INSTALL="$INSTALL"
30045 _ACEOF
30046
30047 cat >>$CONFIG_STATUS <<\_ACEOF
30048 # If no file are specified by the user, then we need to provide default
30049 # value.  By we need to know if files were specified by the user.
30050 ac_need_defaults=:
30051 while test $# != 0
30052 do
30053   case $1 in
30054   --*=*)
30055     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30056     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30057     ac_shift=:
30058     ;;
30059   -*)
30060     ac_option=$1
30061     ac_optarg=$2
30062     ac_shift=shift
30063     ;;
30064   *) # This is not an option, so the user has probably given explicit
30065      # arguments.
30066      ac_option=$1
30067      ac_need_defaults=false;;
30068   esac
30069
30070   case $ac_option in
30071   # Handling of the options.
30072 _ACEOF
30073 cat >>$CONFIG_STATUS <<\_ACEOF
30074   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30075     ac_cs_recheck=: ;;
30076   --version | --vers* | -V )
30077     echo "$ac_cs_version"; exit 0 ;;
30078   --he | --h)
30079     # Conflict between --help and --header
30080     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30081 Try \`$0 --help' for more information." >&5
30082 echo "$as_me: error: ambiguous option: $1
30083 Try \`$0 --help' for more information." >&2;}
30084    { (exit 1); exit 1; }; };;
30085   --help | --hel | -h )
30086     echo "$ac_cs_usage"; exit 0 ;;
30087   --debug | --d* | -d )
30088     debug=: ;;
30089   --file | --fil | --fi | --f )
30090     $ac_shift
30091     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30092     ac_need_defaults=false;;
30093   --header | --heade | --head | --hea )
30094     $ac_shift
30095     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30096     ac_need_defaults=false;;
30097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30098   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30099     ac_cs_silent=: ;;
30100
30101   # This is an error.
30102   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30103 Try \`$0 --help' for more information." >&5
30104 echo "$as_me: error: unrecognized option: $1
30105 Try \`$0 --help' for more information." >&2;}
30106    { (exit 1); exit 1; }; } ;;
30107
30108   *) ac_config_targets="$ac_config_targets $1" ;;
30109
30110   esac
30111   shift
30112 done
30113
30114 ac_configure_extra_args=
30115
30116 if $ac_cs_silent; then
30117   exec 6>/dev/null
30118   ac_configure_extra_args="$ac_configure_extra_args --silent"
30119 fi
30120
30121 _ACEOF
30122 cat >>$CONFIG_STATUS <<_ACEOF
30123 if \$ac_cs_recheck; then
30124   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30125   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30126 fi
30127
30128 _ACEOF
30129
30130 cat >>$CONFIG_STATUS <<_ACEOF
30131 #
30132 # INIT-COMMANDS section.
30133 #
30134
30135 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30136 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30137 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30138 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30139 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30140 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30141 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30142 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30143 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
30144 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30145 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30146 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30147
30148 _ACEOF
30149
30150
30151
30152 cat >>$CONFIG_STATUS <<\_ACEOF
30153 for ac_config_target in $ac_config_targets
30154 do
30155   case "$ac_config_target" in
30156   # Handling of arguments.
30157   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30158   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30159   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30160   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30161   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30162   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30163   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30164   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30165   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30166   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30167   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30168   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30169   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30170   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30171   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30172   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
30173   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30174   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30175   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30176   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30177   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30178   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30179   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30180   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30181   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30182   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30183 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30184    { (exit 1); exit 1; }; };;
30185   esac
30186 done
30187
30188 # If the user did not use the arguments to specify the items to instantiate,
30189 # then the envvar interface is used.  Set only those that are not.
30190 # We use the long form for the default assignment because of an extremely
30191 # bizarre bug on SunOS 4.1.3.
30192 if $ac_need_defaults; then
30193   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30194   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30195   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30196   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30197 fi
30198
30199 # Have a temporary directory for convenience.  Make it in the build tree
30200 # simply because there is no reason to put it here, and in addition,
30201 # creating and moving files from /tmp can sometimes cause problems.
30202 # Create a temporary directory, and hook for its removal unless debugging.
30203 $debug ||
30204 {
30205   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30206   trap '{ (exit 1); exit 1; }' 1 2 13 15
30207 }
30208
30209 # Create a (secure) tmp directory for tmp files.
30210
30211 {
30212   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30213   test -n "$tmp" && test -d "$tmp"
30214 }  ||
30215 {
30216   tmp=./confstat$$-$RANDOM
30217   (umask 077 && mkdir $tmp)
30218 } ||
30219 {
30220    echo "$me: cannot create a temporary directory in ." >&2
30221    { (exit 1); exit 1; }
30222 }
30223
30224 _ACEOF
30225
30226 cat >>$CONFIG_STATUS <<_ACEOF
30227
30228 #
30229 # CONFIG_FILES section.
30230 #
30231
30232 # No need to generate the scripts if there are no CONFIG_FILES.
30233 # This happens for instance when ./config.status config.h
30234 if test -n "\$CONFIG_FILES"; then
30235   # Protect against being on the right side of a sed subst in config.status.
30236   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30237    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30238 s,@SHELL@,$SHELL,;t t
30239 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30240 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30241 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30242 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30243 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30244 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30245 s,@exec_prefix@,$exec_prefix,;t t
30246 s,@prefix@,$prefix,;t t
30247 s,@program_transform_name@,$program_transform_name,;t t
30248 s,@bindir@,$bindir,;t t
30249 s,@sbindir@,$sbindir,;t t
30250 s,@libexecdir@,$libexecdir,;t t
30251 s,@datadir@,$datadir,;t t
30252 s,@sysconfdir@,$sysconfdir,;t t
30253 s,@sharedstatedir@,$sharedstatedir,;t t
30254 s,@localstatedir@,$localstatedir,;t t
30255 s,@libdir@,$libdir,;t t
30256 s,@includedir@,$includedir,;t t
30257 s,@oldincludedir@,$oldincludedir,;t t
30258 s,@infodir@,$infodir,;t t
30259 s,@mandir@,$mandir,;t t
30260 s,@build_alias@,$build_alias,;t t
30261 s,@host_alias@,$host_alias,;t t
30262 s,@target_alias@,$target_alias,;t t
30263 s,@DEFS@,$DEFS,;t t
30264 s,@ECHO_C@,$ECHO_C,;t t
30265 s,@ECHO_N@,$ECHO_N,;t t
30266 s,@ECHO_T@,$ECHO_T,;t t
30267 s,@LIBS@,$LIBS,;t t
30268 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30269 s,@subdirs@,$subdirs,;t t
30270 s,@build@,$build,;t t
30271 s,@build_cpu@,$build_cpu,;t t
30272 s,@build_vendor@,$build_vendor,;t t
30273 s,@build_os@,$build_os,;t t
30274 s,@host@,$host,;t t
30275 s,@host_cpu@,$host_cpu,;t t
30276 s,@host_vendor@,$host_vendor,;t t
30277 s,@host_os@,$host_os,;t t
30278 s,@target@,$target,;t t
30279 s,@target_cpu@,$target_cpu,;t t
30280 s,@target_vendor@,$target_vendor,;t t
30281 s,@target_os@,$target_os,;t t
30282 s,@OS@,$OS,;t t
30283 s,@ARCH@,$ARCH,;t t
30284 s,@ENDIAN@,$ENDIAN,;t t
30285 s,@CC@,$CC,;t t
30286 s,@CFLAGS@,$CFLAGS,;t t
30287 s,@LDFLAGS@,$LDFLAGS,;t t
30288 s,@CPPFLAGS@,$CPPFLAGS,;t t
30289 s,@ac_ct_CC@,$ac_ct_CC,;t t
30290 s,@EXEEXT@,$EXEEXT,;t t
30291 s,@OBJEXT@,$OBJEXT,;t t
30292 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30293 s,@JIT@,$JIT,;t t
30294 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30295 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30296 s,@CPP@,$CPP,;t t
30297 s,@CXX@,$CXX,;t t
30298 s,@CXXFLAGS@,$CXXFLAGS,;t t
30299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30300 s,@LEX@,$LEX,;t t
30301 s,@LEXLIB@,$LEXLIB,;t t
30302 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30303 s,@FLEX@,$FLEX,;t t
30304 s,@YACC@,$YACC,;t t
30305 s,@BISON@,$BISON,;t t
30306 s,@ifGNUmake@,$ifGNUmake,;t t
30307 s,@LN_S@,$LN_S,;t t
30308 s,@DATE@,$DATE,;t t
30309 s,@FIND@,$FIND,;t t
30310 s,@GREP@,$GREP,;t t
30311 s,@MKDIR@,$MKDIR,;t t
30312 s,@MV@,$MV,;t t
30313 s,@PAX@,$PAX,;t t
30314 s,@RANLIB@,$RANLIB,;t t
30315 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30316 s,@RM@,$RM,;t t
30317 s,@SED@,$SED,;t t
30318 s,@TAR@,$TAR,;t t
30319 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30320 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30321 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30322 s,@BZIP2@,$BZIP2,;t t
30323 s,@DOT@,$DOT,;t t
30324 s,@DOXYGEN@,$DOXYGEN,;t t
30325 s,@ETAGS@,$ETAGS,;t t
30326 s,@GROFF@,$GROFF,;t t
30327 s,@GZIP@,$GZIP,;t t
30328 s,@POD2HTML@,$POD2HTML,;t t
30329 s,@POD2MAN@,$POD2MAN,;t t
30330 s,@PYTHON@,$PYTHON,;t t
30331 s,@QMTEST@,$QMTEST,;t t
30332 s,@RUNTEST@,$RUNTEST,;t t
30333 s,@TCLSH@,$TCLSH,;t t
30334 s,@ZIP@,$ZIP,;t t
30335 s,@EGREP@,$EGREP,;t t
30336 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30337 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30338 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30339 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30340 s,@LIBADD_DL@,$LIBADD_DL,;t t
30341 s,@ECHO@,$ECHO,;t t
30342 s,@AR@,$AR,;t t
30343 s,@ac_ct_AR@,$ac_ct_AR,;t t
30344 s,@STRIP@,$STRIP,;t t
30345 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30346 s,@CXXCPP@,$CXXCPP,;t t
30347 s,@F77@,$F77,;t t
30348 s,@FFLAGS@,$FFLAGS,;t t
30349 s,@ac_ct_F77@,$ac_ct_F77,;t t
30350 s,@LIBTOOL@,$LIBTOOL,;t t
30351 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30352 s,@ALLOCA@,$ALLOCA,;t t
30353 s,@MMAP_FILE@,$MMAP_FILE,;t t
30354 s,@LLVMGCC@,$LLVMGCC,;t t
30355 s,@LLVMCC1@,$LLVMCC1,;t t
30356 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30357 s,@SHLIBEXT@,$SHLIBEXT,;t t
30358 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30359 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30360 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30361 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30362 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30363 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30364 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30365 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30366 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30367 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30368 s,@LIBOBJS@,$LIBOBJS,;t t
30369 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30370 CEOF
30371
30372 _ACEOF
30373
30374   cat >>$CONFIG_STATUS <<\_ACEOF
30375   # Split the substitutions into bite-sized pieces for seds with
30376   # small command number limits, like on Digital OSF/1 and HP-UX.
30377   ac_max_sed_lines=48
30378   ac_sed_frag=1 # Number of current file.
30379   ac_beg=1 # First line for current file.
30380   ac_end=$ac_max_sed_lines # Line after last line for current file.
30381   ac_more_lines=:
30382   ac_sed_cmds=
30383   while $ac_more_lines; do
30384     if test $ac_beg -gt 1; then
30385       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30386     else
30387       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30388     fi
30389     if test ! -s $tmp/subs.frag; then
30390       ac_more_lines=false
30391     else
30392       # The purpose of the label and of the branching condition is to
30393       # speed up the sed processing (if there are no `@' at all, there
30394       # is no need to browse any of the substitutions).
30395       # These are the two extra sed commands mentioned above.
30396       (echo ':t
30397   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30398       if test -z "$ac_sed_cmds"; then
30399         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30400       else
30401         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30402       fi
30403       ac_sed_frag=`expr $ac_sed_frag + 1`
30404       ac_beg=$ac_end
30405       ac_end=`expr $ac_end + $ac_max_sed_lines`
30406     fi
30407   done
30408   if test -z "$ac_sed_cmds"; then
30409     ac_sed_cmds=cat
30410   fi
30411 fi # test -n "$CONFIG_FILES"
30412
30413 _ACEOF
30414 cat >>$CONFIG_STATUS <<\_ACEOF
30415 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30416   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30417   case $ac_file in
30418   - | *:- | *:-:* ) # input from stdin
30419         cat >$tmp/stdin
30420         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30421         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30422   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30423         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30424   * )   ac_file_in=$ac_file.in ;;
30425   esac
30426
30427   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30428   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30430          X"$ac_file" : 'X\(//\)[^/]' \| \
30431          X"$ac_file" : 'X\(//\)$' \| \
30432          X"$ac_file" : 'X\(/\)' \| \
30433          .     : '\(.\)' 2>/dev/null ||
30434 echo X"$ac_file" |
30435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30436           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30437           /^X\(\/\/\)$/{ s//\1/; q; }
30438           /^X\(\/\).*/{ s//\1/; q; }
30439           s/.*/./; q'`
30440   { if $as_mkdir_p; then
30441     mkdir -p "$ac_dir"
30442   else
30443     as_dir="$ac_dir"
30444     as_dirs=
30445     while test ! -d "$as_dir"; do
30446       as_dirs="$as_dir $as_dirs"
30447       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30449          X"$as_dir" : 'X\(//\)[^/]' \| \
30450          X"$as_dir" : 'X\(//\)$' \| \
30451          X"$as_dir" : 'X\(/\)' \| \
30452          .     : '\(.\)' 2>/dev/null ||
30453 echo X"$as_dir" |
30454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30455           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30456           /^X\(\/\/\)$/{ s//\1/; q; }
30457           /^X\(\/\).*/{ s//\1/; q; }
30458           s/.*/./; q'`
30459     done
30460     test ! -n "$as_dirs" || mkdir $as_dirs
30461   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30463    { (exit 1); exit 1; }; }; }
30464
30465   ac_builddir=.
30466
30467 if test "$ac_dir" != .; then
30468   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30469   # A "../" for each directory in $ac_dir_suffix.
30470   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30471 else
30472   ac_dir_suffix= ac_top_builddir=
30473 fi
30474
30475 case $srcdir in
30476   .)  # No --srcdir option.  We are building in place.
30477     ac_srcdir=.
30478     if test -z "$ac_top_builddir"; then
30479        ac_top_srcdir=.
30480     else
30481        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30482     fi ;;
30483   [\\/]* | ?:[\\/]* )  # Absolute path.
30484     ac_srcdir=$srcdir$ac_dir_suffix;
30485     ac_top_srcdir=$srcdir ;;
30486   *) # Relative path.
30487     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30488     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30489 esac
30490
30491 # Do not use `cd foo && pwd` to compute absolute paths, because
30492 # the directories may not exist.
30493 case `pwd` in
30494 .) ac_abs_builddir="$ac_dir";;
30495 *)
30496   case "$ac_dir" in
30497   .) ac_abs_builddir=`pwd`;;
30498   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30499   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30500   esac;;
30501 esac
30502 case $ac_abs_builddir in
30503 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30504 *)
30505   case ${ac_top_builddir}. in
30506   .) ac_abs_top_builddir=$ac_abs_builddir;;
30507   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30508   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30509   esac;;
30510 esac
30511 case $ac_abs_builddir in
30512 .) ac_abs_srcdir=$ac_srcdir;;
30513 *)
30514   case $ac_srcdir in
30515   .) ac_abs_srcdir=$ac_abs_builddir;;
30516   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30517   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30518   esac;;
30519 esac
30520 case $ac_abs_builddir in
30521 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30522 *)
30523   case $ac_top_srcdir in
30524   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30525   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30526   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30527   esac;;
30528 esac
30529
30530
30531   case $INSTALL in
30532   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30533   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30534   esac
30535
30536   if test x"$ac_file" != x-; then
30537     { echo "$as_me:$LINENO: creating $ac_file" >&5
30538 echo "$as_me: creating $ac_file" >&6;}
30539     rm -f "$ac_file"
30540   fi
30541   # Let's still pretend it is `configure' which instantiates (i.e., don't
30542   # use $as_me), people would be surprised to read:
30543   #    /* config.h.  Generated by config.status.  */
30544   if test x"$ac_file" = x-; then
30545     configure_input=
30546   else
30547     configure_input="$ac_file.  "
30548   fi
30549   configure_input=$configure_input"Generated from `echo $ac_file_in |
30550                                      sed 's,.*/,,'` by configure."
30551
30552   # First look for the input files in the build tree, otherwise in the
30553   # src tree.
30554   ac_file_inputs=`IFS=:
30555     for f in $ac_file_in; do
30556       case $f in
30557       -) echo $tmp/stdin ;;
30558       [\\/$]*)
30559          # Absolute (can't be DOS-style, as IFS=:)
30560          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30561 echo "$as_me: error: cannot find input file: $f" >&2;}
30562    { (exit 1); exit 1; }; }
30563          echo "$f";;
30564       *) # Relative
30565          if test -f "$f"; then
30566            # Build tree
30567            echo "$f"
30568          elif test -f "$srcdir/$f"; then
30569            # Source tree
30570            echo "$srcdir/$f"
30571          else
30572            # /dev/null tree
30573            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30574 echo "$as_me: error: cannot find input file: $f" >&2;}
30575    { (exit 1); exit 1; }; }
30576          fi;;
30577       esac
30578     done` || { (exit 1); exit 1; }
30579 _ACEOF
30580 cat >>$CONFIG_STATUS <<_ACEOF
30581   sed "$ac_vpsub
30582 $extrasub
30583 _ACEOF
30584 cat >>$CONFIG_STATUS <<\_ACEOF
30585 :t
30586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30587 s,@configure_input@,$configure_input,;t t
30588 s,@srcdir@,$ac_srcdir,;t t
30589 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30590 s,@top_srcdir@,$ac_top_srcdir,;t t
30591 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30592 s,@builddir@,$ac_builddir,;t t
30593 s,@abs_builddir@,$ac_abs_builddir,;t t
30594 s,@top_builddir@,$ac_top_builddir,;t t
30595 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30596 s,@INSTALL@,$ac_INSTALL,;t t
30597 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30598   rm -f $tmp/stdin
30599   if test x"$ac_file" != x-; then
30600     mv $tmp/out $ac_file
30601   else
30602     cat $tmp/out
30603     rm -f $tmp/out
30604   fi
30605
30606 done
30607 _ACEOF
30608 cat >>$CONFIG_STATUS <<\_ACEOF
30609
30610 #
30611 # CONFIG_HEADER section.
30612 #
30613
30614 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30615 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30616 #
30617 # ac_d sets the value in "#define NAME VALUE" lines.
30618 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30619 ac_dB='[         ].*$,\1#\2'
30620 ac_dC=' '
30621 ac_dD=',;t'
30622 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30623 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30624 ac_uB='$,\1#\2define\3'
30625 ac_uC=' '
30626 ac_uD=',;t'
30627
30628 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30629   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30630   case $ac_file in
30631   - | *:- | *:-:* ) # input from stdin
30632         cat >$tmp/stdin
30633         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30634         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30635   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30637   * )   ac_file_in=$ac_file.in ;;
30638   esac
30639
30640   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30641 echo "$as_me: creating $ac_file" >&6;}
30642
30643   # First look for the input files in the build tree, otherwise in the
30644   # src tree.
30645   ac_file_inputs=`IFS=:
30646     for f in $ac_file_in; do
30647       case $f in
30648       -) echo $tmp/stdin ;;
30649       [\\/$]*)
30650          # Absolute (can't be DOS-style, as IFS=:)
30651          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30652 echo "$as_me: error: cannot find input file: $f" >&2;}
30653    { (exit 1); exit 1; }; }
30654          # Do quote $f, to prevent DOS paths from being IFS'd.
30655          echo "$f";;
30656       *) # Relative
30657          if test -f "$f"; then
30658            # Build tree
30659            echo "$f"
30660          elif test -f "$srcdir/$f"; then
30661            # Source tree
30662            echo "$srcdir/$f"
30663          else
30664            # /dev/null tree
30665            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30666 echo "$as_me: error: cannot find input file: $f" >&2;}
30667    { (exit 1); exit 1; }; }
30668          fi;;
30669       esac
30670     done` || { (exit 1); exit 1; }
30671   # Remove the trailing spaces.
30672   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30673
30674 _ACEOF
30675
30676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30677 # `conftest.undefs', that substitutes the proper values into
30678 # config.h.in to produce config.h.  The first handles `#define'
30679 # templates, and the second `#undef' templates.
30680 # And first: Protect against being on the right side of a sed subst in
30681 # config.status.  Protect against being in an unquoted here document
30682 # in config.status.
30683 rm -f conftest.defines conftest.undefs
30684 # Using a here document instead of a string reduces the quoting nightmare.
30685 # Putting comments in sed scripts is not portable.
30686 #
30687 # `end' is used to avoid that the second main sed command (meant for
30688 # 0-ary CPP macros) applies to n-ary macro definitions.
30689 # See the Autoconf documentation for `clear'.
30690 cat >confdef2sed.sed <<\_ACEOF
30691 s/[\\&,]/\\&/g
30692 s,[\\$`],\\&,g
30693 t clear
30694 : clear
30695 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30696 t end
30697 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30698 : end
30699 _ACEOF
30700 # If some macros were called several times there might be several times
30701 # the same #defines, which is useless.  Nevertheless, we may not want to
30702 # sort them, since we want the *last* AC-DEFINE to be honored.
30703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30705 rm -f confdef2sed.sed
30706
30707 # This sed command replaces #undef with comments.  This is necessary, for
30708 # example, in the case of _POSIX_SOURCE, which is predefined and required
30709 # on some systems where configure will not decide to define it.
30710 cat >>conftest.undefs <<\_ACEOF
30711 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30712 _ACEOF
30713
30714 # Break up conftest.defines because some shells have a limit on the size
30715 # of here documents, and old seds have small limits too (100 cmds).
30716 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30717 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30718 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30719 echo '  :' >>$CONFIG_STATUS
30720 rm -f conftest.tail
30721 while grep . conftest.defines >/dev/null
30722 do
30723   # Write a limited-size here document to $tmp/defines.sed.
30724   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30725   # Speed up: don't consider the non `#define' lines.
30726   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30727   # Work around the forget-to-reset-the-flag bug.
30728   echo 't clr' >>$CONFIG_STATUS
30729   echo ': clr' >>$CONFIG_STATUS
30730   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30731   echo 'CEOF
30732   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30733   rm -f $tmp/in
30734   mv $tmp/out $tmp/in
30735 ' >>$CONFIG_STATUS
30736   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30737   rm -f conftest.defines
30738   mv conftest.tail conftest.defines
30739 done
30740 rm -f conftest.defines
30741 echo '  fi # grep' >>$CONFIG_STATUS
30742 echo >>$CONFIG_STATUS
30743
30744 # Break up conftest.undefs because some shells have a limit on the size
30745 # of here documents, and old seds have small limits too (100 cmds).
30746 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30747 rm -f conftest.tail
30748 while grep . conftest.undefs >/dev/null
30749 do
30750   # Write a limited-size here document to $tmp/undefs.sed.
30751   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30752   # Speed up: don't consider the non `#undef'
30753   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30754   # Work around the forget-to-reset-the-flag bug.
30755   echo 't clr' >>$CONFIG_STATUS
30756   echo ': clr' >>$CONFIG_STATUS
30757   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30758   echo 'CEOF
30759   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30760   rm -f $tmp/in
30761   mv $tmp/out $tmp/in
30762 ' >>$CONFIG_STATUS
30763   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30764   rm -f conftest.undefs
30765   mv conftest.tail conftest.undefs
30766 done
30767 rm -f conftest.undefs
30768
30769 cat >>$CONFIG_STATUS <<\_ACEOF
30770   # Let's still pretend it is `configure' which instantiates (i.e., don't
30771   # use $as_me), people would be surprised to read:
30772   #    /* config.h.  Generated by config.status.  */
30773   if test x"$ac_file" = x-; then
30774     echo "/* Generated by configure.  */" >$tmp/config.h
30775   else
30776     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30777   fi
30778   cat $tmp/in >>$tmp/config.h
30779   rm -f $tmp/in
30780   if test x"$ac_file" != x-; then
30781     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30782       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30783 echo "$as_me: $ac_file is unchanged" >&6;}
30784     else
30785       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30787          X"$ac_file" : 'X\(//\)[^/]' \| \
30788          X"$ac_file" : 'X\(//\)$' \| \
30789          X"$ac_file" : 'X\(/\)' \| \
30790          .     : '\(.\)' 2>/dev/null ||
30791 echo X"$ac_file" |
30792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30793           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30794           /^X\(\/\/\)$/{ s//\1/; q; }
30795           /^X\(\/\).*/{ s//\1/; q; }
30796           s/.*/./; q'`
30797       { if $as_mkdir_p; then
30798     mkdir -p "$ac_dir"
30799   else
30800     as_dir="$ac_dir"
30801     as_dirs=
30802     while test ! -d "$as_dir"; do
30803       as_dirs="$as_dir $as_dirs"
30804       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30806          X"$as_dir" : 'X\(//\)[^/]' \| \
30807          X"$as_dir" : 'X\(//\)$' \| \
30808          X"$as_dir" : 'X\(/\)' \| \
30809          .     : '\(.\)' 2>/dev/null ||
30810 echo X"$as_dir" |
30811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30812           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30813           /^X\(\/\/\)$/{ s//\1/; q; }
30814           /^X\(\/\).*/{ s//\1/; q; }
30815           s/.*/./; q'`
30816     done
30817     test ! -n "$as_dirs" || mkdir $as_dirs
30818   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30819 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30820    { (exit 1); exit 1; }; }; }
30821
30822       rm -f $ac_file
30823       mv $tmp/config.h $ac_file
30824     fi
30825   else
30826     cat $tmp/config.h
30827     rm -f $tmp/config.h
30828   fi
30829 done
30830 _ACEOF
30831 cat >>$CONFIG_STATUS <<\_ACEOF
30832
30833 #
30834 # CONFIG_LINKS section.
30835 #
30836
30837 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30838   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30839   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30840
30841   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30842 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30843
30844   if test ! -r $srcdir/$ac_source; then
30845     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30846 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30847    { (exit 1); exit 1; }; }
30848   fi
30849   rm -f $ac_dest
30850
30851   # Make relative symlinks.
30852   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30853 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30854          X"$ac_dest" : 'X\(//\)[^/]' \| \
30855          X"$ac_dest" : 'X\(//\)$' \| \
30856          X"$ac_dest" : 'X\(/\)' \| \
30857          .     : '\(.\)' 2>/dev/null ||
30858 echo X"$ac_dest" |
30859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30860           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30861           /^X\(\/\/\)$/{ s//\1/; q; }
30862           /^X\(\/\).*/{ s//\1/; q; }
30863           s/.*/./; q'`
30864   { if $as_mkdir_p; then
30865     mkdir -p "$ac_dest_dir"
30866   else
30867     as_dir="$ac_dest_dir"
30868     as_dirs=
30869     while test ! -d "$as_dir"; do
30870       as_dirs="$as_dir $as_dirs"
30871       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30872 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30873          X"$as_dir" : 'X\(//\)[^/]' \| \
30874          X"$as_dir" : 'X\(//\)$' \| \
30875          X"$as_dir" : 'X\(/\)' \| \
30876          .     : '\(.\)' 2>/dev/null ||
30877 echo X"$as_dir" |
30878     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30879           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30880           /^X\(\/\/\)$/{ s//\1/; q; }
30881           /^X\(\/\).*/{ s//\1/; q; }
30882           s/.*/./; q'`
30883     done
30884     test ! -n "$as_dirs" || mkdir $as_dirs
30885   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30886 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30887    { (exit 1); exit 1; }; }; }
30888
30889   ac_builddir=.
30890
30891 if test "$ac_dest_dir" != .; then
30892   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30893   # A "../" for each directory in $ac_dir_suffix.
30894   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30895 else
30896   ac_dir_suffix= ac_top_builddir=
30897 fi
30898
30899 case $srcdir in
30900   .)  # No --srcdir option.  We are building in place.
30901     ac_srcdir=.
30902     if test -z "$ac_top_builddir"; then
30903        ac_top_srcdir=.
30904     else
30905        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30906     fi ;;
30907   [\\/]* | ?:[\\/]* )  # Absolute path.
30908     ac_srcdir=$srcdir$ac_dir_suffix;
30909     ac_top_srcdir=$srcdir ;;
30910   *) # Relative path.
30911     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30912     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30913 esac
30914
30915 # Do not use `cd foo && pwd` to compute absolute paths, because
30916 # the directories may not exist.
30917 case `pwd` in
30918 .) ac_abs_builddir="$ac_dest_dir";;
30919 *)
30920   case "$ac_dest_dir" in
30921   .) ac_abs_builddir=`pwd`;;
30922   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30923   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30924   esac;;
30925 esac
30926 case $ac_abs_builddir in
30927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30928 *)
30929   case ${ac_top_builddir}. in
30930   .) ac_abs_top_builddir=$ac_abs_builddir;;
30931   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30932   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30933   esac;;
30934 esac
30935 case $ac_abs_builddir in
30936 .) ac_abs_srcdir=$ac_srcdir;;
30937 *)
30938   case $ac_srcdir in
30939   .) ac_abs_srcdir=$ac_abs_builddir;;
30940   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30941   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30942   esac;;
30943 esac
30944 case $ac_abs_builddir in
30945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30946 *)
30947   case $ac_top_srcdir in
30948   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30949   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30950   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30951   esac;;
30952 esac
30953
30954
30955   case $srcdir in
30956   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30957       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30958   esac
30959
30960   # Try a symlink, then a hard link, then a copy.
30961   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30962     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30963     cp -p $srcdir/$ac_source $ac_dest ||
30964     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30965 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30966    { (exit 1); exit 1; }; }
30967 done
30968 _ACEOF
30969 cat >>$CONFIG_STATUS <<\_ACEOF
30970
30971 #
30972 # CONFIG_COMMANDS section.
30973 #
30974 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30975   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30976   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30977   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30978 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30979          X"$ac_dest" : 'X\(//\)[^/]' \| \
30980          X"$ac_dest" : 'X\(//\)$' \| \
30981          X"$ac_dest" : 'X\(/\)' \| \
30982          .     : '\(.\)' 2>/dev/null ||
30983 echo X"$ac_dest" |
30984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30985           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30986           /^X\(\/\/\)$/{ s//\1/; q; }
30987           /^X\(\/\).*/{ s//\1/; q; }
30988           s/.*/./; q'`
30989   { if $as_mkdir_p; then
30990     mkdir -p "$ac_dir"
30991   else
30992     as_dir="$ac_dir"
30993     as_dirs=
30994     while test ! -d "$as_dir"; do
30995       as_dirs="$as_dir $as_dirs"
30996       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30998          X"$as_dir" : 'X\(//\)[^/]' \| \
30999          X"$as_dir" : 'X\(//\)$' \| \
31000          X"$as_dir" : 'X\(/\)' \| \
31001          .     : '\(.\)' 2>/dev/null ||
31002 echo X"$as_dir" |
31003     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31004           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31005           /^X\(\/\/\)$/{ s//\1/; q; }
31006           /^X\(\/\).*/{ s//\1/; q; }
31007           s/.*/./; q'`
31008     done
31009     test ! -n "$as_dirs" || mkdir $as_dirs
31010   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31011 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31012    { (exit 1); exit 1; }; }; }
31013
31014   ac_builddir=.
31015
31016 if test "$ac_dir" != .; then
31017   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31018   # A "../" for each directory in $ac_dir_suffix.
31019   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31020 else
31021   ac_dir_suffix= ac_top_builddir=
31022 fi
31023
31024 case $srcdir in
31025   .)  # No --srcdir option.  We are building in place.
31026     ac_srcdir=.
31027     if test -z "$ac_top_builddir"; then
31028        ac_top_srcdir=.
31029     else
31030        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31031     fi ;;
31032   [\\/]* | ?:[\\/]* )  # Absolute path.
31033     ac_srcdir=$srcdir$ac_dir_suffix;
31034     ac_top_srcdir=$srcdir ;;
31035   *) # Relative path.
31036     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31037     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31038 esac
31039
31040 # Do not use `cd foo && pwd` to compute absolute paths, because
31041 # the directories may not exist.
31042 case `pwd` in
31043 .) ac_abs_builddir="$ac_dir";;
31044 *)
31045   case "$ac_dir" in
31046   .) ac_abs_builddir=`pwd`;;
31047   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31048   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31049   esac;;
31050 esac
31051 case $ac_abs_builddir in
31052 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31053 *)
31054   case ${ac_top_builddir}. in
31055   .) ac_abs_top_builddir=$ac_abs_builddir;;
31056   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31057   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31058   esac;;
31059 esac
31060 case $ac_abs_builddir in
31061 .) ac_abs_srcdir=$ac_srcdir;;
31062 *)
31063   case $ac_srcdir in
31064   .) ac_abs_srcdir=$ac_abs_builddir;;
31065   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31066   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31067   esac;;
31068 esac
31069 case $ac_abs_builddir in
31070 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31071 *)
31072   case $ac_top_srcdir in
31073   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31074   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31075   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31076   esac;;
31077 esac
31078
31079
31080   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31081 echo "$as_me: executing $ac_dest commands" >&6;}
31082   case $ac_dest in
31083     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31084     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31085     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31086     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31087     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31088     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31089     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31090     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
31091     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
31092     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31093     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31094     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31095   esac
31096 done
31097 _ACEOF
31098
31099 cat >>$CONFIG_STATUS <<\_ACEOF
31100
31101 { (exit 0); exit 0; }
31102 _ACEOF
31103 chmod +x $CONFIG_STATUS
31104 ac_clean_files=$ac_clean_files_save
31105
31106
31107 # configure is writing to config.log, and then calls config.status.
31108 # config.status does its own redirection, appending to config.log.
31109 # Unfortunately, on DOS this fails, as config.log is still kept open
31110 # by configure, so config.status won't be able to write to it; its
31111 # output is simply discarded.  So we exec the FD to /dev/null,
31112 # effectively closing config.log, so it can be properly (re)opened and
31113 # appended to by config.status.  When coming back to configure, we
31114 # need to make the FD available again.
31115 if test "$no_create" != yes; then
31116   ac_cs_success=:
31117   ac_config_status_args=
31118   test "$silent" = yes &&
31119     ac_config_status_args="$ac_config_status_args --quiet"
31120   exec 5>/dev/null
31121   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31122   exec 5>>config.log
31123   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31124   # would make configure fail if this is the last instruction.
31125   $ac_cs_success || { (exit 1); exit 1; }
31126 fi
31127
31128 #
31129 # CONFIG_SUBDIRS section.
31130 #
31131 if test "$no_recursion" != yes; then
31132
31133   # Remove --cache-file and --srcdir arguments so they do not pile up.
31134   ac_sub_configure_args=
31135   ac_prev=
31136   for ac_arg in $ac_configure_args; do
31137     if test -n "$ac_prev"; then
31138       ac_prev=
31139       continue
31140     fi
31141     case $ac_arg in
31142     -cache-file | --cache-file | --cache-fil | --cache-fi \
31143     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31144       ac_prev=cache_file ;;
31145     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31146     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31147     | --c=*)
31148       ;;
31149     --config-cache | -C)
31150       ;;
31151     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31152       ac_prev=srcdir ;;
31153     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31154       ;;
31155     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31156       ac_prev=prefix ;;
31157     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31158       ;;
31159     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31160     esac
31161   done
31162
31163   # Always prepend --prefix to ensure using the same prefix
31164   # in subdir configurations.
31165   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31166
31167   ac_popdir=`pwd`
31168   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31169
31170     # Do not complain, so a configure script can configure whichever
31171     # parts of a large source tree are present.
31172     test -d $srcdir/$ac_dir || continue
31173
31174     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31175 echo "$as_me: configuring in $ac_dir" >&6;}
31176     { if $as_mkdir_p; then
31177     mkdir -p "$ac_dir"
31178   else
31179     as_dir="$ac_dir"
31180     as_dirs=
31181     while test ! -d "$as_dir"; do
31182       as_dirs="$as_dir $as_dirs"
31183       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31185          X"$as_dir" : 'X\(//\)[^/]' \| \
31186          X"$as_dir" : 'X\(//\)$' \| \
31187          X"$as_dir" : 'X\(/\)' \| \
31188          .     : '\(.\)' 2>/dev/null ||
31189 echo X"$as_dir" |
31190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31191           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31192           /^X\(\/\/\)$/{ s//\1/; q; }
31193           /^X\(\/\).*/{ s//\1/; q; }
31194           s/.*/./; q'`
31195     done
31196     test ! -n "$as_dirs" || mkdir $as_dirs
31197   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31198 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31199    { (exit 1); exit 1; }; }; }
31200
31201     ac_builddir=.
31202
31203 if test "$ac_dir" != .; then
31204   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31205   # A "../" for each directory in $ac_dir_suffix.
31206   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31207 else
31208   ac_dir_suffix= ac_top_builddir=
31209 fi
31210
31211 case $srcdir in
31212   .)  # No --srcdir option.  We are building in place.
31213     ac_srcdir=.
31214     if test -z "$ac_top_builddir"; then
31215        ac_top_srcdir=.
31216     else
31217        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31218     fi ;;
31219   [\\/]* | ?:[\\/]* )  # Absolute path.
31220     ac_srcdir=$srcdir$ac_dir_suffix;
31221     ac_top_srcdir=$srcdir ;;
31222   *) # Relative path.
31223     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31224     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31225 esac
31226
31227 # Do not use `cd foo && pwd` to compute absolute paths, because
31228 # the directories may not exist.
31229 case `pwd` in
31230 .) ac_abs_builddir="$ac_dir";;
31231 *)
31232   case "$ac_dir" in
31233   .) ac_abs_builddir=`pwd`;;
31234   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31235   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31236   esac;;
31237 esac
31238 case $ac_abs_builddir in
31239 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31240 *)
31241   case ${ac_top_builddir}. in
31242   .) ac_abs_top_builddir=$ac_abs_builddir;;
31243   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31244   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31245   esac;;
31246 esac
31247 case $ac_abs_builddir in
31248 .) ac_abs_srcdir=$ac_srcdir;;
31249 *)
31250   case $ac_srcdir in
31251   .) ac_abs_srcdir=$ac_abs_builddir;;
31252   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31253   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31254   esac;;
31255 esac
31256 case $ac_abs_builddir in
31257 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31258 *)
31259   case $ac_top_srcdir in
31260   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31261   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31262   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31263   esac;;
31264 esac
31265
31266
31267     cd $ac_dir
31268
31269     # Check for guested configure; otherwise get Cygnus style configure.
31270     if test -f $ac_srcdir/configure.gnu; then
31271       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31272     elif test -f $ac_srcdir/configure; then
31273       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31274     elif test -f $ac_srcdir/configure.in; then
31275       ac_sub_configure=$ac_configure
31276     else
31277       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31278 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31279       ac_sub_configure=
31280     fi
31281
31282     # The recursion is here.
31283     if test -n "$ac_sub_configure"; then
31284       # Make the cache file name correct relative to the subdirectory.
31285       case $cache_file in
31286       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31287       *) # Relative path.
31288         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31289       esac
31290
31291       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31292 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31293       # The eval makes quoting arguments work.
31294       eval $ac_sub_configure $ac_sub_configure_args \
31295            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31296         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31297 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31298    { (exit 1); exit 1; }; }
31299     fi
31300
31301     cd $ac_popdir
31302   done
31303 fi
31304
31305
31306 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31307  { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31308 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31309  { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31310 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31311  { echo "$as_me:$LINENO: WARNING: ***** " >&5
31312 echo "$as_me: WARNING: ***** " >&2;}
31313  { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31314 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31315  { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31316 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31317  { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31318 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31319 fi