For PR351:
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # $LLVM_COPYRIGHT
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.4'
429 PACKAGE_STRING='llvm 1.4'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS 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
3009 ac_ext=c
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3016 # On Suns, sometimes $CPP names a directory.
3017 if test -n "$CPP" && test -d "$CPP"; then
3018   CPP=
3019 fi
3020 if test -z "$CPP"; then
3021   if test "${ac_cv_prog_CPP+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024       # Double quotes because CPP needs to be expanded
3025     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026     do
3027       ac_preproc_ok=false
3028 for ac_c_preproc_warn_flag in '' yes
3029 do
3030   # Use a header file that comes with gcc, so configuring glibc
3031   # with a fresh cross-compiler works.
3032   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3033   # <limits.h> exists even on freestanding compilers.
3034   # On the NeXT, cc -E runs the code through the compiler's parser,
3035   # not just through cpp. "Syntax error" is here to catch this case.
3036   cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042 #ifdef __STDC__
3043 # include <limits.h>
3044 #else
3045 # include <assert.h>
3046 #endif
3047                      Syntax error
3048 _ACEOF
3049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051   ac_status=$?
3052   grep -v '^ *+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
3054   cat conftest.err >&5
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } >/dev/null; then
3057   if test -s conftest.err; then
3058     ac_cpp_err=$ac_c_preproc_warn_flag
3059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3060   else
3061     ac_cpp_err=
3062   fi
3063 else
3064   ac_cpp_err=yes
3065 fi
3066 if test -z "$ac_cpp_err"; then
3067   :
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072   # Broken: fails on valid input.
3073 continue
3074 fi
3075 rm -f conftest.err conftest.$ac_ext
3076
3077   # OK, works on sane cases.  Now check whether non-existent headers
3078   # can be detected and how.
3079   cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085 #include <ac_nonexistent.h>
3086 _ACEOF
3087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
3092   cat conftest.err >&5
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } >/dev/null; then
3095   if test -s conftest.err; then
3096     ac_cpp_err=$ac_c_preproc_warn_flag
3097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3098   else
3099     ac_cpp_err=
3100   fi
3101 else
3102   ac_cpp_err=yes
3103 fi
3104 if test -z "$ac_cpp_err"; then
3105   # Broken: success on invalid input.
3106 continue
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111   # Passes both tests.
3112 ac_preproc_ok=:
3113 break
3114 fi
3115 rm -f conftest.err conftest.$ac_ext
3116
3117 done
3118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119 rm -f conftest.err conftest.$ac_ext
3120 if $ac_preproc_ok; then
3121   break
3122 fi
3123
3124     done
3125     ac_cv_prog_CPP=$CPP
3126
3127 fi
3128   CPP=$ac_cv_prog_CPP
3129 else
3130   ac_cv_prog_CPP=$CPP
3131 fi
3132 echo "$as_me:$LINENO: result: $CPP" >&5
3133 echo "${ECHO_T}$CPP" >&6
3134 ac_preproc_ok=false
3135 for ac_c_preproc_warn_flag in '' yes
3136 do
3137   # Use a header file that comes with gcc, so configuring glibc
3138   # with a fresh cross-compiler works.
3139   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140   # <limits.h> exists even on freestanding compilers.
3141   # On the NeXT, cc -E runs the code through the compiler's parser,
3142   # not just through cpp. "Syntax error" is here to catch this case.
3143   cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149 #ifdef __STDC__
3150 # include <limits.h>
3151 #else
3152 # include <assert.h>
3153 #endif
3154                      Syntax error
3155 _ACEOF
3156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } >/dev/null; then
3164   if test -s conftest.err; then
3165     ac_cpp_err=$ac_c_preproc_warn_flag
3166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3167   else
3168     ac_cpp_err=
3169   fi
3170 else
3171   ac_cpp_err=yes
3172 fi
3173 if test -z "$ac_cpp_err"; then
3174   :
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179   # Broken: fails on valid input.
3180 continue
3181 fi
3182 rm -f conftest.err conftest.$ac_ext
3183
3184   # OK, works on sane cases.  Now check whether non-existent headers
3185   # can be detected and how.
3186   cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192 #include <ac_nonexistent.h>
3193 _ACEOF
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196   ac_status=$?
3197   grep -v '^ *+' conftest.er1 >conftest.err
3198   rm -f conftest.er1
3199   cat conftest.err >&5
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); } >/dev/null; then
3202   if test -s conftest.err; then
3203     ac_cpp_err=$ac_c_preproc_warn_flag
3204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205   else
3206     ac_cpp_err=
3207   fi
3208 else
3209   ac_cpp_err=yes
3210 fi
3211 if test -z "$ac_cpp_err"; then
3212   # Broken: success on invalid input.
3213 continue
3214 else
3215   echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218   # Passes both tests.
3219 ac_preproc_ok=:
3220 break
3221 fi
3222 rm -f conftest.err conftest.$ac_ext
3223
3224 done
3225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226 rm -f conftest.err conftest.$ac_ext
3227 if $ac_preproc_ok; then
3228   :
3229 else
3230   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3231 See \`config.log' for more details." >&5
3232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3233 See \`config.log' for more details." >&2;}
3234    { (exit 1); exit 1; }; }
3235 fi
3236
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 if test -n "$ac_tool_prefix"; then
3249   for ac_prog in gcc
3250   do
3251     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_CC+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   if test -n "$CC"; then
3259   ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273 done
3274
3275 fi
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279   echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6
3281 else
3282   echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3284 fi
3285
3286     test -n "$CC" && break
3287   done
3288 fi
3289 if test -z "$CC"; then
3290   ac_ct_CC=$CC
3291   for ac_prog in gcc
3292 do
3293   # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   if test -n "$ac_ct_CC"; then
3301   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308   for ac_exec_ext in '' $ac_executable_extensions; do
3309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310     ac_cv_prog_ac_ct_CC="$ac_prog"
3311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315 done
3316
3317 fi
3318 fi
3319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320 if test -n "$ac_ct_CC"; then
3321   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3322 echo "${ECHO_T}$ac_ct_CC" >&6
3323 else
3324   echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3326 fi
3327
3328   test -n "$ac_ct_CC" && break
3329 done
3330
3331   CC=$ac_ct_CC
3332 fi
3333
3334
3335 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&5
3337 echo "$as_me: error: no acceptable C compiler found in \$PATH
3338 See \`config.log' for more details." >&2;}
3339    { (exit 1); exit 1; }; }
3340
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343      "checking for C compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346   (eval $ac_compiler --version </dev/null >&5) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351   (eval $ac_compiler -v </dev/null >&5) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356   (eval $ac_compiler -V </dev/null >&5) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }
3360
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364   echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376 #ifndef __GNUC__
3377        choke me
3378 #endif
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386   (eval $ac_compile) 2>conftest.er1
3387   ac_status=$?
3388   grep -v '^ *+' conftest.er1 >conftest.err
3389   rm -f conftest.er1
3390   cat conftest.err >&5
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); } &&
3393          { ac_try='test -z "$ac_c_werror_flag"
3394                          || test ! -s conftest.err'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; } &&
3400          { ac_try='test -s conftest.$ac_objext'
3401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402   (eval $ac_try) 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }; }; then
3406   ac_compiler_gnu=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 ac_compiler_gnu=no
3412 fi
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3415
3416 fi
3417 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3419 GCC=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3422 CFLAGS="-g"
3423 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cc_g+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445   (eval $ac_compile) 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } &&
3452          { ac_try='test -z "$ac_c_werror_flag"
3453                          || test ! -s conftest.err'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; } &&
3459          { ac_try='test -s conftest.$ac_objext'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; }; then
3465   ac_cv_prog_cc_g=yes
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ac_cv_prog_cc_g=no
3471 fi
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3476 if test "$ac_test_CFLAGS" = set; then
3477   CFLAGS=$ac_save_CFLAGS
3478 elif test $ac_cv_prog_cc_g = yes; then
3479   if test "$GCC" = yes; then
3480     CFLAGS="-g -O2"
3481   else
3482     CFLAGS="-g"
3483   fi
3484 else
3485   if test "$GCC" = yes; then
3486     CFLAGS="-O2"
3487   else
3488     CFLAGS=
3489   fi
3490 fi
3491 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3492 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3493 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   ac_cv_prog_cc_stdc=no
3497 ac_save_CC=$CC
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <stdarg.h>
3505 #include <stdio.h>
3506 #include <sys/types.h>
3507 #include <sys/stat.h>
3508 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3509 struct buf { int x; };
3510 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3511 static char *e (p, i)
3512      char **p;
3513      int i;
3514 {
3515   return p[i];
3516 }
3517 static char *f (char * (*g) (char **, int), char **p, ...)
3518 {
3519   char *s;
3520   va_list v;
3521   va_start (v,p);
3522   s = g (p, va_arg (v,int));
3523   va_end (v);
3524   return s;
3525 }
3526
3527 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3528    function prototypes and stuff, but not '\xHH' hex character constants.
3529    These don't provoke an error unfortunately, instead are silently treated
3530    as 'x'.  The following induces an error, until -std1 is added to get
3531    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3532    array size at least.  It's necessary to write '\x00'==0 to get something
3533    that's true only with -std1.  */
3534 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3535
3536 int test (int i, double x);
3537 struct s1 {int (*f) (int a);};
3538 struct s2 {int (*f) (double a);};
3539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540 int argc;
3541 char **argv;
3542 int
3543 main ()
3544 {
3545 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 # Don't try gcc -ansi; that turns off useful extensions and
3551 # breaks some systems' header files.
3552 # AIX                   -qlanglvl=ansi
3553 # Ultrix and OSF/1      -std1
3554 # HP-UX 10.20 and later -Ae
3555 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3556 # SVR4                  -Xc -D__EXTENSIONS__
3557 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558 do
3559   CC="$ac_save_CC $ac_arg"
3560   rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562   (eval $ac_compile) 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } &&
3569          { ac_try='test -z "$ac_c_werror_flag"
3570                          || test ! -s conftest.err'
3571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572   (eval $ac_try) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; } &&
3576          { ac_try='test -s conftest.$ac_objext'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582   ac_cv_prog_cc_stdc=$ac_arg
3583 break
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 fi
3589 rm -f conftest.err conftest.$ac_objext
3590 done
3591 rm -f conftest.$ac_ext conftest.$ac_objext
3592 CC=$ac_save_CC
3593
3594 fi
3595
3596 case "x$ac_cv_prog_cc_stdc" in
3597   x|xno)
3598     echo "$as_me:$LINENO: result: none needed" >&5
3599 echo "${ECHO_T}none needed" >&6 ;;
3600   *)
3601     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3602 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3603     CC="$CC $ac_cv_prog_cc_stdc" ;;
3604 esac
3605
3606 # Some people use a C++ compiler to compile C.  Since we use `exit',
3607 # in C++ we need to declare it.  In case someone uses the same compiler
3608 # for both compiling C and C++ we need to have the C++ compiler decide
3609 # the declaration of exit, since it's the most demanding environment.
3610 cat >conftest.$ac_ext <<_ACEOF
3611 #ifndef __cplusplus
3612   choke me
3613 #endif
3614 _ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617   (eval $ac_compile) 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } &&
3624          { ac_try='test -z "$ac_c_werror_flag"
3625                          || test ! -s conftest.err'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637   for ac_declaration in \
3638    '' \
3639    'extern "C" void std::exit (int) throw (); using std::exit;' \
3640    'extern "C" void std::exit (int); using std::exit;' \
3641    'extern "C" void exit (int) throw ();' \
3642    'extern "C" void exit (int);' \
3643    'void exit (int);'
3644 do
3645   cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651 $ac_declaration
3652 #include <stdlib.h>
3653 int
3654 main ()
3655 {
3656 exit (42);
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663   (eval $ac_compile) 2>conftest.er1
3664   ac_status=$?
3665   grep -v '^ *+' conftest.er1 >conftest.err
3666   rm -f conftest.er1
3667   cat conftest.err >&5
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670          { ac_try='test -z "$ac_c_werror_flag"
3671                          || test ! -s conftest.err'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; } &&
3677          { ac_try='test -s conftest.$ac_objext'
3678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679   (eval $ac_try) 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); }; }; then
3683   :
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 continue
3689 fi
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691   cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 $ac_declaration
3698 int
3699 main ()
3700 {
3701 exit (42);
3702   ;
3703   return 0;
3704 }
3705 _ACEOF
3706 rm -f conftest.$ac_objext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708   (eval $ac_compile) 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } &&
3715          { ac_try='test -z "$ac_c_werror_flag"
3716                          || test ! -s conftest.err'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; } &&
3722          { ac_try='test -s conftest.$ac_objext'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; }; then
3728   break
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 fi
3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735 done
3736 rm -f conftest*
3737 if test -n "$ac_declaration"; then
3738   echo '#ifdef __cplusplus' >>confdefs.h
3739   echo $ac_declaration      >>confdefs.h
3740   echo '#endif'             >>confdefs.h
3741 fi
3742
3743 else
3744   echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 fi
3748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755 ac_ext=cc
3756 ac_cpp='$CXXCPP $CPPFLAGS'
3757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3760 if test -n "$ac_tool_prefix"; then
3761   for ac_prog in $CCC g++
3762   do
3763     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_prog_CXX+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   if test -n "$CXX"; then
3771   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_exec_ext in '' $ac_executable_extensions; do
3779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785 done
3786
3787 fi
3788 fi
3789 CXX=$ac_cv_prog_CXX
3790 if test -n "$CXX"; then
3791   echo "$as_me:$LINENO: result: $CXX" >&5
3792 echo "${ECHO_T}$CXX" >&6
3793 else
3794   echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6
3796 fi
3797
3798     test -n "$CXX" && break
3799   done
3800 fi
3801 if test -z "$CXX"; then
3802   ac_ct_CXX=$CXX
3803   for ac_prog in $CCC g++
3804 do
3805   # Extract the first word of "$ac_prog", so it can be a program name with args.
3806 set dummy $ac_prog; ac_word=$2
3807 echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   if test -n "$ac_ct_CXX"; then
3813   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   test -z "$as_dir" && as_dir=.
3820   for ac_exec_ext in '' $ac_executable_extensions; do
3821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822     ac_cv_prog_ac_ct_CXX="$ac_prog"
3823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827 done
3828
3829 fi
3830 fi
3831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3832 if test -n "$ac_ct_CXX"; then
3833   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3834 echo "${ECHO_T}$ac_ct_CXX" >&6
3835 else
3836   echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3838 fi
3839
3840   test -n "$ac_ct_CXX" && break
3841 done
3842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3843
3844   CXX=$ac_ct_CXX
3845 fi
3846
3847
3848 # Provide some information about the compiler.
3849 echo "$as_me:$LINENO:" \
3850      "checking for C++ compiler version" >&5
3851 ac_compiler=`set X $ac_compile; echo $2`
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3853   (eval $ac_compiler --version </dev/null >&5) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }
3857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3858   (eval $ac_compiler -v </dev/null >&5) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }
3862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3863   (eval $ac_compiler -V </dev/null >&5) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }
3867
3868 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3869 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3870 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883 #ifndef __GNUC__
3884        choke me
3885 #endif
3886
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 rm -f conftest.$ac_objext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893   (eval $ac_compile) 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } &&
3900          { ac_try='test -z "$ac_cxx_werror_flag"
3901                          || test ! -s conftest.err'
3902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903   (eval $ac_try) 2>&5
3904   ac_status=$?
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); }; } &&
3907          { ac_try='test -s conftest.$ac_objext'
3908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909   (eval $ac_try) 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); }; }; then
3913   ac_compiler_gnu=yes
3914 else
3915   echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 ac_compiler_gnu=no
3919 fi
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3922
3923 fi
3924 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3925 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3926 GXX=`test $ac_compiler_gnu = yes && echo yes`
3927 ac_test_CXXFLAGS=${CXXFLAGS+set}
3928 ac_save_CXXFLAGS=$CXXFLAGS
3929 CXXFLAGS="-g"
3930 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3931 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3932 if test "${ac_cv_prog_cxx_g+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941
3942 int
3943 main ()
3944 {
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>conftest.er1
3953   ac_status=$?
3954   grep -v '^ *+' conftest.er1 >conftest.err
3955   rm -f conftest.er1
3956   cat conftest.err >&5
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } &&
3959          { ac_try='test -z "$ac_cxx_werror_flag"
3960                          || test ! -s conftest.err'
3961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962   (eval $ac_try) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; } &&
3966          { ac_try='test -s conftest.$ac_objext'
3967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968   (eval $ac_try) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); }; }; then
3972   ac_cv_prog_cxx_g=yes
3973 else
3974   echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 ac_cv_prog_cxx_g=no
3978 fi
3979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980 fi
3981 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3982 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3983 if test "$ac_test_CXXFLAGS" = set; then
3984   CXXFLAGS=$ac_save_CXXFLAGS
3985 elif test $ac_cv_prog_cxx_g = yes; then
3986   if test "$GXX" = yes; then
3987     CXXFLAGS="-g -O2"
3988   else
3989     CXXFLAGS="-g"
3990   fi
3991 else
3992   if test "$GXX" = yes; then
3993     CXXFLAGS="-O2"
3994   else
3995     CXXFLAGS=
3996   fi
3997 fi
3998 for ac_declaration in \
3999    '' \
4000    'extern "C" void std::exit (int) throw (); using std::exit;' \
4001    'extern "C" void std::exit (int); using std::exit;' \
4002    'extern "C" void exit (int) throw ();' \
4003    'extern "C" void exit (int);' \
4004    'void exit (int);'
4005 do
4006   cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012 $ac_declaration
4013 #include <stdlib.h>
4014 int
4015 main ()
4016 {
4017 exit (42);
4018   ;
4019   return 0;
4020 }
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024   (eval $ac_compile) 2>conftest.er1
4025   ac_status=$?
4026   grep -v '^ *+' conftest.er1 >conftest.err
4027   rm -f conftest.er1
4028   cat conftest.err >&5
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); } &&
4031          { ac_try='test -z "$ac_cxx_werror_flag"
4032                          || test ! -s conftest.err'
4033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034   (eval $ac_try) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; } &&
4038          { ac_try='test -s conftest.$ac_objext'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; }; then
4044   :
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 continue
4050 fi
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 $ac_declaration
4059 int
4060 main ()
4061 {
4062 exit (42);
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069   (eval $ac_compile) 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -z "$ac_cxx_werror_flag"
4077                          || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest.$ac_objext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   break
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 fi
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 done
4097 rm -f conftest*
4098 if test -n "$ac_declaration"; then
4099   echo '#ifdef __cplusplus' >>confdefs.h
4100   echo $ac_declaration      >>confdefs.h
4101   echo '#endif'             >>confdefs.h
4102 fi
4103
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110 echo "$as_me:$LINENO: checking " >&5
4111 echo $ECHO_N "checking ... $ECHO_C" >&6
4112 if test "${ac_cv_has_flex+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   for ac_prog in flex lex
4116 do
4117   # Extract the first word of "$ac_prog", so it can be a program name with args.
4118 set dummy $ac_prog; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_LEX+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$LEX"; then
4125   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_LEX="$ac_prog"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141 fi
4142 fi
4143 LEX=$ac_cv_prog_LEX
4144 if test -n "$LEX"; then
4145   echo "$as_me:$LINENO: result: $LEX" >&5
4146 echo "${ECHO_T}$LEX" >&6
4147 else
4148   echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 fi
4151
4152   test -n "$LEX" && break
4153 done
4154 test -n "$LEX" || LEX=":"
4155
4156 if test -z "$LEXLIB"
4157 then
4158   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4159 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4160 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   ac_check_lib_save_LIBS=$LIBS
4164 LIBS="-lfl  $LIBS"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171
4172 /* Override any gcc2 internal prototype to avoid an error.  */
4173 #ifdef __cplusplus
4174 extern "C"
4175 #endif
4176 /* We use char because int might match the return type of a gcc2
4177    builtin and then its argument prototype would still apply.  */
4178 char yywrap ();
4179 int
4180 main ()
4181 {
4182 yywrap ();
4183   ;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189   (eval $ac_link) 2>conftest.er1
4190   ac_status=$?
4191   grep -v '^ *+' conftest.er1 >conftest.err
4192   rm -f conftest.er1
4193   cat conftest.err >&5
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } &&
4196          { ac_try='test -z "$ac_c_werror_flag"
4197                          || test ! -s conftest.err'
4198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199   (eval $ac_try) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; } &&
4203          { ac_try='test -s conftest$ac_exeext'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; }; then
4209   ac_cv_lib_fl_yywrap=yes
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 ac_cv_lib_fl_yywrap=no
4215 fi
4216 rm -f conftest.err conftest.$ac_objext \
4217       conftest$ac_exeext conftest.$ac_ext
4218 LIBS=$ac_check_lib_save_LIBS
4219 fi
4220 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4221 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4222 if test $ac_cv_lib_fl_yywrap = yes; then
4223   LEXLIB="-lfl"
4224 else
4225   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4226 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4227 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   ac_check_lib_save_LIBS=$LIBS
4231 LIBS="-ll  $LIBS"
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238
4239 /* Override any gcc2 internal prototype to avoid an error.  */
4240 #ifdef __cplusplus
4241 extern "C"
4242 #endif
4243 /* We use char because int might match the return type of a gcc2
4244    builtin and then its argument prototype would still apply.  */
4245 char yywrap ();
4246 int
4247 main ()
4248 {
4249 yywrap ();
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256   (eval $ac_link) 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag"
4264                          || test ! -s conftest.err'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; } &&
4270          { ac_try='test -s conftest$ac_exeext'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   ac_cv_lib_l_yywrap=yes
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 ac_cv_lib_l_yywrap=no
4282 fi
4283 rm -f conftest.err conftest.$ac_objext \
4284       conftest$ac_exeext conftest.$ac_ext
4285 LIBS=$ac_check_lib_save_LIBS
4286 fi
4287 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4288 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4289 if test $ac_cv_lib_l_yywrap = yes; then
4290   LEXLIB="-ll"
4291 fi
4292
4293 fi
4294
4295 fi
4296
4297 if test "x$LEX" != "x:"; then
4298   echo "$as_me:$LINENO: checking lex output file root" >&5
4299 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4300 if test "${ac_cv_prog_lex_root+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   # The minimal lex program is just a single line: %%.  But some broken lexes
4304 # (Solaris, I think it was) want two %% lines, so accommodate them.
4305 cat >conftest.l <<_ACEOF
4306 %%
4307 %%
4308 _ACEOF
4309 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4310   (eval $LEX conftest.l) 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }
4314 if test -f lex.yy.c; then
4315   ac_cv_prog_lex_root=lex.yy
4316 elif test -f lexyy.c; then
4317   ac_cv_prog_lex_root=lexyy
4318 else
4319   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4320 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4321    { (exit 1); exit 1; }; }
4322 fi
4323 fi
4324 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4325 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4326 rm -f conftest.l
4327 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4328
4329 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4330 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4331 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   # POSIX says lex can declare yytext either as a pointer or an array; the
4335 # default is implementation-dependent. Figure out which it is, since
4336 # not all implementations provide the %pointer and %array declarations.
4337 ac_cv_prog_lex_yytext_pointer=no
4338 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4339 ac_save_LIBS=$LIBS
4340 LIBS="$LIBS $LEXLIB"
4341 cat >conftest.$ac_ext <<_ACEOF
4342 `cat $LEX_OUTPUT_ROOT.c`
4343 _ACEOF
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346   (eval $ac_link) 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag"
4354                          || test ! -s conftest.err'
4355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356   (eval $ac_try) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; } &&
4360          { ac_try='test -s conftest$ac_exeext'
4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362   (eval $ac_try) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   ac_cv_prog_lex_yytext_pointer=yes
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 fi
4372 rm -f conftest.err conftest.$ac_objext \
4373       conftest$ac_exeext conftest.$ac_ext
4374 LIBS=$ac_save_LIBS
4375 rm -f "${LEX_OUTPUT_ROOT}.c"
4376
4377 fi
4378 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4379 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4380 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4381
4382 cat >>confdefs.h <<\_ACEOF
4383 #define YYTEXT_POINTER 1
4384 _ACEOF
4385
4386 fi
4387
4388 fi
4389
4390 fi
4391 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4392 echo "${ECHO_T}$ac_cv_has_flex" >&6
4393 if test "$LEX" != "flex"; then
4394   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4395 echo "$as_me: error: flex not found but required" >&2;}
4396    { (exit 1); exit 1; }; }
4397 else
4398   FLEX=flex
4399
4400 fi
4401
4402 echo "$as_me:$LINENO: checking " >&5
4403 echo $ECHO_N "checking ... $ECHO_C" >&6
4404 if test "${llvm_cv_has_bison+set}" = set; then
4405   echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407   for ac_prog in 'bison -y' byacc
4408 do
4409   # Extract the first word of "$ac_prog", so it can be a program name with args.
4410 set dummy $ac_prog; ac_word=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_YACC+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   if test -n "$YACC"; then
4417   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4421 do
4422   IFS=$as_save_IFS
4423   test -z "$as_dir" && as_dir=.
4424   for ac_exec_ext in '' $ac_executable_extensions; do
4425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426     ac_cv_prog_YACC="$ac_prog"
4427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428     break 2
4429   fi
4430 done
4431 done
4432
4433 fi
4434 fi
4435 YACC=$ac_cv_prog_YACC
4436 if test -n "$YACC"; then
4437   echo "$as_me:$LINENO: result: $YACC" >&5
4438 echo "${ECHO_T}$YACC" >&6
4439 else
4440   echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4442 fi
4443
4444   test -n "$YACC" && break
4445 done
4446 test -n "$YACC" || YACC="yacc"
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 echo "$as_me:$LINENO: checking for GNU make" >&5
4461 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462 if test "${llvm_cv_gnu_make_command+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   llvm_cv_gnu_make_command=''
4466  for a in "$MAKE" make gmake gnumake ; do
4467   if test -z "$a" ; then continue ; fi ;
4468   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4469   then
4470    llvm_cv_gnu_make_command=$a ;
4471    break;
4472   fi
4473  done
4474 fi
4475 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4478    ifGNUmake='' ;
4479  else
4480    ifGNUmake='#' ;
4481    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482 echo "${ECHO_T}\"Not found\"" >&6;
4483  fi
4484
4485
4486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4488 LN_S=$as_ln_s
4489 if test "$LN_S" = "ln -s"; then
4490   echo "$as_me:$LINENO: result: yes" >&5
4491 echo "${ECHO_T}yes" >&6
4492 else
4493   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494 echo "${ECHO_T}no, using $LN_S" >&6
4495 fi
4496
4497 # Extract the first word of "cmp", so it can be a program name with args.
4498 set dummy cmp; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_CMP+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   case $CMP in
4505   [\\/]* | ?:[\\/]*)
4506   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4507   ;;
4508   *)
4509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514   for ac_exec_ext in '' $ac_executable_extensions; do
4515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518     break 2
4519   fi
4520 done
4521 done
4522
4523   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4524   ;;
4525 esac
4526 fi
4527 CMP=$ac_cv_path_CMP
4528
4529 if test -n "$CMP"; then
4530   echo "$as_me:$LINENO: result: $CMP" >&5
4531 echo "${ECHO_T}$CMP" >&6
4532 else
4533   echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4535 fi
4536
4537 # Extract the first word of "cp", so it can be a program name with args.
4538 set dummy cp; ac_word=$2
4539 echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_path_CP+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   case $CP in
4545   [\\/]* | ?:[\\/]*)
4546   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4547   ;;
4548   *)
4549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_exec_ext in '' $ac_executable_extensions; do
4555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562
4563   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4564   ;;
4565 esac
4566 fi
4567 CP=$ac_cv_path_CP
4568
4569 if test -n "$CP"; then
4570   echo "$as_me:$LINENO: result: $CP" >&5
4571 echo "${ECHO_T}$CP" >&6
4572 else
4573   echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4575 fi
4576
4577 # Extract the first word of "date", so it can be a program name with args.
4578 set dummy date; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_DATE+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   case $DATE in
4585   [\\/]* | ?:[\\/]*)
4586   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4587   ;;
4588   *)
4589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594   for ac_exec_ext in '' $ac_executable_extensions; do
4595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601 done
4602
4603   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4604   ;;
4605 esac
4606 fi
4607 DATE=$ac_cv_path_DATE
4608
4609 if test -n "$DATE"; then
4610   echo "$as_me:$LINENO: result: $DATE" >&5
4611 echo "${ECHO_T}$DATE" >&6
4612 else
4613   echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4615 fi
4616
4617 # Extract the first word of "find", so it can be a program name with args.
4618 set dummy find; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_FIND+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   case $FIND in
4625   [\\/]* | ?:[\\/]*)
4626   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4627   ;;
4628   *)
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642
4643   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4644   ;;
4645 esac
4646 fi
4647 FIND=$ac_cv_path_FIND
4648
4649 if test -n "$FIND"; then
4650   echo "$as_me:$LINENO: result: $FIND" >&5
4651 echo "${ECHO_T}$FIND" >&6
4652 else
4653   echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4655 fi
4656
4657 # Extract the first word of "grep", so it can be a program name with args.
4658 set dummy grep; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_GREP+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   case $GREP in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682
4683   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4684   ;;
4685 esac
4686 fi
4687 GREP=$ac_cv_path_GREP
4688
4689 if test -n "$GREP"; then
4690   echo "$as_me:$LINENO: result: $GREP" >&5
4691 echo "${ECHO_T}$GREP" >&6
4692 else
4693   echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4695 fi
4696
4697 # Extract the first word of "mkdir", so it can be a program name with args.
4698 set dummy mkdir; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_MKDIR+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $MKDIR in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722
4723   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4724   ;;
4725 esac
4726 fi
4727 MKDIR=$ac_cv_path_MKDIR
4728
4729 if test -n "$MKDIR"; then
4730   echo "$as_me:$LINENO: result: $MKDIR" >&5
4731 echo "${ECHO_T}$MKDIR" >&6
4732 else
4733   echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4735 fi
4736
4737 # Extract the first word of "mv", so it can be a program name with args.
4738 set dummy mv; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_MV+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $MV in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4747   ;;
4748   *)
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_path_MV="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4764   ;;
4765 esac
4766 fi
4767 MV=$ac_cv_path_MV
4768
4769 if test -n "$MV"; then
4770   echo "$as_me:$LINENO: result: $MV" >&5
4771 echo "${ECHO_T}$MV" >&6
4772 else
4773   echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4775 fi
4776
4777 # Extract the first word of "pax", so it can be a program name with args.
4778 set dummy pax; 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_path_PAX+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   case $PAX in
4785   [\\/]* | ?:[\\/]*)
4786   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4787   ;;
4788   *)
4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802
4803   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4804   ;;
4805 esac
4806 fi
4807 PAX=$ac_cv_path_PAX
4808
4809 if test -n "$PAX"; then
4810   echo "$as_me:$LINENO: result: $PAX" >&5
4811 echo "${ECHO_T}$PAX" >&6
4812 else
4813   echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4815 fi
4816
4817 if test -n "$ac_tool_prefix"; then
4818   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   if test -n "$RANLIB"; then
4826   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833   for ac_exec_ext in '' $ac_executable_extensions; do
4834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840 done
4841
4842 fi
4843 fi
4844 RANLIB=$ac_cv_prog_RANLIB
4845 if test -n "$RANLIB"; then
4846   echo "$as_me:$LINENO: result: $RANLIB" >&5
4847 echo "${ECHO_T}$RANLIB" >&6
4848 else
4849   echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4851 fi
4852
4853 fi
4854 if test -z "$ac_cv_prog_RANLIB"; then
4855   ac_ct_RANLIB=$RANLIB
4856   # Extract the first word of "ranlib", so it can be a program name with args.
4857 set dummy ranlib; ac_word=$2
4858 echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4860 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   if test -n "$ac_ct_RANLIB"; then
4864   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873     ac_cv_prog_ac_ct_RANLIB="ranlib"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879
4880   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4881 fi
4882 fi
4883 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4884 if test -n "$ac_ct_RANLIB"; then
4885   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4886 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4887 else
4888   echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6
4890 fi
4891
4892   RANLIB=$ac_ct_RANLIB
4893 else
4894   RANLIB="$ac_cv_prog_RANLIB"
4895 fi
4896
4897 # Extract the first word of "rm", so it can be a program name with args.
4898 set dummy rm; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_path_RM+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   case $RM in
4905   [\\/]* | ?:[\\/]*)
4906   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4907   ;;
4908   *)
4909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921 done
4922
4923   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4924   ;;
4925 esac
4926 fi
4927 RM=$ac_cv_path_RM
4928
4929 if test -n "$RM"; then
4930   echo "$as_me:$LINENO: result: $RM" >&5
4931 echo "${ECHO_T}$RM" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937 # Extract the first word of "sed", so it can be a program name with args.
4938 set dummy sed; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_path_SED+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   case $SED in
4945   [\\/]* | ?:[\\/]*)
4946   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4947   ;;
4948   *)
4949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962
4963   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4964   ;;
4965 esac
4966 fi
4967 SED=$ac_cv_path_SED
4968
4969 if test -n "$SED"; then
4970   echo "$as_me:$LINENO: result: $SED" >&5
4971 echo "${ECHO_T}$SED" >&6
4972 else
4973   echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977 # Extract the first word of "tar", so it can be a program name with args.
4978 set dummy tar; ac_word=$2
4979 echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981 if test "${ac_cv_path_TAR+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   case $TAR in
4985   [\\/]* | ?:[\\/]*)
4986   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4987   ;;
4988   *)
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002
5003   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5004   ;;
5005 esac
5006 fi
5007 TAR=$ac_cv_path_TAR
5008
5009 if test -n "$TAR"; then
5010   echo "$as_me:$LINENO: result: $TAR" >&5
5011 echo "${ECHO_T}$TAR" >&6
5012 else
5013   echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5015 fi
5016
5017
5018 # Find a good install program.  We prefer a C program (faster),
5019 # so one script is as good as another.  But avoid the broken or
5020 # incompatible versions:
5021 # SysV /etc/install, /usr/sbin/install
5022 # SunOS /usr/etc/install
5023 # IRIX /sbin/install
5024 # AIX /bin/install
5025 # AmigaOS /C/install, which installs bootblocks on floppy discs
5026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5029 # OS/2's system install, which has a completely different semantic
5030 # ./install, which can be erroneously created by make from ./install.sh.
5031 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5032 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5033 if test -z "$INSTALL"; then
5034 if test "${ac_cv_path_install+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042   # Account for people who put trailing slashes in PATH elements.
5043 case $as_dir/ in
5044   ./ | .// | /cC/* | \
5045   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5046   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5047   /usr/ucb/* ) ;;
5048   *)
5049     # OSF1 and SCO ODT 3.0 have their own names for install.
5050     # Don't use installbsd from OSF since it installs stuff as root
5051     # by default.
5052     for ac_prog in ginstall scoinst install; do
5053       for ac_exec_ext in '' $ac_executable_extensions; do
5054         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5055           if test $ac_prog = install &&
5056             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5057             # AIX install.  It has an incompatible calling convention.
5058             :
5059           elif test $ac_prog = install &&
5060             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5061             # program-specific install script used by HP pwplus--don't use.
5062             :
5063           else
5064             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5065             break 3
5066           fi
5067         fi
5068       done
5069     done
5070     ;;
5071 esac
5072 done
5073
5074
5075 fi
5076   if test "${ac_cv_path_install+set}" = set; then
5077     INSTALL=$ac_cv_path_install
5078   else
5079     # As a last resort, use the slow shell script.  We don't cache a
5080     # path for INSTALL within a source directory, because that will
5081     # break other packages using the cache if that directory is
5082     # removed, or if the path is relative.
5083     INSTALL=$ac_install_sh
5084   fi
5085 fi
5086 echo "$as_me:$LINENO: result: $INSTALL" >&5
5087 echo "${ECHO_T}$INSTALL" >&6
5088
5089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5090 # It thinks the first close brace ends the variable substitution.
5091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5092
5093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5094
5095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5096
5097
5098 # Extract the first word of "bzip2", so it can be a program name with args.
5099 set dummy bzip2; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_path_BZIP2+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   case $BZIP2 in
5106   [\\/]* | ?:[\\/]*)
5107   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5108   ;;
5109   *)
5110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115   for ac_exec_ext in '' $ac_executable_extensions; do
5116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122 done
5123
5124   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5125   ;;
5126 esac
5127 fi
5128 BZIP2=$ac_cv_path_BZIP2
5129
5130 if test -n "$BZIP2"; then
5131   echo "$as_me:$LINENO: result: $BZIP2" >&5
5132 echo "${ECHO_T}$BZIP2" >&6
5133 else
5134   echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5136 fi
5137
5138 # Extract the first word of "dot", so it can be a program name with args.
5139 set dummy dot; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_DOT+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   case $DOT in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155   for ac_exec_ext in '' $ac_executable_extensions; do
5156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162 done
5163
5164   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5165   ;;
5166 esac
5167 fi
5168 DOT=$ac_cv_path_DOT
5169
5170 if test -n "$DOT"; then
5171   echo "$as_me:$LINENO: result: $DOT" >&5
5172 echo "${ECHO_T}$DOT" >&6
5173 else
5174   echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176 fi
5177
5178 # Extract the first word of "doxygen", so it can be a program name with args.
5179 set dummy doxygen; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   case $DOXYGEN in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203
5204   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5205   ;;
5206 esac
5207 fi
5208 DOXYGEN=$ac_cv_path_DOXYGEN
5209
5210 if test -n "$DOXYGEN"; then
5211   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5212 echo "${ECHO_T}$DOXYGEN" >&6
5213 else
5214   echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5216 fi
5217
5218 # Extract the first word of "etags", so it can be a program name with args.
5219 set dummy etags; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_path_ETAGS+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   case $ETAGS in
5226   [\\/]* | ?:[\\/]*)
5227   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5228   ;;
5229   *)
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235   for ac_exec_ext in '' $ac_executable_extensions; do
5236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242 done
5243
5244   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5245   ;;
5246 esac
5247 fi
5248 ETAGS=$ac_cv_path_ETAGS
5249
5250 if test -n "$ETAGS"; then
5251   echo "$as_me:$LINENO: result: $ETAGS" >&5
5252 echo "${ECHO_T}$ETAGS" >&6
5253 else
5254   echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5256 fi
5257
5258 # Extract the first word of "groff", so it can be a program name with args.
5259 set dummy groff; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_path_GROFF+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   case $GROFF in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275   for ac_exec_ext in '' $ac_executable_extensions; do
5276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282 done
5283
5284   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5285   ;;
5286 esac
5287 fi
5288 GROFF=$ac_cv_path_GROFF
5289
5290 if test -n "$GROFF"; then
5291   echo "$as_me:$LINENO: result: $GROFF" >&5
5292 echo "${ECHO_T}$GROFF" >&6
5293 else
5294   echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5296 fi
5297
5298 # Extract the first word of "gzip", so it can be a program name with args.
5299 set dummy gzip; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_path_GZIP+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   case $GZIP in
5306   [\\/]* | ?:[\\/]*)
5307   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5308   ;;
5309   *)
5310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   for ac_exec_ext in '' $ac_executable_extensions; do
5316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323
5324   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5325   ;;
5326 esac
5327 fi
5328 GZIP=$ac_cv_path_GZIP
5329
5330 if test -n "$GZIP"; then
5331   echo "$as_me:$LINENO: result: $GZIP" >&5
5332 echo "${ECHO_T}$GZIP" >&6
5333 else
5334   echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5336 fi
5337
5338 # Extract the first word of "pod2html", so it can be a program name with args.
5339 set dummy pod2html; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_POD2HTML+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   case $POD2HTML in
5346   [\\/]* | ?:[\\/]*)
5347   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5348   ;;
5349   *)
5350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355   for ac_exec_ext in '' $ac_executable_extensions; do
5356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362 done
5363
5364   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5365   ;;
5366 esac
5367 fi
5368 POD2HTML=$ac_cv_path_POD2HTML
5369
5370 if test -n "$POD2HTML"; then
5371   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5372 echo "${ECHO_T}$POD2HTML" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378 # Extract the first word of "pod2man", so it can be a program name with args.
5379 set dummy pod2man; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_POD2MAN+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   case $POD2MAN in
5386   [\\/]* | ?:[\\/]*)
5387   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5388   ;;
5389   *)
5390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395   for ac_exec_ext in '' $ac_executable_extensions; do
5396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402 done
5403
5404   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5405   ;;
5406 esac
5407 fi
5408 POD2MAN=$ac_cv_path_POD2MAN
5409
5410 if test -n "$POD2MAN"; then
5411   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5412 echo "${ECHO_T}$POD2MAN" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418 # Extract the first word of "runtest", so it can be a program name with args.
5419 set dummy runtest; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_path_RUNTEST+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   case $RUNTEST in
5426   [\\/]* | ?:[\\/]*)
5427   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5428   ;;
5429   *)
5430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435   for ac_exec_ext in '' $ac_executable_extensions; do
5436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442 done
5443
5444   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5445   ;;
5446 esac
5447 fi
5448 RUNTEST=$ac_cv_path_RUNTEST
5449
5450 if test -n "$RUNTEST"; then
5451   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5452 echo "${ECHO_T}$RUNTEST" >&6
5453 else
5454   echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5456 fi
5457
5458
5459 no_itcl=true
5460 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5461 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5462
5463 # Check whether --with-tclinclude or --without-tclinclude was given.
5464 if test "${with_tclinclude+set}" = set; then
5465   withval="$with_tclinclude"
5466   with_tclinclude=${withval}
5467 else
5468   with_tclinclude=''
5469 fi;
5470 if test "${ac_cv_path_tclsh+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473
5474 if test x"${with_tclinclude}" != x ; then
5475   if test -f ${with_tclinclude}/tclsh ; then
5476     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5477   elif test -f ${with_tclinclude}/src/tclsh ; then
5478     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5479   else
5480     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5481 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5482    { (exit 1); exit 1; }; }
5483   fi
5484 fi
5485
5486 if test x"${ac_cv_path_tclsh}" = x ; then
5487   echo "$as_me:$LINENO: result: none" >&5
5488 echo "${ECHO_T}none" >&6
5489   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
5490 do
5491   # Extract the first word of "$ac_prog", so it can be a program name with args.
5492 set dummy $ac_prog; ac_word=$2
5493 echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5495 if test "${ac_cv_path_TCLSH+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498   case $TCLSH in
5499   [\\/]* | ?:[\\/]*)
5500   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5501   ;;
5502   *)
5503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508   for ac_exec_ext in '' $ac_executable_extensions; do
5509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515 done
5516
5517   ;;
5518 esac
5519 fi
5520 TCLSH=$ac_cv_path_TCLSH
5521
5522 if test -n "$TCLSH"; then
5523   echo "$as_me:$LINENO: result: $TCLSH" >&5
5524 echo "${ECHO_T}$TCLSH" >&6
5525 else
5526   echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6
5528 fi
5529
5530   test -n "$TCLSH" && break
5531 done
5532
5533   if test x"${TCLSH}" = x ; then
5534     ac_cv_path_tclsh='';
5535   else
5536     ac_cv_path_tclsh="${TCLSH}";
5537   fi
5538 else
5539   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5540 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5541   TCLSH="${ac_cv_path_tclsh}"
5542
5543 fi
5544
5545 fi
5546
5547 # Extract the first word of "zip", so it can be a program name with args.
5548 set dummy zip; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_path_ZIP+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   case $ZIP in
5555   [\\/]* | ?:[\\/]*)
5556   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5557   ;;
5558   *)
5559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564   for ac_exec_ext in '' $ac_executable_extensions; do
5565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571 done
5572
5573   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5574   ;;
5575 esac
5576 fi
5577 ZIP=$ac_cv_path_ZIP
5578
5579 if test -n "$ZIP"; then
5580   echo "$as_me:$LINENO: result: $ZIP" >&5
5581 echo "${ECHO_T}$ZIP" >&6
5582 else
5583   echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5585 fi
5586
5587
5588 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5589 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5590 if test "${llvm_cv_link_use_r+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593    ac_ext=c
5594 ac_cpp='$CPP $CPPFLAGS'
5595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5598
5599   oldcflags="$CFLAGS"
5600   CFLAGS="$CFLAGS -Wl,-R."
5601   cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h.  */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h.  */
5607
5608 int
5609 main ()
5610 {
5611 int main() { return 0; }
5612   ;
5613   return 0;
5614 }
5615 _ACEOF
5616 rm -f conftest.$ac_objext conftest$ac_exeext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618   (eval $ac_link) 2>conftest.er1
5619   ac_status=$?
5620   grep -v '^ *+' conftest.er1 >conftest.err
5621   rm -f conftest.er1
5622   cat conftest.err >&5
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } &&
5625          { ac_try='test -z "$ac_c_werror_flag"
5626                          || test ! -s conftest.err'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; } &&
5632          { ac_try='test -s conftest$ac_exeext'
5633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634   (eval $ac_try) 2>&5
5635   ac_status=$?
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); }; }; then
5638   llvm_cv_link_use_r=yes
5639 else
5640   echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 llvm_cv_link_use_r=no
5644 fi
5645 rm -f conftest.err conftest.$ac_objext \
5646       conftest$ac_exeext conftest.$ac_ext
5647   CFLAGS="$oldcflags"
5648   ac_ext=c
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653
5654
5655 fi
5656 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5657 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5658 if test "$llvm_cv_link_use_r" = yes ; then
5659
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAVE_LINK_R 1
5662 _ACEOF
5663
5664   fi
5665
5666
5667
5668
5669 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5670 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5671 if test "${ac_cv_c_const+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680
5681 int
5682 main ()
5683 {
5684 /* FIXME: Include the comments suggested by Paul. */
5685 #ifndef __cplusplus
5686   /* Ultrix mips cc rejects this.  */
5687   typedef int charset[2];
5688   const charset x;
5689   /* SunOS 4.1.1 cc rejects this.  */
5690   char const *const *ccp;
5691   char **p;
5692   /* NEC SVR4.0.2 mips cc rejects this.  */
5693   struct point {int x, y;};
5694   static struct point const zero = {0,0};
5695   /* AIX XL C 1.02.0.0 rejects this.
5696      It does not let you subtract one const X* pointer from another in
5697      an arm of an if-expression whose if-part is not a constant
5698      expression */
5699   const char *g = "string";
5700   ccp = &g + (g ? g-g : 0);
5701   /* HPUX 7.0 cc rejects these. */
5702   ++ccp;
5703   p = (char**) ccp;
5704   ccp = (char const *const *) p;
5705   { /* SCO 3.2v4 cc rejects this.  */
5706     char *t;
5707     char const *s = 0 ? (char *) 0 : (char const *) 0;
5708
5709     *t++ = 0;
5710   }
5711   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5712     int x[] = {25, 17};
5713     const int *foo = &x[0];
5714     ++foo;
5715   }
5716   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5717     typedef const int *iptr;
5718     iptr p = 0;
5719     ++p;
5720   }
5721   { /* AIX XL C 1.02.0.0 rejects this saying
5722        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5723     struct s { int j; const int *ap[3]; };
5724     struct s *b; b->j = 5;
5725   }
5726   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5727     const int foo = 10;
5728   }
5729 #endif
5730
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737   (eval $ac_compile) 2>conftest.er1
5738   ac_status=$?
5739   grep -v '^ *+' conftest.er1 >conftest.err
5740   rm -f conftest.er1
5741   cat conftest.err >&5
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -z "$ac_c_werror_flag"
5745                          || test ! -s conftest.err'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; } &&
5751          { ac_try='test -s conftest.$ac_objext'
5752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753   (eval $ac_try) 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; }; then
5757   ac_cv_c_const=yes
5758 else
5759   echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 ac_cv_c_const=no
5763 fi
5764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5765 fi
5766 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5767 echo "${ECHO_T}$ac_cv_c_const" >&6
5768 if test $ac_cv_c_const = no; then
5769
5770 cat >>confdefs.h <<\_ACEOF
5771 #define const
5772 _ACEOF
5773
5774 fi
5775
5776
5777 echo "$as_me:$LINENO: checking for egrep" >&5
5778 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5779 if test "${ac_cv_prog_egrep+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5783     then ac_cv_prog_egrep='grep -E'
5784     else ac_cv_prog_egrep='egrep'
5785     fi
5786 fi
5787 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5788 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5789  EGREP=$ac_cv_prog_egrep
5790
5791
5792 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5794 if test "${ac_cv_header_stdc+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803 #include <stdlib.h>
5804 #include <stdarg.h>
5805 #include <string.h>
5806 #include <float.h>
5807
5808 int
5809 main ()
5810 {
5811
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818   (eval $ac_compile) 2>conftest.er1
5819   ac_status=$?
5820   grep -v '^ *+' conftest.er1 >conftest.err
5821   rm -f conftest.er1
5822   cat conftest.err >&5
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); } &&
5825          { ac_try='test -z "$ac_c_werror_flag"
5826                          || test ! -s conftest.err'
5827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828   (eval $ac_try) 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; } &&
5832          { ac_try='test -s conftest.$ac_objext'
5833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834   (eval $ac_try) 2>&5
5835   ac_status=$?
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); }; }; then
5838   ac_cv_header_stdc=yes
5839 else
5840   echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_cv_header_stdc=no
5844 fi
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846
5847 if test $ac_cv_header_stdc = yes; then
5848   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849   cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 #include <string.h>
5856
5857 _ACEOF
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859   $EGREP "memchr" >/dev/null 2>&1; then
5860   :
5861 else
5862   ac_cv_header_stdc=no
5863 fi
5864 rm -f conftest*
5865
5866 fi
5867
5868 if test $ac_cv_header_stdc = yes; then
5869   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5870   cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h.  */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h.  */
5876 #include <stdlib.h>
5877
5878 _ACEOF
5879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5880   $EGREP "free" >/dev/null 2>&1; then
5881   :
5882 else
5883   ac_cv_header_stdc=no
5884 fi
5885 rm -f conftest*
5886
5887 fi
5888
5889 if test $ac_cv_header_stdc = yes; then
5890   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5891   if test "$cross_compiling" = yes; then
5892   :
5893 else
5894   cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h.  */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h.  */
5900 #include <ctype.h>
5901 #if ((' ' & 0x0FF) == 0x020)
5902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5904 #else
5905 # define ISLOWER(c) \
5906                    (('a' <= (c) && (c) <= 'i') \
5907                      || ('j' <= (c) && (c) <= 'r') \
5908                      || ('s' <= (c) && (c) <= 'z'))
5909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5910 #endif
5911
5912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5913 int
5914 main ()
5915 {
5916   int i;
5917   for (i = 0; i < 256; i++)
5918     if (XOR (islower (i), ISLOWER (i))
5919         || toupper (i) != TOUPPER (i))
5920       exit(2);
5921   exit (0);
5922 }
5923 _ACEOF
5924 rm -f conftest$ac_exeext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926   (eval $ac_link) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931   (eval $ac_try) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }; }; then
5935   :
5936 else
5937   echo "$as_me: program exited with status $ac_status" >&5
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 ( exit $ac_status )
5942 ac_cv_header_stdc=no
5943 fi
5944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5945 fi
5946 fi
5947 fi
5948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5950 if test $ac_cv_header_stdc = yes; then
5951
5952 cat >>confdefs.h <<\_ACEOF
5953 #define STDC_HEADERS 1
5954 _ACEOF
5955
5956 fi
5957
5958
5959
5960
5961
5962
5963 ac_header_dirent=no
5964 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5965   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5966 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5967 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h.  */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h.  */
5977 #include <sys/types.h>
5978 #include <$ac_hdr>
5979
5980 int
5981 main ()
5982 {
5983 if ((DIR *) 0)
5984 return 0;
5985   ;
5986   return 0;
5987 }
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991   (eval $ac_compile) 2>conftest.er1
5992   ac_status=$?
5993   grep -v '^ *+' conftest.er1 >conftest.err
5994   rm -f conftest.er1
5995   cat conftest.err >&5
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); } &&
5998          { ac_try='test -z "$ac_c_werror_flag"
5999                          || test ! -s conftest.err'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; } &&
6005          { ac_try='test -s conftest.$ac_objext'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; }; then
6011   eval "$as_ac_Header=yes"
6012 else
6013   echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016 eval "$as_ac_Header=no"
6017 fi
6018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023   cat >>confdefs.h <<_ACEOF
6024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6025 _ACEOF
6026
6027 ac_header_dirent=$ac_hdr; break
6028 fi
6029
6030 done
6031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6032 if test $ac_header_dirent = dirent.h; then
6033   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6035 if test "${ac_cv_search_opendir+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   ac_func_search_save_LIBS=$LIBS
6039 ac_cv_search_opendir=no
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046
6047 /* Override any gcc2 internal prototype to avoid an error.  */
6048 #ifdef __cplusplus
6049 extern "C"
6050 #endif
6051 /* We use char because int might match the return type of a gcc2
6052    builtin and then its argument prototype would still apply.  */
6053 char opendir ();
6054 int
6055 main ()
6056 {
6057 opendir ();
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6064   (eval $ac_link) 2>conftest.er1
6065   ac_status=$?
6066   grep -v '^ *+' conftest.er1 >conftest.err
6067   rm -f conftest.er1
6068   cat conftest.err >&5
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); } &&
6071          { ac_try='test -z "$ac_c_werror_flag"
6072                          || test ! -s conftest.err'
6073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074   (eval $ac_try) 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; } &&
6078          { ac_try='test -s conftest$ac_exeext'
6079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080   (eval $ac_try) 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); }; }; then
6084   ac_cv_search_opendir="none required"
6085 else
6086   echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6088
6089 fi
6090 rm -f conftest.err conftest.$ac_objext \
6091       conftest$ac_exeext conftest.$ac_ext
6092 if test "$ac_cv_search_opendir" = no; then
6093   for ac_lib in dir; do
6094     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6095     cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h.  */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h.  */
6101
6102 /* Override any gcc2 internal prototype to avoid an error.  */
6103 #ifdef __cplusplus
6104 extern "C"
6105 #endif
6106 /* We use char because int might match the return type of a gcc2
6107    builtin and then its argument prototype would still apply.  */
6108 char opendir ();
6109 int
6110 main ()
6111 {
6112 opendir ();
6113   ;
6114   return 0;
6115 }
6116 _ACEOF
6117 rm -f conftest.$ac_objext conftest$ac_exeext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119   (eval $ac_link) 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } &&
6126          { ac_try='test -z "$ac_c_werror_flag"
6127                          || test ! -s conftest.err'
6128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129   (eval $ac_try) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; } &&
6133          { ac_try='test -s conftest$ac_exeext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_search_opendir="-l$ac_lib"
6140 break
6141 else
6142   echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145 fi
6146 rm -f conftest.err conftest.$ac_objext \
6147       conftest$ac_exeext conftest.$ac_ext
6148   done
6149 fi
6150 LIBS=$ac_func_search_save_LIBS
6151 fi
6152 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6153 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6154 if test "$ac_cv_search_opendir" != no; then
6155   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6156
6157 fi
6158
6159 else
6160   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6161 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6162 if test "${ac_cv_search_opendir+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   ac_func_search_save_LIBS=$LIBS
6166 ac_cv_search_opendir=no
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h.  */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h.  */
6173
6174 /* Override any gcc2 internal prototype to avoid an error.  */
6175 #ifdef __cplusplus
6176 extern "C"
6177 #endif
6178 /* We use char because int might match the return type of a gcc2
6179    builtin and then its argument prototype would still apply.  */
6180 char opendir ();
6181 int
6182 main ()
6183 {
6184 opendir ();
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191   (eval $ac_link) 2>conftest.er1
6192   ac_status=$?
6193   grep -v '^ *+' conftest.er1 >conftest.err
6194   rm -f conftest.er1
6195   cat conftest.err >&5
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } &&
6198          { ac_try='test -z "$ac_c_werror_flag"
6199                          || test ! -s conftest.err'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; } &&
6205          { ac_try='test -s conftest$ac_exeext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_cv_search_opendir="none required"
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 fi
6217 rm -f conftest.err conftest.$ac_objext \
6218       conftest$ac_exeext conftest.$ac_ext
6219 if test "$ac_cv_search_opendir" = no; then
6220   for ac_lib in x; do
6221     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6222     cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228
6229 /* Override any gcc2 internal prototype to avoid an error.  */
6230 #ifdef __cplusplus
6231 extern "C"
6232 #endif
6233 /* We use char because int might match the return type of a gcc2
6234    builtin and then its argument prototype would still apply.  */
6235 char opendir ();
6236 int
6237 main ()
6238 {
6239 opendir ();
6240   ;
6241   return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246   (eval $ac_link) 2>conftest.er1
6247   ac_status=$?
6248   grep -v '^ *+' conftest.er1 >conftest.err
6249   rm -f conftest.er1
6250   cat conftest.err >&5
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); } &&
6253          { ac_try='test -z "$ac_c_werror_flag"
6254                          || test ! -s conftest.err'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; } &&
6260          { ac_try='test -s conftest$ac_exeext'
6261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262   (eval $ac_try) 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }; }; then
6266   ac_cv_search_opendir="-l$ac_lib"
6267 break
6268 else
6269   echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 fi
6273 rm -f conftest.err conftest.$ac_objext \
6274       conftest$ac_exeext conftest.$ac_ext
6275   done
6276 fi
6277 LIBS=$ac_func_search_save_LIBS
6278 fi
6279 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6280 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6281 if test "$ac_cv_search_opendir" != no; then
6282   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6283
6284 fi
6285
6286 fi
6287
6288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6299                   inttypes.h stdint.h unistd.h
6300 do
6301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 echo "$as_me:$LINENO: checking for $ac_header" >&5
6303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305   echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307   cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313 $ac_includes_default
6314
6315 #include <$ac_header>
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319   (eval $ac_compile) 2>conftest.er1
6320   ac_status=$?
6321   grep -v '^ *+' conftest.er1 >conftest.err
6322   rm -f conftest.er1
6323   cat conftest.err >&5
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); } &&
6326          { ac_try='test -z "$ac_c_werror_flag"
6327                          || test ! -s conftest.err'
6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329   (eval $ac_try) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; } &&
6333          { ac_try='test -s conftest.$ac_objext'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   eval "$as_ac_Header=yes"
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 eval "$as_ac_Header=no"
6345 fi
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347 fi
6348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6351   cat >>confdefs.h <<_ACEOF
6352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6353 _ACEOF
6354
6355 fi
6356
6357 done
6358
6359
6360
6361 for ac_header in dlfcn.h
6362 do
6363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365   echo "$as_me:$LINENO: checking for $ac_header" >&5
6366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 fi
6370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6372 else
6373   # Is the header compilable?
6374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382 $ac_includes_default
6383 #include <$ac_header>
6384 _ACEOF
6385 rm -f conftest.$ac_objext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387   (eval $ac_compile) 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } &&
6394          { ac_try='test -z "$ac_c_werror_flag"
6395                          || test ! -s conftest.err'
6396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397   (eval $ac_try) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; } &&
6401          { ac_try='test -s conftest.$ac_objext'
6402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403   (eval $ac_try) 2>&5
6404   ac_status=$?
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); }; }; then
6407   ac_header_compiler=yes
6408 else
6409   echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 ac_header_compiler=no
6413 fi
6414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6416 echo "${ECHO_T}$ac_header_compiler" >&6
6417
6418 # Is the header present?
6419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 #include <$ac_header>
6428 _ACEOF
6429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } >/dev/null; then
6437   if test -s conftest.err; then
6438     ac_cpp_err=$ac_c_preproc_warn_flag
6439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6440   else
6441     ac_cpp_err=
6442   fi
6443 else
6444   ac_cpp_err=yes
6445 fi
6446 if test -z "$ac_cpp_err"; then
6447   ac_header_preproc=yes
6448 else
6449   echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452   ac_header_preproc=no
6453 fi
6454 rm -f conftest.err conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6456 echo "${ECHO_T}$ac_header_preproc" >&6
6457
6458 # So?  What about this header?
6459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6460   yes:no: )
6461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6465     ac_header_preproc=yes
6466     ;;
6467   no:yes:* )
6468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6480     (
6481       cat <<\_ASBOX
6482 ## ----------------------------------- ##
6483 ## Report this to llvmbugs@cs.uiuc.edu ##
6484 ## ----------------------------------- ##
6485 _ASBOX
6486     ) |
6487       sed "s/^/$as_me: WARNING:     /" >&2
6488     ;;
6489 esac
6490 echo "$as_me:$LINENO: checking for $ac_header" >&5
6491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   eval "$as_ac_Header=\$ac_header_preproc"
6496 fi
6497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6499
6500 fi
6501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502   cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6504 _ACEOF
6505
6506 fi
6507
6508 done
6509
6510 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6511 if test "${enable_ltdl_install+set}" = set; then
6512   enableval="$enable_ltdl_install"
6513
6514 fi;
6515
6516
6517
6518 if test x"${enable_ltdl_install-no}" != xno; then
6519   INSTALL_LTDL_TRUE=
6520   INSTALL_LTDL_FALSE='#'
6521 else
6522   INSTALL_LTDL_TRUE='#'
6523   INSTALL_LTDL_FALSE=
6524 fi
6525
6526
6527
6528 if test x"${enable_ltdl_convenience-no}" != xno; then
6529   CONVENIENCE_LTDL_TRUE=
6530   CONVENIENCE_LTDL_FALSE='#'
6531 else
6532   CONVENIENCE_LTDL_TRUE='#'
6533   CONVENIENCE_LTDL_FALSE=
6534 fi
6535
6536
6537 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6538 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6539 library_names_spec=
6540 libname_spec='lib$name'
6541 soname_spec=
6542 shrext_cmds=".so"
6543 postinstall_cmds=
6544 postuninstall_cmds=
6545 finish_cmds=
6546 finish_eval=
6547 shlibpath_var=
6548 shlibpath_overrides_runpath=unknown
6549 version_type=none
6550 dynamic_linker="$host_os ld.so"
6551 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6552 if test "$GCC" = yes; then
6553   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6554   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6555     # if the path contains ";" then we assume it to be the separator
6556     # otherwise default to the standard path separator (i.e. ":") - it is
6557     # assumed that no part of a normal pathname contains ";" but that should
6558     # okay in the real world where ";" in dirpaths is itself problematic.
6559     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6560   else
6561     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6562   fi
6563 else
6564   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6565 fi
6566 need_lib_prefix=unknown
6567 hardcode_into_libs=no
6568
6569 # when you set need_version to no, make sure it does not cause -set_version
6570 # flags to be left without arguments
6571 need_version=unknown
6572
6573 case $host_os in
6574 aix3*)
6575   version_type=linux
6576   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6577   shlibpath_var=LIBPATH
6578
6579   # AIX 3 has no versioning support, so we append a major version to the name.
6580   soname_spec='${libname}${release}${shared_ext}$major'
6581   ;;
6582
6583 aix4* | aix5*)
6584   version_type=linux
6585   need_lib_prefix=no
6586   need_version=no
6587   hardcode_into_libs=yes
6588   if test "$host_cpu" = ia64; then
6589     # AIX 5 supports IA64
6590     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6591     shlibpath_var=LD_LIBRARY_PATH
6592   else
6593     # With GCC up to 2.95.x, collect2 would create an import file
6594     # for dependence libraries.  The import file would start with
6595     # the line `#! .'.  This would cause the generated library to
6596     # depend on `.', always an invalid library.  This was fixed in
6597     # development snapshots of GCC prior to 3.0.
6598     case $host_os in
6599       aix4 | aix4.[01] | aix4.[01].*)
6600       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6601            echo ' yes '
6602            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6603         :
6604       else
6605         can_build_shared=no
6606       fi
6607       ;;
6608     esac
6609     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6610     # soname into executable. Probably we can add versioning support to
6611     # collect2, so additional links can be useful in future.
6612     if test "$aix_use_runtimelinking" = yes; then
6613       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6614       # instead of lib<name>.a to let people know that these are not
6615       # typical AIX shared libraries.
6616       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6617     else
6618       # We preserve .a as extension for shared libraries through AIX4.2
6619       # and later when we are not doing run time linking.
6620       library_names_spec='${libname}${release}.a $libname.a'
6621       soname_spec='${libname}${release}${shared_ext}$major'
6622     fi
6623     shlibpath_var=LIBPATH
6624   fi
6625   ;;
6626
6627 amigaos*)
6628   library_names_spec='$libname.ixlibrary $libname.a'
6629   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6630   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'
6631   ;;
6632
6633 beos*)
6634   library_names_spec='${libname}${shared_ext}'
6635   dynamic_linker="$host_os ld.so"
6636   shlibpath_var=LIBRARY_PATH
6637   ;;
6638
6639 bsdi[45]*)
6640   version_type=linux
6641   need_version=no
6642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6643   soname_spec='${libname}${release}${shared_ext}$major'
6644   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6645   shlibpath_var=LD_LIBRARY_PATH
6646   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6647   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6648   # the default ld.so.conf also contains /usr/contrib/lib and
6649   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6650   # libtool to hard-code these into programs
6651   ;;
6652
6653 cygwin* | mingw* | pw32*)
6654   version_type=windows
6655   shrext_cmds=".dll"
6656   need_version=no
6657   need_lib_prefix=no
6658
6659   case $GCC,$host_os in
6660   yes,cygwin* | yes,mingw* | yes,pw32*)
6661     library_names_spec='$libname.dll.a'
6662     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6663     postinstall_cmds='base_file=`basename \${file}`~
6664       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6665       dldir=$destdir/`dirname \$dlpath`~
6666       test -d \$dldir || mkdir -p \$dldir~
6667       $install_prog $dir/$dlname \$dldir/$dlname'
6668     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6669       dlpath=$dir/\$dldll~
6670        $rm \$dlpath'
6671     shlibpath_overrides_runpath=yes
6672
6673     case $host_os in
6674     cygwin*)
6675       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6676       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6677       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6678       ;;
6679     mingw*)
6680       # MinGW DLLs use traditional 'lib' prefix
6681       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6682       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6683       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6684         # It is most probably a Windows format PATH printed by
6685         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6686         # path with ; separators, and with drive letters. We can handle the
6687         # drive letters (cygwin fileutils understands them), so leave them,
6688         # especially as we might pass files found there to a mingw objdump,
6689         # which wouldn't understand a cygwinified path. Ahh.
6690         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6691       else
6692         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6693       fi
6694       ;;
6695     pw32*)
6696       # pw32 DLLs use 'pw' prefix rather than 'lib'
6697       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6698       ;;
6699     esac
6700     ;;
6701
6702   *)
6703     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6704     ;;
6705   esac
6706   dynamic_linker='Win32 ld.exe'
6707   # FIXME: first we should search . and the directory the executable is in
6708   shlibpath_var=PATH
6709   ;;
6710
6711 darwin* | rhapsody*)
6712   dynamic_linker="$host_os dyld"
6713   version_type=darwin
6714   need_lib_prefix=no
6715   need_version=no
6716   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6717   soname_spec='${libname}${release}${major}$shared_ext'
6718   shlibpath_overrides_runpath=yes
6719   shlibpath_var=DYLD_LIBRARY_PATH
6720   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6721   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6722   if test "$GCC" = yes; then
6723     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"`
6724   else
6725     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6726   fi
6727   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6728   ;;
6729
6730 dgux*)
6731   version_type=linux
6732   need_lib_prefix=no
6733   need_version=no
6734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6735   soname_spec='${libname}${release}${shared_ext}$major'
6736   shlibpath_var=LD_LIBRARY_PATH
6737   ;;
6738
6739 freebsd1*)
6740   dynamic_linker=no
6741   ;;
6742
6743 kfreebsd*-gnu)
6744   version_type=linux
6745   need_lib_prefix=no
6746   need_version=no
6747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6748   soname_spec='${libname}${release}${shared_ext}$major'
6749   shlibpath_var=LD_LIBRARY_PATH
6750   shlibpath_overrides_runpath=no
6751   hardcode_into_libs=yes
6752   dynamic_linker='GNU ld.so'
6753   ;;
6754
6755 freebsd*)
6756   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6757   version_type=freebsd-$objformat
6758   case $version_type in
6759     freebsd-elf*)
6760       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6761       need_version=no
6762       need_lib_prefix=no
6763       ;;
6764     freebsd-*)
6765       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6766       need_version=yes
6767       ;;
6768   esac
6769   shlibpath_var=LD_LIBRARY_PATH
6770   case $host_os in
6771   freebsd2*)
6772     shlibpath_overrides_runpath=yes
6773     ;;
6774   freebsd3.01* | freebsdelf3.01*)
6775     shlibpath_overrides_runpath=yes
6776     hardcode_into_libs=yes
6777     ;;
6778   *) # from 3.2 on
6779     shlibpath_overrides_runpath=no
6780     hardcode_into_libs=yes
6781     ;;
6782   esac
6783   ;;
6784
6785 gnu*)
6786   version_type=linux
6787   need_lib_prefix=no
6788   need_version=no
6789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6790   soname_spec='${libname}${release}${shared_ext}$major'
6791   shlibpath_var=LD_LIBRARY_PATH
6792   hardcode_into_libs=yes
6793   ;;
6794
6795 hpux9* | hpux10* | hpux11*)
6796   # Give a soname corresponding to the major version so that dld.sl refuses to
6797   # link against other versions.
6798   version_type=sunos
6799   need_lib_prefix=no
6800   need_version=no
6801   case "$host_cpu" in
6802   ia64*)
6803     shrext_cmds='.so'
6804     hardcode_into_libs=yes
6805     dynamic_linker="$host_os dld.so"
6806     shlibpath_var=LD_LIBRARY_PATH
6807     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6808     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6809     soname_spec='${libname}${release}${shared_ext}$major'
6810     if test "X$HPUX_IA64_MODE" = X32; then
6811       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6812     else
6813       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6814     fi
6815     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6816     ;;
6817    hppa*64*)
6818      shrext_cmds='.sl'
6819      hardcode_into_libs=yes
6820      dynamic_linker="$host_os dld.sl"
6821      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6822      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6823      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6824      soname_spec='${libname}${release}${shared_ext}$major'
6825      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6826      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6827      ;;
6828    *)
6829     shrext_cmds='.sl'
6830     dynamic_linker="$host_os dld.sl"
6831     shlibpath_var=SHLIB_PATH
6832     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6833     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6834     soname_spec='${libname}${release}${shared_ext}$major'
6835     ;;
6836   esac
6837   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6838   postinstall_cmds='chmod 555 $lib'
6839   ;;
6840
6841 irix5* | irix6* | nonstopux*)
6842   case $host_os in
6843     nonstopux*) version_type=nonstopux ;;
6844     *)
6845         if test "$lt_cv_prog_gnu_ld" = yes; then
6846                 version_type=linux
6847         else
6848                 version_type=irix
6849         fi ;;
6850   esac
6851   need_lib_prefix=no
6852   need_version=no
6853   soname_spec='${libname}${release}${shared_ext}$major'
6854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6855   case $host_os in
6856   irix5* | nonstopux*)
6857     libsuff= shlibsuff=
6858     ;;
6859   *)
6860     case $LD in # libtool.m4 will add one of these switches to LD
6861     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6862       libsuff= shlibsuff= libmagic=32-bit;;
6863     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6864       libsuff=32 shlibsuff=N32 libmagic=N32;;
6865     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6866       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6867     *) libsuff= shlibsuff= libmagic=never-match;;
6868     esac
6869     ;;
6870   esac
6871   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6872   shlibpath_overrides_runpath=no
6873   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6874   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6875   hardcode_into_libs=yes
6876   ;;
6877
6878 # No shared lib support for Linux oldld, aout, or coff.
6879 linux*oldld* | linux*aout* | linux*coff*)
6880   dynamic_linker=no
6881   ;;
6882
6883 # This must be Linux ELF.
6884 linux*)
6885   version_type=linux
6886   need_lib_prefix=no
6887   need_version=no
6888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6889   soname_spec='${libname}${release}${shared_ext}$major'
6890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6891   shlibpath_var=LD_LIBRARY_PATH
6892   shlibpath_overrides_runpath=no
6893   # This implies no fast_install, which is unacceptable.
6894   # Some rework will be needed to allow for fast_install
6895   # before this can be enabled.
6896   hardcode_into_libs=yes
6897
6898   # Append ld.so.conf contents to the search path
6899   if test -f /etc/ld.so.conf; then
6900     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6901     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6902   fi
6903
6904   # We used to test for /lib/ld.so.1 and disable shared libraries on
6905   # powerpc, because MkLinux only supported shared libraries with the
6906   # GNU dynamic linker.  Since this was broken with cross compilers,
6907   # most powerpc-linux boxes support dynamic linking these days and
6908   # people can always --disable-shared, the test was removed, and we
6909   # assume the GNU/Linux dynamic linker is in use.
6910   dynamic_linker='GNU/Linux ld.so'
6911   ;;
6912
6913 knetbsd*-gnu)
6914   version_type=linux
6915   need_lib_prefix=no
6916   need_version=no
6917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6918   soname_spec='${libname}${release}${shared_ext}$major'
6919   shlibpath_var=LD_LIBRARY_PATH
6920   shlibpath_overrides_runpath=no
6921   hardcode_into_libs=yes
6922   dynamic_linker='GNU ld.so'
6923   ;;
6924
6925 netbsd*)
6926   version_type=sunos
6927   need_lib_prefix=no
6928   need_version=no
6929   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6932     dynamic_linker='NetBSD (a.out) ld.so'
6933   else
6934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6935     soname_spec='${libname}${release}${shared_ext}$major'
6936     dynamic_linker='NetBSD ld.elf_so'
6937   fi
6938   shlibpath_var=LD_LIBRARY_PATH
6939   shlibpath_overrides_runpath=yes
6940   hardcode_into_libs=yes
6941   ;;
6942
6943 newsos6)
6944   version_type=linux
6945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6946   shlibpath_var=LD_LIBRARY_PATH
6947   shlibpath_overrides_runpath=yes
6948   ;;
6949
6950 nto-qnx*)
6951   version_type=linux
6952   need_lib_prefix=no
6953   need_version=no
6954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955   soname_spec='${libname}${release}${shared_ext}$major'
6956   shlibpath_var=LD_LIBRARY_PATH
6957   shlibpath_overrides_runpath=yes
6958   ;;
6959
6960 openbsd*)
6961   version_type=sunos
6962   need_lib_prefix=no
6963   need_version=no
6964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6965   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6966   shlibpath_var=LD_LIBRARY_PATH
6967   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6968     case $host_os in
6969       openbsd2.[89] | openbsd2.[89].*)
6970         shlibpath_overrides_runpath=no
6971         ;;
6972       *)
6973         shlibpath_overrides_runpath=yes
6974         ;;
6975       esac
6976   else
6977     shlibpath_overrides_runpath=yes
6978   fi
6979   ;;
6980
6981 os2*)
6982   libname_spec='$name'
6983   shrext_cmds=".dll"
6984   need_lib_prefix=no
6985   library_names_spec='$libname${shared_ext} $libname.a'
6986   dynamic_linker='OS/2 ld.exe'
6987   shlibpath_var=LIBPATH
6988   ;;
6989
6990 osf3* | osf4* | osf5*)
6991   version_type=osf
6992   need_lib_prefix=no
6993   need_version=no
6994   soname_spec='${libname}${release}${shared_ext}$major'
6995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6996   shlibpath_var=LD_LIBRARY_PATH
6997   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6998   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6999   ;;
7000
7001 sco3.2v5*)
7002   version_type=osf
7003   soname_spec='${libname}${release}${shared_ext}$major'
7004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7005   shlibpath_var=LD_LIBRARY_PATH
7006   ;;
7007
7008 solaris*)
7009   version_type=linux
7010   need_lib_prefix=no
7011   need_version=no
7012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7013   soname_spec='${libname}${release}${shared_ext}$major'
7014   shlibpath_var=LD_LIBRARY_PATH
7015   shlibpath_overrides_runpath=yes
7016   hardcode_into_libs=yes
7017   # ldd complains unless libraries are executable
7018   postinstall_cmds='chmod +x $lib'
7019   ;;
7020
7021 sunos4*)
7022   version_type=sunos
7023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7024   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7025   shlibpath_var=LD_LIBRARY_PATH
7026   shlibpath_overrides_runpath=yes
7027   if test "$with_gnu_ld" = yes; then
7028     need_lib_prefix=no
7029   fi
7030   need_version=yes
7031   ;;
7032
7033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7034   version_type=linux
7035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036   soname_spec='${libname}${release}${shared_ext}$major'
7037   shlibpath_var=LD_LIBRARY_PATH
7038   case $host_vendor in
7039     sni)
7040       shlibpath_overrides_runpath=no
7041       need_lib_prefix=no
7042       export_dynamic_flag_spec='${wl}-Blargedynsym'
7043       runpath_var=LD_RUN_PATH
7044       ;;
7045     siemens)
7046       need_lib_prefix=no
7047       ;;
7048     motorola)
7049       need_lib_prefix=no
7050       need_version=no
7051       shlibpath_overrides_runpath=no
7052       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7053       ;;
7054   esac
7055   ;;
7056
7057 sysv4*MP*)
7058   if test -d /usr/nec ;then
7059     version_type=linux
7060     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7061     soname_spec='$libname${shared_ext}.$major'
7062     shlibpath_var=LD_LIBRARY_PATH
7063   fi
7064   ;;
7065
7066 uts4*)
7067   version_type=linux
7068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7069   soname_spec='${libname}${release}${shared_ext}$major'
7070   shlibpath_var=LD_LIBRARY_PATH
7071   ;;
7072
7073 *)
7074   dynamic_linker=no
7075   ;;
7076 esac
7077 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7078 echo "${ECHO_T}$dynamic_linker" >&6
7079 test "$dynamic_linker" = no && can_build_shared=no
7080
7081
7082 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7083 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7084 if test "${libltdl_cv_shlibext+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087
7088 module=yes
7089 eval libltdl_cv_shlibext=$shrext_cmds
7090
7091 fi
7092 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7093 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7094 if test -n "$libltdl_cv_shlibext"; then
7095
7096 cat >>confdefs.h <<_ACEOF
7097 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7098 _ACEOF
7099
7100 fi
7101
7102
7103 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7104 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7105 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   libltdl_cv_shlibpath_var="$shlibpath_var"
7109 fi
7110 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7111 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7112 if test -n "$libltdl_cv_shlibpath_var"; then
7113
7114 cat >>confdefs.h <<_ACEOF
7115 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7116 _ACEOF
7117
7118 fi
7119
7120
7121 echo "$as_me:$LINENO: checking for the default library search path" >&5
7122 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7123 if test "${libltdl_cv_sys_search_path+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7127 fi
7128 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7129 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7130 if test -n "$libltdl_cv_sys_search_path"; then
7131   sys_search_path=
7132   for dir in $libltdl_cv_sys_search_path; do
7133     if test -z "$sys_search_path"; then
7134       sys_search_path="$dir"
7135     else
7136       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7137     fi
7138   done
7139
7140 cat >>confdefs.h <<_ACEOF
7141 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7142 _ACEOF
7143
7144 fi
7145
7146 echo "$as_me:$LINENO: checking for objdir" >&5
7147 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7148 if test "${libltdl_cv_objdir+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   libltdl_cv_objdir="$objdir"
7152   if test -n "$objdir"; then
7153     :
7154   else
7155     rm -f .libs 2>/dev/null
7156     mkdir .libs 2>/dev/null
7157     if test -d .libs; then
7158       libltdl_cv_objdir=.libs
7159     else
7160       # MS-DOS does not allow filenames that begin with a dot.
7161       libltdl_cv_objdir=_libs
7162     fi
7163   rmdir .libs 2>/dev/null
7164   fi
7165
7166 fi
7167 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7168 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7169
7170 cat >>confdefs.h <<_ACEOF
7171 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7172 _ACEOF
7173
7174
7175 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7176 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7177 if test "${lt_cv_path_NM+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   if test -n "$NM"; then
7181   # Let the user override the test.
7182   lt_cv_path_NM="$NM"
7183 else
7184   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7185   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7186     IFS="$lt_save_ifs"
7187     test -z "$ac_dir" && ac_dir=.
7188     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7189     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7190       # Check to see if the nm accepts a BSD-compat flag.
7191       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7192       #   nm: unknown option "B" ignored
7193       # Tru64's nm complains that /dev/null is an invalid object file
7194       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7195       */dev/null* | *'Invalid file or object type'*)
7196         lt_cv_path_NM="$tmp_nm -B"
7197         break
7198         ;;
7199       *)
7200         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7201         */dev/null*)
7202           lt_cv_path_NM="$tmp_nm -p"
7203           break
7204           ;;
7205         *)
7206           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7207           continue # so that we can try to find one that supports BSD flags
7208           ;;
7209         esac
7210       esac
7211     fi
7212   done
7213   IFS="$lt_save_ifs"
7214   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7215 fi
7216 fi
7217 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7218 echo "${ECHO_T}$lt_cv_path_NM" >&6
7219 NM="$lt_cv_path_NM"
7220
7221
7222
7223
7224
7225 # Check for command to grab the raw symbol name followed by C symbol from nm.
7226 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7227 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7228 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231
7232 # These are sane defaults that work on at least a few old systems.
7233 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7234
7235 # Character class describing NM global symbol codes.
7236 symcode='[BCDEGRST]'
7237
7238 # Regexp to match symbols that can be accessed directly from C.
7239 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7240
7241 # Transform the above into a raw symbol and a C symbol.
7242 symxfrm='\1 \2\3 \3'
7243
7244 # Transform an extracted symbol line into a proper C declaration
7245 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7246
7247 # Transform an extracted symbol line into symbol name and symbol address
7248 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'"
7249
7250 # Define system-specific variables.
7251 case $host_os in
7252 aix*)
7253   symcode='[BCDT]'
7254   ;;
7255 cygwin* | mingw* | pw32*)
7256   symcode='[ABCDGISTW]'
7257   ;;
7258 hpux*) # Its linker distinguishes data from code symbols
7259   if test "$host_cpu" = ia64; then
7260     symcode='[ABCDEGRST]'
7261   fi
7262   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7263   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'"
7264   ;;
7265 linux*)
7266   if test "$host_cpu" = ia64; then
7267     symcode='[ABCDGIRSTW]'
7268     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7269     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'"
7270   fi
7271   ;;
7272 irix* | nonstopux*)
7273   symcode='[BCDEGRST]'
7274   ;;
7275 osf*)
7276   symcode='[BCDEGQRST]'
7277   ;;
7278 solaris* | sysv5*)
7279   symcode='[BDRT]'
7280   ;;
7281 sysv4)
7282   symcode='[DFNSTU]'
7283   ;;
7284 esac
7285
7286 # Handle CRLF in mingw tool chain
7287 opt_cr=
7288 case $build_os in
7289 mingw*)
7290   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7291   ;;
7292 esac
7293
7294 # If we're using GNU nm, then use its standard symbol codes.
7295 case `$NM -V 2>&1` in
7296 *GNU* | *'with BFD'*)
7297   symcode='[ABCDGIRSTW]' ;;
7298 esac
7299
7300 # Try without a prefix undercore, then with it.
7301 for ac_symprfx in "" "_"; do
7302
7303   # Write the raw and C identifiers.
7304   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7305
7306   # Check to see that the pipe works correctly.
7307   pipe_works=no
7308
7309   rm -f conftest*
7310   cat > conftest.$ac_ext <<EOF
7311 #ifdef __cplusplus
7312 extern "C" {
7313 #endif
7314 char nm_test_var;
7315 void nm_test_func(){}
7316 #ifdef __cplusplus
7317 }
7318 #endif
7319 int main(){nm_test_var='a';nm_test_func();return(0);}
7320 EOF
7321
7322   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323   (eval $ac_compile) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; then
7327     # Now try to grab the symbols.
7328     nlist=conftest.nm
7329     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7330   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7331   ac_status=$?
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); } && test -s "$nlist"; then
7334       # Try sorting and uniquifying the output.
7335       if sort "$nlist" | uniq > "$nlist"T; then
7336         mv -f "$nlist"T "$nlist"
7337       else
7338         rm -f "$nlist"T
7339       fi
7340
7341       # Make sure that we snagged all the symbols we need.
7342       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7343         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7344           cat <<EOF > conftest.$ac_ext
7345 #ifdef __cplusplus
7346 extern "C" {
7347 #endif
7348
7349 EOF
7350           # Now generate the symbol file.
7351           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7352
7353           cat <<EOF >> conftest.$ac_ext
7354 #if defined (__STDC__) && __STDC__
7355 # define lt_ptr_t void *
7356 #else
7357 # define lt_ptr_t char *
7358 # define const
7359 #endif
7360
7361 /* The mapping between symbol names and symbols. */
7362 const struct {
7363   const char *name;
7364   lt_ptr_t address;
7365 }
7366 lt_preloaded_symbols[] =
7367 {
7368 EOF
7369           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7370           cat <<\EOF >> conftest.$ac_ext
7371   {0, (lt_ptr_t) 0}
7372 };
7373
7374 #ifdef __cplusplus
7375 }
7376 #endif
7377 EOF
7378           # Now try linking the two files.
7379           mv conftest.$ac_objext conftstm.$ac_objext
7380           lt_save_LIBS="$LIBS"
7381           lt_save_CFLAGS="$CFLAGS"
7382           LIBS="conftstm.$ac_objext"
7383           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7384           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385   (eval $ac_link) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7389             pipe_works=yes
7390           fi
7391           LIBS="$lt_save_LIBS"
7392           CFLAGS="$lt_save_CFLAGS"
7393         else
7394           echo "cannot find nm_test_func in $nlist" >&5
7395         fi
7396       else
7397         echo "cannot find nm_test_var in $nlist" >&5
7398       fi
7399     else
7400       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7401     fi
7402   else
7403     echo "$progname: failed program was:" >&5
7404     cat conftest.$ac_ext >&5
7405   fi
7406   rm -f conftest* conftst*
7407
7408   # Do not use the global_symbol_pipe unless it works.
7409   if test "$pipe_works" = yes; then
7410     break
7411   else
7412     lt_cv_sys_global_symbol_pipe=
7413   fi
7414 done
7415
7416 fi
7417
7418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7419   lt_cv_sys_global_symbol_to_cdecl=
7420 fi
7421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7422   echo "$as_me:$LINENO: result: failed" >&5
7423 echo "${ECHO_T}failed" >&6
7424 else
7425   echo "$as_me:$LINENO: result: ok" >&5
7426 echo "${ECHO_T}ok" >&6
7427 fi
7428
7429
7430 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7431 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7432 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7436     libltdl_cv_preloaded_symbols=yes
7437   else
7438     libltdl_cv_preloaded_symbols=no
7439   fi
7440
7441 fi
7442 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7443 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7444 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7445
7446 cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_PRELOADED_SYMBOLS 1
7448 _ACEOF
7449
7450 fi
7451
7452 LIBADD_DL=
7453
7454 ac_ext=c
7455 ac_cpp='$CPP $CPPFLAGS'
7456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459
7460
7461 echo "$as_me:$LINENO: checking for shl_load" >&5
7462 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7463 if test "${ac_cv_func_shl_load+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   cat >conftest.$ac_ext <<_ACEOF
7467 /* confdefs.h.  */
7468 _ACEOF
7469 cat confdefs.h >>conftest.$ac_ext
7470 cat >>conftest.$ac_ext <<_ACEOF
7471 /* end confdefs.h.  */
7472 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7474 #define shl_load innocuous_shl_load
7475
7476 /* System header to define __stub macros and hopefully few prototypes,
7477     which can conflict with char shl_load (); below.
7478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7479     <limits.h> exists even on freestanding compilers.  */
7480
7481 #ifdef __STDC__
7482 # include <limits.h>
7483 #else
7484 # include <assert.h>
7485 #endif
7486
7487 #undef shl_load
7488
7489 /* Override any gcc2 internal prototype to avoid an error.  */
7490 #ifdef __cplusplus
7491 extern "C"
7492 {
7493 #endif
7494 /* We use char because int might match the return type of a gcc2
7495    builtin and then its argument prototype would still apply.  */
7496 char shl_load ();
7497 /* The GNU C library defines this for functions which it implements
7498     to always fail with ENOSYS.  Some functions are actually named
7499     something starting with __ and the normal name is an alias.  */
7500 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7501 choke me
7502 #else
7503 char (*f) () = shl_load;
7504 #endif
7505 #ifdef __cplusplus
7506 }
7507 #endif
7508
7509 int
7510 main ()
7511 {
7512 return f != shl_load;
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519   (eval $ac_link) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag"
7527                          || test ! -s conftest.err'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; } &&
7533          { ac_try='test -s conftest$ac_exeext'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; }; then
7539   ac_cv_func_shl_load=yes
7540 else
7541   echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7543
7544 ac_cv_func_shl_load=no
7545 fi
7546 rm -f conftest.err conftest.$ac_objext \
7547       conftest$ac_exeext conftest.$ac_ext
7548 fi
7549 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7550 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7551 if test $ac_cv_func_shl_load = yes; then
7552
7553 cat >>confdefs.h <<\_ACEOF
7554 #define HAVE_SHL_LOAD 1
7555 _ACEOF
7556
7557 else
7558   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   ac_check_lib_save_LIBS=$LIBS
7564 LIBS="-ldld  $LIBS"
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571
7572 /* Override any gcc2 internal prototype to avoid an error.  */
7573 #ifdef __cplusplus
7574 extern "C"
7575 #endif
7576 /* We use char because int might match the return type of a gcc2
7577    builtin and then its argument prototype would still apply.  */
7578 char shl_load ();
7579 int
7580 main ()
7581 {
7582 shl_load ();
7583   ;
7584   return 0;
7585 }
7586 _ACEOF
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589   (eval $ac_link) 2>conftest.er1
7590   ac_status=$?
7591   grep -v '^ *+' conftest.er1 >conftest.err
7592   rm -f conftest.er1
7593   cat conftest.err >&5
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); } &&
7596          { ac_try='test -z "$ac_c_werror_flag"
7597                          || test ! -s conftest.err'
7598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599   (eval $ac_try) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; } &&
7603          { ac_try='test -s conftest$ac_exeext'
7604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605   (eval $ac_try) 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; }; then
7609   ac_cv_lib_dld_shl_load=yes
7610 else
7611   echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 ac_cv_lib_dld_shl_load=no
7615 fi
7616 rm -f conftest.err conftest.$ac_objext \
7617       conftest$ac_exeext conftest.$ac_ext
7618 LIBS=$ac_check_lib_save_LIBS
7619 fi
7620 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7622 if test $ac_cv_lib_dld_shl_load = yes; then
7623
7624 cat >>confdefs.h <<\_ACEOF
7625 #define HAVE_SHL_LOAD 1
7626 _ACEOF
7627
7628         LIBADD_DL="$LIBADD_DL -ldld"
7629 else
7630   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-ldl  $LIBS"
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h.  */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h.  */
7643
7644 /* Override any gcc2 internal prototype to avoid an error.  */
7645 #ifdef __cplusplus
7646 extern "C"
7647 #endif
7648 /* We use char because int might match the return type of a gcc2
7649    builtin and then its argument prototype would still apply.  */
7650 char dlopen ();
7651 int
7652 main ()
7653 {
7654 dlopen ();
7655   ;
7656   return 0;
7657 }
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661   (eval $ac_link) 2>conftest.er1
7662   ac_status=$?
7663   grep -v '^ *+' conftest.er1 >conftest.err
7664   rm -f conftest.er1
7665   cat conftest.err >&5
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); } &&
7668          { ac_try='test -z "$ac_c_werror_flag"
7669                          || test ! -s conftest.err'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; } &&
7675          { ac_try='test -s conftest$ac_exeext'
7676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677   (eval $ac_try) 2>&5
7678   ac_status=$?
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); }; }; then
7681   ac_cv_lib_dl_dlopen=yes
7682 else
7683   echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7685
7686 ac_cv_lib_dl_dlopen=no
7687 fi
7688 rm -f conftest.err conftest.$ac_objext \
7689       conftest$ac_exeext conftest.$ac_ext
7690 LIBS=$ac_check_lib_save_LIBS
7691 fi
7692 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7693 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7694 if test $ac_cv_lib_dl_dlopen = yes; then
7695
7696 cat >>confdefs.h <<\_ACEOF
7697 #define HAVE_LIBDL 1
7698 _ACEOF
7699
7700                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7701 else
7702   cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h.  */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h.  */
7708 #if HAVE_DLFCN_H
7709 #  include <dlfcn.h>
7710 #endif
7711
7712 int
7713 main ()
7714 {
7715 dlopen(0, 0);
7716   ;
7717   return 0;
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722   (eval $ac_link) 2>conftest.er1
7723   ac_status=$?
7724   grep -v '^ *+' conftest.er1 >conftest.err
7725   rm -f conftest.er1
7726   cat conftest.err >&5
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); } &&
7729          { ac_try='test -z "$ac_c_werror_flag"
7730                          || test ! -s conftest.err'
7731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732   (eval $ac_try) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); }; } &&
7736          { ac_try='test -s conftest$ac_exeext'
7737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738   (eval $ac_try) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742
7743 cat >>confdefs.h <<\_ACEOF
7744 #define HAVE_LIBDL 1
7745 _ACEOF
7746  libltdl_cv_func_dlopen="yes"
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7752 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7753 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7754   echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756   ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-lsvld  $LIBS"
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h.  */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h.  */
7764
7765 /* Override any gcc2 internal prototype to avoid an error.  */
7766 #ifdef __cplusplus
7767 extern "C"
7768 #endif
7769 /* We use char because int might match the return type of a gcc2
7770    builtin and then its argument prototype would still apply.  */
7771 char dlopen ();
7772 int
7773 main ()
7774 {
7775 dlopen ();
7776   ;
7777   return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782   (eval $ac_link) 2>conftest.er1
7783   ac_status=$?
7784   grep -v '^ *+' conftest.er1 >conftest.err
7785   rm -f conftest.er1
7786   cat conftest.err >&5
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); } &&
7789          { ac_try='test -z "$ac_c_werror_flag"
7790                          || test ! -s conftest.err'
7791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792   (eval $ac_try) 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); }; } &&
7796          { ac_try='test -s conftest$ac_exeext'
7797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798   (eval $ac_try) 2>&5
7799   ac_status=$?
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); }; }; then
7802   ac_cv_lib_svld_dlopen=yes
7803 else
7804   echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807 ac_cv_lib_svld_dlopen=no
7808 fi
7809 rm -f conftest.err conftest.$ac_objext \
7810       conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7812 fi
7813 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7814 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7815 if test $ac_cv_lib_svld_dlopen = yes; then
7816
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_LIBDL 1
7819 _ACEOF
7820
7821                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7822 else
7823   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7824 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7825 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828   ac_check_lib_save_LIBS=$LIBS
7829 LIBS="-ldld  $LIBS"
7830 cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836
7837 /* Override any gcc2 internal prototype to avoid an error.  */
7838 #ifdef __cplusplus
7839 extern "C"
7840 #endif
7841 /* We use char because int might match the return type of a gcc2
7842    builtin and then its argument prototype would still apply.  */
7843 char dld_link ();
7844 int
7845 main ()
7846 {
7847 dld_link ();
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7854   (eval $ac_link) 2>conftest.er1
7855   ac_status=$?
7856   grep -v '^ *+' conftest.er1 >conftest.err
7857   rm -f conftest.er1
7858   cat conftest.err >&5
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } &&
7861          { ac_try='test -z "$ac_c_werror_flag"
7862                          || test ! -s conftest.err'
7863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864   (eval $ac_try) 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; } &&
7868          { ac_try='test -s conftest$ac_exeext'
7869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870   (eval $ac_try) 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; }; then
7874   ac_cv_lib_dld_dld_link=yes
7875 else
7876   echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 ac_cv_lib_dld_dld_link=no
7880 fi
7881 rm -f conftest.err conftest.$ac_objext \
7882       conftest$ac_exeext conftest.$ac_ext
7883 LIBS=$ac_check_lib_save_LIBS
7884 fi
7885 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7886 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7887 if test $ac_cv_lib_dld_dld_link = yes; then
7888
7889 cat >>confdefs.h <<\_ACEOF
7890 #define HAVE_DLD 1
7891 _ACEOF
7892
7893                 LIBADD_DL="$LIBADD_DL -ldld"
7894 else
7895   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7896 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7897 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7898   echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900   cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7908 #define _dyld_func_lookup innocuous__dyld_func_lookup
7909
7910 /* System header to define __stub macros and hopefully few prototypes,
7911     which can conflict with char _dyld_func_lookup (); below.
7912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7913     <limits.h> exists even on freestanding compilers.  */
7914
7915 #ifdef __STDC__
7916 # include <limits.h>
7917 #else
7918 # include <assert.h>
7919 #endif
7920
7921 #undef _dyld_func_lookup
7922
7923 /* Override any gcc2 internal prototype to avoid an error.  */
7924 #ifdef __cplusplus
7925 extern "C"
7926 {
7927 #endif
7928 /* We use char because int might match the return type of a gcc2
7929    builtin and then its argument prototype would still apply.  */
7930 char _dyld_func_lookup ();
7931 /* The GNU C library defines this for functions which it implements
7932     to always fail with ENOSYS.  Some functions are actually named
7933     something starting with __ and the normal name is an alias.  */
7934 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7935 choke me
7936 #else
7937 char (*f) () = _dyld_func_lookup;
7938 #endif
7939 #ifdef __cplusplus
7940 }
7941 #endif
7942
7943 int
7944 main ()
7945 {
7946 return f != _dyld_func_lookup;
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7953   (eval $ac_link) 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } &&
7960          { ac_try='test -z "$ac_c_werror_flag"
7961                          || test ! -s conftest.err'
7962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963   (eval $ac_try) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; } &&
7967          { ac_try='test -s conftest$ac_exeext'
7968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969   (eval $ac_try) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; }; then
7973   ac_cv_func__dyld_func_lookup=yes
7974 else
7975   echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 ac_cv_func__dyld_func_lookup=no
7979 fi
7980 rm -f conftest.err conftest.$ac_objext \
7981       conftest$ac_exeext conftest.$ac_ext
7982 fi
7983 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7984 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7985 if test $ac_cv_func__dyld_func_lookup = yes; then
7986
7987 cat >>confdefs.h <<\_ACEOF
7988 #define HAVE_DYLD 1
7989 _ACEOF
7990
7991 fi
7992
7993
7994 fi
7995
7996
7997 fi
7998
7999
8000 fi
8001 rm -f conftest.err conftest.$ac_objext \
8002       conftest$ac_exeext conftest.$ac_ext
8003
8004 fi
8005
8006
8007 fi
8008
8009
8010 fi
8011
8012
8013 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8014 then
8015   lt_save_LIBS="$LIBS"
8016   LIBS="$LIBS $LIBADD_DL"
8017
8018 for ac_func in dlerror
8019 do
8020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8021 echo "$as_me:$LINENO: checking for $ac_func" >&5
8022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8023 if eval "test \"\${$as_ac_var+set}\" = set"; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8034 #define $ac_func innocuous_$ac_func
8035
8036 /* System header to define __stub macros and hopefully few prototypes,
8037     which can conflict with char $ac_func (); below.
8038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039     <limits.h> exists even on freestanding compilers.  */
8040
8041 #ifdef __STDC__
8042 # include <limits.h>
8043 #else
8044 # include <assert.h>
8045 #endif
8046
8047 #undef $ac_func
8048
8049 /* Override any gcc2 internal prototype to avoid an error.  */
8050 #ifdef __cplusplus
8051 extern "C"
8052 {
8053 #endif
8054 /* We use char because int might match the return type of a gcc2
8055    builtin and then its argument prototype would still apply.  */
8056 char $ac_func ();
8057 /* The GNU C library defines this for functions which it implements
8058     to always fail with ENOSYS.  Some functions are actually named
8059     something starting with __ and the normal name is an alias.  */
8060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8061 choke me
8062 #else
8063 char (*f) () = $ac_func;
8064 #endif
8065 #ifdef __cplusplus
8066 }
8067 #endif
8068
8069 int
8070 main ()
8071 {
8072 return f != $ac_func;
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079   (eval $ac_link) 2>conftest.er1
8080   ac_status=$?
8081   grep -v '^ *+' conftest.er1 >conftest.err
8082   rm -f conftest.er1
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } &&
8086          { ac_try='test -z "$ac_c_werror_flag"
8087                          || test ! -s conftest.err'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; } &&
8093          { ac_try='test -s conftest$ac_exeext'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; }; then
8099   eval "$as_ac_var=yes"
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 eval "$as_ac_var=no"
8105 fi
8106 rm -f conftest.err conftest.$ac_objext \
8107       conftest$ac_exeext conftest.$ac_ext
8108 fi
8109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8111 if test `eval echo '${'$as_ac_var'}'` = yes; then
8112   cat >>confdefs.h <<_ACEOF
8113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8114 _ACEOF
8115
8116 fi
8117 done
8118
8119   LIBS="$lt_save_LIBS"
8120 fi
8121 ac_ext=c
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127
8128
8129 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8130 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8131 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   ac_cv_sys_symbol_underscore=no
8135   cat > conftest.$ac_ext <<EOF
8136 void nm_test_func(){}
8137 int main(){nm_test_func;return 0;}
8138 EOF
8139   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140   (eval $ac_compile) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; then
8144     # Now try to grab the symbols.
8145     ac_nlist=conftest.nm
8146     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8147   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); } && test -s "$ac_nlist"; then
8151       # See whether the symbols have a leading underscore.
8152       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8153         ac_cv_sys_symbol_underscore=yes
8154       else
8155         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8156           :
8157         else
8158           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8159         fi
8160       fi
8161     else
8162       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8163     fi
8164   else
8165     echo "configure: failed program was:" >&5
8166     cat conftest.c >&5
8167   fi
8168   rm -rf conftest*
8169
8170 fi
8171 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8172 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8173
8174
8175 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8176   if test x"$libltdl_cv_func_dlopen" = xyes ||
8177      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8178         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8179 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8180 if test "${libltdl_cv_need_uscore+set}" = set; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183   libltdl_cv_need_uscore=unknown
8184           save_LIBS="$LIBS"
8185           LIBS="$LIBS $LIBADD_DL"
8186           if test "$cross_compiling" = yes; then :
8187   libltdl_cv_need_uscore=cross
8188 else
8189   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8190   lt_status=$lt_dlunknown
8191   cat > conftest.$ac_ext <<EOF
8192 #line 8192 "configure"
8193 #include "confdefs.h"
8194
8195 #if HAVE_DLFCN_H
8196 #include <dlfcn.h>
8197 #endif
8198
8199 #include <stdio.h>
8200
8201 #ifdef RTLD_GLOBAL
8202 #  define LT_DLGLOBAL           RTLD_GLOBAL
8203 #else
8204 #  ifdef DL_GLOBAL
8205 #    define LT_DLGLOBAL         DL_GLOBAL
8206 #  else
8207 #    define LT_DLGLOBAL         0
8208 #  endif
8209 #endif
8210
8211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8212    find out it does not work in some platform. */
8213 #ifndef LT_DLLAZY_OR_NOW
8214 #  ifdef RTLD_LAZY
8215 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8216 #  else
8217 #    ifdef DL_LAZY
8218 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8219 #    else
8220 #      ifdef RTLD_NOW
8221 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8222 #      else
8223 #        ifdef DL_NOW
8224 #          define LT_DLLAZY_OR_NOW      DL_NOW
8225 #        else
8226 #          define LT_DLLAZY_OR_NOW      0
8227 #        endif
8228 #      endif
8229 #    endif
8230 #  endif
8231 #endif
8232
8233 #ifdef __cplusplus
8234 extern "C" void exit (int);
8235 #endif
8236
8237 void fnord() { int i=42;}
8238 int main ()
8239 {
8240   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8241   int status = $lt_dlunknown;
8242
8243   if (self)
8244     {
8245       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8246       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8247       /* dlclose (self); */
8248     }
8249
8250     exit (status);
8251 }
8252 EOF
8253   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254   (eval $ac_link) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8258     (./conftest; exit; ) 2>/dev/null
8259     lt_status=$?
8260     case x$lt_status in
8261       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8262       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8263       x$lt_unknown|x*)  ;;
8264     esac
8265   else :
8266     # compilation failed
8267
8268   fi
8269 fi
8270 rm -fr conftest*
8271
8272           LIBS="$save_LIBS"
8273
8274 fi
8275 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8276 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8277   fi
8278 fi
8279
8280 if test x"$libltdl_cv_need_uscore" = xyes; then
8281
8282 cat >>confdefs.h <<\_ACEOF
8283 #define NEED_USCORE 1
8284 _ACEOF
8285
8286 fi
8287
8288
8289 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8290 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8291 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8292   echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294   # PORTME does your system automatically load deplibs for dlopen?
8295   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8296   # For now, we just catch OSes we know something about -- in the
8297   # future, we'll try test this programmatically.
8298   libltdl_cv_sys_dlopen_deplibs=unknown
8299   case "$host_os" in
8300   aix3*|aix4.1.*|aix4.2.*)
8301     # Unknown whether this is true for these versions of AIX, but
8302     # we want this `case' here to explicitly catch those versions.
8303     libltdl_cv_sys_dlopen_deplibs=unknown
8304     ;;
8305   aix[45]*)
8306     libltdl_cv_sys_dlopen_deplibs=yes
8307     ;;
8308   darwin*)
8309     # Assuming the user has installed a libdl from somewhere, this is true
8310     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8311     libltdl_cv_sys_dlopen_deplibs=yes
8312     ;;
8313   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8314     # GNU and its variants, using gnu ld.so (Glibc)
8315     libltdl_cv_sys_dlopen_deplibs=yes
8316     ;;
8317   hpux10*|hpux11*)
8318     libltdl_cv_sys_dlopen_deplibs=yes
8319     ;;
8320   irix[12345]*|irix6.[01]*)
8321     # Catch all versions of IRIX before 6.2, and indicate that we don't
8322     # know how it worked for any of those versions.
8323     libltdl_cv_sys_dlopen_deplibs=unknown
8324     ;;
8325   irix*)
8326     # The case above catches anything before 6.2, and it's known that
8327     # at 6.2 and later dlopen does load deplibs.
8328     libltdl_cv_sys_dlopen_deplibs=yes
8329     ;;
8330   netbsd*)
8331     libltdl_cv_sys_dlopen_deplibs=yes
8332     ;;
8333   openbsd*)
8334     libltdl_cv_sys_dlopen_deplibs=yes
8335     ;;
8336   osf[1234]*)
8337     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8338     # it did *not* use an RPATH in a shared library to find objects the
8339     # library depends on, so we explictly say `no'.
8340     libltdl_cv_sys_dlopen_deplibs=no
8341     ;;
8342   osf5.0|osf5.0a|osf5.1)
8343     # dlopen *does* load deplibs and with the right loader patch applied
8344     # it even uses RPATH in a shared library to search for shared objects
8345     # that the library depends on, but there's no easy way to know if that
8346     # patch is installed.  Since this is the case, all we can really
8347     # say is unknown -- it depends on the patch being installed.  If
8348     # it is, this changes to `yes'.  Without it, it would be `no'.
8349     libltdl_cv_sys_dlopen_deplibs=unknown
8350     ;;
8351   osf*)
8352     # the two cases above should catch all versions of osf <= 5.1.  Read
8353     # the comments above for what we know about them.
8354     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8355     # is used to find them so we can finally say `yes'.
8356     libltdl_cv_sys_dlopen_deplibs=yes
8357     ;;
8358   solaris*)
8359     libltdl_cv_sys_dlopen_deplibs=yes
8360     ;;
8361   esac
8362
8363 fi
8364 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8365 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8366 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8367
8368 cat >>confdefs.h <<\_ACEOF
8369 #define LTDL_DLOPEN_DEPLIBS 1
8370 _ACEOF
8371
8372 fi
8373
8374
8375 for ac_header in argz.h
8376 do
8377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379   echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 fi
8384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8386 else
8387   # Is the header compilable?
8388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h.  */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h.  */
8396 $ac_includes_default
8397 #include <$ac_header>
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401   (eval $ac_compile) 2>conftest.er1
8402   ac_status=$?
8403   grep -v '^ *+' conftest.er1 >conftest.err
8404   rm -f conftest.er1
8405   cat conftest.err >&5
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } &&
8408          { ac_try='test -z "$ac_c_werror_flag"
8409                          || test ! -s conftest.err'
8410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411   (eval $ac_try) 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); }; } &&
8415          { ac_try='test -s conftest.$ac_objext'
8416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417   (eval $ac_try) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; }; then
8421   ac_header_compiler=yes
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 ac_header_compiler=no
8427 fi
8428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8430 echo "${ECHO_T}$ac_header_compiler" >&6
8431
8432 # Is the header present?
8433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441 #include <$ac_header>
8442 _ACEOF
8443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } >/dev/null; then
8451   if test -s conftest.err; then
8452     ac_cpp_err=$ac_c_preproc_warn_flag
8453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8454   else
8455     ac_cpp_err=
8456   fi
8457 else
8458   ac_cpp_err=yes
8459 fi
8460 if test -z "$ac_cpp_err"; then
8461   ac_header_preproc=yes
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466   ac_header_preproc=no
8467 fi
8468 rm -f conftest.err conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470 echo "${ECHO_T}$ac_header_preproc" >&6
8471
8472 # So?  What about this header?
8473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8474   yes:no: )
8475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8479     ac_header_preproc=yes
8480     ;;
8481   no:yes:* )
8482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8494     (
8495       cat <<\_ASBOX
8496 ## ----------------------------------- ##
8497 ## Report this to llvmbugs@cs.uiuc.edu ##
8498 ## ----------------------------------- ##
8499 _ASBOX
8500     ) |
8501       sed "s/^/$as_me: WARNING:     /" >&2
8502     ;;
8503 esac
8504 echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   eval "$as_ac_Header=\$ac_header_preproc"
8510 fi
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513
8514 fi
8515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8516   cat >>confdefs.h <<_ACEOF
8517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8518 _ACEOF
8519
8520 fi
8521
8522 done
8523
8524
8525 echo "$as_me:$LINENO: checking for error_t" >&5
8526 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8527 if test "${ac_cv_type_error_t+set}" = set; then
8528   echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530   cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h.  */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h.  */
8536 #if HAVE_ARGZ_H
8537 #  include <argz.h>
8538 #endif
8539
8540 int
8541 main ()
8542 {
8543 if ((error_t *) 0)
8544   return 0;
8545 if (sizeof (error_t))
8546   return 0;
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553   (eval $ac_compile) 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } &&
8560          { ac_try='test -z "$ac_c_werror_flag"
8561                          || test ! -s conftest.err'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; } &&
8567          { ac_try='test -s conftest.$ac_objext'
8568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569   (eval $ac_try) 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); }; }; then
8573   ac_cv_type_error_t=yes
8574 else
8575   echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8577
8578 ac_cv_type_error_t=no
8579 fi
8580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8581 fi
8582 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8583 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8584 if test $ac_cv_type_error_t = yes; then
8585
8586 cat >>confdefs.h <<_ACEOF
8587 #define HAVE_ERROR_T 1
8588 _ACEOF
8589
8590
8591 else
8592
8593 cat >>confdefs.h <<\_ACEOF
8594 #define error_t int
8595 _ACEOF
8596
8597 fi
8598
8599
8600
8601
8602
8603
8604
8605 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8606 do
8607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608 echo "$as_me:$LINENO: checking for $ac_func" >&5
8609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8610 if eval "test \"\${$as_ac_var+set}\" = set"; then
8611   echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613   cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8621 #define $ac_func innocuous_$ac_func
8622
8623 /* System header to define __stub macros and hopefully few prototypes,
8624     which can conflict with char $ac_func (); below.
8625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626     <limits.h> exists even on freestanding compilers.  */
8627
8628 #ifdef __STDC__
8629 # include <limits.h>
8630 #else
8631 # include <assert.h>
8632 #endif
8633
8634 #undef $ac_func
8635
8636 /* Override any gcc2 internal prototype to avoid an error.  */
8637 #ifdef __cplusplus
8638 extern "C"
8639 {
8640 #endif
8641 /* We use char because int might match the return type of a gcc2
8642    builtin and then its argument prototype would still apply.  */
8643 char $ac_func ();
8644 /* The GNU C library defines this for functions which it implements
8645     to always fail with ENOSYS.  Some functions are actually named
8646     something starting with __ and the normal name is an alias.  */
8647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648 choke me
8649 #else
8650 char (*f) () = $ac_func;
8651 #endif
8652 #ifdef __cplusplus
8653 }
8654 #endif
8655
8656 int
8657 main ()
8658 {
8659 return f != $ac_func;
8660   ;
8661   return 0;
8662 }
8663 _ACEOF
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666   (eval $ac_link) 2>conftest.er1
8667   ac_status=$?
8668   grep -v '^ *+' conftest.er1 >conftest.err
8669   rm -f conftest.er1
8670   cat conftest.err >&5
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } &&
8673          { ac_try='test -z "$ac_c_werror_flag"
8674                          || test ! -s conftest.err'
8675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676   (eval $ac_try) 2>&5
8677   ac_status=$?
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); }; } &&
8680          { ac_try='test -s conftest$ac_exeext'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; }; then
8686   eval "$as_ac_var=yes"
8687 else
8688   echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691 eval "$as_ac_var=no"
8692 fi
8693 rm -f conftest.err conftest.$ac_objext \
8694       conftest$ac_exeext conftest.$ac_ext
8695 fi
8696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8698 if test `eval echo '${'$as_ac_var'}'` = yes; then
8699   cat >>confdefs.h <<_ACEOF
8700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8701 _ACEOF
8702
8703 fi
8704 done
8705
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 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8734                   stdio.h unistd.h
8735 do
8736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738   echo "$as_me:$LINENO: checking for $ac_header" >&5
8739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 fi
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745 else
8746   # Is the header compilable?
8747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755 $ac_includes_default
8756 #include <$ac_header>
8757 _ACEOF
8758 rm -f conftest.$ac_objext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8760   (eval $ac_compile) 2>conftest.er1
8761   ac_status=$?
8762   grep -v '^ *+' conftest.er1 >conftest.err
8763   rm -f conftest.er1
8764   cat conftest.err >&5
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -z "$ac_c_werror_flag"
8768                          || test ! -s conftest.err'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; } &&
8774          { ac_try='test -s conftest.$ac_objext'
8775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776   (eval $ac_try) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; }; then
8780   ac_header_compiler=yes
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 ac_header_compiler=no
8786 fi
8787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8789 echo "${ECHO_T}$ac_header_compiler" >&6
8790
8791 # Is the header present?
8792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h.  */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h.  */
8800 #include <$ac_header>
8801 _ACEOF
8802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8804   ac_status=$?
8805   grep -v '^ *+' conftest.er1 >conftest.err
8806   rm -f conftest.er1
8807   cat conftest.err >&5
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } >/dev/null; then
8810   if test -s conftest.err; then
8811     ac_cpp_err=$ac_c_preproc_warn_flag
8812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8813   else
8814     ac_cpp_err=
8815   fi
8816 else
8817   ac_cpp_err=yes
8818 fi
8819 if test -z "$ac_cpp_err"; then
8820   ac_header_preproc=yes
8821 else
8822   echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8824
8825   ac_header_preproc=no
8826 fi
8827 rm -f conftest.err conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8829 echo "${ECHO_T}$ac_header_preproc" >&6
8830
8831 # So?  What about this header?
8832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8833   yes:no: )
8834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8838     ac_header_preproc=yes
8839     ;;
8840   no:yes:* )
8841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8853     (
8854       cat <<\_ASBOX
8855 ## ----------------------------------- ##
8856 ## Report this to llvmbugs@cs.uiuc.edu ##
8857 ## ----------------------------------- ##
8858 _ASBOX
8859     ) |
8860       sed "s/^/$as_me: WARNING:     /" >&2
8861     ;;
8862 esac
8863 echo "$as_me:$LINENO: checking for $ac_header" >&5
8864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8866   echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868   eval "$as_ac_Header=\$ac_header_preproc"
8869 fi
8870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8872
8873 fi
8874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8875   cat >>confdefs.h <<_ACEOF
8876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8877 _ACEOF
8878
8879 fi
8880
8881 done
8882
8883
8884
8885
8886
8887 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8888 do
8889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891   echo "$as_me:$LINENO: checking for $ac_header" >&5
8892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 fi
8896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8898 else
8899   # Is the header compilable?
8900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8902 cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908 $ac_includes_default
8909 #include <$ac_header>
8910 _ACEOF
8911 rm -f conftest.$ac_objext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913   (eval $ac_compile) 2>conftest.er1
8914   ac_status=$?
8915   grep -v '^ *+' conftest.er1 >conftest.err
8916   rm -f conftest.er1
8917   cat conftest.err >&5
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } &&
8920          { ac_try='test -z "$ac_c_werror_flag"
8921                          || test ! -s conftest.err'
8922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923   (eval $ac_try) 2>&5
8924   ac_status=$?
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); }; } &&
8927          { ac_try='test -s conftest.$ac_objext'
8928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929   (eval $ac_try) 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); }; }; then
8933   ac_header_compiler=yes
8934 else
8935   echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 ac_header_compiler=no
8939 fi
8940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8942 echo "${ECHO_T}$ac_header_compiler" >&6
8943
8944 # Is the header present?
8945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h.  */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h.  */
8953 #include <$ac_header>
8954 _ACEOF
8955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8957   ac_status=$?
8958   grep -v '^ *+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } >/dev/null; then
8963   if test -s conftest.err; then
8964     ac_cpp_err=$ac_c_preproc_warn_flag
8965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8966   else
8967     ac_cpp_err=
8968   fi
8969 else
8970   ac_cpp_err=yes
8971 fi
8972 if test -z "$ac_cpp_err"; then
8973   ac_header_preproc=yes
8974 else
8975   echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8977
8978   ac_header_preproc=no
8979 fi
8980 rm -f conftest.err conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8982 echo "${ECHO_T}$ac_header_preproc" >&6
8983
8984 # So?  What about this header?
8985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8986   yes:no: )
8987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8991     ac_header_preproc=yes
8992     ;;
8993   no:yes:* )
8994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9006     (
9007       cat <<\_ASBOX
9008 ## ----------------------------------- ##
9009 ## Report this to llvmbugs@cs.uiuc.edu ##
9010 ## ----------------------------------- ##
9011 _ASBOX
9012     ) |
9013       sed "s/^/$as_me: WARNING:     /" >&2
9014     ;;
9015 esac
9016 echo "$as_me:$LINENO: checking for $ac_header" >&5
9017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   eval "$as_ac_Header=\$ac_header_preproc"
9022 fi
9023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9025
9026 fi
9027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9028   cat >>confdefs.h <<_ACEOF
9029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9030 _ACEOF
9031
9032 fi
9033
9034 done
9035
9036
9037
9038 for ac_header in string.h strings.h
9039 do
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042   echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 fi
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049 else
9050   # Is the header compilable?
9051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059 $ac_includes_default
9060 #include <$ac_header>
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064   (eval $ac_compile) 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } &&
9071          { ac_try='test -z "$ac_c_werror_flag"
9072                          || test ! -s conftest.err'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; } &&
9078          { ac_try='test -s conftest.$ac_objext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084   ac_header_compiler=yes
9085 else
9086   echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 ac_header_compiler=no
9090 fi
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093 echo "${ECHO_T}$ac_header_compiler" >&6
9094
9095 # Is the header present?
9096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 #include <$ac_header>
9105 _ACEOF
9106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } >/dev/null; then
9114   if test -s conftest.err; then
9115     ac_cpp_err=$ac_c_preproc_warn_flag
9116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9117   else
9118     ac_cpp_err=
9119   fi
9120 else
9121   ac_cpp_err=yes
9122 fi
9123 if test -z "$ac_cpp_err"; then
9124   ac_header_preproc=yes
9125 else
9126   echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129   ac_header_preproc=no
9130 fi
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9134
9135 # So?  What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9137   yes:no: )
9138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142     ac_header_preproc=yes
9143     ;;
9144   no:yes:* )
9145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9157     (
9158       cat <<\_ASBOX
9159 ## ----------------------------------- ##
9160 ## Report this to llvmbugs@cs.uiuc.edu ##
9161 ## ----------------------------------- ##
9162 _ASBOX
9163     ) |
9164       sed "s/^/$as_me: WARNING:     /" >&2
9165     ;;
9166 esac
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   eval "$as_ac_Header=\$ac_header_preproc"
9173 fi
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176
9177 fi
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179   cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181 _ACEOF
9182  break
9183 fi
9184
9185 done
9186
9187
9188
9189
9190 for ac_func in strchr index
9191 do
9192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9193 echo "$as_me:$LINENO: checking for $ac_func" >&5
9194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9195 if eval "test \"\${$as_ac_var+set}\" = set"; then
9196   echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198   cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h.  */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h.  */
9204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9206 #define $ac_func innocuous_$ac_func
9207
9208 /* System header to define __stub macros and hopefully few prototypes,
9209     which can conflict with char $ac_func (); below.
9210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9211     <limits.h> exists even on freestanding compilers.  */
9212
9213 #ifdef __STDC__
9214 # include <limits.h>
9215 #else
9216 # include <assert.h>
9217 #endif
9218
9219 #undef $ac_func
9220
9221 /* Override any gcc2 internal prototype to avoid an error.  */
9222 #ifdef __cplusplus
9223 extern "C"
9224 {
9225 #endif
9226 /* We use char because int might match the return type of a gcc2
9227    builtin and then its argument prototype would still apply.  */
9228 char $ac_func ();
9229 /* The GNU C library defines this for functions which it implements
9230     to always fail with ENOSYS.  Some functions are actually named
9231     something starting with __ and the normal name is an alias.  */
9232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9233 choke me
9234 #else
9235 char (*f) () = $ac_func;
9236 #endif
9237 #ifdef __cplusplus
9238 }
9239 #endif
9240
9241 int
9242 main ()
9243 {
9244 return f != $ac_func;
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251   (eval $ac_link) 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } &&
9258          { ac_try='test -z "$ac_c_werror_flag"
9259                          || test ! -s conftest.err'
9260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261   (eval $ac_try) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; } &&
9265          { ac_try='test -s conftest$ac_exeext'
9266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267   (eval $ac_try) 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; }; then
9271   eval "$as_ac_var=yes"
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276 eval "$as_ac_var=no"
9277 fi
9278 rm -f conftest.err conftest.$ac_objext \
9279       conftest$ac_exeext conftest.$ac_ext
9280 fi
9281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9283 if test `eval echo '${'$as_ac_var'}'` = yes; then
9284   cat >>confdefs.h <<_ACEOF
9285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9286 _ACEOF
9287  break
9288 fi
9289 done
9290
9291
9292
9293 for ac_func in strrchr rindex
9294 do
9295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296 echo "$as_me:$LINENO: checking for $ac_func" >&5
9297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_var+set}\" = set"; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301   cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9309 #define $ac_func innocuous_$ac_func
9310
9311 /* System header to define __stub macros and hopefully few prototypes,
9312     which can conflict with char $ac_func (); below.
9313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314     <limits.h> exists even on freestanding compilers.  */
9315
9316 #ifdef __STDC__
9317 # include <limits.h>
9318 #else
9319 # include <assert.h>
9320 #endif
9321
9322 #undef $ac_func
9323
9324 /* Override any gcc2 internal prototype to avoid an error.  */
9325 #ifdef __cplusplus
9326 extern "C"
9327 {
9328 #endif
9329 /* We use char because int might match the return type of a gcc2
9330    builtin and then its argument prototype would still apply.  */
9331 char $ac_func ();
9332 /* The GNU C library defines this for functions which it implements
9333     to always fail with ENOSYS.  Some functions are actually named
9334     something starting with __ and the normal name is an alias.  */
9335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336 choke me
9337 #else
9338 char (*f) () = $ac_func;
9339 #endif
9340 #ifdef __cplusplus
9341 }
9342 #endif
9343
9344 int
9345 main ()
9346 {
9347 return f != $ac_func;
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354   (eval $ac_link) 2>conftest.er1
9355   ac_status=$?
9356   grep -v '^ *+' conftest.er1 >conftest.err
9357   rm -f conftest.er1
9358   cat conftest.err >&5
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } &&
9361          { ac_try='test -z "$ac_c_werror_flag"
9362                          || test ! -s conftest.err'
9363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364   (eval $ac_try) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); }; } &&
9368          { ac_try='test -s conftest$ac_exeext'
9369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370   (eval $ac_try) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   eval "$as_ac_var=yes"
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 eval "$as_ac_var=no"
9380 fi
9381 rm -f conftest.err conftest.$ac_objext \
9382       conftest$ac_exeext conftest.$ac_ext
9383 fi
9384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9386 if test `eval echo '${'$as_ac_var'}'` = yes; then
9387   cat >>confdefs.h <<_ACEOF
9388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389 _ACEOF
9390  break
9391 fi
9392 done
9393
9394
9395
9396 for ac_func in memcpy bcopy
9397 do
9398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399 echo "$as_me:$LINENO: checking for $ac_func" >&5
9400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9401 if eval "test \"\${$as_ac_var+set}\" = set"; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404   cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9412 #define $ac_func innocuous_$ac_func
9413
9414 /* System header to define __stub macros and hopefully few prototypes,
9415     which can conflict with char $ac_func (); below.
9416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417     <limits.h> exists even on freestanding compilers.  */
9418
9419 #ifdef __STDC__
9420 # include <limits.h>
9421 #else
9422 # include <assert.h>
9423 #endif
9424
9425 #undef $ac_func
9426
9427 /* Override any gcc2 internal prototype to avoid an error.  */
9428 #ifdef __cplusplus
9429 extern "C"
9430 {
9431 #endif
9432 /* We use char because int might match the return type of a gcc2
9433    builtin and then its argument prototype would still apply.  */
9434 char $ac_func ();
9435 /* The GNU C library defines this for functions which it implements
9436     to always fail with ENOSYS.  Some functions are actually named
9437     something starting with __ and the normal name is an alias.  */
9438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9439 choke me
9440 #else
9441 char (*f) () = $ac_func;
9442 #endif
9443 #ifdef __cplusplus
9444 }
9445 #endif
9446
9447 int
9448 main ()
9449 {
9450 return f != $ac_func;
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457   (eval $ac_link) 2>conftest.er1
9458   ac_status=$?
9459   grep -v '^ *+' conftest.er1 >conftest.err
9460   rm -f conftest.er1
9461   cat conftest.err >&5
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } &&
9464          { ac_try='test -z "$ac_c_werror_flag"
9465                          || test ! -s conftest.err'
9466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467   (eval $ac_try) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }; } &&
9471          { ac_try='test -s conftest$ac_exeext'
9472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473   (eval $ac_try) 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; }; then
9477   eval "$as_ac_var=yes"
9478 else
9479   echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482 eval "$as_ac_var=no"
9483 fi
9484 rm -f conftest.err conftest.$ac_objext \
9485       conftest$ac_exeext conftest.$ac_ext
9486 fi
9487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9489 if test `eval echo '${'$as_ac_var'}'` = yes; then
9490   cat >>confdefs.h <<_ACEOF
9491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9492 _ACEOF
9493  break
9494 fi
9495 done
9496
9497
9498
9499 for ac_func in memmove strcmp
9500 do
9501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9502 echo "$as_me:$LINENO: checking for $ac_func" >&5
9503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_var+set}\" = set"; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9515 #define $ac_func innocuous_$ac_func
9516
9517 /* System header to define __stub macros and hopefully few prototypes,
9518     which can conflict with char $ac_func (); below.
9519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9520     <limits.h> exists even on freestanding compilers.  */
9521
9522 #ifdef __STDC__
9523 # include <limits.h>
9524 #else
9525 # include <assert.h>
9526 #endif
9527
9528 #undef $ac_func
9529
9530 /* Override any gcc2 internal prototype to avoid an error.  */
9531 #ifdef __cplusplus
9532 extern "C"
9533 {
9534 #endif
9535 /* We use char because int might match the return type of a gcc2
9536    builtin and then its argument prototype would still apply.  */
9537 char $ac_func ();
9538 /* The GNU C library defines this for functions which it implements
9539     to always fail with ENOSYS.  Some functions are actually named
9540     something starting with __ and the normal name is an alias.  */
9541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9542 choke me
9543 #else
9544 char (*f) () = $ac_func;
9545 #endif
9546 #ifdef __cplusplus
9547 }
9548 #endif
9549
9550 int
9551 main ()
9552 {
9553 return f != $ac_func;
9554   ;
9555   return 0;
9556 }
9557 _ACEOF
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560   (eval $ac_link) 2>conftest.er1
9561   ac_status=$?
9562   grep -v '^ *+' conftest.er1 >conftest.err
9563   rm -f conftest.er1
9564   cat conftest.err >&5
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } &&
9567          { ac_try='test -z "$ac_c_werror_flag"
9568                          || test ! -s conftest.err'
9569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570   (eval $ac_try) 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); }; } &&
9574          { ac_try='test -s conftest$ac_exeext'
9575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576   (eval $ac_try) 2>&5
9577   ac_status=$?
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); }; }; then
9580   eval "$as_ac_var=yes"
9581 else
9582   echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585 eval "$as_ac_var=no"
9586 fi
9587 rm -f conftest.err conftest.$ac_objext \
9588       conftest$ac_exeext conftest.$ac_ext
9589 fi
9590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9592 if test `eval echo '${'$as_ac_var'}'` = yes; then
9593   cat >>confdefs.h <<_ACEOF
9594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9595 _ACEOF
9596
9597 fi
9598 done
9599
9600
9601
9602
9603 for ac_func in closedir opendir readdir
9604 do
9605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 echo "$as_me:$LINENO: checking for $ac_func" >&5
9607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9608 if eval "test \"\${$as_ac_var+set}\" = set"; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9619 #define $ac_func innocuous_$ac_func
9620
9621 /* System header to define __stub macros and hopefully few prototypes,
9622     which can conflict with char $ac_func (); below.
9623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624     <limits.h> exists even on freestanding compilers.  */
9625
9626 #ifdef __STDC__
9627 # include <limits.h>
9628 #else
9629 # include <assert.h>
9630 #endif
9631
9632 #undef $ac_func
9633
9634 /* Override any gcc2 internal prototype to avoid an error.  */
9635 #ifdef __cplusplus
9636 extern "C"
9637 {
9638 #endif
9639 /* We use char because int might match the return type of a gcc2
9640    builtin and then its argument prototype would still apply.  */
9641 char $ac_func ();
9642 /* The GNU C library defines this for functions which it implements
9643     to always fail with ENOSYS.  Some functions are actually named
9644     something starting with __ and the normal name is an alias.  */
9645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9646 choke me
9647 #else
9648 char (*f) () = $ac_func;
9649 #endif
9650 #ifdef __cplusplus
9651 }
9652 #endif
9653
9654 int
9655 main ()
9656 {
9657 return f != $ac_func;
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664   (eval $ac_link) 2>conftest.er1
9665   ac_status=$?
9666   grep -v '^ *+' conftest.er1 >conftest.err
9667   rm -f conftest.er1
9668   cat conftest.err >&5
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); } &&
9671          { ac_try='test -z "$ac_c_werror_flag"
9672                          || test ! -s conftest.err'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; } &&
9678          { ac_try='test -s conftest$ac_exeext'
9679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680   (eval $ac_try) 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; }; then
9684   eval "$as_ac_var=yes"
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 eval "$as_ac_var=no"
9690 fi
9691 rm -f conftest.err conftest.$ac_objext \
9692       conftest$ac_exeext conftest.$ac_ext
9693 fi
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9696 if test `eval echo '${'$as_ac_var'}'` = yes; then
9697   cat >>confdefs.h <<_ACEOF
9698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9699 _ACEOF
9700
9701 fi
9702 done
9703
9704
9705 # Check whether --enable-shared or --disable-shared was given.
9706 if test "${enable_shared+set}" = set; then
9707   enableval="$enable_shared"
9708   p=${PACKAGE-default}
9709     case $enableval in
9710     yes) enable_shared=yes ;;
9711     no) enable_shared=no ;;
9712     *)
9713       enable_shared=no
9714       # Look at the argument we got.  We use all the common list separators.
9715       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9716       for pkg in $enableval; do
9717         IFS="$lt_save_ifs"
9718         if test "X$pkg" = "X$p"; then
9719           enable_shared=yes
9720         fi
9721       done
9722       IFS="$lt_save_ifs"
9723       ;;
9724     esac
9725 else
9726   enable_shared=yes
9727 fi;
9728
9729 # Check whether --enable-static or --disable-static was given.
9730 if test "${enable_static+set}" = set; then
9731   enableval="$enable_static"
9732   p=${PACKAGE-default}
9733     case $enableval in
9734     yes) enable_static=yes ;;
9735     no) enable_static=no ;;
9736     *)
9737      enable_static=no
9738       # Look at the argument we got.  We use all the common list separators.
9739       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9740       for pkg in $enableval; do
9741         IFS="$lt_save_ifs"
9742         if test "X$pkg" = "X$p"; then
9743           enable_static=yes
9744         fi
9745       done
9746       IFS="$lt_save_ifs"
9747       ;;
9748     esac
9749 else
9750   enable_static=yes
9751 fi;
9752
9753 # Check whether --enable-fast-install or --disable-fast-install was given.
9754 if test "${enable_fast_install+set}" = set; then
9755   enableval="$enable_fast_install"
9756   p=${PACKAGE-default}
9757     case $enableval in
9758     yes) enable_fast_install=yes ;;
9759     no) enable_fast_install=no ;;
9760     *)
9761       enable_fast_install=no
9762       # Look at the argument we got.  We use all the common list separators.
9763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9764       for pkg in $enableval; do
9765         IFS="$lt_save_ifs"
9766         if test "X$pkg" = "X$p"; then
9767           enable_fast_install=yes
9768         fi
9769       done
9770       IFS="$lt_save_ifs"
9771       ;;
9772     esac
9773 else
9774   enable_fast_install=yes
9775 fi;
9776
9777 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9778 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9779 if test "${lt_cv_path_SED+set}" = set; then
9780   echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782   # Loop through the user's path and test for sed and gsed.
9783 # Then use that list of sed's as ones to test for truncation.
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787   IFS=$as_save_IFS
9788   test -z "$as_dir" && as_dir=.
9789   for lt_ac_prog in sed gsed; do
9790     for ac_exec_ext in '' $ac_executable_extensions; do
9791       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9792         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9793       fi
9794     done
9795   done
9796 done
9797 lt_ac_max=0
9798 lt_ac_count=0
9799 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9800 # along with /bin/sed that truncates output.
9801 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9802   test ! -f $lt_ac_sed && break
9803   cat /dev/null > conftest.in
9804   lt_ac_count=0
9805   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9806   # Check for GNU sed and select it if it is found.
9807   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9808     lt_cv_path_SED=$lt_ac_sed
9809     break
9810   fi
9811   while true; do
9812     cat conftest.in conftest.in >conftest.tmp
9813     mv conftest.tmp conftest.in
9814     cp conftest.in conftest.nl
9815     echo >>conftest.nl
9816     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9817     cmp -s conftest.out conftest.nl || break
9818     # 10000 chars as input seems more than enough
9819     test $lt_ac_count -gt 10 && break
9820     lt_ac_count=`expr $lt_ac_count + 1`
9821     if test $lt_ac_count -gt $lt_ac_max; then
9822       lt_ac_max=$lt_ac_count
9823       lt_cv_path_SED=$lt_ac_sed
9824     fi
9825   done
9826 done
9827
9828 fi
9829
9830 SED=$lt_cv_path_SED
9831 echo "$as_me:$LINENO: result: $SED" >&5
9832 echo "${ECHO_T}$SED" >&6
9833
9834
9835 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9836 if test "${with_gnu_ld+set}" = set; then
9837   withval="$with_gnu_ld"
9838   test "$withval" = no || with_gnu_ld=yes
9839 else
9840   with_gnu_ld=no
9841 fi;
9842 ac_prog=ld
9843 if test "$GCC" = yes; then
9844   # Check if gcc -print-prog-name=ld gives a path.
9845   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9846 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9847   case $host in
9848   *-*-mingw*)
9849     # gcc leaves a trailing carriage return which upsets mingw
9850     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9851   *)
9852     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9853   esac
9854   case $ac_prog in
9855     # Accept absolute paths.
9856     [\\/]* | ?:[\\/]*)
9857       re_direlt='/[^/][^/]*/\.\./'
9858       # Canonicalize the pathname of ld
9859       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9860       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9861         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9862       done
9863       test -z "$LD" && LD="$ac_prog"
9864       ;;
9865   "")
9866     # If it fails, then pretend we aren't using GCC.
9867     ac_prog=ld
9868     ;;
9869   *)
9870     # If it is relative, then search for the first ld in PATH.
9871     with_gnu_ld=unknown
9872     ;;
9873   esac
9874 elif test "$with_gnu_ld" = yes; then
9875   echo "$as_me:$LINENO: checking for GNU ld" >&5
9876 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9877 else
9878   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9879 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9880 fi
9881 if test "${lt_cv_path_LD+set}" = set; then
9882   echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884   if test -z "$LD"; then
9885   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9886   for ac_dir in $PATH; do
9887     IFS="$lt_save_ifs"
9888     test -z "$ac_dir" && ac_dir=.
9889     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9890       lt_cv_path_LD="$ac_dir/$ac_prog"
9891       # Check to see if the program is GNU ld.  I'd rather use --version,
9892       # but apparently some GNU ld's only accept -v.
9893       # Break only if it was the GNU/non-GNU ld that we prefer.
9894       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9895       *GNU* | *'with BFD'*)
9896         test "$with_gnu_ld" != no && break
9897         ;;
9898       *)
9899         test "$with_gnu_ld" != yes && break
9900         ;;
9901       esac
9902     fi
9903   done
9904   IFS="$lt_save_ifs"
9905 else
9906   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9907 fi
9908 fi
9909
9910 LD="$lt_cv_path_LD"
9911 if test -n "$LD"; then
9912   echo "$as_me:$LINENO: result: $LD" >&5
9913 echo "${ECHO_T}$LD" >&6
9914 else
9915   echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6
9917 fi
9918 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9919 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9920    { (exit 1); exit 1; }; }
9921 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9922 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9923 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9927 case `$LD -v 2>&1 </dev/null` in
9928 *GNU* | *'with BFD'*)
9929   lt_cv_prog_gnu_ld=yes
9930   ;;
9931 *)
9932   lt_cv_prog_gnu_ld=no
9933   ;;
9934 esac
9935 fi
9936 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9937 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9938 with_gnu_ld=$lt_cv_prog_gnu_ld
9939
9940
9941 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9942 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9943 if test "${lt_cv_ld_reload_flag+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   lt_cv_ld_reload_flag='-r'
9947 fi
9948 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9949 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9950 reload_flag=$lt_cv_ld_reload_flag
9951 case $reload_flag in
9952 "" | " "*) ;;
9953 *) reload_flag=" $reload_flag" ;;
9954 esac
9955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9956 case $host_os in
9957   darwin*)
9958     if test "$GCC" = yes; then
9959       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9960     else
9961       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9962     fi
9963     ;;
9964 esac
9965
9966 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9967 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9968 if test "${lt_cv_deplibs_check_method+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   lt_cv_file_magic_cmd='$MAGIC_CMD'
9972 lt_cv_file_magic_test_file=
9973 lt_cv_deplibs_check_method='unknown'
9974 # Need to set the preceding variable on all platforms that support
9975 # interlibrary dependencies.
9976 # 'none' -- dependencies not supported.
9977 # `unknown' -- same as none, but documents that we really don't know.
9978 # 'pass_all' -- all dependencies passed with no checks.
9979 # 'test_compile' -- check by making test program.
9980 # 'file_magic [[regex]]' -- check by looking for files in library path
9981 # which responds to the $file_magic_cmd with a given extended regex.
9982 # If you have `file' or equivalent on your system and you're not sure
9983 # whether `pass_all' will *always* work, you probably want this one.
9984
9985 case $host_os in
9986 aix4* | aix5*)
9987   lt_cv_deplibs_check_method=pass_all
9988   ;;
9989
9990 beos*)
9991   lt_cv_deplibs_check_method=pass_all
9992   ;;
9993
9994 bsdi[45]*)
9995   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9996   lt_cv_file_magic_cmd='/usr/bin/file -L'
9997   lt_cv_file_magic_test_file=/shlib/libc.so
9998   ;;
9999
10000 cygwin*)
10001   # func_win32_libid is a shell function defined in ltmain.sh
10002   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10003   lt_cv_file_magic_cmd='func_win32_libid'
10004   ;;
10005
10006 mingw* | pw32*)
10007   # Base MSYS/MinGW do not provide the 'file' command needed by
10008   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10009   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10010   lt_cv_file_magic_cmd='$OBJDUMP -f'
10011   ;;
10012
10013 darwin* | rhapsody*)
10014   lt_cv_deplibs_check_method=pass_all
10015   ;;
10016
10017 freebsd* | kfreebsd*-gnu)
10018   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10019     case $host_cpu in
10020     i*86 )
10021       # Not sure whether the presence of OpenBSD here was a mistake.
10022       # Let's accept both of them until this is cleared up.
10023       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10024       lt_cv_file_magic_cmd=/usr/bin/file
10025       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10026       ;;
10027     esac
10028   else
10029     lt_cv_deplibs_check_method=pass_all
10030   fi
10031   ;;
10032
10033 gnu*)
10034   lt_cv_deplibs_check_method=pass_all
10035   ;;
10036
10037 hpux10.20* | hpux11*)
10038   lt_cv_file_magic_cmd=/usr/bin/file
10039   case "$host_cpu" in
10040   ia64*)
10041     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10042     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10043     ;;
10044   hppa*64*)
10045     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]'
10046     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10047     ;;
10048   *)
10049     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10050     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10051     ;;
10052   esac
10053   ;;
10054
10055 irix5* | irix6* | nonstopux*)
10056   case $LD in
10057   *-32|*"-32 ") libmagic=32-bit;;
10058   *-n32|*"-n32 ") libmagic=N32;;
10059   *-64|*"-64 ") libmagic=64-bit;;
10060   *) libmagic=never-match;;
10061   esac
10062   lt_cv_deplibs_check_method=pass_all
10063   ;;
10064
10065 # This must be Linux ELF.
10066 linux*)
10067   lt_cv_deplibs_check_method=pass_all
10068   ;;
10069
10070 netbsd*)
10071   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10073   else
10074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10075   fi
10076   ;;
10077
10078 newos6*)
10079   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10080   lt_cv_file_magic_cmd=/usr/bin/file
10081   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10082   ;;
10083
10084 nto-qnx*)
10085   lt_cv_deplibs_check_method=unknown
10086   ;;
10087
10088 openbsd*)
10089   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10091   else
10092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10093   fi
10094   ;;
10095
10096 osf3* | osf4* | osf5*)
10097   lt_cv_deplibs_check_method=pass_all
10098   ;;
10099
10100 sco3.2v5*)
10101   lt_cv_deplibs_check_method=pass_all
10102   ;;
10103
10104 solaris*)
10105   lt_cv_deplibs_check_method=pass_all
10106   ;;
10107
10108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10109   case $host_vendor in
10110   motorola)
10111     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]'
10112     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10113     ;;
10114   ncr)
10115     lt_cv_deplibs_check_method=pass_all
10116     ;;
10117   sequent)
10118     lt_cv_file_magic_cmd='/bin/file'
10119     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10120     ;;
10121   sni)
10122     lt_cv_file_magic_cmd='/bin/file'
10123     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10124     lt_cv_file_magic_test_file=/lib/libc.so
10125     ;;
10126   siemens)
10127     lt_cv_deplibs_check_method=pass_all
10128     ;;
10129   esac
10130   ;;
10131
10132 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10133   lt_cv_deplibs_check_method=pass_all
10134   ;;
10135 esac
10136
10137 fi
10138 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10139 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10140 file_magic_cmd=$lt_cv_file_magic_cmd
10141 deplibs_check_method=$lt_cv_deplibs_check_method
10142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10143
10144
10145
10146 # If no C compiler was specified, use CC.
10147 LTCC=${LTCC-"$CC"}
10148
10149 # Allow CC to be a program name with arguments.
10150 compiler=$CC
10151
10152 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10153 if test "${enable_libtool_lock+set}" = set; then
10154   enableval="$enable_libtool_lock"
10155
10156 fi;
10157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10158
10159 # Some flags need to be propagated to the compiler or linker for good
10160 # libtool support.
10161 case $host in
10162 ia64-*-hpux*)
10163   # Find out which ABI we are using.
10164   echo 'int i;' > conftest.$ac_ext
10165   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166   (eval $ac_compile) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; then
10170     case `/usr/bin/file conftest.$ac_objext` in
10171     *ELF-32*)
10172       HPUX_IA64_MODE="32"
10173       ;;
10174     *ELF-64*)
10175       HPUX_IA64_MODE="64"
10176       ;;
10177     esac
10178   fi
10179   rm -rf conftest*
10180   ;;
10181 *-*-irix6*)
10182   # Find out which ABI we are using.
10183   echo '#line 10183 "configure"' > conftest.$ac_ext
10184   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185   (eval $ac_compile) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; then
10189    if test "$lt_cv_prog_gnu_ld" = yes; then
10190     case `/usr/bin/file conftest.$ac_objext` in
10191     *32-bit*)
10192       LD="${LD-ld} -melf32bsmip"
10193       ;;
10194     *N32*)
10195       LD="${LD-ld} -melf32bmipn32"
10196       ;;
10197     *64-bit*)
10198       LD="${LD-ld} -melf64bmip"
10199       ;;
10200     esac
10201    else
10202     case `/usr/bin/file conftest.$ac_objext` in
10203     *32-bit*)
10204       LD="${LD-ld} -32"
10205       ;;
10206     *N32*)
10207       LD="${LD-ld} -n32"
10208       ;;
10209     *64-bit*)
10210       LD="${LD-ld} -64"
10211       ;;
10212     esac
10213    fi
10214   fi
10215   rm -rf conftest*
10216   ;;
10217
10218 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10219   # Find out which ABI we are using.
10220   echo 'int i;' > conftest.$ac_ext
10221   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222   (eval $ac_compile) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; then
10226     case "`/usr/bin/file conftest.o`" in
10227     *32-bit*)
10228       case $host in
10229         x86_64-*linux*)
10230           LD="${LD-ld} -m elf_i386"
10231           ;;
10232         ppc64-*linux*|powerpc64-*linux*)
10233           LD="${LD-ld} -m elf32ppclinux"
10234           ;;
10235         s390x-*linux*)
10236           LD="${LD-ld} -m elf_s390"
10237           ;;
10238         sparc64-*linux*)
10239           LD="${LD-ld} -m elf32_sparc"
10240           ;;
10241       esac
10242       ;;
10243     *64-bit*)
10244       case $host in
10245         x86_64-*linux*)
10246           LD="${LD-ld} -m elf_x86_64"
10247           ;;
10248         ppc*-*linux*|powerpc*-*linux*)
10249           LD="${LD-ld} -m elf64ppc"
10250           ;;
10251         s390*-*linux*)
10252           LD="${LD-ld} -m elf64_s390"
10253           ;;
10254         sparc*-*linux*)
10255           LD="${LD-ld} -m elf64_sparc"
10256           ;;
10257       esac
10258       ;;
10259     esac
10260   fi
10261   rm -rf conftest*
10262   ;;
10263
10264 *-*-sco3.2v5*)
10265   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10266   SAVE_CFLAGS="$CFLAGS"
10267   CFLAGS="$CFLAGS -belf"
10268   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10269 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10270 if test "${lt_cv_cc_needs_belf+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   ac_ext=c
10274 ac_cpp='$CPP $CPPFLAGS'
10275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10278
10279      cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289   (eval $ac_link) 2>conftest.er1
10290   ac_status=$?
10291   grep -v '^ *+' conftest.er1 >conftest.err
10292   rm -f conftest.er1
10293   cat conftest.err >&5
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } &&
10296          { ac_try='test -z "$ac_c_werror_flag"
10297                          || test ! -s conftest.err'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; } &&
10303          { ac_try='test -s conftest$ac_exeext'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; }; then
10309   lt_cv_cc_needs_belf=yes
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 lt_cv_cc_needs_belf=no
10315 fi
10316 rm -f conftest.err conftest.$ac_objext \
10317       conftest$ac_exeext conftest.$ac_ext
10318      ac_ext=c
10319 ac_cpp='$CPP $CPPFLAGS'
10320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10323
10324 fi
10325 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10326 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10327   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10328     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10329     CFLAGS="$SAVE_CFLAGS"
10330   fi
10331   ;;
10332
10333 esac
10334
10335 need_locks="$enable_libtool_lock"
10336
10337
10338
10339
10340 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10341     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10342     (test "X$CXX" != "Xg++"))) ; then
10343   ac_ext=cc
10344 ac_cpp='$CXXCPP $CPPFLAGS'
10345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10348 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10349 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10350 if test -z "$CXXCPP"; then
10351   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354       # Double quotes because CXXCPP needs to be expanded
10355     for CXXCPP in "$CXX -E" "/lib/cpp"
10356     do
10357       ac_preproc_ok=false
10358 for ac_cxx_preproc_warn_flag in '' yes
10359 do
10360   # Use a header file that comes with gcc, so configuring glibc
10361   # with a fresh cross-compiler works.
10362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10363   # <limits.h> exists even on freestanding compilers.
10364   # On the NeXT, cc -E runs the code through the compiler's parser,
10365   # not just through cpp. "Syntax error" is here to catch this case.
10366   cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372 #ifdef __STDC__
10373 # include <limits.h>
10374 #else
10375 # include <assert.h>
10376 #endif
10377                      Syntax error
10378 _ACEOF
10379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } >/dev/null; then
10387   if test -s conftest.err; then
10388     ac_cpp_err=$ac_cxx_preproc_warn_flag
10389     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10390   else
10391     ac_cpp_err=
10392   fi
10393 else
10394   ac_cpp_err=yes
10395 fi
10396 if test -z "$ac_cpp_err"; then
10397   :
10398 else
10399   echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402   # Broken: fails on valid input.
10403 continue
10404 fi
10405 rm -f conftest.err conftest.$ac_ext
10406
10407   # OK, works on sane cases.  Now check whether non-existent headers
10408   # can be detected and how.
10409   cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415 #include <ac_nonexistent.h>
10416 _ACEOF
10417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } >/dev/null; then
10425   if test -s conftest.err; then
10426     ac_cpp_err=$ac_cxx_preproc_warn_flag
10427     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10428   else
10429     ac_cpp_err=
10430   fi
10431 else
10432   ac_cpp_err=yes
10433 fi
10434 if test -z "$ac_cpp_err"; then
10435   # Broken: success on invalid input.
10436 continue
10437 else
10438   echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441   # Passes both tests.
10442 ac_preproc_ok=:
10443 break
10444 fi
10445 rm -f conftest.err conftest.$ac_ext
10446
10447 done
10448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10449 rm -f conftest.err conftest.$ac_ext
10450 if $ac_preproc_ok; then
10451   break
10452 fi
10453
10454     done
10455     ac_cv_prog_CXXCPP=$CXXCPP
10456
10457 fi
10458   CXXCPP=$ac_cv_prog_CXXCPP
10459 else
10460   ac_cv_prog_CXXCPP=$CXXCPP
10461 fi
10462 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10463 echo "${ECHO_T}$CXXCPP" >&6
10464 ac_preproc_ok=false
10465 for ac_cxx_preproc_warn_flag in '' yes
10466 do
10467   # Use a header file that comes with gcc, so configuring glibc
10468   # with a fresh cross-compiler works.
10469   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10470   # <limits.h> exists even on freestanding compilers.
10471   # On the NeXT, cc -E runs the code through the compiler's parser,
10472   # not just through cpp. "Syntax error" is here to catch this case.
10473   cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h.  */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h.  */
10479 #ifdef __STDC__
10480 # include <limits.h>
10481 #else
10482 # include <assert.h>
10483 #endif
10484                      Syntax error
10485 _ACEOF
10486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10488   ac_status=$?
10489   grep -v '^ *+' conftest.er1 >conftest.err
10490   rm -f conftest.er1
10491   cat conftest.err >&5
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); } >/dev/null; then
10494   if test -s conftest.err; then
10495     ac_cpp_err=$ac_cxx_preproc_warn_flag
10496     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10497   else
10498     ac_cpp_err=
10499   fi
10500 else
10501   ac_cpp_err=yes
10502 fi
10503 if test -z "$ac_cpp_err"; then
10504   :
10505 else
10506   echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509   # Broken: fails on valid input.
10510 continue
10511 fi
10512 rm -f conftest.err conftest.$ac_ext
10513
10514   # OK, works on sane cases.  Now check whether non-existent headers
10515   # can be detected and how.
10516   cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522 #include <ac_nonexistent.h>
10523 _ACEOF
10524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10526   ac_status=$?
10527   grep -v '^ *+' conftest.er1 >conftest.err
10528   rm -f conftest.er1
10529   cat conftest.err >&5
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } >/dev/null; then
10532   if test -s conftest.err; then
10533     ac_cpp_err=$ac_cxx_preproc_warn_flag
10534     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10535   else
10536     ac_cpp_err=
10537   fi
10538 else
10539   ac_cpp_err=yes
10540 fi
10541 if test -z "$ac_cpp_err"; then
10542   # Broken: success on invalid input.
10543 continue
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548   # Passes both tests.
10549 ac_preproc_ok=:
10550 break
10551 fi
10552 rm -f conftest.err conftest.$ac_ext
10553
10554 done
10555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10556 rm -f conftest.err conftest.$ac_ext
10557 if $ac_preproc_ok; then
10558   :
10559 else
10560   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10561 See \`config.log' for more details." >&5
10562 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10563 See \`config.log' for more details." >&2;}
10564    { (exit 1); exit 1; }; }
10565 fi
10566
10567 ac_ext=cc
10568 ac_cpp='$CXXCPP $CPPFLAGS'
10569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10572
10573 fi
10574
10575
10576 ac_ext=f
10577 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10578 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10579 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10580 if test -n "$ac_tool_prefix"; then
10581   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10582   do
10583     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10585 echo "$as_me:$LINENO: checking for $ac_word" >&5
10586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10587 if test "${ac_cv_prog_F77+set}" = set; then
10588   echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590   if test -n "$F77"; then
10591   ac_cv_prog_F77="$F77" # Let the user override the test.
10592 else
10593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594 for as_dir in $PATH
10595 do
10596   IFS=$as_save_IFS
10597   test -z "$as_dir" && as_dir=.
10598   for ac_exec_ext in '' $ac_executable_extensions; do
10599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602     break 2
10603   fi
10604 done
10605 done
10606
10607 fi
10608 fi
10609 F77=$ac_cv_prog_F77
10610 if test -n "$F77"; then
10611   echo "$as_me:$LINENO: result: $F77" >&5
10612 echo "${ECHO_T}$F77" >&6
10613 else
10614   echo "$as_me:$LINENO: result: no" >&5
10615 echo "${ECHO_T}no" >&6
10616 fi
10617
10618     test -n "$F77" && break
10619   done
10620 fi
10621 if test -z "$F77"; then
10622   ac_ct_F77=$F77
10623   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10624 do
10625   # Extract the first word of "$ac_prog", so it can be a program name with args.
10626 set dummy $ac_prog; ac_word=$2
10627 echo "$as_me:$LINENO: checking for $ac_word" >&5
10628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10629 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10630   echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632   if test -n "$ac_ct_F77"; then
10633   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10634 else
10635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636 for as_dir in $PATH
10637 do
10638   IFS=$as_save_IFS
10639   test -z "$as_dir" && as_dir=.
10640   for ac_exec_ext in '' $ac_executable_extensions; do
10641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10642     ac_cv_prog_ac_ct_F77="$ac_prog"
10643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10644     break 2
10645   fi
10646 done
10647 done
10648
10649 fi
10650 fi
10651 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10652 if test -n "$ac_ct_F77"; then
10653   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10654 echo "${ECHO_T}$ac_ct_F77" >&6
10655 else
10656   echo "$as_me:$LINENO: result: no" >&5
10657 echo "${ECHO_T}no" >&6
10658 fi
10659
10660   test -n "$ac_ct_F77" && break
10661 done
10662
10663   F77=$ac_ct_F77
10664 fi
10665
10666
10667 # Provide some information about the compiler.
10668 echo "$as_me:10668:" \
10669      "checking for Fortran 77 compiler version" >&5
10670 ac_compiler=`set X $ac_compile; echo $2`
10671 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10672   (eval $ac_compiler --version </dev/null >&5) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }
10676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10677   (eval $ac_compiler -v </dev/null >&5) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }
10681 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10682   (eval $ac_compiler -V </dev/null >&5) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }
10686 rm -f a.out
10687
10688 # If we don't use `.F' as extension, the preprocessor is not run on the
10689 # input file.  (Note that this only needs to work for GNU compilers.)
10690 ac_save_ext=$ac_ext
10691 ac_ext=F
10692 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10693 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10694 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10695   echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697   cat >conftest.$ac_ext <<_ACEOF
10698       program main
10699 #ifndef __GNUC__
10700        choke me
10701 #endif
10702
10703       end
10704 _ACEOF
10705 rm -f conftest.$ac_objext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10707   (eval $ac_compile) 2>conftest.er1
10708   ac_status=$?
10709   grep -v '^ *+' conftest.er1 >conftest.err
10710   rm -f conftest.er1
10711   cat conftest.err >&5
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } &&
10714          { ac_try='test -z "$ac_f77_werror_flag"
10715                          || test ! -s conftest.err'
10716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717   (eval $ac_try) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; } &&
10721          { ac_try='test -s conftest.$ac_objext'
10722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723   (eval $ac_try) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; }; then
10727   ac_compiler_gnu=yes
10728 else
10729   echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 ac_compiler_gnu=no
10733 fi
10734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10735 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10736
10737 fi
10738 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10739 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10740 ac_ext=$ac_save_ext
10741 ac_test_FFLAGS=${FFLAGS+set}
10742 ac_save_FFLAGS=$FFLAGS
10743 FFLAGS=
10744 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10745 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10746 if test "${ac_cv_prog_f77_g+set}" = set; then
10747   echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749   FFLAGS=-g
10750 cat >conftest.$ac_ext <<_ACEOF
10751       program main
10752
10753       end
10754 _ACEOF
10755 rm -f conftest.$ac_objext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10757   (eval $ac_compile) 2>conftest.er1
10758   ac_status=$?
10759   grep -v '^ *+' conftest.er1 >conftest.err
10760   rm -f conftest.er1
10761   cat conftest.err >&5
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); } &&
10764          { ac_try='test -z "$ac_f77_werror_flag"
10765                          || test ! -s conftest.err'
10766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767   (eval $ac_try) 2>&5
10768   ac_status=$?
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); }; } &&
10771          { ac_try='test -s conftest.$ac_objext'
10772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773   (eval $ac_try) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); }; }; then
10777   ac_cv_prog_f77_g=yes
10778 else
10779   echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10781
10782 ac_cv_prog_f77_g=no
10783 fi
10784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10785
10786 fi
10787 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10788 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10789 if test "$ac_test_FFLAGS" = set; then
10790   FFLAGS=$ac_save_FFLAGS
10791 elif test $ac_cv_prog_f77_g = yes; then
10792   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10793     FFLAGS="-g -O2"
10794   else
10795     FFLAGS="-g"
10796   fi
10797 else
10798   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10799     FFLAGS="-O2"
10800   else
10801     FFLAGS=
10802   fi
10803 fi
10804
10805 G77=`test $ac_compiler_gnu = yes && echo yes`
10806 ac_ext=c
10807 ac_cpp='$CPP $CPPFLAGS'
10808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10811
10812
10813
10814 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10815
10816 # find the maximum length of command line arguments
10817 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10818 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10819 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822     i=0
10823   teststring="ABCD"
10824
10825   case $build_os in
10826   msdosdjgpp*)
10827     # On DJGPP, this test can blow up pretty badly due to problems in libc
10828     # (any single argument exceeding 2000 bytes causes a buffer overrun
10829     # during glob expansion).  Even if it were fixed, the result of this
10830     # check would be larger than it should be.
10831     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10832     ;;
10833
10834   gnu*)
10835     # Under GNU Hurd, this test is not required because there is
10836     # no limit to the length of command line arguments.
10837     # Libtool will interpret -1 as no limit whatsoever
10838     lt_cv_sys_max_cmd_len=-1;
10839     ;;
10840
10841   cygwin* | mingw*)
10842     # On Win9x/ME, this test blows up -- it succeeds, but takes
10843     # about 5 minutes as the teststring grows exponentially.
10844     # Worse, since 9x/ME are not pre-emptively multitasking,
10845     # you end up with a "frozen" computer, even though with patience
10846     # the test eventually succeeds (with a max line length of 256k).
10847     # Instead, let's just punt: use the minimum linelength reported by
10848     # all of the supported platforms: 8192 (on NT/2K/XP).
10849     lt_cv_sys_max_cmd_len=8192;
10850     ;;
10851
10852   amigaos*)
10853     # On AmigaOS with pdksh, this test takes hours, literally.
10854     # So we just punt and use a minimum line length of 8192.
10855     lt_cv_sys_max_cmd_len=8192;
10856     ;;
10857
10858   netbsd* | freebsd* | openbsd* | darwin* )
10859     # This has been around since 386BSD, at least.  Likely further.
10860     if test -x /sbin/sysctl; then
10861       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10862     elif test -x /usr/sbin/sysctl; then
10863       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10864     else
10865       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10866     fi
10867     # And add a safety zone
10868     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10869     ;;
10870
10871  *)
10872     # If test is not a shell built-in, we'll probably end up computing a
10873     # maximum length that is only half of the actual maximum length, but
10874     # we can't tell.
10875     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10876     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10877                = "XX$teststring") >/dev/null 2>&1 &&
10878             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10879             lt_cv_sys_max_cmd_len=$new_result &&
10880             test $i != 17 # 1/2 MB should be enough
10881     do
10882       i=`expr $i + 1`
10883       teststring=$teststring$teststring
10884     done
10885     teststring=
10886     # Add a significant safety factor because C++ compilers can tack on massive
10887     # amounts of additional arguments before passing them to the linker.
10888     # It appears as though 1/2 is a usable value.
10889     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10890     ;;
10891   esac
10892
10893 fi
10894
10895 if test -n $lt_cv_sys_max_cmd_len ; then
10896   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10897 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10898 else
10899   echo "$as_me:$LINENO: result: none" >&5
10900 echo "${ECHO_T}none" >&6
10901 fi
10902
10903
10904
10905
10906 # Check for command to grab the raw symbol name followed by C symbol from nm.
10907 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10908 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10909 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912
10913 # These are sane defaults that work on at least a few old systems.
10914 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10915
10916 # Character class describing NM global symbol codes.
10917 symcode='[BCDEGRST]'
10918
10919 # Regexp to match symbols that can be accessed directly from C.
10920 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10921
10922 # Transform the above into a raw symbol and a C symbol.
10923 symxfrm='\1 \2\3 \3'
10924
10925 # Transform an extracted symbol line into a proper C declaration
10926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10927
10928 # Transform an extracted symbol line into symbol name and symbol address
10929 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'"
10930
10931 # Define system-specific variables.
10932 case $host_os in
10933 aix*)
10934   symcode='[BCDT]'
10935   ;;
10936 cygwin* | mingw* | pw32*)
10937   symcode='[ABCDGISTW]'
10938   ;;
10939 hpux*) # Its linker distinguishes data from code symbols
10940   if test "$host_cpu" = ia64; then
10941     symcode='[ABCDEGRST]'
10942   fi
10943   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10944   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'"
10945   ;;
10946 linux*)
10947   if test "$host_cpu" = ia64; then
10948     symcode='[ABCDGIRSTW]'
10949     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10950     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'"
10951   fi
10952   ;;
10953 irix* | nonstopux*)
10954   symcode='[BCDEGRST]'
10955   ;;
10956 osf*)
10957   symcode='[BCDEGQRST]'
10958   ;;
10959 solaris* | sysv5*)
10960   symcode='[BDRT]'
10961   ;;
10962 sysv4)
10963   symcode='[DFNSTU]'
10964   ;;
10965 esac
10966
10967 # Handle CRLF in mingw tool chain
10968 opt_cr=
10969 case $build_os in
10970 mingw*)
10971   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10972   ;;
10973 esac
10974
10975 # If we're using GNU nm, then use its standard symbol codes.
10976 case `$NM -V 2>&1` in
10977 *GNU* | *'with BFD'*)
10978   symcode='[ABCDGIRSTW]' ;;
10979 esac
10980
10981 # Try without a prefix undercore, then with it.
10982 for ac_symprfx in "" "_"; do
10983
10984   # Write the raw and C identifiers.
10985   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10986
10987   # Check to see that the pipe works correctly.
10988   pipe_works=no
10989
10990   rm -f conftest*
10991   cat > conftest.$ac_ext <<EOF
10992 #ifdef __cplusplus
10993 extern "C" {
10994 #endif
10995 char nm_test_var;
10996 void nm_test_func(){}
10997 #ifdef __cplusplus
10998 }
10999 #endif
11000 int main(){nm_test_var='a';nm_test_func();return(0);}
11001 EOF
11002
11003   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004   (eval $ac_compile) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; then
11008     # Now try to grab the symbols.
11009     nlist=conftest.nm
11010     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11011   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } && test -s "$nlist"; then
11015       # Try sorting and uniquifying the output.
11016       if sort "$nlist" | uniq > "$nlist"T; then
11017         mv -f "$nlist"T "$nlist"
11018       else
11019         rm -f "$nlist"T
11020       fi
11021
11022       # Make sure that we snagged all the symbols we need.
11023       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11024         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11025           cat <<EOF > conftest.$ac_ext
11026 #ifdef __cplusplus
11027 extern "C" {
11028 #endif
11029
11030 EOF
11031           # Now generate the symbol file.
11032           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11033
11034           cat <<EOF >> conftest.$ac_ext
11035 #if defined (__STDC__) && __STDC__
11036 # define lt_ptr_t void *
11037 #else
11038 # define lt_ptr_t char *
11039 # define const
11040 #endif
11041
11042 /* The mapping between symbol names and symbols. */
11043 const struct {
11044   const char *name;
11045   lt_ptr_t address;
11046 }
11047 lt_preloaded_symbols[] =
11048 {
11049 EOF
11050           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11051           cat <<\EOF >> conftest.$ac_ext
11052   {0, (lt_ptr_t) 0}
11053 };
11054
11055 #ifdef __cplusplus
11056 }
11057 #endif
11058 EOF
11059           # Now try linking the two files.
11060           mv conftest.$ac_objext conftstm.$ac_objext
11061           lt_save_LIBS="$LIBS"
11062           lt_save_CFLAGS="$CFLAGS"
11063           LIBS="conftstm.$ac_objext"
11064           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11065           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066   (eval $ac_link) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11070             pipe_works=yes
11071           fi
11072           LIBS="$lt_save_LIBS"
11073           CFLAGS="$lt_save_CFLAGS"
11074         else
11075           echo "cannot find nm_test_func in $nlist" >&5
11076         fi
11077       else
11078         echo "cannot find nm_test_var in $nlist" >&5
11079       fi
11080     else
11081       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11082     fi
11083   else
11084     echo "$progname: failed program was:" >&5
11085     cat conftest.$ac_ext >&5
11086   fi
11087   rm -f conftest* conftst*
11088
11089   # Do not use the global_symbol_pipe unless it works.
11090   if test "$pipe_works" = yes; then
11091     break
11092   else
11093     lt_cv_sys_global_symbol_pipe=
11094   fi
11095 done
11096
11097 fi
11098
11099 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11100   lt_cv_sys_global_symbol_to_cdecl=
11101 fi
11102 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11103   echo "$as_me:$LINENO: result: failed" >&5
11104 echo "${ECHO_T}failed" >&6
11105 else
11106   echo "$as_me:$LINENO: result: ok" >&5
11107 echo "${ECHO_T}ok" >&6
11108 fi
11109
11110 echo "$as_me:$LINENO: checking for objdir" >&5
11111 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11112 if test "${lt_cv_objdir+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   rm -f .libs 2>/dev/null
11116 mkdir .libs 2>/dev/null
11117 if test -d .libs; then
11118   lt_cv_objdir=.libs
11119 else
11120   # MS-DOS does not allow filenames that begin with a dot.
11121   lt_cv_objdir=_libs
11122 fi
11123 rmdir .libs 2>/dev/null
11124 fi
11125 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11126 echo "${ECHO_T}$lt_cv_objdir" >&6
11127 objdir=$lt_cv_objdir
11128
11129
11130
11131
11132
11133 case $host_os in
11134 aix3*)
11135   # AIX sometimes has problems with the GCC collect2 program.  For some
11136   # reason, if we set the COLLECT_NAMES environment variable, the problems
11137   # vanish in a puff of smoke.
11138   if test "X${COLLECT_NAMES+set}" != Xset; then
11139     COLLECT_NAMES=
11140     export COLLECT_NAMES
11141   fi
11142   ;;
11143 esac
11144
11145 # Sed substitution that helps us do robust quoting.  It backslashifies
11146 # metacharacters that are still active within double-quoted strings.
11147 Xsed='sed -e s/^X//'
11148 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11149
11150 # Same as above, but do not quote variable references.
11151 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11152
11153 # Sed substitution to delay expansion of an escaped shell variable in a
11154 # double_quote_subst'ed string.
11155 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11156
11157 # Sed substitution to avoid accidental globbing in evaled expressions
11158 no_glob_subst='s/\*/\\\*/g'
11159
11160 # Constants:
11161 rm="rm -f"
11162
11163 # Global variables:
11164 default_ofile=mklib
11165 can_build_shared=yes
11166
11167 # All known linkers require a `.a' archive for static linking (except M$VC,
11168 # which needs '.lib').
11169 libext=a
11170 ltmain="$ac_aux_dir/ltmain.sh"
11171 ofile="$default_ofile"
11172 with_gnu_ld="$lt_cv_prog_gnu_ld"
11173
11174 if test -n "$ac_tool_prefix"; then
11175   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11176 set dummy ${ac_tool_prefix}ar; ac_word=$2
11177 echo "$as_me:$LINENO: checking for $ac_word" >&5
11178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11179 if test "${ac_cv_prog_AR+set}" = set; then
11180   echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182   if test -n "$AR"; then
11183   ac_cv_prog_AR="$AR" # Let the user override the test.
11184 else
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11187 do
11188   IFS=$as_save_IFS
11189   test -z "$as_dir" && as_dir=.
11190   for ac_exec_ext in '' $ac_executable_extensions; do
11191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192     ac_cv_prog_AR="${ac_tool_prefix}ar"
11193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11194     break 2
11195   fi
11196 done
11197 done
11198
11199 fi
11200 fi
11201 AR=$ac_cv_prog_AR
11202 if test -n "$AR"; then
11203   echo "$as_me:$LINENO: result: $AR" >&5
11204 echo "${ECHO_T}$AR" >&6
11205 else
11206   echo "$as_me:$LINENO: result: no" >&5
11207 echo "${ECHO_T}no" >&6
11208 fi
11209
11210 fi
11211 if test -z "$ac_cv_prog_AR"; then
11212   ac_ct_AR=$AR
11213   # Extract the first word of "ar", so it can be a program name with args.
11214 set dummy ar; ac_word=$2
11215 echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   if test -n "$ac_ct_AR"; then
11221   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11222 else
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226   IFS=$as_save_IFS
11227   test -z "$as_dir" && as_dir=.
11228   for ac_exec_ext in '' $ac_executable_extensions; do
11229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230     ac_cv_prog_ac_ct_AR="ar"
11231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232     break 2
11233   fi
11234 done
11235 done
11236
11237   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11238 fi
11239 fi
11240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11241 if test -n "$ac_ct_AR"; then
11242   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11243 echo "${ECHO_T}$ac_ct_AR" >&6
11244 else
11245   echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6
11247 fi
11248
11249   AR=$ac_ct_AR
11250 else
11251   AR="$ac_cv_prog_AR"
11252 fi
11253
11254 if test -n "$ac_tool_prefix"; then
11255   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11257 echo "$as_me:$LINENO: checking for $ac_word" >&5
11258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11259 if test "${ac_cv_prog_RANLIB+set}" = set; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262   if test -n "$RANLIB"; then
11263   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11267 do
11268   IFS=$as_save_IFS
11269   test -z "$as_dir" && as_dir=.
11270   for ac_exec_ext in '' $ac_executable_extensions; do
11271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11274     break 2
11275   fi
11276 done
11277 done
11278
11279 fi
11280 fi
11281 RANLIB=$ac_cv_prog_RANLIB
11282 if test -n "$RANLIB"; then
11283   echo "$as_me:$LINENO: result: $RANLIB" >&5
11284 echo "${ECHO_T}$RANLIB" >&6
11285 else
11286   echo "$as_me:$LINENO: result: no" >&5
11287 echo "${ECHO_T}no" >&6
11288 fi
11289
11290 fi
11291 if test -z "$ac_cv_prog_RANLIB"; then
11292   ac_ct_RANLIB=$RANLIB
11293   # Extract the first word of "ranlib", so it can be a program name with args.
11294 set dummy ranlib; ac_word=$2
11295 echo "$as_me:$LINENO: checking for $ac_word" >&5
11296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11298   echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300   if test -n "$ac_ct_RANLIB"; then
11301   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11302 else
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11305 do
11306   IFS=$as_save_IFS
11307   test -z "$as_dir" && as_dir=.
11308   for ac_exec_ext in '' $ac_executable_extensions; do
11309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310     ac_cv_prog_ac_ct_RANLIB="ranlib"
11311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312     break 2
11313   fi
11314 done
11315 done
11316
11317   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11318 fi
11319 fi
11320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11321 if test -n "$ac_ct_RANLIB"; then
11322   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11323 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11324 else
11325   echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6
11327 fi
11328
11329   RANLIB=$ac_ct_RANLIB
11330 else
11331   RANLIB="$ac_cv_prog_RANLIB"
11332 fi
11333
11334 if test -n "$ac_tool_prefix"; then
11335   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11336 set dummy ${ac_tool_prefix}strip; ac_word=$2
11337 echo "$as_me:$LINENO: checking for $ac_word" >&5
11338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11339 if test "${ac_cv_prog_STRIP+set}" = set; then
11340   echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342   if test -n "$STRIP"; then
11343   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11344 else
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11347 do
11348   IFS=$as_save_IFS
11349   test -z "$as_dir" && as_dir=.
11350   for ac_exec_ext in '' $ac_executable_extensions; do
11351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11352     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11354     break 2
11355   fi
11356 done
11357 done
11358
11359 fi
11360 fi
11361 STRIP=$ac_cv_prog_STRIP
11362 if test -n "$STRIP"; then
11363   echo "$as_me:$LINENO: result: $STRIP" >&5
11364 echo "${ECHO_T}$STRIP" >&6
11365 else
11366   echo "$as_me:$LINENO: result: no" >&5
11367 echo "${ECHO_T}no" >&6
11368 fi
11369
11370 fi
11371 if test -z "$ac_cv_prog_STRIP"; then
11372   ac_ct_STRIP=$STRIP
11373   # Extract the first word of "strip", so it can be a program name with args.
11374 set dummy strip; ac_word=$2
11375 echo "$as_me:$LINENO: checking for $ac_word" >&5
11376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11378   echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380   if test -n "$ac_ct_STRIP"; then
11381   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11382 else
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388   for ac_exec_ext in '' $ac_executable_extensions; do
11389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390     ac_cv_prog_ac_ct_STRIP="strip"
11391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392     break 2
11393   fi
11394 done
11395 done
11396
11397   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11398 fi
11399 fi
11400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11401 if test -n "$ac_ct_STRIP"; then
11402   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11403 echo "${ECHO_T}$ac_ct_STRIP" >&6
11404 else
11405   echo "$as_me:$LINENO: result: no" >&5
11406 echo "${ECHO_T}no" >&6
11407 fi
11408
11409   STRIP=$ac_ct_STRIP
11410 else
11411   STRIP="$ac_cv_prog_STRIP"
11412 fi
11413
11414
11415 old_CC="$CC"
11416 old_CFLAGS="$CFLAGS"
11417
11418 # Set sane defaults for various variables
11419 test -z "$AR" && AR=ar
11420 test -z "$AR_FLAGS" && AR_FLAGS=cru
11421 test -z "$AS" && AS=as
11422 test -z "$CC" && CC=cc
11423 test -z "$LTCC" && LTCC=$CC
11424 test -z "$DLLTOOL" && DLLTOOL=dlltool
11425 test -z "$LD" && LD=ld
11426 test -z "$LN_S" && LN_S="ln -s"
11427 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11428 test -z "$NM" && NM=nm
11429 test -z "$SED" && SED=sed
11430 test -z "$OBJDUMP" && OBJDUMP=objdump
11431 test -z "$RANLIB" && RANLIB=:
11432 test -z "$STRIP" && STRIP=:
11433 test -z "$ac_objext" && ac_objext=o
11434
11435 # Determine commands to create old-style static archives.
11436 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11437 old_postinstall_cmds='chmod 644 $oldlib'
11438 old_postuninstall_cmds=
11439
11440 if test -n "$RANLIB"; then
11441   case $host_os in
11442   openbsd*)
11443     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11444     ;;
11445   *)
11446     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11447     ;;
11448   esac
11449   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11450 fi
11451
11452 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11453
11454 # Only perform the check for file, if the check method requires it
11455 case $deplibs_check_method in
11456 file_magic*)
11457   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11458     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11459 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11460 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463   case $MAGIC_CMD in
11464 [\\/*] |  ?:[\\/]*)
11465   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11466   ;;
11467 *)
11468   lt_save_MAGIC_CMD="$MAGIC_CMD"
11469   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11470   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11471   for ac_dir in $ac_dummy; do
11472     IFS="$lt_save_ifs"
11473     test -z "$ac_dir" && ac_dir=.
11474     if test -f $ac_dir/${ac_tool_prefix}file; then
11475       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11476       if test -n "$file_magic_test_file"; then
11477         case $deplibs_check_method in
11478         "file_magic "*)
11479           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11480           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11481           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11482             $EGREP "$file_magic_regex" > /dev/null; then
11483             :
11484           else
11485             cat <<EOF 1>&2
11486
11487 *** Warning: the command libtool uses to detect shared libraries,
11488 *** $file_magic_cmd, produces output that libtool cannot recognize.
11489 *** The result is that libtool may fail to recognize shared libraries
11490 *** as such.  This will affect the creation of libtool libraries that
11491 *** depend on shared libraries, but programs linked with such libtool
11492 *** libraries will work regardless of this problem.  Nevertheless, you
11493 *** may want to report the problem to your system manager and/or to
11494 *** bug-libtool@gnu.org
11495
11496 EOF
11497           fi ;;
11498         esac
11499       fi
11500       break
11501     fi
11502   done
11503   IFS="$lt_save_ifs"
11504   MAGIC_CMD="$lt_save_MAGIC_CMD"
11505   ;;
11506 esac
11507 fi
11508
11509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11510 if test -n "$MAGIC_CMD"; then
11511   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11512 echo "${ECHO_T}$MAGIC_CMD" >&6
11513 else
11514   echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6
11516 fi
11517
11518 if test -z "$lt_cv_path_MAGIC_CMD"; then
11519   if test -n "$ac_tool_prefix"; then
11520     echo "$as_me:$LINENO: checking for file" >&5
11521 echo $ECHO_N "checking for file... $ECHO_C" >&6
11522 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11523   echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525   case $MAGIC_CMD in
11526 [\\/*] |  ?:[\\/]*)
11527   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11528   ;;
11529 *)
11530   lt_save_MAGIC_CMD="$MAGIC_CMD"
11531   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11532   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11533   for ac_dir in $ac_dummy; do
11534     IFS="$lt_save_ifs"
11535     test -z "$ac_dir" && ac_dir=.
11536     if test -f $ac_dir/file; then
11537       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11538       if test -n "$file_magic_test_file"; then
11539         case $deplibs_check_method in
11540         "file_magic "*)
11541           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11542           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11543           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11544             $EGREP "$file_magic_regex" > /dev/null; then
11545             :
11546           else
11547             cat <<EOF 1>&2
11548
11549 *** Warning: the command libtool uses to detect shared libraries,
11550 *** $file_magic_cmd, produces output that libtool cannot recognize.
11551 *** The result is that libtool may fail to recognize shared libraries
11552 *** as such.  This will affect the creation of libtool libraries that
11553 *** depend on shared libraries, but programs linked with such libtool
11554 *** libraries will work regardless of this problem.  Nevertheless, you
11555 *** may want to report the problem to your system manager and/or to
11556 *** bug-libtool@gnu.org
11557
11558 EOF
11559           fi ;;
11560         esac
11561       fi
11562       break
11563     fi
11564   done
11565   IFS="$lt_save_ifs"
11566   MAGIC_CMD="$lt_save_MAGIC_CMD"
11567   ;;
11568 esac
11569 fi
11570
11571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11572 if test -n "$MAGIC_CMD"; then
11573   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11574 echo "${ECHO_T}$MAGIC_CMD" >&6
11575 else
11576   echo "$as_me:$LINENO: result: no" >&5
11577 echo "${ECHO_T}no" >&6
11578 fi
11579
11580   else
11581     MAGIC_CMD=:
11582   fi
11583 fi
11584
11585   fi
11586   ;;
11587 esac
11588
11589 enable_dlopen=yes
11590 enable_win32_dll=no
11591
11592 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11593 if test "${enable_libtool_lock+set}" = set; then
11594   enableval="$enable_libtool_lock"
11595
11596 fi;
11597 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11598
11599
11600 # Check whether --with-pic or --without-pic was given.
11601 if test "${with_pic+set}" = set; then
11602   withval="$with_pic"
11603   pic_mode="$withval"
11604 else
11605   pic_mode=default
11606 fi;
11607 test -z "$pic_mode" && pic_mode=default
11608
11609 # Use C for the default configuration in the libtool script
11610 tagname=
11611 lt_save_CC="$CC"
11612 ac_ext=c
11613 ac_cpp='$CPP $CPPFLAGS'
11614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11617
11618
11619 # Source file extension for C test sources.
11620 ac_ext=c
11621
11622 # Object file extension for compiled C test sources.
11623 objext=o
11624 objext=$objext
11625
11626 # Code to be used in simple compile tests
11627 lt_simple_compile_test_code="int some_variable = 0;\n"
11628
11629 # Code to be used in simple link tests
11630 lt_simple_link_test_code='int main(){return(0);}\n'
11631
11632
11633 # If no C compiler was specified, use CC.
11634 LTCC=${LTCC-"$CC"}
11635
11636 # Allow CC to be a program name with arguments.
11637 compiler=$CC
11638
11639
11640 #
11641 # Check for any special shared library compilation flags.
11642 #
11643 lt_prog_cc_shlib=
11644 if test "$GCC" = no; then
11645   case $host_os in
11646   sco3.2v5*)
11647     lt_prog_cc_shlib='-belf'
11648     ;;
11649   esac
11650 fi
11651 if test -n "$lt_prog_cc_shlib"; then
11652   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11653 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11654   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11655   else
11656     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11657 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11658     lt_cv_prog_cc_can_build_shared=no
11659   fi
11660 fi
11661
11662
11663 #
11664 # Check to make sure the static flag actually works.
11665 #
11666 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11667 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11668 if test "${lt_prog_compiler_static_works+set}" = set; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   lt_prog_compiler_static_works=no
11672    save_LDFLAGS="$LDFLAGS"
11673    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11674    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11675    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11676      # The compiler can only warn and ignore the option if not recognized
11677      # So say no if there are warnings
11678      if test -s conftest.err; then
11679        # Append any errors to the config.log.
11680        cat conftest.err 1>&5
11681      else
11682        lt_prog_compiler_static_works=yes
11683      fi
11684    fi
11685    $rm conftest*
11686    LDFLAGS="$save_LDFLAGS"
11687
11688 fi
11689 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11690 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11691
11692 if test x"$lt_prog_compiler_static_works" = xyes; then
11693     :
11694 else
11695     lt_prog_compiler_static=
11696 fi
11697
11698
11699
11700
11701 lt_prog_compiler_no_builtin_flag=
11702
11703 if test "$GCC" = yes; then
11704   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11705
11706
11707 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11708 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11709 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   lt_cv_prog_compiler_rtti_exceptions=no
11713   ac_outfile=conftest.$ac_objext
11714    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11715    lt_compiler_flag="-fno-rtti -fno-exceptions"
11716    # Insert the option either (1) after the last *FLAGS variable, or
11717    # (2) before a word containing "conftest.", or (3) at the end.
11718    # Note that $ac_compile itself does not contain backslashes and begins
11719    # with a dollar sign (not a hyphen), so the echo should work correctly.
11720    # The option is referenced via a variable to avoid confusing sed.
11721    lt_compile=`echo "$ac_compile" | $SED \
11722    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11723    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11724    -e 's:$: $lt_compiler_flag:'`
11725    (eval echo "\"\$as_me:11725: $lt_compile\"" >&5)
11726    (eval "$lt_compile" 2>conftest.err)
11727    ac_status=$?
11728    cat conftest.err >&5
11729    echo "$as_me:11729: \$? = $ac_status" >&5
11730    if (exit $ac_status) && test -s "$ac_outfile"; then
11731      # The compiler can only warn and ignore the option if not recognized
11732      # So say no if there are warnings
11733      if test ! -s conftest.err; then
11734        lt_cv_prog_compiler_rtti_exceptions=yes
11735      fi
11736    fi
11737    $rm conftest*
11738
11739 fi
11740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11741 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11742
11743 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11744     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11745 else
11746     :
11747 fi
11748
11749 fi
11750
11751 lt_prog_compiler_wl=
11752 lt_prog_compiler_pic=
11753 lt_prog_compiler_static=
11754
11755 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11756 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11757
11758   if test "$GCC" = yes; then
11759     lt_prog_compiler_wl='-Wl,'
11760     lt_prog_compiler_static='-static'
11761
11762     case $host_os in
11763       aix*)
11764       # All AIX code is PIC.
11765       if test "$host_cpu" = ia64; then
11766         # AIX 5 now supports IA64 processor
11767         lt_prog_compiler_static='-Bstatic'
11768       fi
11769       ;;
11770
11771     amigaos*)
11772       # FIXME: we need at least 68020 code to build shared libraries, but
11773       # adding the `-m68020' flag to GCC prevents building anything better,
11774       # like `-m68040'.
11775       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11776       ;;
11777
11778     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11779       # PIC is the default for these OSes.
11780       ;;
11781
11782     mingw* | pw32* | os2*)
11783       # This hack is so that the source file can tell whether it is being
11784       # built for inclusion in a dll (and should export symbols for example).
11785       lt_prog_compiler_pic='-DDLL_EXPORT'
11786       ;;
11787
11788     darwin* | rhapsody*)
11789       # PIC is the default on this platform
11790       # Common symbols not allowed in MH_DYLIB files
11791       lt_prog_compiler_pic='-fno-common'
11792       ;;
11793
11794     msdosdjgpp*)
11795       # Just because we use GCC doesn't mean we suddenly get shared libraries
11796       # on systems that don't support them.
11797       lt_prog_compiler_can_build_shared=no
11798       enable_shared=no
11799       ;;
11800
11801     sysv4*MP*)
11802       if test -d /usr/nec; then
11803         lt_prog_compiler_pic=-Kconform_pic
11804       fi
11805       ;;
11806
11807     hpux*)
11808       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11809       # not for PA HP-UX.
11810       case "$host_cpu" in
11811       hppa*64*|ia64*)
11812         # +Z the default
11813         ;;
11814       *)
11815         lt_prog_compiler_pic='-fPIC'
11816         ;;
11817       esac
11818       ;;
11819
11820     *)
11821       lt_prog_compiler_pic='-fPIC'
11822       ;;
11823     esac
11824   else
11825     # PORTME Check for flag to pass linker flags through the system compiler.
11826     case $host_os in
11827     aix*)
11828       lt_prog_compiler_wl='-Wl,'
11829       if test "$host_cpu" = ia64; then
11830         # AIX 5 now supports IA64 processor
11831         lt_prog_compiler_static='-Bstatic'
11832       else
11833         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11834       fi
11835       ;;
11836       darwin*)
11837         # PIC is the default on this platform
11838         # Common symbols not allowed in MH_DYLIB files
11839        case "$cc_basename" in
11840          xlc*)
11841          lt_prog_compiler_pic='-qnocommon'
11842          lt_prog_compiler_wl='-Wl,'
11843          ;;
11844        esac
11845        ;;
11846
11847     mingw* | pw32* | os2*)
11848       # This hack is so that the source file can tell whether it is being
11849       # built for inclusion in a dll (and should export symbols for example).
11850       lt_prog_compiler_pic='-DDLL_EXPORT'
11851       ;;
11852
11853     hpux9* | hpux10* | hpux11*)
11854       lt_prog_compiler_wl='-Wl,'
11855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11856       # not for PA HP-UX.
11857       case "$host_cpu" in
11858       hppa*64*|ia64*)
11859         # +Z the default
11860         ;;
11861       *)
11862         lt_prog_compiler_pic='+Z'
11863         ;;
11864       esac
11865       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11866       lt_prog_compiler_static='${wl}-a ${wl}archive'
11867       ;;
11868
11869     irix5* | irix6* | nonstopux*)
11870       lt_prog_compiler_wl='-Wl,'
11871       # PIC (with -KPIC) is the default.
11872       lt_prog_compiler_static='-non_shared'
11873       ;;
11874
11875     newsos6)
11876       lt_prog_compiler_pic='-KPIC'
11877       lt_prog_compiler_static='-Bstatic'
11878       ;;
11879
11880     linux*)
11881       case $CC in
11882       icc* | ecc*)
11883         lt_prog_compiler_wl='-Wl,'
11884         lt_prog_compiler_pic='-KPIC'
11885         lt_prog_compiler_static='-static'
11886         ;;
11887       ccc*)
11888         lt_prog_compiler_wl='-Wl,'
11889         # All Alpha code is PIC.
11890         lt_prog_compiler_static='-non_shared'
11891         ;;
11892       esac
11893       ;;
11894
11895     osf3* | osf4* | osf5*)
11896       lt_prog_compiler_wl='-Wl,'
11897       # All OSF/1 code is PIC.
11898       lt_prog_compiler_static='-non_shared'
11899       ;;
11900
11901     sco3.2v5*)
11902       lt_prog_compiler_pic='-Kpic'
11903       lt_prog_compiler_static='-dn'
11904       ;;
11905
11906     solaris*)
11907       lt_prog_compiler_wl='-Wl,'
11908       lt_prog_compiler_pic='-KPIC'
11909       lt_prog_compiler_static='-Bstatic'
11910       ;;
11911
11912     sunos4*)
11913       lt_prog_compiler_wl='-Qoption ld '
11914       lt_prog_compiler_pic='-PIC'
11915       lt_prog_compiler_static='-Bstatic'
11916       ;;
11917
11918     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11919       lt_prog_compiler_wl='-Wl,'
11920       lt_prog_compiler_pic='-KPIC'
11921       lt_prog_compiler_static='-Bstatic'
11922       ;;
11923
11924     sysv4*MP*)
11925       if test -d /usr/nec ;then
11926         lt_prog_compiler_pic='-Kconform_pic'
11927         lt_prog_compiler_static='-Bstatic'
11928       fi
11929       ;;
11930
11931     uts4*)
11932       lt_prog_compiler_pic='-pic'
11933       lt_prog_compiler_static='-Bstatic'
11934       ;;
11935
11936     *)
11937       lt_prog_compiler_can_build_shared=no
11938       ;;
11939     esac
11940   fi
11941
11942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11943 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11944
11945 #
11946 # Check to make sure the PIC flag actually works.
11947 #
11948 if test -n "$lt_prog_compiler_pic"; then
11949
11950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11952 if test "${lt_prog_compiler_pic_works+set}" = set; then
11953   echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955   lt_prog_compiler_pic_works=no
11956   ac_outfile=conftest.$ac_objext
11957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11958    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11959    # Insert the option either (1) after the last *FLAGS variable, or
11960    # (2) before a word containing "conftest.", or (3) at the end.
11961    # Note that $ac_compile itself does not contain backslashes and begins
11962    # with a dollar sign (not a hyphen), so the echo should work correctly.
11963    # The option is referenced via a variable to avoid confusing sed.
11964    lt_compile=`echo "$ac_compile" | $SED \
11965    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11967    -e 's:$: $lt_compiler_flag:'`
11968    (eval echo "\"\$as_me:11968: $lt_compile\"" >&5)
11969    (eval "$lt_compile" 2>conftest.err)
11970    ac_status=$?
11971    cat conftest.err >&5
11972    echo "$as_me:11972: \$? = $ac_status" >&5
11973    if (exit $ac_status) && test -s "$ac_outfile"; then
11974      # The compiler can only warn and ignore the option if not recognized
11975      # So say no if there are warnings
11976      if test ! -s conftest.err; then
11977        lt_prog_compiler_pic_works=yes
11978      fi
11979    fi
11980    $rm conftest*
11981
11982 fi
11983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11984 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11985
11986 if test x"$lt_prog_compiler_pic_works" = xyes; then
11987     case $lt_prog_compiler_pic in
11988      "" | " "*) ;;
11989      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11990      esac
11991 else
11992     lt_prog_compiler_pic=
11993      lt_prog_compiler_can_build_shared=no
11994 fi
11995
11996 fi
11997 case "$host_os" in
11998   # For platforms which do not support PIC, -DPIC is meaningless:
11999   *djgpp*)
12000     lt_prog_compiler_pic=
12001     ;;
12002   *)
12003     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12004     ;;
12005 esac
12006
12007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12009 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12010   echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012   lt_cv_prog_compiler_c_o=no
12013    $rm -r conftest 2>/dev/null
12014    mkdir conftest
12015    cd conftest
12016    mkdir out
12017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12018
12019    lt_compiler_flag="-o out/conftest2.$ac_objext"
12020    # Insert the option either (1) after the last *FLAGS variable, or
12021    # (2) before a word containing "conftest.", or (3) at the end.
12022    # Note that $ac_compile itself does not contain backslashes and begins
12023    # with a dollar sign (not a hyphen), so the echo should work correctly.
12024    lt_compile=`echo "$ac_compile" | $SED \
12025    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12027    -e 's:$: $lt_compiler_flag:'`
12028    (eval echo "\"\$as_me:12028: $lt_compile\"" >&5)
12029    (eval "$lt_compile" 2>out/conftest.err)
12030    ac_status=$?
12031    cat out/conftest.err >&5
12032    echo "$as_me:12032: \$? = $ac_status" >&5
12033    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12034    then
12035      # The compiler can only warn and ignore the option if not recognized
12036      # So say no if there are warnings
12037      if test ! -s out/conftest.err; then
12038        lt_cv_prog_compiler_c_o=yes
12039      fi
12040    fi
12041    chmod u+w .
12042    $rm conftest*
12043    # SGI C++ compiler will create directory out/ii_files/ for
12044    # template instantiation
12045    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12046    $rm out/* && rmdir out
12047    cd ..
12048    rmdir conftest
12049    $rm conftest*
12050
12051 fi
12052 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12054
12055
12056 hard_links="nottested"
12057 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12058   # do not overwrite the value of need_locks provided by the user
12059   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12061   hard_links=yes
12062   $rm conftest*
12063   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12064   touch conftest.a
12065   ln conftest.a conftest.b 2>&5 || hard_links=no
12066   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12067   echo "$as_me:$LINENO: result: $hard_links" >&5
12068 echo "${ECHO_T}$hard_links" >&6
12069   if test "$hard_links" = no; then
12070     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12072     need_locks=warn
12073   fi
12074 else
12075   need_locks=no
12076 fi
12077
12078 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12080
12081   runpath_var=
12082   allow_undefined_flag=
12083   enable_shared_with_static_runtimes=no
12084   archive_cmds=
12085   archive_expsym_cmds=
12086   old_archive_From_new_cmds=
12087   old_archive_from_expsyms_cmds=
12088   export_dynamic_flag_spec=
12089   whole_archive_flag_spec=
12090   thread_safe_flag_spec=
12091   hardcode_libdir_flag_spec=
12092   hardcode_libdir_flag_spec_ld=
12093   hardcode_libdir_separator=
12094   hardcode_direct=no
12095   hardcode_minus_L=no
12096   hardcode_shlibpath_var=unsupported
12097   link_all_deplibs=unknown
12098   hardcode_automatic=no
12099   module_cmds=
12100   module_expsym_cmds=
12101   always_export_symbols=no
12102   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12103   # include_expsyms should be a list of space-separated symbols to be *always*
12104   # included in the symbol list
12105   include_expsyms=
12106   # exclude_expsyms can be an extended regexp of symbols to exclude
12107   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12108   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12109   # as well as any symbol that contains `d'.
12110   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12111   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12112   # platforms (ab)use it in PIC code, but their linkers get confused if
12113   # the symbol is explicitly referenced.  Since portable code cannot
12114   # rely on this symbol name, it's probably fine to never include it in
12115   # preloaded symbol tables.
12116   extract_expsyms_cmds=
12117
12118   case $host_os in
12119   cygwin* | mingw* | pw32*)
12120     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12121     # When not using gcc, we currently assume that we are using
12122     # Microsoft Visual C++.
12123     if test "$GCC" != yes; then
12124       with_gnu_ld=no
12125     fi
12126     ;;
12127   openbsd*)
12128     with_gnu_ld=no
12129     ;;
12130   esac
12131
12132   ld_shlibs=yes
12133   if test "$with_gnu_ld" = yes; then
12134     # If archive_cmds runs LD, not CC, wlarc should be empty
12135     wlarc='${wl}'
12136
12137     # See if GNU ld supports shared libraries.
12138     case $host_os in
12139     aix3* | aix4* | aix5*)
12140       # On AIX/PPC, the GNU linker is very broken
12141       if test "$host_cpu" != ia64; then
12142         ld_shlibs=no
12143         cat <<EOF 1>&2
12144
12145 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12146 *** to be unable to reliably create shared libraries on AIX.
12147 *** Therefore, libtool is disabling shared libraries support.  If you
12148 *** really care for shared libraries, you may want to modify your PATH
12149 *** so that a non-GNU linker is found, and then restart.
12150
12151 EOF
12152       fi
12153       ;;
12154
12155     amigaos*)
12156       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)'
12157       hardcode_libdir_flag_spec='-L$libdir'
12158       hardcode_minus_L=yes
12159
12160       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12161       # that the semantics of dynamic libraries on AmigaOS, at least up
12162       # to version 4, is to share data among multiple programs linked
12163       # with the same dynamic library.  Since this doesn't match the
12164       # behavior of shared libraries on other platforms, we can't use
12165       # them.
12166       ld_shlibs=no
12167       ;;
12168
12169     beos*)
12170       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12171         allow_undefined_flag=unsupported
12172         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12173         # support --undefined.  This deserves some investigation.  FIXME
12174         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12175       else
12176         ld_shlibs=no
12177       fi
12178       ;;
12179
12180     cygwin* | mingw* | pw32*)
12181       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12182       # as there is no search path for DLLs.
12183       hardcode_libdir_flag_spec='-L$libdir'
12184       allow_undefined_flag=unsupported
12185       always_export_symbols=no
12186       enable_shared_with_static_runtimes=yes
12187       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12188
12189       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12190         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12191         # If the export-symbols file already is a .def file (1st line
12192         # is EXPORTS), use it as is; otherwise, prepend...
12193         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12194           cp $export_symbols $output_objdir/$soname.def;
12195         else
12196           echo EXPORTS > $output_objdir/$soname.def;
12197           cat $export_symbols >> $output_objdir/$soname.def;
12198         fi~
12199         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12200       else
12201         ld_shlibs=no
12202       fi
12203       ;;
12204
12205     netbsd*)
12206       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12207         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12208         wlarc=
12209       else
12210         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12212       fi
12213       ;;
12214
12215     solaris* | sysv5*)
12216       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12217         ld_shlibs=no
12218         cat <<EOF 1>&2
12219
12220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12221 *** create shared libraries on Solaris systems.  Therefore, libtool
12222 *** is disabling shared libraries support.  We urge you to upgrade GNU
12223 *** binutils to release 2.9.1 or newer.  Another option is to modify
12224 *** your PATH or compiler configuration so that the native linker is
12225 *** used, and then restart.
12226
12227 EOF
12228       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12229         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12230         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12231       else
12232         ld_shlibs=no
12233       fi
12234       ;;
12235
12236     sunos4*)
12237       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12238       wlarc=
12239       hardcode_direct=yes
12240       hardcode_shlibpath_var=no
12241       ;;
12242
12243   linux*)
12244     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12245         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246         archive_cmds="$tmp_archive_cmds"
12247       supports_anon_versioning=no
12248       case `$LD -v 2>/dev/null` in
12249         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12250         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12251         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12252         *\ 2.11.*) ;; # other 2.11 versions
12253         *) supports_anon_versioning=yes ;;
12254       esac
12255       if test $supports_anon_versioning = yes; then
12256         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12258 $echo "local: *; };" >> $output_objdir/$libname.ver~
12259         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12260       else
12261         archive_expsym_cmds="$tmp_archive_cmds"
12262       fi
12263     else
12264       ld_shlibs=no
12265     fi
12266     ;;
12267
12268     *)
12269       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12270         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12271         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12272       else
12273         ld_shlibs=no
12274       fi
12275       ;;
12276     esac
12277
12278     if test "$ld_shlibs" = yes; then
12279       runpath_var=LD_RUN_PATH
12280       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12281       export_dynamic_flag_spec='${wl}--export-dynamic'
12282       # ancient GNU ld didn't support --whole-archive et. al.
12283       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12284         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12285       else
12286         whole_archive_flag_spec=
12287       fi
12288     fi
12289   else
12290     # PORTME fill in a description of your system's linker (not GNU ld)
12291     case $host_os in
12292     aix3*)
12293       allow_undefined_flag=unsupported
12294       always_export_symbols=yes
12295       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'
12296       # Note: this linker hardcodes the directories in LIBPATH if there
12297       # are no directories specified by -L.
12298       hardcode_minus_L=yes
12299       if test "$GCC" = yes && test -z "$link_static_flag"; then
12300         # Neither direct hardcoding nor static linking is supported with a
12301         # broken collect2.
12302         hardcode_direct=unsupported
12303       fi
12304       ;;
12305
12306     aix4* | aix5*)
12307       if test "$host_cpu" = ia64; then
12308         # On IA64, the linker does run time linking by default, so we don't
12309         # have to do anything special.
12310         aix_use_runtimelinking=no
12311         exp_sym_flag='-Bexport'
12312         no_entry_flag=""
12313       else
12314         # If we're using GNU nm, then we don't want the "-C" option.
12315         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12316         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12317           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'
12318         else
12319           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'
12320         fi
12321         aix_use_runtimelinking=no
12322
12323         # Test if we are trying to use run time linking or normal
12324         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12325         # need to do runtime linking.
12326         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12327           for ld_flag in $LDFLAGS; do
12328           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12329             aix_use_runtimelinking=yes
12330             break
12331           fi
12332           done
12333         esac
12334
12335         exp_sym_flag='-bexport'
12336         no_entry_flag='-bnoentry'
12337       fi
12338
12339       # When large executables or shared objects are built, AIX ld can
12340       # have problems creating the table of contents.  If linking a library
12341       # or program results in "error TOC overflow" add -mminimal-toc to
12342       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12343       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12344
12345       archive_cmds=''
12346       hardcode_direct=yes
12347       hardcode_libdir_separator=':'
12348       link_all_deplibs=yes
12349
12350       if test "$GCC" = yes; then
12351         case $host_os in aix4.012|aix4.012.*)
12352         # We only want to do this on AIX 4.2 and lower, the check
12353         # below for broken collect2 doesn't work under 4.3+
12354           collect2name=`${CC} -print-prog-name=collect2`
12355           if test -f "$collect2name" && \
12356            strings "$collect2name" | grep resolve_lib_name >/dev/null
12357           then
12358           # We have reworked collect2
12359           hardcode_direct=yes
12360           else
12361           # We have old collect2
12362           hardcode_direct=unsupported
12363           # It fails to find uninstalled libraries when the uninstalled
12364           # path is not listed in the libpath.  Setting hardcode_minus_L
12365           # to unsupported forces relinking
12366           hardcode_minus_L=yes
12367           hardcode_libdir_flag_spec='-L$libdir'
12368           hardcode_libdir_separator=
12369           fi
12370         esac
12371         shared_flag='-shared'
12372       else
12373         # not using gcc
12374         if test "$host_cpu" = ia64; then
12375         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12376         # chokes on -Wl,-G. The following line is correct:
12377           shared_flag='-G'
12378         else
12379         if test "$aix_use_runtimelinking" = yes; then
12380             shared_flag='${wl}-G'
12381           else
12382             shared_flag='${wl}-bM:SRE'
12383         fi
12384         fi
12385       fi
12386
12387       # It seems that -bexpall does not export symbols beginning with
12388       # underscore (_), so it is better to generate a list of symbols to export.
12389       always_export_symbols=yes
12390       if test "$aix_use_runtimelinking" = yes; then
12391         # Warning - without using the other runtime loading flags (-brtl),
12392         # -berok will link without error, but may produce a broken library.
12393         allow_undefined_flag='-berok'
12394        # Determine the default libpath from the value encoded in an empty executable.
12395        cat >conftest.$ac_ext <<_ACEOF
12396 /* confdefs.h.  */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h.  */
12401
12402 int
12403 main ()
12404 {
12405
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412   (eval $ac_link) 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -z "$ac_c_werror_flag"
12420                          || test ! -s conftest.err'
12421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422   (eval $ac_try) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; } &&
12426          { ac_try='test -s conftest$ac_exeext'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432
12433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12434 }'`
12435 # Check for a 64-bit object if we didn't find anything.
12436 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; }
12437 }'`; fi
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 fi
12443 rm -f conftest.err conftest.$ac_objext \
12444       conftest$ac_exeext conftest.$ac_ext
12445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12446
12447        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12448         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"
12449        else
12450         if test "$host_cpu" = ia64; then
12451           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12452           allow_undefined_flag="-z nodefs"
12453           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"
12454         else
12455          # Determine the default libpath from the value encoded in an empty executable.
12456          cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462
12463 int
12464 main ()
12465 {
12466
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 rm -f conftest.$ac_objext conftest$ac_exeext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473   (eval $ac_link) 2>conftest.er1
12474   ac_status=$?
12475   grep -v '^ *+' conftest.er1 >conftest.err
12476   rm -f conftest.er1
12477   cat conftest.err >&5
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } &&
12480          { ac_try='test -z "$ac_c_werror_flag"
12481                          || test ! -s conftest.err'
12482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483   (eval $ac_try) 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; } &&
12487          { ac_try='test -s conftest$ac_exeext'
12488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489   (eval $ac_try) 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); }; }; then
12493
12494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12495 }'`
12496 # Check for a 64-bit object if we didn't find anything.
12497 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; }
12498 }'`; fi
12499 else
12500   echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12502
12503 fi
12504 rm -f conftest.err conftest.$ac_objext \
12505       conftest$ac_exeext conftest.$ac_ext
12506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12507
12508          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12509           # Warning - without using the other run time loading flags,
12510           # -berok will link without error, but may produce a broken library.
12511           no_undefined_flag=' ${wl}-bernotok'
12512           allow_undefined_flag=' ${wl}-berok'
12513           # -bexpall does not export symbols beginning with underscore (_)
12514           always_export_symbols=yes
12515           # Exported symbols can be pulled into shared objects from archives
12516           whole_archive_flag_spec=' '
12517           archive_cmds_need_lc=yes
12518           # This is similar to how AIX traditionally builds it's shared libraries.
12519           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'
12520         fi
12521       fi
12522       ;;
12523
12524     amigaos*)
12525       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)'
12526       hardcode_libdir_flag_spec='-L$libdir'
12527       hardcode_minus_L=yes
12528       # see comment about different semantics on the GNU ld section
12529       ld_shlibs=no
12530       ;;
12531
12532     bsdi[45]*)
12533       export_dynamic_flag_spec=-rdynamic
12534       ;;
12535
12536     cygwin* | mingw* | pw32*)
12537       # When not using gcc, we currently assume that we are using
12538       # Microsoft Visual C++.
12539       # hardcode_libdir_flag_spec is actually meaningless, as there is
12540       # no search path for DLLs.
12541       hardcode_libdir_flag_spec=' '
12542       allow_undefined_flag=unsupported
12543       # Tell ltmain to make .lib files, not .a files.
12544       libext=lib
12545       # Tell ltmain to make .dll files, not .so files.
12546       shrext_cmds=".dll"
12547       # FIXME: Setting linknames here is a bad hack.
12548       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12549       # The linker will automatically build a .lib file if we build a DLL.
12550       old_archive_From_new_cmds='true'
12551       # FIXME: Should let the user specify the lib program.
12552       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12553       fix_srcfile_path='`cygpath -w "$srcfile"`'
12554       enable_shared_with_static_runtimes=yes
12555       ;;
12556
12557     darwin* | rhapsody*)
12558       case "$host_os" in
12559         rhapsody* | darwin1.[012])
12560          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12561          ;;
12562        *) # Darwin 1.3 on
12563          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12564            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12565          else
12566            case ${MACOSX_DEPLOYMENT_TARGET} in
12567              10.[012])
12568                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12569                ;;
12570              10.*)
12571                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12572                ;;
12573            esac
12574          fi
12575          ;;
12576       esac
12577       archive_cmds_need_lc=no
12578       hardcode_direct=no
12579       hardcode_automatic=yes
12580       hardcode_shlibpath_var=unsupported
12581       whole_archive_flag_spec=''
12582       link_all_deplibs=yes
12583     if test "$GCC" = yes ; then
12584         output_verbose_link_cmd='echo'
12585         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12586       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12587       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12588       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}'
12589       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}'
12590     else
12591       case "$cc_basename" in
12592         xlc*)
12593          output_verbose_link_cmd='echo'
12594          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12595          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12596           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12597          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}'
12598           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}'
12599           ;;
12600        *)
12601          ld_shlibs=no
12602           ;;
12603       esac
12604     fi
12605       ;;
12606
12607     dgux*)
12608       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12609       hardcode_libdir_flag_spec='-L$libdir'
12610       hardcode_shlibpath_var=no
12611       ;;
12612
12613     freebsd1*)
12614       ld_shlibs=no
12615       ;;
12616
12617     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12618     # support.  Future versions do this automatically, but an explicit c++rt0.o
12619     # does not break anything, and helps significantly (at the cost of a little
12620     # extra space).
12621     freebsd2.2*)
12622       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12623       hardcode_libdir_flag_spec='-R$libdir'
12624       hardcode_direct=yes
12625       hardcode_shlibpath_var=no
12626       ;;
12627
12628     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12629     freebsd2*)
12630       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12631       hardcode_direct=yes
12632       hardcode_minus_L=yes
12633       hardcode_shlibpath_var=no
12634       ;;
12635
12636     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12637     freebsd* | kfreebsd*-gnu)
12638       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12639       hardcode_libdir_flag_spec='-R$libdir'
12640       hardcode_direct=yes
12641       hardcode_shlibpath_var=no
12642       ;;
12643
12644     hpux9*)
12645       if test "$GCC" = yes; then
12646         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'
12647       else
12648         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'
12649       fi
12650       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12651       hardcode_libdir_separator=:
12652       hardcode_direct=yes
12653
12654       # hardcode_minus_L: Not really in the search PATH,
12655       # but as the default location of the library.
12656       hardcode_minus_L=yes
12657       export_dynamic_flag_spec='${wl}-E'
12658       ;;
12659
12660     hpux10* | hpux11*)
12661       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12662         case "$host_cpu" in
12663         hppa*64*|ia64*)
12664           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12665           ;;
12666         *)
12667           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12668           ;;
12669         esac
12670       else
12671         case "$host_cpu" in
12672         hppa*64*|ia64*)
12673           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12674           ;;
12675         *)
12676           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12677           ;;
12678         esac
12679       fi
12680       if test "$with_gnu_ld" = no; then
12681         case "$host_cpu" in
12682         hppa*64*)
12683           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12684           hardcode_libdir_flag_spec_ld='+b $libdir'
12685           hardcode_libdir_separator=:
12686           hardcode_direct=no
12687           hardcode_shlibpath_var=no
12688           ;;
12689         ia64*)
12690           hardcode_libdir_flag_spec='-L$libdir'
12691           hardcode_direct=no
12692           hardcode_shlibpath_var=no
12693
12694           # hardcode_minus_L: Not really in the search PATH,
12695           # but as the default location of the library.
12696           hardcode_minus_L=yes
12697           ;;
12698         *)
12699           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12700           hardcode_libdir_separator=:
12701           hardcode_direct=yes
12702           export_dynamic_flag_spec='${wl}-E'
12703
12704           # hardcode_minus_L: Not really in the search PATH,
12705           # but as the default location of the library.
12706           hardcode_minus_L=yes
12707           ;;
12708         esac
12709       fi
12710       ;;
12711
12712     irix5* | irix6* | nonstopux*)
12713       if test "$GCC" = yes; then
12714         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'
12715       else
12716         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'
12717         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12718       fi
12719       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12720       hardcode_libdir_separator=:
12721       link_all_deplibs=yes
12722       ;;
12723
12724     netbsd*)
12725       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12726         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12727       else
12728         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12729       fi
12730       hardcode_libdir_flag_spec='-R$libdir'
12731       hardcode_direct=yes
12732       hardcode_shlibpath_var=no
12733       ;;
12734
12735     newsos6)
12736       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12737       hardcode_direct=yes
12738       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12739       hardcode_libdir_separator=:
12740       hardcode_shlibpath_var=no
12741       ;;
12742
12743     openbsd*)
12744       hardcode_direct=yes
12745       hardcode_shlibpath_var=no
12746       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12747         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12748         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12749         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12750         export_dynamic_flag_spec='${wl}-E'
12751       else
12752        case $host_os in
12753          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12754            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12755            hardcode_libdir_flag_spec='-R$libdir'
12756            ;;
12757          *)
12758            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12759            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12760            ;;
12761        esac
12762       fi
12763       ;;
12764
12765     os2*)
12766       hardcode_libdir_flag_spec='-L$libdir'
12767       hardcode_minus_L=yes
12768       allow_undefined_flag=unsupported
12769       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'
12770       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12771       ;;
12772
12773     osf3*)
12774       if test "$GCC" = yes; then
12775         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12776         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'
12777       else
12778         allow_undefined_flag=' -expect_unresolved \*'
12779         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'
12780       fi
12781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12782       hardcode_libdir_separator=:
12783       ;;
12784
12785     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12786       if test "$GCC" = yes; then
12787         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12788         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'
12789         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12790       else
12791         allow_undefined_flag=' -expect_unresolved \*'
12792         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'
12793         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12794         $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'
12795
12796         # Both c and cxx compiler support -rpath directly
12797         hardcode_libdir_flag_spec='-rpath $libdir'
12798       fi
12799       hardcode_libdir_separator=:
12800       ;;
12801
12802     sco3.2v5*)
12803       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12804       hardcode_shlibpath_var=no
12805       export_dynamic_flag_spec='${wl}-Bexport'
12806       runpath_var=LD_RUN_PATH
12807       hardcode_runpath_var=yes
12808       ;;
12809
12810     solaris*)
12811       no_undefined_flag=' -z text'
12812       if test "$GCC" = yes; then
12813         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12814         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12815           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12816       else
12817         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12818         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12819         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12820       fi
12821       hardcode_libdir_flag_spec='-R$libdir'
12822       hardcode_shlibpath_var=no
12823       case $host_os in
12824       solaris2.[0-5] | solaris2.[0-5].*) ;;
12825       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12826         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12827       esac
12828       link_all_deplibs=yes
12829       ;;
12830
12831     sunos4*)
12832       if test "x$host_vendor" = xsequent; then
12833         # Use $CC to link under sequent, because it throws in some extra .o
12834         # files that make .init and .fini sections work.
12835         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12836       else
12837         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12838       fi
12839       hardcode_libdir_flag_spec='-L$libdir'
12840       hardcode_direct=yes
12841       hardcode_minus_L=yes
12842       hardcode_shlibpath_var=no
12843       ;;
12844
12845     sysv4)
12846       case $host_vendor in
12847         sni)
12848           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12849           hardcode_direct=yes # is this really true???
12850         ;;
12851         siemens)
12852           ## LD is ld it makes a PLAMLIB
12853           ## CC just makes a GrossModule.
12854           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12855           reload_cmds='$CC -r -o $output$reload_objs'
12856           hardcode_direct=no
12857         ;;
12858         motorola)
12859           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12860           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12861         ;;
12862       esac
12863       runpath_var='LD_RUN_PATH'
12864       hardcode_shlibpath_var=no
12865       ;;
12866
12867     sysv4.3*)
12868       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12869       hardcode_shlibpath_var=no
12870       export_dynamic_flag_spec='-Bexport'
12871       ;;
12872
12873     sysv4*MP*)
12874       if test -d /usr/nec; then
12875         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12876         hardcode_shlibpath_var=no
12877         runpath_var=LD_RUN_PATH
12878         hardcode_runpath_var=yes
12879         ld_shlibs=yes
12880       fi
12881       ;;
12882
12883     sysv4.2uw2*)
12884       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12885       hardcode_direct=yes
12886       hardcode_minus_L=no
12887       hardcode_shlibpath_var=no
12888       hardcode_runpath_var=yes
12889       runpath_var=LD_RUN_PATH
12890       ;;
12891
12892    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12893       no_undefined_flag='${wl}-z ${wl}text'
12894       if test "$GCC" = yes; then
12895         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12896       else
12897         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12898       fi
12899       runpath_var='LD_RUN_PATH'
12900       hardcode_shlibpath_var=no
12901       ;;
12902
12903     sysv5*)
12904       no_undefined_flag=' -z text'
12905       # $CC -shared without GNU ld will not create a library from C++
12906       # object files and a static libstdc++, better avoid it by now
12907       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12908       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12909                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12910       hardcode_libdir_flag_spec=
12911       hardcode_shlibpath_var=no
12912       runpath_var='LD_RUN_PATH'
12913       ;;
12914
12915     uts4*)
12916       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917       hardcode_libdir_flag_spec='-L$libdir'
12918       hardcode_shlibpath_var=no
12919       ;;
12920
12921     *)
12922       ld_shlibs=no
12923       ;;
12924     esac
12925   fi
12926
12927 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12928 echo "${ECHO_T}$ld_shlibs" >&6
12929 test "$ld_shlibs" = no && can_build_shared=no
12930
12931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12932 if test "$GCC" = yes; then
12933   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12934 fi
12935
12936 #
12937 # Do we need to explicitly link libc?
12938 #
12939 case "x$archive_cmds_need_lc" in
12940 x|xyes)
12941   # Assume -lc should be added
12942   archive_cmds_need_lc=yes
12943
12944   if test "$enable_shared" = yes && test "$GCC" = yes; then
12945     case $archive_cmds in
12946     *'~'*)
12947       # FIXME: we may have to deal with multi-command sequences.
12948       ;;
12949     '$CC '*)
12950       # Test whether the compiler implicitly links with -lc since on some
12951       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12952       # to ld, don't add -lc before -lgcc.
12953       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12955       $rm conftest*
12956       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12957
12958       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959   (eval $ac_compile) 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } 2>conftest.err; then
12963         soname=conftest
12964         lib=conftest
12965         libobjs=conftest.$ac_objext
12966         deplibs=
12967         wl=$lt_prog_compiler_wl
12968         compiler_flags=-v
12969         linker_flags=-v
12970         verstring=
12971         output_objdir=.
12972         libname=conftest
12973         lt_save_allow_undefined_flag=$allow_undefined_flag
12974         allow_undefined_flag=
12975         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12976   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }
12980         then
12981           archive_cmds_need_lc=no
12982         else
12983           archive_cmds_need_lc=yes
12984         fi
12985         allow_undefined_flag=$lt_save_allow_undefined_flag
12986       else
12987         cat conftest.err 1>&5
12988       fi
12989       $rm conftest*
12990       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12991 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12992       ;;
12993     esac
12994   fi
12995   ;;
12996 esac
12997
12998 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12999 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13000 library_names_spec=
13001 libname_spec='lib$name'
13002 soname_spec=
13003 shrext_cmds=".so"
13004 postinstall_cmds=
13005 postuninstall_cmds=
13006 finish_cmds=
13007 finish_eval=
13008 shlibpath_var=
13009 shlibpath_overrides_runpath=unknown
13010 version_type=none
13011 dynamic_linker="$host_os ld.so"
13012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13013 if test "$GCC" = yes; then
13014   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13015   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13016     # if the path contains ";" then we assume it to be the separator
13017     # otherwise default to the standard path separator (i.e. ":") - it is
13018     # assumed that no part of a normal pathname contains ";" but that should
13019     # okay in the real world where ";" in dirpaths is itself problematic.
13020     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13021   else
13022     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13023   fi
13024 else
13025   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13026 fi
13027 need_lib_prefix=unknown
13028 hardcode_into_libs=no
13029
13030 # when you set need_version to no, make sure it does not cause -set_version
13031 # flags to be left without arguments
13032 need_version=unknown
13033
13034 case $host_os in
13035 aix3*)
13036   version_type=linux
13037   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13038   shlibpath_var=LIBPATH
13039
13040   # AIX 3 has no versioning support, so we append a major version to the name.
13041   soname_spec='${libname}${release}${shared_ext}$major'
13042   ;;
13043
13044 aix4* | aix5*)
13045   version_type=linux
13046   need_lib_prefix=no
13047   need_version=no
13048   hardcode_into_libs=yes
13049   if test "$host_cpu" = ia64; then
13050     # AIX 5 supports IA64
13051     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13052     shlibpath_var=LD_LIBRARY_PATH
13053   else
13054     # With GCC up to 2.95.x, collect2 would create an import file
13055     # for dependence libraries.  The import file would start with
13056     # the line `#! .'.  This would cause the generated library to
13057     # depend on `.', always an invalid library.  This was fixed in
13058     # development snapshots of GCC prior to 3.0.
13059     case $host_os in
13060       aix4 | aix4.[01] | aix4.[01].*)
13061       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13062            echo ' yes '
13063            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13064         :
13065       else
13066         can_build_shared=no
13067       fi
13068       ;;
13069     esac
13070     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13071     # soname into executable. Probably we can add versioning support to
13072     # collect2, so additional links can be useful in future.
13073     if test "$aix_use_runtimelinking" = yes; then
13074       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13075       # instead of lib<name>.a to let people know that these are not
13076       # typical AIX shared libraries.
13077       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078     else
13079       # We preserve .a as extension for shared libraries through AIX4.2
13080       # and later when we are not doing run time linking.
13081       library_names_spec='${libname}${release}.a $libname.a'
13082       soname_spec='${libname}${release}${shared_ext}$major'
13083     fi
13084     shlibpath_var=LIBPATH
13085   fi
13086   ;;
13087
13088 amigaos*)
13089   library_names_spec='$libname.ixlibrary $libname.a'
13090   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13091   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'
13092   ;;
13093
13094 beos*)
13095   library_names_spec='${libname}${shared_ext}'
13096   dynamic_linker="$host_os ld.so"
13097   shlibpath_var=LIBRARY_PATH
13098   ;;
13099
13100 bsdi[45]*)
13101   version_type=linux
13102   need_version=no
13103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104   soname_spec='${libname}${release}${shared_ext}$major'
13105   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13106   shlibpath_var=LD_LIBRARY_PATH
13107   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13108   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13109   # the default ld.so.conf also contains /usr/contrib/lib and
13110   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13111   # libtool to hard-code these into programs
13112   ;;
13113
13114 cygwin* | mingw* | pw32*)
13115   version_type=windows
13116   shrext_cmds=".dll"
13117   need_version=no
13118   need_lib_prefix=no
13119
13120   case $GCC,$host_os in
13121   yes,cygwin* | yes,mingw* | yes,pw32*)
13122     library_names_spec='$libname.dll.a'
13123     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13124     postinstall_cmds='base_file=`basename \${file}`~
13125       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13126       dldir=$destdir/`dirname \$dlpath`~
13127       test -d \$dldir || mkdir -p \$dldir~
13128       $install_prog $dir/$dlname \$dldir/$dlname'
13129     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13130       dlpath=$dir/\$dldll~
13131        $rm \$dlpath'
13132     shlibpath_overrides_runpath=yes
13133
13134     case $host_os in
13135     cygwin*)
13136       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13137       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13138       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13139       ;;
13140     mingw*)
13141       # MinGW DLLs use traditional 'lib' prefix
13142       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13143       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13144       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13145         # It is most probably a Windows format PATH printed by
13146         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13147         # path with ; separators, and with drive letters. We can handle the
13148         # drive letters (cygwin fileutils understands them), so leave them,
13149         # especially as we might pass files found there to a mingw objdump,
13150         # which wouldn't understand a cygwinified path. Ahh.
13151         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13152       else
13153         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13154       fi
13155       ;;
13156     pw32*)
13157       # pw32 DLLs use 'pw' prefix rather than 'lib'
13158       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13159       ;;
13160     esac
13161     ;;
13162
13163   *)
13164     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13165     ;;
13166   esac
13167   dynamic_linker='Win32 ld.exe'
13168   # FIXME: first we should search . and the directory the executable is in
13169   shlibpath_var=PATH
13170   ;;
13171
13172 darwin* | rhapsody*)
13173   dynamic_linker="$host_os dyld"
13174   version_type=darwin
13175   need_lib_prefix=no
13176   need_version=no
13177   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13178   soname_spec='${libname}${release}${major}$shared_ext'
13179   shlibpath_overrides_runpath=yes
13180   shlibpath_var=DYLD_LIBRARY_PATH
13181   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13182   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13183   if test "$GCC" = yes; then
13184     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"`
13185   else
13186     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13187   fi
13188   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13189   ;;
13190
13191 dgux*)
13192   version_type=linux
13193   need_lib_prefix=no
13194   need_version=no
13195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13196   soname_spec='${libname}${release}${shared_ext}$major'
13197   shlibpath_var=LD_LIBRARY_PATH
13198   ;;
13199
13200 freebsd1*)
13201   dynamic_linker=no
13202   ;;
13203
13204 kfreebsd*-gnu)
13205   version_type=linux
13206   need_lib_prefix=no
13207   need_version=no
13208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13209   soname_spec='${libname}${release}${shared_ext}$major'
13210   shlibpath_var=LD_LIBRARY_PATH
13211   shlibpath_overrides_runpath=no
13212   hardcode_into_libs=yes
13213   dynamic_linker='GNU ld.so'
13214   ;;
13215
13216 freebsd*)
13217   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13218   version_type=freebsd-$objformat
13219   case $version_type in
13220     freebsd-elf*)
13221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13222       need_version=no
13223       need_lib_prefix=no
13224       ;;
13225     freebsd-*)
13226       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13227       need_version=yes
13228       ;;
13229   esac
13230   shlibpath_var=LD_LIBRARY_PATH
13231   case $host_os in
13232   freebsd2*)
13233     shlibpath_overrides_runpath=yes
13234     ;;
13235   freebsd3.01* | freebsdelf3.01*)
13236     shlibpath_overrides_runpath=yes
13237     hardcode_into_libs=yes
13238     ;;
13239   *) # from 3.2 on
13240     shlibpath_overrides_runpath=no
13241     hardcode_into_libs=yes
13242     ;;
13243   esac
13244   ;;
13245
13246 gnu*)
13247   version_type=linux
13248   need_lib_prefix=no
13249   need_version=no
13250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13251   soname_spec='${libname}${release}${shared_ext}$major'
13252   shlibpath_var=LD_LIBRARY_PATH
13253   hardcode_into_libs=yes
13254   ;;
13255
13256 hpux9* | hpux10* | hpux11*)
13257   # Give a soname corresponding to the major version so that dld.sl refuses to
13258   # link against other versions.
13259   version_type=sunos
13260   need_lib_prefix=no
13261   need_version=no
13262   case "$host_cpu" in
13263   ia64*)
13264     shrext_cmds='.so'
13265     hardcode_into_libs=yes
13266     dynamic_linker="$host_os dld.so"
13267     shlibpath_var=LD_LIBRARY_PATH
13268     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270     soname_spec='${libname}${release}${shared_ext}$major'
13271     if test "X$HPUX_IA64_MODE" = X32; then
13272       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13273     else
13274       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13275     fi
13276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13277     ;;
13278    hppa*64*)
13279      shrext_cmds='.sl'
13280      hardcode_into_libs=yes
13281      dynamic_linker="$host_os dld.sl"
13282      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13283      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285      soname_spec='${libname}${release}${shared_ext}$major'
13286      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13287      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13288      ;;
13289    *)
13290     shrext_cmds='.sl'
13291     dynamic_linker="$host_os dld.sl"
13292     shlibpath_var=SHLIB_PATH
13293     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295     soname_spec='${libname}${release}${shared_ext}$major'
13296     ;;
13297   esac
13298   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13299   postinstall_cmds='chmod 555 $lib'
13300   ;;
13301
13302 irix5* | irix6* | nonstopux*)
13303   case $host_os in
13304     nonstopux*) version_type=nonstopux ;;
13305     *)
13306         if test "$lt_cv_prog_gnu_ld" = yes; then
13307                 version_type=linux
13308         else
13309                 version_type=irix
13310         fi ;;
13311   esac
13312   need_lib_prefix=no
13313   need_version=no
13314   soname_spec='${libname}${release}${shared_ext}$major'
13315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13316   case $host_os in
13317   irix5* | nonstopux*)
13318     libsuff= shlibsuff=
13319     ;;
13320   *)
13321     case $LD in # libtool.m4 will add one of these switches to LD
13322     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13323       libsuff= shlibsuff= libmagic=32-bit;;
13324     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13325       libsuff=32 shlibsuff=N32 libmagic=N32;;
13326     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13327       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13328     *) libsuff= shlibsuff= libmagic=never-match;;
13329     esac
13330     ;;
13331   esac
13332   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13333   shlibpath_overrides_runpath=no
13334   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13335   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13336   hardcode_into_libs=yes
13337   ;;
13338
13339 # No shared lib support for Linux oldld, aout, or coff.
13340 linux*oldld* | linux*aout* | linux*coff*)
13341   dynamic_linker=no
13342   ;;
13343
13344 # This must be Linux ELF.
13345 linux*)
13346   version_type=linux
13347   need_lib_prefix=no
13348   need_version=no
13349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350   soname_spec='${libname}${release}${shared_ext}$major'
13351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13352   shlibpath_var=LD_LIBRARY_PATH
13353   shlibpath_overrides_runpath=no
13354   # This implies no fast_install, which is unacceptable.
13355   # Some rework will be needed to allow for fast_install
13356   # before this can be enabled.
13357   hardcode_into_libs=yes
13358
13359   # Append ld.so.conf contents to the search path
13360   if test -f /etc/ld.so.conf; then
13361     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13362     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13363   fi
13364
13365   # We used to test for /lib/ld.so.1 and disable shared libraries on
13366   # powerpc, because MkLinux only supported shared libraries with the
13367   # GNU dynamic linker.  Since this was broken with cross compilers,
13368   # most powerpc-linux boxes support dynamic linking these days and
13369   # people can always --disable-shared, the test was removed, and we
13370   # assume the GNU/Linux dynamic linker is in use.
13371   dynamic_linker='GNU/Linux ld.so'
13372   ;;
13373
13374 knetbsd*-gnu)
13375   version_type=linux
13376   need_lib_prefix=no
13377   need_version=no
13378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13379   soname_spec='${libname}${release}${shared_ext}$major'
13380   shlibpath_var=LD_LIBRARY_PATH
13381   shlibpath_overrides_runpath=no
13382   hardcode_into_libs=yes
13383   dynamic_linker='GNU ld.so'
13384   ;;
13385
13386 netbsd*)
13387   version_type=sunos
13388   need_lib_prefix=no
13389   need_version=no
13390   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13392     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13393     dynamic_linker='NetBSD (a.out) ld.so'
13394   else
13395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13396     soname_spec='${libname}${release}${shared_ext}$major'
13397     dynamic_linker='NetBSD ld.elf_so'
13398   fi
13399   shlibpath_var=LD_LIBRARY_PATH
13400   shlibpath_overrides_runpath=yes
13401   hardcode_into_libs=yes
13402   ;;
13403
13404 newsos6)
13405   version_type=linux
13406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407   shlibpath_var=LD_LIBRARY_PATH
13408   shlibpath_overrides_runpath=yes
13409   ;;
13410
13411 nto-qnx*)
13412   version_type=linux
13413   need_lib_prefix=no
13414   need_version=no
13415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416   soname_spec='${libname}${release}${shared_ext}$major'
13417   shlibpath_var=LD_LIBRARY_PATH
13418   shlibpath_overrides_runpath=yes
13419   ;;
13420
13421 openbsd*)
13422   version_type=sunos
13423   need_lib_prefix=no
13424   need_version=no
13425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13427   shlibpath_var=LD_LIBRARY_PATH
13428   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13429     case $host_os in
13430       openbsd2.[89] | openbsd2.[89].*)
13431         shlibpath_overrides_runpath=no
13432         ;;
13433       *)
13434         shlibpath_overrides_runpath=yes
13435         ;;
13436       esac
13437   else
13438     shlibpath_overrides_runpath=yes
13439   fi
13440   ;;
13441
13442 os2*)
13443   libname_spec='$name'
13444   shrext_cmds=".dll"
13445   need_lib_prefix=no
13446   library_names_spec='$libname${shared_ext} $libname.a'
13447   dynamic_linker='OS/2 ld.exe'
13448   shlibpath_var=LIBPATH
13449   ;;
13450
13451 osf3* | osf4* | osf5*)
13452   version_type=osf
13453   need_lib_prefix=no
13454   need_version=no
13455   soname_spec='${libname}${release}${shared_ext}$major'
13456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457   shlibpath_var=LD_LIBRARY_PATH
13458   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13459   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13460   ;;
13461
13462 sco3.2v5*)
13463   version_type=osf
13464   soname_spec='${libname}${release}${shared_ext}$major'
13465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466   shlibpath_var=LD_LIBRARY_PATH
13467   ;;
13468
13469 solaris*)
13470   version_type=linux
13471   need_lib_prefix=no
13472   need_version=no
13473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474   soname_spec='${libname}${release}${shared_ext}$major'
13475   shlibpath_var=LD_LIBRARY_PATH
13476   shlibpath_overrides_runpath=yes
13477   hardcode_into_libs=yes
13478   # ldd complains unless libraries are executable
13479   postinstall_cmds='chmod +x $lib'
13480   ;;
13481
13482 sunos4*)
13483   version_type=sunos
13484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13485   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13486   shlibpath_var=LD_LIBRARY_PATH
13487   shlibpath_overrides_runpath=yes
13488   if test "$with_gnu_ld" = yes; then
13489     need_lib_prefix=no
13490   fi
13491   need_version=yes
13492   ;;
13493
13494 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13495   version_type=linux
13496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497   soname_spec='${libname}${release}${shared_ext}$major'
13498   shlibpath_var=LD_LIBRARY_PATH
13499   case $host_vendor in
13500     sni)
13501       shlibpath_overrides_runpath=no
13502       need_lib_prefix=no
13503       export_dynamic_flag_spec='${wl}-Blargedynsym'
13504       runpath_var=LD_RUN_PATH
13505       ;;
13506     siemens)
13507       need_lib_prefix=no
13508       ;;
13509     motorola)
13510       need_lib_prefix=no
13511       need_version=no
13512       shlibpath_overrides_runpath=no
13513       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13514       ;;
13515   esac
13516   ;;
13517
13518 sysv4*MP*)
13519   if test -d /usr/nec ;then
13520     version_type=linux
13521     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13522     soname_spec='$libname${shared_ext}.$major'
13523     shlibpath_var=LD_LIBRARY_PATH
13524   fi
13525   ;;
13526
13527 uts4*)
13528   version_type=linux
13529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530   soname_spec='${libname}${release}${shared_ext}$major'
13531   shlibpath_var=LD_LIBRARY_PATH
13532   ;;
13533
13534 *)
13535   dynamic_linker=no
13536   ;;
13537 esac
13538 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13539 echo "${ECHO_T}$dynamic_linker" >&6
13540 test "$dynamic_linker" = no && can_build_shared=no
13541
13542 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13544 hardcode_action=
13545 if test -n "$hardcode_libdir_flag_spec" || \
13546    test -n "$runpath_var" || \
13547    test "X$hardcode_automatic" = "Xyes" ; then
13548
13549   # We can hardcode non-existant directories.
13550   if test "$hardcode_direct" != no &&
13551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552      # have to relink, otherwise we might link with an installed library
13553      # when we should be linking with a yet-to-be-installed one
13554      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13555      test "$hardcode_minus_L" != no; then
13556     # Linking always hardcodes the temporary library directory.
13557     hardcode_action=relink
13558   else
13559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560     hardcode_action=immediate
13561   fi
13562 else
13563   # We cannot hardcode anything, or else we can only hardcode existing
13564   # directories.
13565   hardcode_action=unsupported
13566 fi
13567 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13568 echo "${ECHO_T}$hardcode_action" >&6
13569
13570 if test "$hardcode_action" = relink; then
13571   # Fast installation is not supported
13572   enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574      test "$enable_shared" = no; then
13575   # Fast installation is not necessary
13576   enable_fast_install=needless
13577 fi
13578
13579 striplib=
13580 old_striplib=
13581 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13582 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13583 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13584   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13585   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13586   echo "$as_me:$LINENO: result: yes" >&5
13587 echo "${ECHO_T}yes" >&6
13588 else
13589 # FIXME - insert some real tests, host_os isn't really good enough
13590   case $host_os in
13591    darwin*)
13592        if test -n "$STRIP" ; then
13593          striplib="$STRIP -x"
13594          echo "$as_me:$LINENO: result: yes" >&5
13595 echo "${ECHO_T}yes" >&6
13596        else
13597   echo "$as_me:$LINENO: result: no" >&5
13598 echo "${ECHO_T}no" >&6
13599 fi
13600        ;;
13601    *)
13602   echo "$as_me:$LINENO: result: no" >&5
13603 echo "${ECHO_T}no" >&6
13604     ;;
13605   esac
13606 fi
13607
13608 if test "x$enable_dlopen" != xyes; then
13609   enable_dlopen=unknown
13610   enable_dlopen_self=unknown
13611   enable_dlopen_self_static=unknown
13612 else
13613   lt_cv_dlopen=no
13614   lt_cv_dlopen_libs=
13615
13616   case $host_os in
13617   beos*)
13618     lt_cv_dlopen="load_add_on"
13619     lt_cv_dlopen_libs=
13620     lt_cv_dlopen_self=yes
13621     ;;
13622
13623   mingw* | pw32*)
13624     lt_cv_dlopen="LoadLibrary"
13625     lt_cv_dlopen_libs=
13626    ;;
13627
13628   cygwin*)
13629     lt_cv_dlopen="dlopen"
13630     lt_cv_dlopen_libs=
13631    ;;
13632
13633   darwin*)
13634   # if libdl is installed we need to link against it
13635     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13636 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13637 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13638   echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640   ac_check_lib_save_LIBS=$LIBS
13641 LIBS="-ldl  $LIBS"
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648
13649 /* Override any gcc2 internal prototype to avoid an error.  */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 /* We use char because int might match the return type of a gcc2
13654    builtin and then its argument prototype would still apply.  */
13655 char dlopen ();
13656 int
13657 main ()
13658 {
13659 dlopen ();
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666   (eval $ac_link) 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -z "$ac_c_werror_flag"
13674                          || test ! -s conftest.err'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; } &&
13680          { ac_try='test -s conftest$ac_exeext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   ac_cv_lib_dl_dlopen=yes
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 ac_cv_lib_dl_dlopen=no
13692 fi
13693 rm -f conftest.err conftest.$ac_objext \
13694       conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13696 fi
13697 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13698 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13699 if test $ac_cv_lib_dl_dlopen = yes; then
13700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13701 else
13702
13703     lt_cv_dlopen="dyld"
13704     lt_cv_dlopen_libs=
13705     lt_cv_dlopen_self=yes
13706
13707 fi
13708
13709    ;;
13710
13711   *)
13712     echo "$as_me:$LINENO: checking for shl_load" >&5
13713 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13714 if test "${ac_cv_func_shl_load+set}" = set; then
13715   echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717   cat >conftest.$ac_ext <<_ACEOF
13718 /* confdefs.h.  */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h.  */
13723 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13725 #define shl_load innocuous_shl_load
13726
13727 /* System header to define __stub macros and hopefully few prototypes,
13728     which can conflict with char shl_load (); below.
13729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13730     <limits.h> exists even on freestanding compilers.  */
13731
13732 #ifdef __STDC__
13733 # include <limits.h>
13734 #else
13735 # include <assert.h>
13736 #endif
13737
13738 #undef shl_load
13739
13740 /* Override any gcc2 internal prototype to avoid an error.  */
13741 #ifdef __cplusplus
13742 extern "C"
13743 {
13744 #endif
13745 /* We use char because int might match the return type of a gcc2
13746    builtin and then its argument prototype would still apply.  */
13747 char shl_load ();
13748 /* The GNU C library defines this for functions which it implements
13749     to always fail with ENOSYS.  Some functions are actually named
13750     something starting with __ and the normal name is an alias.  */
13751 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13752 choke me
13753 #else
13754 char (*f) () = shl_load;
13755 #endif
13756 #ifdef __cplusplus
13757 }
13758 #endif
13759
13760 int
13761 main ()
13762 {
13763 return f != shl_load;
13764   ;
13765   return 0;
13766 }
13767 _ACEOF
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13770   (eval $ac_link) 2>conftest.er1
13771   ac_status=$?
13772   grep -v '^ *+' conftest.er1 >conftest.err
13773   rm -f conftest.er1
13774   cat conftest.err >&5
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } &&
13777          { ac_try='test -z "$ac_c_werror_flag"
13778                          || test ! -s conftest.err'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; } &&
13784          { ac_try='test -s conftest$ac_exeext'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790   ac_cv_func_shl_load=yes
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 ac_cv_func_shl_load=no
13796 fi
13797 rm -f conftest.err conftest.$ac_objext \
13798       conftest$ac_exeext conftest.$ac_ext
13799 fi
13800 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13801 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13802 if test $ac_cv_func_shl_load = yes; then
13803   lt_cv_dlopen="shl_load"
13804 else
13805   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13806 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13807 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   ac_check_lib_save_LIBS=$LIBS
13811 LIBS="-ldld  $LIBS"
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h.  */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h.  */
13818
13819 /* Override any gcc2 internal prototype to avoid an error.  */
13820 #ifdef __cplusplus
13821 extern "C"
13822 #endif
13823 /* We use char because int might match the return type of a gcc2
13824    builtin and then its argument prototype would still apply.  */
13825 char shl_load ();
13826 int
13827 main ()
13828 {
13829 shl_load ();
13830   ;
13831   return 0;
13832 }
13833 _ACEOF
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836   (eval $ac_link) 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } &&
13843          { ac_try='test -z "$ac_c_werror_flag"
13844                          || test ! -s conftest.err'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest$ac_exeext'
13851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852   (eval $ac_try) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; }; then
13856   ac_cv_lib_dld_shl_load=yes
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_cv_lib_dld_shl_load=no
13862 fi
13863 rm -f conftest.err conftest.$ac_objext \
13864       conftest$ac_exeext conftest.$ac_ext
13865 LIBS=$ac_check_lib_save_LIBS
13866 fi
13867 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13868 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13869 if test $ac_cv_lib_dld_shl_load = yes; then
13870   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13871 else
13872   echo "$as_me:$LINENO: checking for dlopen" >&5
13873 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13874 if test "${ac_cv_func_dlopen+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13885 #define dlopen innocuous_dlopen
13886
13887 /* System header to define __stub macros and hopefully few prototypes,
13888     which can conflict with char dlopen (); below.
13889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13890     <limits.h> exists even on freestanding compilers.  */
13891
13892 #ifdef __STDC__
13893 # include <limits.h>
13894 #else
13895 # include <assert.h>
13896 #endif
13897
13898 #undef dlopen
13899
13900 /* Override any gcc2 internal prototype to avoid an error.  */
13901 #ifdef __cplusplus
13902 extern "C"
13903 {
13904 #endif
13905 /* We use char because int might match the return type of a gcc2
13906    builtin and then its argument prototype would still apply.  */
13907 char dlopen ();
13908 /* The GNU C library defines this for functions which it implements
13909     to always fail with ENOSYS.  Some functions are actually named
13910     something starting with __ and the normal name is an alias.  */
13911 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13912 choke me
13913 #else
13914 char (*f) () = dlopen;
13915 #endif
13916 #ifdef __cplusplus
13917 }
13918 #endif
13919
13920 int
13921 main ()
13922 {
13923 return f != dlopen;
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13930   (eval $ac_link) 2>conftest.er1
13931   ac_status=$?
13932   grep -v '^ *+' conftest.er1 >conftest.err
13933   rm -f conftest.er1
13934   cat conftest.err >&5
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -z "$ac_c_werror_flag"
13938                          || test ! -s conftest.err'
13939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940   (eval $ac_try) 2>&5
13941   ac_status=$?
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); }; } &&
13944          { ac_try='test -s conftest$ac_exeext'
13945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946   (eval $ac_try) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); }; }; then
13950   ac_cv_func_dlopen=yes
13951 else
13952   echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 ac_cv_func_dlopen=no
13956 fi
13957 rm -f conftest.err conftest.$ac_objext \
13958       conftest$ac_exeext conftest.$ac_ext
13959 fi
13960 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13961 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13962 if test $ac_cv_func_dlopen = yes; then
13963   lt_cv_dlopen="dlopen"
13964 else
13965   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13968   echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970   ac_check_lib_save_LIBS=$LIBS
13971 LIBS="-ldl  $LIBS"
13972 cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h.  */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h.  */
13978
13979 /* Override any gcc2 internal prototype to avoid an error.  */
13980 #ifdef __cplusplus
13981 extern "C"
13982 #endif
13983 /* We use char because int might match the return type of a gcc2
13984    builtin and then its argument prototype would still apply.  */
13985 char dlopen ();
13986 int
13987 main ()
13988 {
13989 dlopen ();
13990   ;
13991   return 0;
13992 }
13993 _ACEOF
13994 rm -f conftest.$ac_objext conftest$ac_exeext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13996   (eval $ac_link) 2>conftest.er1
13997   ac_status=$?
13998   grep -v '^ *+' conftest.er1 >conftest.err
13999   rm -f conftest.er1
14000   cat conftest.err >&5
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } &&
14003          { ac_try='test -z "$ac_c_werror_flag"
14004                          || test ! -s conftest.err'
14005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006   (eval $ac_try) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; } &&
14010          { ac_try='test -s conftest$ac_exeext'
14011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012   (eval $ac_try) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); }; }; then
14016   ac_cv_lib_dl_dlopen=yes
14017 else
14018   echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021 ac_cv_lib_dl_dlopen=no
14022 fi
14023 rm -f conftest.err conftest.$ac_objext \
14024       conftest$ac_exeext conftest.$ac_ext
14025 LIBS=$ac_check_lib_save_LIBS
14026 fi
14027 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14029 if test $ac_cv_lib_dl_dlopen = yes; then
14030   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14031 else
14032   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14033 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14034 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lsvld  $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045
14046 /* Override any gcc2 internal prototype to avoid an error.  */
14047 #ifdef __cplusplus
14048 extern "C"
14049 #endif
14050 /* We use char because int might match the return type of a gcc2
14051    builtin and then its argument prototype would still apply.  */
14052 char dlopen ();
14053 int
14054 main ()
14055 {
14056 dlopen ();
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063   (eval $ac_link) 2>conftest.er1
14064   ac_status=$?
14065   grep -v '^ *+' conftest.er1 >conftest.err
14066   rm -f conftest.er1
14067   cat conftest.err >&5
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } &&
14070          { ac_try='test -z "$ac_c_werror_flag"
14071                          || test ! -s conftest.err'
14072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073   (eval $ac_try) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; } &&
14077          { ac_try='test -s conftest$ac_exeext'
14078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079   (eval $ac_try) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; }; then
14083   ac_cv_lib_svld_dlopen=yes
14084 else
14085   echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 ac_cv_lib_svld_dlopen=no
14089 fi
14090 rm -f conftest.err conftest.$ac_objext \
14091       conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14093 fi
14094 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14096 if test $ac_cv_lib_svld_dlopen = yes; then
14097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14098 else
14099   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   ac_check_lib_save_LIBS=$LIBS
14105 LIBS="-ldld  $LIBS"
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h.  */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h.  */
14112
14113 /* Override any gcc2 internal prototype to avoid an error.  */
14114 #ifdef __cplusplus
14115 extern "C"
14116 #endif
14117 /* We use char because int might match the return type of a gcc2
14118    builtin and then its argument prototype would still apply.  */
14119 char dld_link ();
14120 int
14121 main ()
14122 {
14123 dld_link ();
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130   (eval $ac_link) 2>conftest.er1
14131   ac_status=$?
14132   grep -v '^ *+' conftest.er1 >conftest.err
14133   rm -f conftest.er1
14134   cat conftest.err >&5
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); } &&
14137          { ac_try='test -z "$ac_c_werror_flag"
14138                          || test ! -s conftest.err'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; } &&
14144          { ac_try='test -s conftest$ac_exeext'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; }; then
14150   ac_cv_lib_dld_dld_link=yes
14151 else
14152   echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155 ac_cv_lib_dld_dld_link=no
14156 fi
14157 rm -f conftest.err conftest.$ac_objext \
14158       conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14160 fi
14161 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14162 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14163 if test $ac_cv_lib_dld_dld_link = yes; then
14164   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14165 fi
14166
14167
14168 fi
14169
14170
14171 fi
14172
14173
14174 fi
14175
14176
14177 fi
14178
14179
14180 fi
14181
14182     ;;
14183   esac
14184
14185   if test "x$lt_cv_dlopen" != xno; then
14186     enable_dlopen=yes
14187   else
14188     enable_dlopen=no
14189   fi
14190
14191   case $lt_cv_dlopen in
14192   dlopen)
14193     save_CPPFLAGS="$CPPFLAGS"
14194     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14195
14196     save_LDFLAGS="$LDFLAGS"
14197     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14198
14199     save_LIBS="$LIBS"
14200     LIBS="$lt_cv_dlopen_libs $LIBS"
14201
14202     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14203 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14204 if test "${lt_cv_dlopen_self+set}" = set; then
14205   echo $ECHO_N "(cached) $ECHO_C" >&6
14206 else
14207           if test "$cross_compiling" = yes; then :
14208   lt_cv_dlopen_self=cross
14209 else
14210   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14211   lt_status=$lt_dlunknown
14212   cat > conftest.$ac_ext <<EOF
14213 #line 14213 "configure"
14214 #include "confdefs.h"
14215
14216 #if HAVE_DLFCN_H
14217 #include <dlfcn.h>
14218 #endif
14219
14220 #include <stdio.h>
14221
14222 #ifdef RTLD_GLOBAL
14223 #  define LT_DLGLOBAL           RTLD_GLOBAL
14224 #else
14225 #  ifdef DL_GLOBAL
14226 #    define LT_DLGLOBAL         DL_GLOBAL
14227 #  else
14228 #    define LT_DLGLOBAL         0
14229 #  endif
14230 #endif
14231
14232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14233    find out it does not work in some platform. */
14234 #ifndef LT_DLLAZY_OR_NOW
14235 #  ifdef RTLD_LAZY
14236 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14237 #  else
14238 #    ifdef DL_LAZY
14239 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14240 #    else
14241 #      ifdef RTLD_NOW
14242 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14243 #      else
14244 #        ifdef DL_NOW
14245 #          define LT_DLLAZY_OR_NOW      DL_NOW
14246 #        else
14247 #          define LT_DLLAZY_OR_NOW      0
14248 #        endif
14249 #      endif
14250 #    endif
14251 #  endif
14252 #endif
14253
14254 #ifdef __cplusplus
14255 extern "C" void exit (int);
14256 #endif
14257
14258 void fnord() { int i=42;}
14259 int main ()
14260 {
14261   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14262   int status = $lt_dlunknown;
14263
14264   if (self)
14265     {
14266       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14267       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14268       /* dlclose (self); */
14269     }
14270
14271     exit (status);
14272 }
14273 EOF
14274   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275   (eval $ac_link) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14279     (./conftest; exit; ) 2>/dev/null
14280     lt_status=$?
14281     case x$lt_status in
14282       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14283       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14284       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14285     esac
14286   else :
14287     # compilation failed
14288     lt_cv_dlopen_self=no
14289   fi
14290 fi
14291 rm -fr conftest*
14292
14293
14294 fi
14295 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14296 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14297
14298     if test "x$lt_cv_dlopen_self" = xyes; then
14299       LDFLAGS="$LDFLAGS $link_static_flag"
14300       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14301 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14302 if test "${lt_cv_dlopen_self_static+set}" = set; then
14303   echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305           if test "$cross_compiling" = yes; then :
14306   lt_cv_dlopen_self_static=cross
14307 else
14308   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14309   lt_status=$lt_dlunknown
14310   cat > conftest.$ac_ext <<EOF
14311 #line 14311 "configure"
14312 #include "confdefs.h"
14313
14314 #if HAVE_DLFCN_H
14315 #include <dlfcn.h>
14316 #endif
14317
14318 #include <stdio.h>
14319
14320 #ifdef RTLD_GLOBAL
14321 #  define LT_DLGLOBAL           RTLD_GLOBAL
14322 #else
14323 #  ifdef DL_GLOBAL
14324 #    define LT_DLGLOBAL         DL_GLOBAL
14325 #  else
14326 #    define LT_DLGLOBAL         0
14327 #  endif
14328 #endif
14329
14330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14331    find out it does not work in some platform. */
14332 #ifndef LT_DLLAZY_OR_NOW
14333 #  ifdef RTLD_LAZY
14334 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14335 #  else
14336 #    ifdef DL_LAZY
14337 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14338 #    else
14339 #      ifdef RTLD_NOW
14340 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14341 #      else
14342 #        ifdef DL_NOW
14343 #          define LT_DLLAZY_OR_NOW      DL_NOW
14344 #        else
14345 #          define LT_DLLAZY_OR_NOW      0
14346 #        endif
14347 #      endif
14348 #    endif
14349 #  endif
14350 #endif
14351
14352 #ifdef __cplusplus
14353 extern "C" void exit (int);
14354 #endif
14355
14356 void fnord() { int i=42;}
14357 int main ()
14358 {
14359   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14360   int status = $lt_dlunknown;
14361
14362   if (self)
14363     {
14364       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14365       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14366       /* dlclose (self); */
14367     }
14368
14369     exit (status);
14370 }
14371 EOF
14372   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373   (eval $ac_link) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14377     (./conftest; exit; ) 2>/dev/null
14378     lt_status=$?
14379     case x$lt_status in
14380       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14381       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14382       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14383     esac
14384   else :
14385     # compilation failed
14386     lt_cv_dlopen_self_static=no
14387   fi
14388 fi
14389 rm -fr conftest*
14390
14391
14392 fi
14393 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14394 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14395     fi
14396
14397     CPPFLAGS="$save_CPPFLAGS"
14398     LDFLAGS="$save_LDFLAGS"
14399     LIBS="$save_LIBS"
14400     ;;
14401   esac
14402
14403   case $lt_cv_dlopen_self in
14404   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14405   *) enable_dlopen_self=unknown ;;
14406   esac
14407
14408   case $lt_cv_dlopen_self_static in
14409   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14410   *) enable_dlopen_self_static=unknown ;;
14411   esac
14412 fi
14413
14414
14415 # Report which librarie types wil actually be built
14416 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14417 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14418 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14419 echo "${ECHO_T}$can_build_shared" >&6
14420
14421 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14422 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14423 test "$can_build_shared" = "no" && enable_shared=no
14424
14425 # On AIX, shared libraries and static libraries use the same namespace, and
14426 # are all built from PIC.
14427 case "$host_os" in
14428 aix3*)
14429   test "$enable_shared" = yes && enable_static=no
14430   if test -n "$RANLIB"; then
14431     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14432     postinstall_cmds='$RANLIB $lib'
14433   fi
14434   ;;
14435
14436 aix4* | aix5*)
14437   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14438     test "$enable_shared" = yes && enable_static=no
14439   fi
14440     ;;
14441 esac
14442 echo "$as_me:$LINENO: result: $enable_shared" >&5
14443 echo "${ECHO_T}$enable_shared" >&6
14444
14445 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14446 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14447 # Make sure either enable_shared or enable_static is yes.
14448 test "$enable_shared" = yes || enable_static=yes
14449 echo "$as_me:$LINENO: result: $enable_static" >&5
14450 echo "${ECHO_T}$enable_static" >&6
14451
14452 # The else clause should only fire when bootstrapping the
14453 # libtool distribution, otherwise you forgot to ship ltmain.sh
14454 # with your package, and you will get complaints that there are
14455 # no rules to generate ltmain.sh.
14456 if test -f "$ltmain"; then
14457   # See if we are running on zsh, and set the options which allow our commands through
14458   # without removal of \ escapes.
14459   if test -n "${ZSH_VERSION+set}" ; then
14460     setopt NO_GLOB_SUBST
14461   fi
14462   # Now quote all the things that may contain metacharacters while being
14463   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14464   # variables and quote the copies for generation of the libtool script.
14465   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14466     SED SHELL STRIP \
14467     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14468     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14469     deplibs_check_method reload_flag reload_cmds need_locks \
14470     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14471     lt_cv_sys_global_symbol_to_c_name_address \
14472     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14473     old_postinstall_cmds old_postuninstall_cmds \
14474     compiler \
14475     CC \
14476     LD \
14477     lt_prog_compiler_wl \
14478     lt_prog_compiler_pic \
14479     lt_prog_compiler_static \
14480     lt_prog_compiler_no_builtin_flag \
14481     export_dynamic_flag_spec \
14482     thread_safe_flag_spec \
14483     whole_archive_flag_spec \
14484     enable_shared_with_static_runtimes \
14485     old_archive_cmds \
14486     old_archive_from_new_cmds \
14487     predep_objects \
14488     postdep_objects \
14489     predeps \
14490     postdeps \
14491     compiler_lib_search_path \
14492     archive_cmds \
14493     archive_expsym_cmds \
14494     postinstall_cmds \
14495     postuninstall_cmds \
14496     old_archive_from_expsyms_cmds \
14497     allow_undefined_flag \
14498     no_undefined_flag \
14499     export_symbols_cmds \
14500     hardcode_libdir_flag_spec \
14501     hardcode_libdir_flag_spec_ld \
14502     hardcode_libdir_separator \
14503     hardcode_automatic \
14504     module_cmds \
14505     module_expsym_cmds \
14506     lt_cv_prog_compiler_c_o \
14507     exclude_expsyms \
14508     include_expsyms; do
14509
14510     case $var in
14511     old_archive_cmds | \
14512     old_archive_from_new_cmds | \
14513     archive_cmds | \
14514     archive_expsym_cmds | \
14515     module_cmds | \
14516     module_expsym_cmds | \
14517     old_archive_from_expsyms_cmds | \
14518     export_symbols_cmds | \
14519     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14520     postinstall_cmds | postuninstall_cmds | \
14521     old_postinstall_cmds | old_postuninstall_cmds | \
14522     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14523       # Double-quote double-evaled strings.
14524       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14525       ;;
14526     *)
14527       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14528       ;;
14529     esac
14530   done
14531
14532   case $lt_echo in
14533   *'\$0 --fallback-echo"')
14534     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14535     ;;
14536   esac
14537
14538 cfgfile="${ofile}T"
14539   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14540   $rm -f "$cfgfile"
14541   { echo "$as_me:$LINENO: creating $ofile" >&5
14542 echo "$as_me: creating $ofile" >&6;}
14543
14544   cat <<__EOF__ >> "$cfgfile"
14545 #! $SHELL
14546
14547 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14548 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14549 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14550 #
14551 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14552 # Free Software Foundation, Inc.
14553 #
14554 # This file is part of GNU Libtool:
14555 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14556 #
14557 # This program is free software; you can redistribute it and/or modify
14558 # it under the terms of the GNU General Public License as published by
14559 # the Free Software Foundation; either version 2 of the License, or
14560 # (at your option) any later version.
14561 #
14562 # This program is distributed in the hope that it will be useful, but
14563 # WITHOUT ANY WARRANTY; without even the implied warranty of
14564 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14565 # General Public License for more details.
14566 #
14567 # You should have received a copy of the GNU General Public License
14568 # along with this program; if not, write to the Free Software
14569 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14570 #
14571 # As a special exception to the GNU General Public License, if you
14572 # distribute this file as part of a program that contains a
14573 # configuration script generated by Autoconf, you may include it under
14574 # the same distribution terms that you use for the rest of that program.
14575
14576 # A sed program that does not truncate output.
14577 SED=$lt_SED
14578
14579 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14580 Xsed="$SED -e s/^X//"
14581
14582 # The HP-UX ksh and POSIX shell print the target directory to stdout
14583 # if CDPATH is set.
14584 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14585
14586 # The names of the tagged configurations supported by this script.
14587 available_tags=
14588
14589 # ### BEGIN LIBTOOL CONFIG
14590
14591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14592
14593 # Shell to use when invoking shell scripts.
14594 SHELL=$lt_SHELL
14595
14596 # Whether or not to build shared libraries.
14597 build_libtool_libs=$enable_shared
14598
14599 # Whether or not to build static libraries.
14600 build_old_libs=$enable_static
14601
14602 # Whether or not to add -lc for building shared libraries.
14603 build_libtool_need_lc=$archive_cmds_need_lc
14604
14605 # Whether or not to disallow shared libs when runtime libs are static
14606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14607
14608 # Whether or not to optimize for fast installation.
14609 fast_install=$enable_fast_install
14610
14611 # The host system.
14612 host_alias=$host_alias
14613 host=$host
14614
14615 # An echo program that does not interpret backslashes.
14616 echo=$lt_echo
14617
14618 # The archiver.
14619 AR=$lt_AR
14620 AR_FLAGS=$lt_AR_FLAGS
14621
14622 # A C compiler.
14623 LTCC=$lt_LTCC
14624
14625 # A language-specific compiler.
14626 CC=$lt_compiler
14627
14628 # Is the compiler the GNU C compiler?
14629 with_gcc=$GCC
14630
14631 # An ERE matcher.
14632 EGREP=$lt_EGREP
14633
14634 # The linker used to build libraries.
14635 LD=$lt_LD
14636
14637 # Whether we need hard or soft links.
14638 LN_S=$lt_LN_S
14639
14640 # A BSD-compatible nm program.
14641 NM=$lt_NM
14642
14643 # A symbol stripping program
14644 STRIP=$lt_STRIP
14645
14646 # Used to examine libraries when file_magic_cmd begins "file"
14647 MAGIC_CMD=$MAGIC_CMD
14648
14649 # Used on cygwin: DLL creation program.
14650 DLLTOOL="$DLLTOOL"
14651
14652 # Used on cygwin: object dumper.
14653 OBJDUMP="$OBJDUMP"
14654
14655 # Used on cygwin: assembler.
14656 AS="$AS"
14657
14658 # The name of the directory that contains temporary libtool files.
14659 objdir=$objdir
14660
14661 # How to create reloadable object files.
14662 reload_flag=$lt_reload_flag
14663 reload_cmds=$lt_reload_cmds
14664
14665 # How to pass a linker flag through the compiler.
14666 wl=$lt_lt_prog_compiler_wl
14667
14668 # Object file suffix (normally "o").
14669 objext="$ac_objext"
14670
14671 # Old archive suffix (normally "a").
14672 libext="$libext"
14673
14674 # Shared library suffix (normally ".so").
14675 shrext_cmds='$shrext_cmds'
14676
14677 # Executable file suffix (normally "").
14678 exeext="$exeext"
14679
14680 # Additional compiler flags for building library objects.
14681 pic_flag=$lt_lt_prog_compiler_pic
14682 pic_mode=$pic_mode
14683
14684 # What is the maximum length of a command?
14685 max_cmd_len=$lt_cv_sys_max_cmd_len
14686
14687 # Does compiler simultaneously support -c and -o options?
14688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14689
14690 # Must we lock files when doing compilation ?
14691 need_locks=$lt_need_locks
14692
14693 # Do we need the lib prefix for modules?
14694 need_lib_prefix=$need_lib_prefix
14695
14696 # Do we need a version for libraries?
14697 need_version=$need_version
14698
14699 # Whether dlopen is supported.
14700 dlopen_support=$enable_dlopen
14701
14702 # Whether dlopen of programs is supported.
14703 dlopen_self=$enable_dlopen_self
14704
14705 # Whether dlopen of statically linked programs is supported.
14706 dlopen_self_static=$enable_dlopen_self_static
14707
14708 # Compiler flag to prevent dynamic linking.
14709 link_static_flag=$lt_lt_prog_compiler_static
14710
14711 # Compiler flag to turn off builtin functions.
14712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14713
14714 # Compiler flag to allow reflexive dlopens.
14715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14716
14717 # Compiler flag to generate shared objects directly from archives.
14718 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14719
14720 # Compiler flag to generate thread-safe objects.
14721 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14722
14723 # Library versioning type.
14724 version_type=$version_type
14725
14726 # Format of library name prefix.
14727 libname_spec=$lt_libname_spec
14728
14729 # List of archive names.  First name is the real one, the rest are links.
14730 # The last name is the one that the linker finds with -lNAME.
14731 library_names_spec=$lt_library_names_spec
14732
14733 # The coded name of the library, if different from the real name.
14734 soname_spec=$lt_soname_spec
14735
14736 # Commands used to build and install an old-style archive.
14737 RANLIB=$lt_RANLIB
14738 old_archive_cmds=$lt_old_archive_cmds
14739 old_postinstall_cmds=$lt_old_postinstall_cmds
14740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14741
14742 # Create an old-style archive from a shared archive.
14743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14744
14745 # Create a temporary old-style archive to link instead of a shared archive.
14746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14747
14748 # Commands used to build and install a shared archive.
14749 archive_cmds=$lt_archive_cmds
14750 archive_expsym_cmds=$lt_archive_expsym_cmds
14751 postinstall_cmds=$lt_postinstall_cmds
14752 postuninstall_cmds=$lt_postuninstall_cmds
14753
14754 # Commands used to build a loadable module (assumed same as above if empty)
14755 module_cmds=$lt_module_cmds
14756 module_expsym_cmds=$lt_module_expsym_cmds
14757
14758 # Commands to strip libraries.
14759 old_striplib=$lt_old_striplib
14760 striplib=$lt_striplib
14761
14762 # Dependencies to place before the objects being linked to create a
14763 # shared library.
14764 predep_objects=$lt_predep_objects
14765
14766 # Dependencies to place after the objects being linked to create a
14767 # shared library.
14768 postdep_objects=$lt_postdep_objects
14769
14770 # Dependencies to place before the objects being linked to create a
14771 # shared library.
14772 predeps=$lt_predeps
14773
14774 # Dependencies to place after the objects being linked to create a
14775 # shared library.
14776 postdeps=$lt_postdeps
14777
14778 # The library search path used internally by the compiler when linking
14779 # a shared library.
14780 compiler_lib_search_path=$lt_compiler_lib_search_path
14781
14782 # Method to check whether dependent libraries are shared objects.
14783 deplibs_check_method=$lt_deplibs_check_method
14784
14785 # Command to use when deplibs_check_method == file_magic.
14786 file_magic_cmd=$lt_file_magic_cmd
14787
14788 # Flag that allows shared libraries with undefined symbols to be built.
14789 allow_undefined_flag=$lt_allow_undefined_flag
14790
14791 # Flag that forces no undefined symbols.
14792 no_undefined_flag=$lt_no_undefined_flag
14793
14794 # Commands used to finish a libtool library installation in a directory.
14795 finish_cmds=$lt_finish_cmds
14796
14797 # Same as above, but a single script fragment to be evaled but not shown.
14798 finish_eval=$lt_finish_eval
14799
14800 # Take the output of nm and produce a listing of raw symbols and C names.
14801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14802
14803 # Transform the output of nm in a proper C declaration
14804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14805
14806 # Transform the output of nm in a C name address pair
14807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14808
14809 # This is the shared library runtime path variable.
14810 runpath_var=$runpath_var
14811
14812 # This is the shared library path variable.
14813 shlibpath_var=$shlibpath_var
14814
14815 # Is shlibpath searched before the hard-coded library search path?
14816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14817
14818 # How to hardcode a shared library path into an executable.
14819 hardcode_action=$hardcode_action
14820
14821 # Whether we should hardcode library paths into libraries.
14822 hardcode_into_libs=$hardcode_into_libs
14823
14824 # Flag to hardcode \$libdir into a binary during linking.
14825 # This must work even if \$libdir does not exist.
14826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14827
14828 # If ld is used when linking, flag to hardcode \$libdir into
14829 # a binary during linking. This must work even if \$libdir does
14830 # not exist.
14831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14832
14833 # Whether we need a single -rpath flag with a separated argument.
14834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14835
14836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14837 # resulting binary.
14838 hardcode_direct=$hardcode_direct
14839
14840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14841 # resulting binary.
14842 hardcode_minus_L=$hardcode_minus_L
14843
14844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14845 # the resulting binary.
14846 hardcode_shlibpath_var=$hardcode_shlibpath_var
14847
14848 # Set to yes if building a shared library automatically hardcodes DIR into the library
14849 # and all subsequent libraries and executables linked against it.
14850 hardcode_automatic=$hardcode_automatic
14851
14852 # Variables whose values should be saved in libtool wrapper scripts and
14853 # restored at relink time.
14854 variables_saved_for_relink="$variables_saved_for_relink"
14855
14856 # Whether libtool must link a program against all its dependency libraries.
14857 link_all_deplibs=$link_all_deplibs
14858
14859 # Compile-time system search path for libraries
14860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14861
14862 # Run-time system search path for libraries
14863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14864
14865 # Fix the shell variable \$srcfile for the compiler.
14866 fix_srcfile_path="$fix_srcfile_path"
14867
14868 # Set to yes if exported symbols are required.
14869 always_export_symbols=$always_export_symbols
14870
14871 # The commands to list exported symbols.
14872 export_symbols_cmds=$lt_export_symbols_cmds
14873
14874 # The commands to extract the exported symbol list from a shared archive.
14875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14876
14877 # Symbols that should not be listed in the preloaded symbols.
14878 exclude_expsyms=$lt_exclude_expsyms
14879
14880 # Symbols that must always be exported.
14881 include_expsyms=$lt_include_expsyms
14882
14883 # ### END LIBTOOL CONFIG
14884
14885 __EOF__
14886
14887
14888   case $host_os in
14889   aix3*)
14890     cat <<\EOF >> "$cfgfile"
14891
14892 # AIX sometimes has problems with the GCC collect2 program.  For some
14893 # reason, if we set the COLLECT_NAMES environment variable, the problems
14894 # vanish in a puff of smoke.
14895 if test "X${COLLECT_NAMES+set}" != Xset; then
14896   COLLECT_NAMES=
14897   export COLLECT_NAMES
14898 fi
14899 EOF
14900     ;;
14901   esac
14902
14903   # We use sed instead of cat because bash on DJGPP gets confused if
14904   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14905   # text mode, it properly converts lines to CR/LF.  This bash problem
14906   # is reportedly fixed, but why not run on old versions too?
14907   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14908
14909   mv -f "$cfgfile" "$ofile" || \
14910     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14911   chmod +x "$ofile"
14912
14913 else
14914   # If there is no Makefile yet, we rely on a make rule to execute
14915   # `config.status --recheck' to rerun these tests and create the
14916   # libtool script then.
14917   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14918   if test -f "$ltmain_in"; then
14919     test -f Makefile && make "$ltmain"
14920   fi
14921 fi
14922
14923
14924 ac_ext=c
14925 ac_cpp='$CPP $CPPFLAGS'
14926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14929
14930 CC="$lt_save_CC"
14931
14932
14933 # Check whether --with-tags or --without-tags was given.
14934 if test "${with_tags+set}" = set; then
14935   withval="$with_tags"
14936   tagnames="$withval"
14937 fi;
14938
14939 if test -f "$ltmain" && test -n "$tagnames"; then
14940   if test ! -f "${ofile}"; then
14941     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14942 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14943   fi
14944
14945   if test -z "$LTCC"; then
14946     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14947     if test -z "$LTCC"; then
14948       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14949 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14950     else
14951       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14952 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14953     fi
14954   fi
14955
14956   # Extract list of available tagged configurations in $ofile.
14957   # Note that this assumes the entire list is on one line.
14958   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14959
14960   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14961   for tagname in $tagnames; do
14962     IFS="$lt_save_ifs"
14963     # Check whether tagname contains only valid characters
14964     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14965     "") ;;
14966     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14967 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14968    { (exit 1); exit 1; }; }
14969         ;;
14970     esac
14971
14972     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14973     then
14974       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14975 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14976    { (exit 1); exit 1; }; }
14977     fi
14978
14979     # Update the list of available tags.
14980     if test -n "$tagname"; then
14981       echo appending configuration tag "$tagname" to $ofile
14982
14983       case $tagname in
14984       CXX)
14985         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14986             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14987             (test "X$CXX" != "Xg++"))) ; then
14988           ac_ext=cc
14989 ac_cpp='$CXXCPP $CPPFLAGS'
14990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14993
14994
14995
14996
14997 archive_cmds_need_lc_CXX=no
14998 allow_undefined_flag_CXX=
14999 always_export_symbols_CXX=no
15000 archive_expsym_cmds_CXX=
15001 export_dynamic_flag_spec_CXX=
15002 hardcode_direct_CXX=no
15003 hardcode_libdir_flag_spec_CXX=
15004 hardcode_libdir_flag_spec_ld_CXX=
15005 hardcode_libdir_separator_CXX=
15006 hardcode_minus_L_CXX=no
15007 hardcode_automatic_CXX=no
15008 module_cmds_CXX=
15009 module_expsym_cmds_CXX=
15010 link_all_deplibs_CXX=unknown
15011 old_archive_cmds_CXX=$old_archive_cmds
15012 no_undefined_flag_CXX=
15013 whole_archive_flag_spec_CXX=
15014 enable_shared_with_static_runtimes_CXX=no
15015
15016 # Dependencies to place before and after the object being linked:
15017 predep_objects_CXX=
15018 postdep_objects_CXX=
15019 predeps_CXX=
15020 postdeps_CXX=
15021 compiler_lib_search_path_CXX=
15022
15023 # Source file extension for C++ test sources.
15024 ac_ext=cc
15025
15026 # Object file extension for compiled C++ test sources.
15027 objext=o
15028 objext_CXX=$objext
15029
15030 # Code to be used in simple compile tests
15031 lt_simple_compile_test_code="int some_variable = 0;\n"
15032
15033 # Code to be used in simple link tests
15034 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15035
15036 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15037
15038 # If no C compiler was specified, use CC.
15039 LTCC=${LTCC-"$CC"}
15040
15041 # Allow CC to be a program name with arguments.
15042 compiler=$CC
15043
15044
15045 # Allow CC to be a program name with arguments.
15046 lt_save_CC=$CC
15047 lt_save_LD=$LD
15048 lt_save_GCC=$GCC
15049 GCC=$GXX
15050 lt_save_with_gnu_ld=$with_gnu_ld
15051 lt_save_path_LD=$lt_cv_path_LD
15052 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15053   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15054 else
15055   unset lt_cv_prog_gnu_ld
15056 fi
15057 if test -n "${lt_cv_path_LDCXX+set}"; then
15058   lt_cv_path_LD=$lt_cv_path_LDCXX
15059 else
15060   unset lt_cv_path_LD
15061 fi
15062 test -z "${LDCXX+set}" || LD=$LDCXX
15063 CC=${CXX-"c++"}
15064 compiler=$CC
15065 compiler_CXX=$CC
15066 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15067
15068 # We don't want -fno-exception wen compiling C++ code, so set the
15069 # no_builtin_flag separately
15070 if test "$GXX" = yes; then
15071   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15072 else
15073   lt_prog_compiler_no_builtin_flag_CXX=
15074 fi
15075
15076 if test "$GXX" = yes; then
15077   # Set up default GNU C++ configuration
15078
15079
15080 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15081 if test "${with_gnu_ld+set}" = set; then
15082   withval="$with_gnu_ld"
15083   test "$withval" = no || with_gnu_ld=yes
15084 else
15085   with_gnu_ld=no
15086 fi;
15087 ac_prog=ld
15088 if test "$GCC" = yes; then
15089   # Check if gcc -print-prog-name=ld gives a path.
15090   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15091 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15092   case $host in
15093   *-*-mingw*)
15094     # gcc leaves a trailing carriage return which upsets mingw
15095     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15096   *)
15097     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15098   esac
15099   case $ac_prog in
15100     # Accept absolute paths.
15101     [\\/]* | ?:[\\/]*)
15102       re_direlt='/[^/][^/]*/\.\./'
15103       # Canonicalize the pathname of ld
15104       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15105       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15106         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15107       done
15108       test -z "$LD" && LD="$ac_prog"
15109       ;;
15110   "")
15111     # If it fails, then pretend we aren't using GCC.
15112     ac_prog=ld
15113     ;;
15114   *)
15115     # If it is relative, then search for the first ld in PATH.
15116     with_gnu_ld=unknown
15117     ;;
15118   esac
15119 elif test "$with_gnu_ld" = yes; then
15120   echo "$as_me:$LINENO: checking for GNU ld" >&5
15121 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15122 else
15123   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15124 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15125 fi
15126 if test "${lt_cv_path_LD+set}" = set; then
15127   echo $ECHO_N "(cached) $ECHO_C" >&6
15128 else
15129   if test -z "$LD"; then
15130   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15131   for ac_dir in $PATH; do
15132     IFS="$lt_save_ifs"
15133     test -z "$ac_dir" && ac_dir=.
15134     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15135       lt_cv_path_LD="$ac_dir/$ac_prog"
15136       # Check to see if the program is GNU ld.  I'd rather use --version,
15137       # but apparently some GNU ld's only accept -v.
15138       # Break only if it was the GNU/non-GNU ld that we prefer.
15139       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15140       *GNU* | *'with BFD'*)
15141         test "$with_gnu_ld" != no && break
15142         ;;
15143       *)
15144         test "$with_gnu_ld" != yes && break
15145         ;;
15146       esac
15147     fi
15148   done
15149   IFS="$lt_save_ifs"
15150 else
15151   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15152 fi
15153 fi
15154
15155 LD="$lt_cv_path_LD"
15156 if test -n "$LD"; then
15157   echo "$as_me:$LINENO: result: $LD" >&5
15158 echo "${ECHO_T}$LD" >&6
15159 else
15160   echo "$as_me:$LINENO: result: no" >&5
15161 echo "${ECHO_T}no" >&6
15162 fi
15163 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15164 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15165    { (exit 1); exit 1; }; }
15166 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15167 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15168 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15169   echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15172 case `$LD -v 2>&1 </dev/null` in
15173 *GNU* | *'with BFD'*)
15174   lt_cv_prog_gnu_ld=yes
15175   ;;
15176 *)
15177   lt_cv_prog_gnu_ld=no
15178   ;;
15179 esac
15180 fi
15181 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15183 with_gnu_ld=$lt_cv_prog_gnu_ld
15184
15185
15186
15187   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15188   # archiving commands below assume that GNU ld is being used.
15189   if test "$with_gnu_ld" = yes; then
15190     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191     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'
15192
15193     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15194     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15195
15196     # If archive_cmds runs LD, not CC, wlarc should be empty
15197     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15198     #     investigate it a little bit more. (MM)
15199     wlarc='${wl}'
15200
15201     # ancient GNU ld didn't support --whole-archive et. al.
15202     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15203         grep 'no-whole-archive' > /dev/null; then
15204       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15205     else
15206       whole_archive_flag_spec_CXX=
15207     fi
15208   else
15209     with_gnu_ld=no
15210     wlarc=
15211
15212     # A generic and very simple default shared library creation
15213     # command for GNU C++ for the case where it uses the native
15214     # linker, instead of GNU ld.  If possible, this setting should
15215     # overridden to take advantage of the native linker features on
15216     # the platform it is being used on.
15217     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15218   fi
15219
15220   # Commands to make compiler produce verbose output that lists
15221   # what "hidden" libraries, object files and flags are used when
15222   # linking a shared library.
15223   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15224
15225 else
15226   GXX=no
15227   with_gnu_ld=no
15228   wlarc=
15229 fi
15230
15231 # PORTME: fill in a description of your system's C++ link characteristics
15232 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15233 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15234 ld_shlibs_CXX=yes
15235 case $host_os in
15236   aix3*)
15237     # FIXME: insert proper C++ library support
15238     ld_shlibs_CXX=no
15239     ;;
15240   aix4* | aix5*)
15241     if test "$host_cpu" = ia64; then
15242       # On IA64, the linker does run time linking by default, so we don't
15243       # have to do anything special.
15244       aix_use_runtimelinking=no
15245       exp_sym_flag='-Bexport'
15246       no_entry_flag=""
15247     else
15248       aix_use_runtimelinking=no
15249
15250       # Test if we are trying to use run time linking or normal
15251       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15252       # need to do runtime linking.
15253       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15254         for ld_flag in $LDFLAGS; do
15255           case $ld_flag in
15256           *-brtl*)
15257             aix_use_runtimelinking=yes
15258             break
15259             ;;
15260           esac
15261         done
15262       esac
15263
15264       exp_sym_flag='-bexport'
15265       no_entry_flag='-bnoentry'
15266     fi
15267
15268     # When large executables or shared objects are built, AIX ld can
15269     # have problems creating the table of contents.  If linking a library
15270     # or program results in "error TOC overflow" add -mminimal-toc to
15271     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15272     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15273
15274     archive_cmds_CXX=''
15275     hardcode_direct_CXX=yes
15276     hardcode_libdir_separator_CXX=':'
15277     link_all_deplibs_CXX=yes
15278
15279     if test "$GXX" = yes; then
15280       case $host_os in aix4.012|aix4.012.*)
15281       # We only want to do this on AIX 4.2 and lower, the check
15282       # below for broken collect2 doesn't work under 4.3+
15283         collect2name=`${CC} -print-prog-name=collect2`
15284         if test -f "$collect2name" && \
15285            strings "$collect2name" | grep resolve_lib_name >/dev/null
15286         then
15287           # We have reworked collect2
15288           hardcode_direct_CXX=yes
15289         else
15290           # We have old collect2
15291           hardcode_direct_CXX=unsupported
15292           # It fails to find uninstalled libraries when the uninstalled
15293           # path is not listed in the libpath.  Setting hardcode_minus_L
15294           # to unsupported forces relinking
15295           hardcode_minus_L_CXX=yes
15296           hardcode_libdir_flag_spec_CXX='-L$libdir'
15297           hardcode_libdir_separator_CXX=
15298         fi
15299       esac
15300       shared_flag='-shared'
15301     else
15302       # not using gcc
15303       if test "$host_cpu" = ia64; then
15304         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15305         # chokes on -Wl,-G. The following line is correct:
15306         shared_flag='-G'
15307       else
15308         if test "$aix_use_runtimelinking" = yes; then
15309           shared_flag='${wl}-G'
15310         else
15311           shared_flag='${wl}-bM:SRE'
15312         fi
15313       fi
15314     fi
15315
15316     # It seems that -bexpall does not export symbols beginning with
15317     # underscore (_), so it is better to generate a list of symbols to export.
15318     always_export_symbols_CXX=yes
15319     if test "$aix_use_runtimelinking" = yes; then
15320       # Warning - without using the other runtime loading flags (-brtl),
15321       # -berok will link without error, but may produce a broken library.
15322       allow_undefined_flag_CXX='-berok'
15323       # Determine the default libpath from the value encoded in an empty executable.
15324       cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h.  */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h.  */
15330
15331 int
15332 main ()
15333 {
15334
15335   ;
15336   return 0;
15337 }
15338 _ACEOF
15339 rm -f conftest.$ac_objext conftest$ac_exeext
15340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15341   (eval $ac_link) 2>conftest.er1
15342   ac_status=$?
15343   grep -v '^ *+' conftest.er1 >conftest.err
15344   rm -f conftest.er1
15345   cat conftest.err >&5
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); } &&
15348          { ac_try='test -z "$ac_cxx_werror_flag"
15349                          || test ! -s conftest.err'
15350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351   (eval $ac_try) 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; } &&
15355          { ac_try='test -s conftest$ac_exeext'
15356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357   (eval $ac_try) 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }; }; then
15361
15362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15363 }'`
15364 # Check for a 64-bit object if we didn't find anything.
15365 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; }
15366 }'`; fi
15367 else
15368   echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371 fi
15372 rm -f conftest.err conftest.$ac_objext \
15373       conftest$ac_exeext conftest.$ac_ext
15374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15375
15376       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15377
15378       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"
15379      else
15380       if test "$host_cpu" = ia64; then
15381         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15382         allow_undefined_flag_CXX="-z nodefs"
15383         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"
15384       else
15385         # Determine the default libpath from the value encoded in an empty executable.
15386         cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392
15393 int
15394 main ()
15395 {
15396
15397   ;
15398   return 0;
15399 }
15400 _ACEOF
15401 rm -f conftest.$ac_objext conftest$ac_exeext
15402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15403   (eval $ac_link) 2>conftest.er1
15404   ac_status=$?
15405   grep -v '^ *+' conftest.er1 >conftest.err
15406   rm -f conftest.er1
15407   cat conftest.err >&5
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); } &&
15410          { ac_try='test -z "$ac_cxx_werror_flag"
15411                          || test ! -s conftest.err'
15412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413   (eval $ac_try) 2>&5
15414   ac_status=$?
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); }; } &&
15417          { ac_try='test -s conftest$ac_exeext'
15418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419   (eval $ac_try) 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); }; }; then
15423
15424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15425 }'`
15426 # Check for a 64-bit object if we didn't find anything.
15427 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; }
15428 }'`; fi
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433 fi
15434 rm -f conftest.err conftest.$ac_objext \
15435       conftest$ac_exeext conftest.$ac_ext
15436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15437
15438         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15439         # Warning - without using the other run time loading flags,
15440         # -berok will link without error, but may produce a broken library.
15441         no_undefined_flag_CXX=' ${wl}-bernotok'
15442         allow_undefined_flag_CXX=' ${wl}-berok'
15443         # -bexpall does not export symbols beginning with underscore (_)
15444         always_export_symbols_CXX=yes
15445         # Exported symbols can be pulled into shared objects from archives
15446         whole_archive_flag_spec_CXX=' '
15447         archive_cmds_need_lc_CXX=yes
15448         # This is similar to how AIX traditionally builds it's shared libraries.
15449         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'
15450       fi
15451     fi
15452     ;;
15453   chorus*)
15454     case $cc_basename in
15455       *)
15456         # FIXME: insert proper C++ library support
15457         ld_shlibs_CXX=no
15458         ;;
15459     esac
15460     ;;
15461
15462
15463   cygwin* | mingw* | pw32*)
15464     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15465     # as there is no search path for DLLs.
15466     hardcode_libdir_flag_spec_CXX='-L$libdir'
15467     allow_undefined_flag_CXX=unsupported
15468     always_export_symbols_CXX=no
15469     enable_shared_with_static_runtimes_CXX=yes
15470
15471     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15472       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'
15473       # If the export-symbols file already is a .def file (1st line
15474       # is EXPORTS), use it as is; otherwise, prepend...
15475       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476         cp $export_symbols $output_objdir/$soname.def;
15477       else
15478         echo EXPORTS > $output_objdir/$soname.def;
15479         cat $export_symbols >> $output_objdir/$soname.def;
15480       fi~
15481       $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'
15482     else
15483       ld_shlibs_CXX=no
15484     fi
15485   ;;
15486       darwin* | rhapsody*)
15487         case "$host_os" in
15488         rhapsody* | darwin1.[012])
15489          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15490          ;;
15491        *) # Darwin 1.3 on
15492          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15493            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15494          else
15495            case ${MACOSX_DEPLOYMENT_TARGET} in
15496              10.[012])
15497                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15498                ;;
15499              10.*)
15500                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15501                ;;
15502            esac
15503          fi
15504          ;;
15505         esac
15506       archive_cmds_need_lc_CXX=no
15507       hardcode_direct_CXX=no
15508       hardcode_automatic_CXX=yes
15509       hardcode_shlibpath_var_CXX=unsupported
15510       whole_archive_flag_spec_CXX=''
15511       link_all_deplibs_CXX=yes
15512
15513     if test "$GXX" = yes ; then
15514       lt_int_apple_cc_single_mod=no
15515       output_verbose_link_cmd='echo'
15516       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15517        lt_int_apple_cc_single_mod=yes
15518       fi
15519       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15520        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15521       else
15522           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'
15523         fi
15524         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15525         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15526           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15527             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}'
15528           else
15529             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}'
15530           fi
15531             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}'
15532       else
15533       case "$cc_basename" in
15534         xlc*)
15535          output_verbose_link_cmd='echo'
15536           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'
15537           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15538           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15539           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}'
15540           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}'
15541           ;;
15542        *)
15543          ld_shlibs_CXX=no
15544           ;;
15545       esac
15546       fi
15547         ;;
15548
15549   dgux*)
15550     case $cc_basename in
15551       ec++)
15552         # FIXME: insert proper C++ library support
15553         ld_shlibs_CXX=no
15554         ;;
15555       ghcx)
15556         # Green Hills C++ Compiler
15557         # FIXME: insert proper C++ library support
15558         ld_shlibs_CXX=no
15559         ;;
15560       *)
15561         # FIXME: insert proper C++ library support
15562         ld_shlibs_CXX=no
15563         ;;
15564     esac
15565     ;;
15566   freebsd12*)
15567     # C++ shared libraries reported to be fairly broken before switch to ELF
15568     ld_shlibs_CXX=no
15569     ;;
15570   freebsd-elf*)
15571     archive_cmds_need_lc_CXX=no
15572     ;;
15573   freebsd* | kfreebsd*-gnu)
15574     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15575     # conventions
15576     ld_shlibs_CXX=yes
15577     ;;
15578   gnu*)
15579     ;;
15580   hpux9*)
15581     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15582     hardcode_libdir_separator_CXX=:
15583     export_dynamic_flag_spec_CXX='${wl}-E'
15584     hardcode_direct_CXX=yes
15585     hardcode_minus_L_CXX=yes # Not in the search PATH,
15586                                 # but as the default
15587                                 # location of the library.
15588
15589     case $cc_basename in
15590     CC)
15591       # FIXME: insert proper C++ library support
15592       ld_shlibs_CXX=no
15593       ;;
15594     aCC)
15595       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'
15596       # Commands to make compiler produce verbose output that lists
15597       # what "hidden" libraries, object files and flags are used when
15598       # linking a shared library.
15599       #
15600       # There doesn't appear to be a way to prevent this compiler from
15601       # explicitly linking system object files so we need to strip them
15602       # from the output so that they don't get included in the library
15603       # dependencies.
15604       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'
15605       ;;
15606     *)
15607       if test "$GXX" = yes; then
15608         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'
15609       else
15610         # FIXME: insert proper C++ library support
15611         ld_shlibs_CXX=no
15612       fi
15613       ;;
15614     esac
15615     ;;
15616   hpux10*|hpux11*)
15617     if test $with_gnu_ld = no; then
15618       case "$host_cpu" in
15619       hppa*64*)
15620         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15621         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15622         hardcode_libdir_separator_CXX=:
15623         ;;
15624       ia64*)
15625         hardcode_libdir_flag_spec_CXX='-L$libdir'
15626         ;;
15627       *)
15628         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15629         hardcode_libdir_separator_CXX=:
15630         export_dynamic_flag_spec_CXX='${wl}-E'
15631         ;;
15632       esac
15633     fi
15634     case "$host_cpu" in
15635     hppa*64*)
15636       hardcode_direct_CXX=no
15637       hardcode_shlibpath_var_CXX=no
15638       ;;
15639     ia64*)
15640       hardcode_direct_CXX=no
15641       hardcode_shlibpath_var_CXX=no
15642       hardcode_minus_L_CXX=yes # Not in the search PATH,
15643                                               # but as the default
15644                                               # location of the library.
15645       ;;
15646     *)
15647       hardcode_direct_CXX=yes
15648       hardcode_minus_L_CXX=yes # Not in the search PATH,
15649                                               # but as the default
15650                                               # location of the library.
15651       ;;
15652     esac
15653
15654     case $cc_basename in
15655       CC)
15656         # FIXME: insert proper C++ library support
15657         ld_shlibs_CXX=no
15658         ;;
15659       aCC)
15660         case "$host_cpu" in
15661         hppa*64*|ia64*)
15662           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15663           ;;
15664         *)
15665           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15666           ;;
15667         esac
15668         # Commands to make compiler produce verbose output that lists
15669         # what "hidden" libraries, object files and flags are used when
15670         # linking a shared library.
15671         #
15672         # There doesn't appear to be a way to prevent this compiler from
15673         # explicitly linking system object files so we need to strip them
15674         # from the output so that they don't get included in the library
15675         # dependencies.
15676         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'
15677         ;;
15678       *)
15679         if test "$GXX" = yes; then
15680           if test $with_gnu_ld = no; then
15681             case "$host_cpu" in
15682             ia64*|hppa*64*)
15683               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15684               ;;
15685             *)
15686               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'
15687               ;;
15688             esac
15689           fi
15690         else
15691           # FIXME: insert proper C++ library support
15692           ld_shlibs_CXX=no
15693         fi
15694         ;;
15695     esac
15696     ;;
15697   irix5* | irix6*)
15698     case $cc_basename in
15699       CC)
15700         # SGI C++
15701         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'
15702
15703         # Archives containing C++ object files must be created using
15704         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15705         # necessary to make sure instantiated templates are included
15706         # in the archive.
15707         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15708         ;;
15709       *)
15710         if test "$GXX" = yes; then
15711           if test "$with_gnu_ld" = no; then
15712             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'
15713           else
15714             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'
15715           fi
15716         fi
15717         link_all_deplibs_CXX=yes
15718         ;;
15719     esac
15720     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15721     hardcode_libdir_separator_CXX=:
15722     ;;
15723   linux*)
15724     case $cc_basename in
15725       KCC)
15726         # Kuck and Associates, Inc. (KAI) C++ Compiler
15727
15728         # KCC will only create a shared library if the output file
15729         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15730         # to its proper name (with version) after linking.
15731         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'
15732         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'
15733         # Commands to make compiler produce verbose output that lists
15734         # what "hidden" libraries, object files and flags are used when
15735         # linking a shared library.
15736         #
15737         # There doesn't appear to be a way to prevent this compiler from
15738         # explicitly linking system object files so we need to strip them
15739         # from the output so that they don't get included in the library
15740         # dependencies.
15741         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'
15742
15743         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15744         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15745
15746         # Archives containing C++ object files must be created using
15747         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15748         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15749         ;;
15750       icpc)
15751         # Intel C++
15752         with_gnu_ld=yes
15753         # version 8.0 and above of icpc choke on multiply defined symbols
15754         # if we add $predep_objects and $postdep_objects, however 7.1 and
15755         # earlier do not add the objects themselves.
15756         case `$CC -V 2>&1` in
15757         *"Version 7."*)
15758           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759           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'
15760           ;;
15761         *)  # Version 8.0 or newer
15762           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15763         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15764           ;;
15765         esac
15766         archive_cmds_need_lc_CXX=no
15767         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15768         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15769         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15770         ;;
15771       cxx)
15772         # Compaq C++
15773         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15774         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'
15775
15776         runpath_var=LD_RUN_PATH
15777         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15778         hardcode_libdir_separator_CXX=:
15779
15780         # Commands to make compiler produce verbose output that lists
15781         # what "hidden" libraries, object files and flags are used when
15782         # linking a shared library.
15783         #
15784         # There doesn't appear to be a way to prevent this compiler from
15785         # explicitly linking system object files so we need to strip them
15786         # from the output so that they don't get included in the library
15787         # dependencies.
15788         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'
15789         ;;
15790     esac
15791     ;;
15792   lynxos*)
15793     # FIXME: insert proper C++ library support
15794     ld_shlibs_CXX=no
15795     ;;
15796   m88k*)
15797     # FIXME: insert proper C++ library support
15798     ld_shlibs_CXX=no
15799     ;;
15800   mvs*)
15801     case $cc_basename in
15802       cxx)
15803         # FIXME: insert proper C++ library support
15804         ld_shlibs_CXX=no
15805         ;;
15806       *)
15807         # FIXME: insert proper C++ library support
15808         ld_shlibs_CXX=no
15809         ;;
15810     esac
15811     ;;
15812   netbsd*)
15813     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15814       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15815       wlarc=
15816       hardcode_libdir_flag_spec_CXX='-R$libdir'
15817       hardcode_direct_CXX=yes
15818       hardcode_shlibpath_var_CXX=no
15819     fi
15820     # Workaround some broken pre-1.5 toolchains
15821     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15822     ;;
15823   openbsd2*)
15824     # C++ shared libraries are fairly broken
15825     ld_shlibs_CXX=no
15826     ;;
15827   openbsd*)
15828     hardcode_direct_CXX=yes
15829     hardcode_shlibpath_var_CXX=no
15830     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15831     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15832     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15833       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15834       export_dynamic_flag_spec_CXX='${wl}-E'
15835       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15836     fi
15837     output_verbose_link_cmd='echo'
15838     ;;
15839   osf3*)
15840     case $cc_basename in
15841       KCC)
15842         # Kuck and Associates, Inc. (KAI) C++ Compiler
15843
15844         # KCC will only create a shared library if the output file
15845         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15846         # to its proper name (with version) after linking.
15847         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'
15848
15849         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15850         hardcode_libdir_separator_CXX=:
15851
15852         # Archives containing C++ object files must be created using
15853         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15854         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15855
15856         ;;
15857       RCC)
15858         # Rational C++ 2.4.1
15859         # FIXME: insert proper C++ library support
15860         ld_shlibs_CXX=no
15861         ;;
15862       cxx)
15863         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15864         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'
15865
15866         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15867         hardcode_libdir_separator_CXX=:
15868
15869         # Commands to make compiler produce verbose output that lists
15870         # what "hidden" libraries, object files and flags are used when
15871         # linking a shared library.
15872         #
15873         # There doesn't appear to be a way to prevent this compiler from
15874         # explicitly linking system object files so we need to strip them
15875         # from the output so that they don't get included in the library
15876         # dependencies.
15877         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'
15878         ;;
15879       *)
15880         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15881           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15882           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'
15883
15884           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15885           hardcode_libdir_separator_CXX=:
15886
15887           # Commands to make compiler produce verbose output that lists
15888           # what "hidden" libraries, object files and flags are used when
15889           # linking a shared library.
15890           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15891
15892         else
15893           # FIXME: insert proper C++ library support
15894           ld_shlibs_CXX=no
15895         fi
15896         ;;
15897     esac
15898     ;;
15899   osf4* | osf5*)
15900     case $cc_basename in
15901       KCC)
15902         # Kuck and Associates, Inc. (KAI) C++ Compiler
15903
15904         # KCC will only create a shared library if the output file
15905         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15906         # to its proper name (with version) after linking.
15907         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'
15908
15909         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15910         hardcode_libdir_separator_CXX=:
15911
15912         # Archives containing C++ object files must be created using
15913         # the KAI C++ compiler.
15914         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15915         ;;
15916       RCC)
15917         # Rational C++ 2.4.1
15918         # FIXME: insert proper C++ library support
15919         ld_shlibs_CXX=no
15920         ;;
15921       cxx)
15922         allow_undefined_flag_CXX=' -expect_unresolved \*'
15923         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'
15924         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15925           echo "-hidden">> $lib.exp~
15926           $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~
15927           $rm $lib.exp'
15928
15929         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15930         hardcode_libdir_separator_CXX=:
15931
15932         # Commands to make compiler produce verbose output that lists
15933         # what "hidden" libraries, object files and flags are used when
15934         # linking a shared library.
15935         #
15936         # There doesn't appear to be a way to prevent this compiler from
15937         # explicitly linking system object files so we need to strip them
15938         # from the output so that they don't get included in the library
15939         # dependencies.
15940         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'
15941         ;;
15942       *)
15943         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15944           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15945          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'
15946
15947           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15948           hardcode_libdir_separator_CXX=:
15949
15950           # Commands to make compiler produce verbose output that lists
15951           # what "hidden" libraries, object files and flags are used when
15952           # linking a shared library.
15953           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15954
15955         else
15956           # FIXME: insert proper C++ library support
15957           ld_shlibs_CXX=no
15958         fi
15959         ;;
15960     esac
15961     ;;
15962   psos*)
15963     # FIXME: insert proper C++ library support
15964     ld_shlibs_CXX=no
15965     ;;
15966   sco*)
15967     archive_cmds_need_lc_CXX=no
15968     case $cc_basename in
15969       CC)
15970         # FIXME: insert proper C++ library support
15971         ld_shlibs_CXX=no
15972         ;;
15973       *)
15974         # FIXME: insert proper C++ library support
15975         ld_shlibs_CXX=no
15976         ;;
15977     esac
15978     ;;
15979   sunos4*)
15980     case $cc_basename in
15981       CC)
15982         # Sun C++ 4.x
15983         # FIXME: insert proper C++ library support
15984         ld_shlibs_CXX=no
15985         ;;
15986       lcc)
15987         # Lucid
15988         # FIXME: insert proper C++ library support
15989         ld_shlibs_CXX=no
15990         ;;
15991       *)
15992         # FIXME: insert proper C++ library support
15993         ld_shlibs_CXX=no
15994         ;;
15995     esac
15996     ;;
15997   solaris*)
15998     case $cc_basename in
15999       CC)
16000         # Sun C++ 4.2, 5.x and Centerline C++
16001         no_undefined_flag_CXX=' -zdefs'
16002         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16003         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16004         $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'
16005
16006         hardcode_libdir_flag_spec_CXX='-R$libdir'
16007         hardcode_shlibpath_var_CXX=no
16008         case $host_os in
16009           solaris2.0-5 | solaris2.0-5.*) ;;
16010           *)
16011             # The C++ compiler is used as linker so we must use $wl
16012             # flag to pass the commands to the underlying system
16013             # linker.
16014             # Supported since Solaris 2.6 (maybe 2.5.1?)
16015             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16016             ;;
16017         esac
16018         link_all_deplibs_CXX=yes
16019
16020         # Commands to make compiler produce verbose output that lists
16021         # what "hidden" libraries, object files and flags are used when
16022         # linking a shared library.
16023         #
16024         # There doesn't appear to be a way to prevent this compiler from
16025         # explicitly linking system object files so we need to strip them
16026         # from the output so that they don't get included in the library
16027         # dependencies.
16028         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'
16029
16030         # Archives containing C++ object files must be created using
16031         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16032         # necessary to make sure instantiated templates are included
16033         # in the archive.
16034         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16035         ;;
16036       gcx)
16037         # Green Hills C++ Compiler
16038         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16039
16040         # The C++ compiler must be used to create the archive.
16041         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16042         ;;
16043       *)
16044         # GNU C++ compiler with Solaris linker
16045         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16046           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16047           if $CC --version | grep -v '^2\.7' > /dev/null; then
16048             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16049             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16051
16052             # Commands to make compiler produce verbose output that lists
16053             # what "hidden" libraries, object files and flags are used when
16054             # linking a shared library.
16055             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16056           else
16057             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16058             # platform.
16059             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16060             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16062
16063             # Commands to make compiler produce verbose output that lists
16064             # what "hidden" libraries, object files and flags are used when
16065             # linking a shared library.
16066             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16067           fi
16068
16069           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16070         fi
16071         ;;
16072     esac
16073     ;;
16074   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16075     archive_cmds_need_lc_CXX=no
16076     ;;
16077   tandem*)
16078     case $cc_basename in
16079       NCC)
16080         # NonStop-UX NCC 3.20
16081         # FIXME: insert proper C++ library support
16082         ld_shlibs_CXX=no
16083         ;;
16084       *)
16085         # FIXME: insert proper C++ library support
16086         ld_shlibs_CXX=no
16087         ;;
16088     esac
16089     ;;
16090   vxworks*)
16091     # FIXME: insert proper C++ library support
16092     ld_shlibs_CXX=no
16093     ;;
16094   *)
16095     # FIXME: insert proper C++ library support
16096     ld_shlibs_CXX=no
16097     ;;
16098 esac
16099 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16100 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16101 test "$ld_shlibs_CXX" = no && can_build_shared=no
16102
16103 GCC_CXX="$GXX"
16104 LD_CXX="$LD"
16105
16106
16107 cat > conftest.$ac_ext <<EOF
16108 class Foo
16109 {
16110 public:
16111   Foo (void) { a = 0; }
16112 private:
16113   int a;
16114 };
16115 EOF
16116
16117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118   (eval $ac_compile) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; then
16122   # Parse the compiler output and extract the necessary
16123   # objects, libraries and library flags.
16124
16125   # Sentinel used to keep track of whether or not we are before
16126   # the conftest object file.
16127   pre_test_object_deps_done=no
16128
16129   # The `*' in the case matches for architectures that use `case' in
16130   # $output_verbose_cmd can trigger glob expansion during the loop
16131   # eval without this substitution.
16132   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16133
16134   for p in `eval $output_verbose_link_cmd`; do
16135     case $p in
16136
16137     -L* | -R* | -l*)
16138        # Some compilers place space between "-{L,R}" and the path.
16139        # Remove the space.
16140        if test $p = "-L" \
16141           || test $p = "-R"; then
16142          prev=$p
16143          continue
16144        else
16145          prev=
16146        fi
16147
16148        if test "$pre_test_object_deps_done" = no; then
16149          case $p in
16150          -L* | -R*)
16151            # Internal compiler library paths should come after those
16152            # provided the user.  The postdeps already come after the
16153            # user supplied libs so there is no need to process them.
16154            if test -z "$compiler_lib_search_path_CXX"; then
16155              compiler_lib_search_path_CXX="${prev}${p}"
16156            else
16157              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16158            fi
16159            ;;
16160          # The "-l" case would never come before the object being
16161          # linked, so don't bother handling this case.
16162          esac
16163        else
16164          if test -z "$postdeps_CXX"; then
16165            postdeps_CXX="${prev}${p}"
16166          else
16167            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16168          fi
16169        fi
16170        ;;
16171
16172     *.$objext)
16173        # This assumes that the test object file only shows up
16174        # once in the compiler output.
16175        if test "$p" = "conftest.$objext"; then
16176          pre_test_object_deps_done=yes
16177          continue
16178        fi
16179
16180        if test "$pre_test_object_deps_done" = no; then
16181          if test -z "$predep_objects_CXX"; then
16182            predep_objects_CXX="$p"
16183          else
16184            predep_objects_CXX="$predep_objects_CXX $p"
16185          fi
16186        else
16187          if test -z "$postdep_objects_CXX"; then
16188            postdep_objects_CXX="$p"
16189          else
16190            postdep_objects_CXX="$postdep_objects_CXX $p"
16191          fi
16192        fi
16193        ;;
16194
16195     *) ;; # Ignore the rest.
16196
16197     esac
16198   done
16199
16200   # Clean up.
16201   rm -f a.out a.exe
16202 else
16203   echo "libtool.m4: error: problem compiling CXX test program"
16204 fi
16205
16206 $rm -f confest.$objext
16207
16208 case " $postdeps_CXX " in
16209 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16210 esac
16211
16212 lt_prog_compiler_wl_CXX=
16213 lt_prog_compiler_pic_CXX=
16214 lt_prog_compiler_static_CXX=
16215
16216 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16217 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16218
16219   # C++ specific cases for pic, static, wl, etc.
16220   if test "$GXX" = yes; then
16221     lt_prog_compiler_wl_CXX='-Wl,'
16222     lt_prog_compiler_static_CXX='-static'
16223
16224     case $host_os in
16225     aix*)
16226       # All AIX code is PIC.
16227       if test "$host_cpu" = ia64; then
16228         # AIX 5 now supports IA64 processor
16229         lt_prog_compiler_static_CXX='-Bstatic'
16230       fi
16231       ;;
16232     amigaos*)
16233       # FIXME: we need at least 68020 code to build shared libraries, but
16234       # adding the `-m68020' flag to GCC prevents building anything better,
16235       # like `-m68040'.
16236       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16237       ;;
16238     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16239       # PIC is the default for these OSes.
16240       ;;
16241     mingw* | os2* | pw32*)
16242       # This hack is so that the source file can tell whether it is being
16243       # built for inclusion in a dll (and should export symbols for example).
16244       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16245       ;;
16246     darwin* | rhapsody*)
16247       # PIC is the default on this platform
16248       # Common symbols not allowed in MH_DYLIB files
16249       lt_prog_compiler_pic_CXX='-fno-common'
16250       ;;
16251     *djgpp*)
16252       # DJGPP does not support shared libraries at all
16253       lt_prog_compiler_pic_CXX=
16254       ;;
16255     sysv4*MP*)
16256       if test -d /usr/nec; then
16257         lt_prog_compiler_pic_CXX=-Kconform_pic
16258       fi
16259       ;;
16260     hpux*)
16261       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16262       # not for PA HP-UX.
16263       case "$host_cpu" in
16264       hppa*64*|ia64*)
16265         ;;
16266       *)
16267         lt_prog_compiler_pic_CXX='-fPIC'
16268         ;;
16269       esac
16270       ;;
16271     *)
16272       lt_prog_compiler_pic_CXX='-fPIC'
16273       ;;
16274     esac
16275   else
16276     case $host_os in
16277       aix4* | aix5*)
16278         # All AIX code is PIC.
16279         if test "$host_cpu" = ia64; then
16280           # AIX 5 now supports IA64 processor
16281           lt_prog_compiler_static_CXX='-Bstatic'
16282         else
16283           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16284         fi
16285         ;;
16286       chorus*)
16287         case $cc_basename in
16288         cxch68)
16289           # Green Hills C++ Compiler
16290           # _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"
16291           ;;
16292         esac
16293         ;;
16294        darwin*)
16295          # PIC is the default on this platform
16296          # Common symbols not allowed in MH_DYLIB files
16297          case "$cc_basename" in
16298            xlc*)
16299            lt_prog_compiler_pic_CXX='-qnocommon'
16300            lt_prog_compiler_wl_CXX='-Wl,'
16301            ;;
16302          esac
16303        ;;
16304       dgux*)
16305         case $cc_basename in
16306           ec++)
16307             lt_prog_compiler_pic_CXX='-KPIC'
16308             ;;
16309           ghcx)
16310             # Green Hills C++ Compiler
16311             lt_prog_compiler_pic_CXX='-pic'
16312             ;;
16313           *)
16314             ;;
16315         esac
16316         ;;
16317       freebsd* | kfreebsd*-gnu)
16318         # FreeBSD uses GNU C++
16319         ;;
16320       hpux9* | hpux10* | hpux11*)
16321         case $cc_basename in
16322           CC)
16323             lt_prog_compiler_wl_CXX='-Wl,'
16324             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16325             if test "$host_cpu" != ia64; then
16326               lt_prog_compiler_pic_CXX='+Z'
16327             fi
16328             ;;
16329           aCC)
16330             lt_prog_compiler_wl_CXX='-Wl,'
16331             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16332             case "$host_cpu" in
16333             hppa*64*|ia64*)
16334               # +Z the default
16335               ;;
16336             *)
16337               lt_prog_compiler_pic_CXX='+Z'
16338               ;;
16339             esac
16340             ;;
16341           *)
16342             ;;
16343         esac
16344         ;;
16345       irix5* | irix6* | nonstopux*)
16346         case $cc_basename in
16347           CC)
16348             lt_prog_compiler_wl_CXX='-Wl,'
16349             lt_prog_compiler_static_CXX='-non_shared'
16350             # CC pic flag -KPIC is the default.
16351             ;;
16352           *)
16353             ;;
16354         esac
16355         ;;
16356       linux*)
16357         case $cc_basename in
16358           KCC)
16359             # KAI C++ Compiler
16360             lt_prog_compiler_wl_CXX='--backend -Wl,'
16361             lt_prog_compiler_pic_CXX='-fPIC'
16362             ;;
16363           icpc)
16364             # Intel C++
16365             lt_prog_compiler_wl_CXX='-Wl,'
16366             lt_prog_compiler_pic_CXX='-KPIC'
16367             lt_prog_compiler_static_CXX='-static'
16368             ;;
16369           cxx)
16370             # Compaq C++
16371             # Make sure the PIC flag is empty.  It appears that all Alpha
16372             # Linux and Compaq Tru64 Unix objects are PIC.
16373             lt_prog_compiler_pic_CXX=
16374             lt_prog_compiler_static_CXX='-non_shared'
16375             ;;
16376           *)
16377             ;;
16378         esac
16379         ;;
16380       lynxos*)
16381         ;;
16382       m88k*)
16383         ;;
16384       mvs*)
16385         case $cc_basename in
16386           cxx)
16387             lt_prog_compiler_pic_CXX='-W c,exportall'
16388             ;;
16389           *)
16390             ;;
16391         esac
16392         ;;
16393       netbsd*)
16394         ;;
16395       osf3* | osf4* | osf5*)
16396         case $cc_basename in
16397           KCC)
16398             lt_prog_compiler_wl_CXX='--backend -Wl,'
16399             ;;
16400           RCC)
16401             # Rational C++ 2.4.1
16402             lt_prog_compiler_pic_CXX='-pic'
16403             ;;
16404           cxx)
16405             # Digital/Compaq C++
16406             lt_prog_compiler_wl_CXX='-Wl,'
16407             # Make sure the PIC flag is empty.  It appears that all Alpha
16408             # Linux and Compaq Tru64 Unix objects are PIC.
16409             lt_prog_compiler_pic_CXX=
16410             lt_prog_compiler_static_CXX='-non_shared'
16411             ;;
16412           *)
16413             ;;
16414         esac
16415         ;;
16416       psos*)
16417         ;;
16418       sco*)
16419         case $cc_basename in
16420           CC)
16421             lt_prog_compiler_pic_CXX='-fPIC'
16422             ;;
16423           *)
16424             ;;
16425         esac
16426         ;;
16427       solaris*)
16428         case $cc_basename in
16429           CC)
16430             # Sun C++ 4.2, 5.x and Centerline C++
16431             lt_prog_compiler_pic_CXX='-KPIC'
16432             lt_prog_compiler_static_CXX='-Bstatic'
16433             lt_prog_compiler_wl_CXX='-Qoption ld '
16434             ;;
16435           gcx)
16436             # Green Hills C++ Compiler
16437             lt_prog_compiler_pic_CXX='-PIC'
16438             ;;
16439           *)
16440             ;;
16441         esac
16442         ;;
16443       sunos4*)
16444         case $cc_basename in
16445           CC)
16446             # Sun C++ 4.x
16447             lt_prog_compiler_pic_CXX='-pic'
16448             lt_prog_compiler_static_CXX='-Bstatic'
16449             ;;
16450           lcc)
16451             # Lucid
16452             lt_prog_compiler_pic_CXX='-pic'
16453             ;;
16454           *)
16455             ;;
16456         esac
16457         ;;
16458       tandem*)
16459         case $cc_basename in
16460           NCC)
16461             # NonStop-UX NCC 3.20
16462             lt_prog_compiler_pic_CXX='-KPIC'
16463             ;;
16464           *)
16465             ;;
16466         esac
16467         ;;
16468       unixware*)
16469         ;;
16470       vxworks*)
16471         ;;
16472       *)
16473         lt_prog_compiler_can_build_shared_CXX=no
16474         ;;
16475     esac
16476   fi
16477
16478 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16479 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16480
16481 #
16482 # Check to make sure the PIC flag actually works.
16483 #
16484 if test -n "$lt_prog_compiler_pic_CXX"; then
16485
16486 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16487 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16488 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16489   echo $ECHO_N "(cached) $ECHO_C" >&6
16490 else
16491   lt_prog_compiler_pic_works_CXX=no
16492   ac_outfile=conftest.$ac_objext
16493    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16494    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16495    # Insert the option either (1) after the last *FLAGS variable, or
16496    # (2) before a word containing "conftest.", or (3) at the end.
16497    # Note that $ac_compile itself does not contain backslashes and begins
16498    # with a dollar sign (not a hyphen), so the echo should work correctly.
16499    # The option is referenced via a variable to avoid confusing sed.
16500    lt_compile=`echo "$ac_compile" | $SED \
16501    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16503    -e 's:$: $lt_compiler_flag:'`
16504    (eval echo "\"\$as_me:16504: $lt_compile\"" >&5)
16505    (eval "$lt_compile" 2>conftest.err)
16506    ac_status=$?
16507    cat conftest.err >&5
16508    echo "$as_me:16508: \$? = $ac_status" >&5
16509    if (exit $ac_status) && test -s "$ac_outfile"; then
16510      # The compiler can only warn and ignore the option if not recognized
16511      # So say no if there are warnings
16512      if test ! -s conftest.err; then
16513        lt_prog_compiler_pic_works_CXX=yes
16514      fi
16515    fi
16516    $rm conftest*
16517
16518 fi
16519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16520 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16521
16522 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16523     case $lt_prog_compiler_pic_CXX in
16524      "" | " "*) ;;
16525      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16526      esac
16527 else
16528     lt_prog_compiler_pic_CXX=
16529      lt_prog_compiler_can_build_shared_CXX=no
16530 fi
16531
16532 fi
16533 case "$host_os" in
16534   # For platforms which do not support PIC, -DPIC is meaningless:
16535   *djgpp*)
16536     lt_prog_compiler_pic_CXX=
16537     ;;
16538   *)
16539     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16540     ;;
16541 esac
16542
16543 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16544 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16545 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16546   echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548   lt_cv_prog_compiler_c_o_CXX=no
16549    $rm -r conftest 2>/dev/null
16550    mkdir conftest
16551    cd conftest
16552    mkdir out
16553    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16554
16555    lt_compiler_flag="-o out/conftest2.$ac_objext"
16556    # Insert the option either (1) after the last *FLAGS variable, or
16557    # (2) before a word containing "conftest.", or (3) at the end.
16558    # Note that $ac_compile itself does not contain backslashes and begins
16559    # with a dollar sign (not a hyphen), so the echo should work correctly.
16560    lt_compile=`echo "$ac_compile" | $SED \
16561    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16563    -e 's:$: $lt_compiler_flag:'`
16564    (eval echo "\"\$as_me:16564: $lt_compile\"" >&5)
16565    (eval "$lt_compile" 2>out/conftest.err)
16566    ac_status=$?
16567    cat out/conftest.err >&5
16568    echo "$as_me:16568: \$? = $ac_status" >&5
16569    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16570    then
16571      # The compiler can only warn and ignore the option if not recognized
16572      # So say no if there are warnings
16573      if test ! -s out/conftest.err; then
16574        lt_cv_prog_compiler_c_o_CXX=yes
16575      fi
16576    fi
16577    chmod u+w .
16578    $rm conftest*
16579    # SGI C++ compiler will create directory out/ii_files/ for
16580    # template instantiation
16581    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16582    $rm out/* && rmdir out
16583    cd ..
16584    rmdir conftest
16585    $rm conftest*
16586
16587 fi
16588 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16589 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16590
16591
16592 hard_links="nottested"
16593 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16594   # do not overwrite the value of need_locks provided by the user
16595   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16596 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16597   hard_links=yes
16598   $rm conftest*
16599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16600   touch conftest.a
16601   ln conftest.a conftest.b 2>&5 || hard_links=no
16602   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16603   echo "$as_me:$LINENO: result: $hard_links" >&5
16604 echo "${ECHO_T}$hard_links" >&6
16605   if test "$hard_links" = no; then
16606     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16607 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16608     need_locks=warn
16609   fi
16610 else
16611   need_locks=no
16612 fi
16613
16614 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16616
16617   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16618   case $host_os in
16619   aix4* | aix5*)
16620     # If we're using GNU nm, then we don't want the "-C" option.
16621     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16622     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16623       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'
16624     else
16625       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'
16626     fi
16627     ;;
16628   pw32*)
16629     export_symbols_cmds_CXX="$ltdll_cmds"
16630   ;;
16631   cygwin* | mingw*)
16632     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16633   ;;
16634   *)
16635     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16636   ;;
16637   esac
16638
16639 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16640 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16641 test "$ld_shlibs_CXX" = no && can_build_shared=no
16642
16643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16644 if test "$GCC" = yes; then
16645   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16646 fi
16647
16648 #
16649 # Do we need to explicitly link libc?
16650 #
16651 case "x$archive_cmds_need_lc_CXX" in
16652 x|xyes)
16653   # Assume -lc should be added
16654   archive_cmds_need_lc_CXX=yes
16655
16656   if test "$enable_shared" = yes && test "$GCC" = yes; then
16657     case $archive_cmds_CXX in
16658     *'~'*)
16659       # FIXME: we may have to deal with multi-command sequences.
16660       ;;
16661     '$CC '*)
16662       # Test whether the compiler implicitly links with -lc since on some
16663       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16664       # to ld, don't add -lc before -lgcc.
16665       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16666 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16667       $rm conftest*
16668       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16669
16670       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16671   (eval $ac_compile) 2>&5
16672   ac_status=$?
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); } 2>conftest.err; then
16675         soname=conftest
16676         lib=conftest
16677         libobjs=conftest.$ac_objext
16678         deplibs=
16679         wl=$lt_prog_compiler_wl_CXX
16680         compiler_flags=-v
16681         linker_flags=-v
16682         verstring=
16683         output_objdir=.
16684         libname=conftest
16685         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16686         allow_undefined_flag_CXX=
16687         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16688   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); }
16692         then
16693           archive_cmds_need_lc_CXX=no
16694         else
16695           archive_cmds_need_lc_CXX=yes
16696         fi
16697         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16698       else
16699         cat conftest.err 1>&5
16700       fi
16701       $rm conftest*
16702       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16703 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16704       ;;
16705     esac
16706   fi
16707   ;;
16708 esac
16709
16710 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16711 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16712 library_names_spec=
16713 libname_spec='lib$name'
16714 soname_spec=
16715 shrext_cmds=".so"
16716 postinstall_cmds=
16717 postuninstall_cmds=
16718 finish_cmds=
16719 finish_eval=
16720 shlibpath_var=
16721 shlibpath_overrides_runpath=unknown
16722 version_type=none
16723 dynamic_linker="$host_os ld.so"
16724 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16725 if test "$GCC" = yes; then
16726   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16727   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16728     # if the path contains ";" then we assume it to be the separator
16729     # otherwise default to the standard path separator (i.e. ":") - it is
16730     # assumed that no part of a normal pathname contains ";" but that should
16731     # okay in the real world where ";" in dirpaths is itself problematic.
16732     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16733   else
16734     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16735   fi
16736 else
16737   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16738 fi
16739 need_lib_prefix=unknown
16740 hardcode_into_libs=no
16741
16742 # when you set need_version to no, make sure it does not cause -set_version
16743 # flags to be left without arguments
16744 need_version=unknown
16745
16746 case $host_os in
16747 aix3*)
16748   version_type=linux
16749   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16750   shlibpath_var=LIBPATH
16751
16752   # AIX 3 has no versioning support, so we append a major version to the name.
16753   soname_spec='${libname}${release}${shared_ext}$major'
16754   ;;
16755
16756 aix4* | aix5*)
16757   version_type=linux
16758   need_lib_prefix=no
16759   need_version=no
16760   hardcode_into_libs=yes
16761   if test "$host_cpu" = ia64; then
16762     # AIX 5 supports IA64
16763     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16764     shlibpath_var=LD_LIBRARY_PATH
16765   else
16766     # With GCC up to 2.95.x, collect2 would create an import file
16767     # for dependence libraries.  The import file would start with
16768     # the line `#! .'.  This would cause the generated library to
16769     # depend on `.', always an invalid library.  This was fixed in
16770     # development snapshots of GCC prior to 3.0.
16771     case $host_os in
16772       aix4 | aix4.[01] | aix4.[01].*)
16773       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16774            echo ' yes '
16775            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16776         :
16777       else
16778         can_build_shared=no
16779       fi
16780       ;;
16781     esac
16782     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16783     # soname into executable. Probably we can add versioning support to
16784     # collect2, so additional links can be useful in future.
16785     if test "$aix_use_runtimelinking" = yes; then
16786       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16787       # instead of lib<name>.a to let people know that these are not
16788       # typical AIX shared libraries.
16789       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790     else
16791       # We preserve .a as extension for shared libraries through AIX4.2
16792       # and later when we are not doing run time linking.
16793       library_names_spec='${libname}${release}.a $libname.a'
16794       soname_spec='${libname}${release}${shared_ext}$major'
16795     fi
16796     shlibpath_var=LIBPATH
16797   fi
16798   ;;
16799
16800 amigaos*)
16801   library_names_spec='$libname.ixlibrary $libname.a'
16802   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16803   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'
16804   ;;
16805
16806 beos*)
16807   library_names_spec='${libname}${shared_ext}'
16808   dynamic_linker="$host_os ld.so"
16809   shlibpath_var=LIBRARY_PATH
16810   ;;
16811
16812 bsdi[45]*)
16813   version_type=linux
16814   need_version=no
16815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16816   soname_spec='${libname}${release}${shared_ext}$major'
16817   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16818   shlibpath_var=LD_LIBRARY_PATH
16819   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16820   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16821   # the default ld.so.conf also contains /usr/contrib/lib and
16822   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16823   # libtool to hard-code these into programs
16824   ;;
16825
16826 cygwin* | mingw* | pw32*)
16827   version_type=windows
16828   shrext_cmds=".dll"
16829   need_version=no
16830   need_lib_prefix=no
16831
16832   case $GCC,$host_os in
16833   yes,cygwin* | yes,mingw* | yes,pw32*)
16834     library_names_spec='$libname.dll.a'
16835     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16836     postinstall_cmds='base_file=`basename \${file}`~
16837       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16838       dldir=$destdir/`dirname \$dlpath`~
16839       test -d \$dldir || mkdir -p \$dldir~
16840       $install_prog $dir/$dlname \$dldir/$dlname'
16841     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16842       dlpath=$dir/\$dldll~
16843        $rm \$dlpath'
16844     shlibpath_overrides_runpath=yes
16845
16846     case $host_os in
16847     cygwin*)
16848       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16849       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16850       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16851       ;;
16852     mingw*)
16853       # MinGW DLLs use traditional 'lib' prefix
16854       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16855       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16856       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16857         # It is most probably a Windows format PATH printed by
16858         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16859         # path with ; separators, and with drive letters. We can handle the
16860         # drive letters (cygwin fileutils understands them), so leave them,
16861         # especially as we might pass files found there to a mingw objdump,
16862         # which wouldn't understand a cygwinified path. Ahh.
16863         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16864       else
16865         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16866       fi
16867       ;;
16868     pw32*)
16869       # pw32 DLLs use 'pw' prefix rather than 'lib'
16870       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16871       ;;
16872     esac
16873     ;;
16874
16875   *)
16876     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16877     ;;
16878   esac
16879   dynamic_linker='Win32 ld.exe'
16880   # FIXME: first we should search . and the directory the executable is in
16881   shlibpath_var=PATH
16882   ;;
16883
16884 darwin* | rhapsody*)
16885   dynamic_linker="$host_os dyld"
16886   version_type=darwin
16887   need_lib_prefix=no
16888   need_version=no
16889   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16890   soname_spec='${libname}${release}${major}$shared_ext'
16891   shlibpath_overrides_runpath=yes
16892   shlibpath_var=DYLD_LIBRARY_PATH
16893   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16894   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16895   if test "$GCC" = yes; then
16896     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"`
16897   else
16898     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16899   fi
16900   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16901   ;;
16902
16903 dgux*)
16904   version_type=linux
16905   need_lib_prefix=no
16906   need_version=no
16907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16908   soname_spec='${libname}${release}${shared_ext}$major'
16909   shlibpath_var=LD_LIBRARY_PATH
16910   ;;
16911
16912 freebsd1*)
16913   dynamic_linker=no
16914   ;;
16915
16916 kfreebsd*-gnu)
16917   version_type=linux
16918   need_lib_prefix=no
16919   need_version=no
16920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16921   soname_spec='${libname}${release}${shared_ext}$major'
16922   shlibpath_var=LD_LIBRARY_PATH
16923   shlibpath_overrides_runpath=no
16924   hardcode_into_libs=yes
16925   dynamic_linker='GNU ld.so'
16926   ;;
16927
16928 freebsd*)
16929   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16930   version_type=freebsd-$objformat
16931   case $version_type in
16932     freebsd-elf*)
16933       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16934       need_version=no
16935       need_lib_prefix=no
16936       ;;
16937     freebsd-*)
16938       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16939       need_version=yes
16940       ;;
16941   esac
16942   shlibpath_var=LD_LIBRARY_PATH
16943   case $host_os in
16944   freebsd2*)
16945     shlibpath_overrides_runpath=yes
16946     ;;
16947   freebsd3.01* | freebsdelf3.01*)
16948     shlibpath_overrides_runpath=yes
16949     hardcode_into_libs=yes
16950     ;;
16951   *) # from 3.2 on
16952     shlibpath_overrides_runpath=no
16953     hardcode_into_libs=yes
16954     ;;
16955   esac
16956   ;;
16957
16958 gnu*)
16959   version_type=linux
16960   need_lib_prefix=no
16961   need_version=no
16962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16963   soname_spec='${libname}${release}${shared_ext}$major'
16964   shlibpath_var=LD_LIBRARY_PATH
16965   hardcode_into_libs=yes
16966   ;;
16967
16968 hpux9* | hpux10* | hpux11*)
16969   # Give a soname corresponding to the major version so that dld.sl refuses to
16970   # link against other versions.
16971   version_type=sunos
16972   need_lib_prefix=no
16973   need_version=no
16974   case "$host_cpu" in
16975   ia64*)
16976     shrext_cmds='.so'
16977     hardcode_into_libs=yes
16978     dynamic_linker="$host_os dld.so"
16979     shlibpath_var=LD_LIBRARY_PATH
16980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982     soname_spec='${libname}${release}${shared_ext}$major'
16983     if test "X$HPUX_IA64_MODE" = X32; then
16984       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16985     else
16986       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16987     fi
16988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16989     ;;
16990    hppa*64*)
16991      shrext_cmds='.sl'
16992      hardcode_into_libs=yes
16993      dynamic_linker="$host_os dld.sl"
16994      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16995      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16996      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997      soname_spec='${libname}${release}${shared_ext}$major'
16998      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16999      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17000      ;;
17001    *)
17002     shrext_cmds='.sl'
17003     dynamic_linker="$host_os dld.sl"
17004     shlibpath_var=SHLIB_PATH
17005     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007     soname_spec='${libname}${release}${shared_ext}$major'
17008     ;;
17009   esac
17010   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17011   postinstall_cmds='chmod 555 $lib'
17012   ;;
17013
17014 irix5* | irix6* | nonstopux*)
17015   case $host_os in
17016     nonstopux*) version_type=nonstopux ;;
17017     *)
17018         if test "$lt_cv_prog_gnu_ld" = yes; then
17019                 version_type=linux
17020         else
17021                 version_type=irix
17022         fi ;;
17023   esac
17024   need_lib_prefix=no
17025   need_version=no
17026   soname_spec='${libname}${release}${shared_ext}$major'
17027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17028   case $host_os in
17029   irix5* | nonstopux*)
17030     libsuff= shlibsuff=
17031     ;;
17032   *)
17033     case $LD in # libtool.m4 will add one of these switches to LD
17034     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17035       libsuff= shlibsuff= libmagic=32-bit;;
17036     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17037       libsuff=32 shlibsuff=N32 libmagic=N32;;
17038     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17039       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17040     *) libsuff= shlibsuff= libmagic=never-match;;
17041     esac
17042     ;;
17043   esac
17044   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17045   shlibpath_overrides_runpath=no
17046   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17047   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17048   hardcode_into_libs=yes
17049   ;;
17050
17051 # No shared lib support for Linux oldld, aout, or coff.
17052 linux*oldld* | linux*aout* | linux*coff*)
17053   dynamic_linker=no
17054   ;;
17055
17056 # This must be Linux ELF.
17057 linux*)
17058   version_type=linux
17059   need_lib_prefix=no
17060   need_version=no
17061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062   soname_spec='${libname}${release}${shared_ext}$major'
17063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17064   shlibpath_var=LD_LIBRARY_PATH
17065   shlibpath_overrides_runpath=no
17066   # This implies no fast_install, which is unacceptable.
17067   # Some rework will be needed to allow for fast_install
17068   # before this can be enabled.
17069   hardcode_into_libs=yes
17070
17071   # Append ld.so.conf contents to the search path
17072   if test -f /etc/ld.so.conf; then
17073     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17074     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17075   fi
17076
17077   # We used to test for /lib/ld.so.1 and disable shared libraries on
17078   # powerpc, because MkLinux only supported shared libraries with the
17079   # GNU dynamic linker.  Since this was broken with cross compilers,
17080   # most powerpc-linux boxes support dynamic linking these days and
17081   # people can always --disable-shared, the test was removed, and we
17082   # assume the GNU/Linux dynamic linker is in use.
17083   dynamic_linker='GNU/Linux ld.so'
17084   ;;
17085
17086 knetbsd*-gnu)
17087   version_type=linux
17088   need_lib_prefix=no
17089   need_version=no
17090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17091   soname_spec='${libname}${release}${shared_ext}$major'
17092   shlibpath_var=LD_LIBRARY_PATH
17093   shlibpath_overrides_runpath=no
17094   hardcode_into_libs=yes
17095   dynamic_linker='GNU ld.so'
17096   ;;
17097
17098 netbsd*)
17099   version_type=sunos
17100   need_lib_prefix=no
17101   need_version=no
17102   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17104     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17105     dynamic_linker='NetBSD (a.out) ld.so'
17106   else
17107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17108     soname_spec='${libname}${release}${shared_ext}$major'
17109     dynamic_linker='NetBSD ld.elf_so'
17110   fi
17111   shlibpath_var=LD_LIBRARY_PATH
17112   shlibpath_overrides_runpath=yes
17113   hardcode_into_libs=yes
17114   ;;
17115
17116 newsos6)
17117   version_type=linux
17118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119   shlibpath_var=LD_LIBRARY_PATH
17120   shlibpath_overrides_runpath=yes
17121   ;;
17122
17123 nto-qnx*)
17124   version_type=linux
17125   need_lib_prefix=no
17126   need_version=no
17127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128   soname_spec='${libname}${release}${shared_ext}$major'
17129   shlibpath_var=LD_LIBRARY_PATH
17130   shlibpath_overrides_runpath=yes
17131   ;;
17132
17133 openbsd*)
17134   version_type=sunos
17135   need_lib_prefix=no
17136   need_version=no
17137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17138   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17139   shlibpath_var=LD_LIBRARY_PATH
17140   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17141     case $host_os in
17142       openbsd2.[89] | openbsd2.[89].*)
17143         shlibpath_overrides_runpath=no
17144         ;;
17145       *)
17146         shlibpath_overrides_runpath=yes
17147         ;;
17148       esac
17149   else
17150     shlibpath_overrides_runpath=yes
17151   fi
17152   ;;
17153
17154 os2*)
17155   libname_spec='$name'
17156   shrext_cmds=".dll"
17157   need_lib_prefix=no
17158   library_names_spec='$libname${shared_ext} $libname.a'
17159   dynamic_linker='OS/2 ld.exe'
17160   shlibpath_var=LIBPATH
17161   ;;
17162
17163 osf3* | osf4* | osf5*)
17164   version_type=osf
17165   need_lib_prefix=no
17166   need_version=no
17167   soname_spec='${libname}${release}${shared_ext}$major'
17168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169   shlibpath_var=LD_LIBRARY_PATH
17170   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17171   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17172   ;;
17173
17174 sco3.2v5*)
17175   version_type=osf
17176   soname_spec='${libname}${release}${shared_ext}$major'
17177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178   shlibpath_var=LD_LIBRARY_PATH
17179   ;;
17180
17181 solaris*)
17182   version_type=linux
17183   need_lib_prefix=no
17184   need_version=no
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186   soname_spec='${libname}${release}${shared_ext}$major'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   shlibpath_overrides_runpath=yes
17189   hardcode_into_libs=yes
17190   # ldd complains unless libraries are executable
17191   postinstall_cmds='chmod +x $lib'
17192   ;;
17193
17194 sunos4*)
17195   version_type=sunos
17196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17197   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17198   shlibpath_var=LD_LIBRARY_PATH
17199   shlibpath_overrides_runpath=yes
17200   if test "$with_gnu_ld" = yes; then
17201     need_lib_prefix=no
17202   fi
17203   need_version=yes
17204   ;;
17205
17206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17207   version_type=linux
17208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209   soname_spec='${libname}${release}${shared_ext}$major'
17210   shlibpath_var=LD_LIBRARY_PATH
17211   case $host_vendor in
17212     sni)
17213       shlibpath_overrides_runpath=no
17214       need_lib_prefix=no
17215       export_dynamic_flag_spec='${wl}-Blargedynsym'
17216       runpath_var=LD_RUN_PATH
17217       ;;
17218     siemens)
17219       need_lib_prefix=no
17220       ;;
17221     motorola)
17222       need_lib_prefix=no
17223       need_version=no
17224       shlibpath_overrides_runpath=no
17225       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17226       ;;
17227   esac
17228   ;;
17229
17230 sysv4*MP*)
17231   if test -d /usr/nec ;then
17232     version_type=linux
17233     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17234     soname_spec='$libname${shared_ext}.$major'
17235     shlibpath_var=LD_LIBRARY_PATH
17236   fi
17237   ;;
17238
17239 uts4*)
17240   version_type=linux
17241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242   soname_spec='${libname}${release}${shared_ext}$major'
17243   shlibpath_var=LD_LIBRARY_PATH
17244   ;;
17245
17246 *)
17247   dynamic_linker=no
17248   ;;
17249 esac
17250 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17251 echo "${ECHO_T}$dynamic_linker" >&6
17252 test "$dynamic_linker" = no && can_build_shared=no
17253
17254 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17256 hardcode_action_CXX=
17257 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17258    test -n "$runpath_var_CXX" || \
17259    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17260
17261   # We can hardcode non-existant directories.
17262   if test "$hardcode_direct_CXX" != no &&
17263      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17264      # have to relink, otherwise we might link with an installed library
17265      # when we should be linking with a yet-to-be-installed one
17266      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17267      test "$hardcode_minus_L_CXX" != no; then
17268     # Linking always hardcodes the temporary library directory.
17269     hardcode_action_CXX=relink
17270   else
17271     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17272     hardcode_action_CXX=immediate
17273   fi
17274 else
17275   # We cannot hardcode anything, or else we can only hardcode existing
17276   # directories.
17277   hardcode_action_CXX=unsupported
17278 fi
17279 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17280 echo "${ECHO_T}$hardcode_action_CXX" >&6
17281
17282 if test "$hardcode_action_CXX" = relink; then
17283   # Fast installation is not supported
17284   enable_fast_install=no
17285 elif test "$shlibpath_overrides_runpath" = yes ||
17286      test "$enable_shared" = no; then
17287   # Fast installation is not necessary
17288   enable_fast_install=needless
17289 fi
17290
17291 striplib=
17292 old_striplib=
17293 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17296   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17297   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17298   echo "$as_me:$LINENO: result: yes" >&5
17299 echo "${ECHO_T}yes" >&6
17300 else
17301 # FIXME - insert some real tests, host_os isn't really good enough
17302   case $host_os in
17303    darwin*)
17304        if test -n "$STRIP" ; then
17305          striplib="$STRIP -x"
17306          echo "$as_me:$LINENO: result: yes" >&5
17307 echo "${ECHO_T}yes" >&6
17308        else
17309   echo "$as_me:$LINENO: result: no" >&5
17310 echo "${ECHO_T}no" >&6
17311 fi
17312        ;;
17313    *)
17314   echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6
17316     ;;
17317   esac
17318 fi
17319
17320 if test "x$enable_dlopen" != xyes; then
17321   enable_dlopen=unknown
17322   enable_dlopen_self=unknown
17323   enable_dlopen_self_static=unknown
17324 else
17325   lt_cv_dlopen=no
17326   lt_cv_dlopen_libs=
17327
17328   case $host_os in
17329   beos*)
17330     lt_cv_dlopen="load_add_on"
17331     lt_cv_dlopen_libs=
17332     lt_cv_dlopen_self=yes
17333     ;;
17334
17335   mingw* | pw32*)
17336     lt_cv_dlopen="LoadLibrary"
17337     lt_cv_dlopen_libs=
17338    ;;
17339
17340   cygwin*)
17341     lt_cv_dlopen="dlopen"
17342     lt_cv_dlopen_libs=
17343    ;;
17344
17345   darwin*)
17346   # if libdl is installed we need to link against it
17347     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352   ac_check_lib_save_LIBS=$LIBS
17353 LIBS="-ldl  $LIBS"
17354 cat >conftest.$ac_ext <<_ACEOF
17355 /* confdefs.h.  */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h.  */
17360
17361 /* Override any gcc2 internal prototype to avoid an error.  */
17362 #ifdef __cplusplus
17363 extern "C"
17364 #endif
17365 /* We use char because int might match the return type of a gcc2
17366    builtin and then its argument prototype would still apply.  */
17367 char dlopen ();
17368 int
17369 main ()
17370 {
17371 dlopen ();
17372   ;
17373   return 0;
17374 }
17375 _ACEOF
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17378   (eval $ac_link) 2>conftest.er1
17379   ac_status=$?
17380   grep -v '^ *+' conftest.er1 >conftest.err
17381   rm -f conftest.er1
17382   cat conftest.err >&5
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } &&
17385          { ac_try='test -z "$ac_cxx_werror_flag"
17386                          || test ! -s conftest.err'
17387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388   (eval $ac_try) 2>&5
17389   ac_status=$?
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); }; } &&
17392          { ac_try='test -s conftest$ac_exeext'
17393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394   (eval $ac_try) 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); }; }; then
17398   ac_cv_lib_dl_dlopen=yes
17399 else
17400   echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17402
17403 ac_cv_lib_dl_dlopen=no
17404 fi
17405 rm -f conftest.err conftest.$ac_objext \
17406       conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_check_lib_save_LIBS
17408 fi
17409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17410 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17411 if test $ac_cv_lib_dl_dlopen = yes; then
17412   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17413 else
17414
17415     lt_cv_dlopen="dyld"
17416     lt_cv_dlopen_libs=
17417     lt_cv_dlopen_self=yes
17418
17419 fi
17420
17421    ;;
17422
17423   *)
17424     echo "$as_me:$LINENO: checking for shl_load" >&5
17425 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17426 if test "${ac_cv_func_shl_load+set}" = set; then
17427   echo $ECHO_N "(cached) $ECHO_C" >&6
17428 else
17429   cat >conftest.$ac_ext <<_ACEOF
17430 /* confdefs.h.  */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h.  */
17435 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17437 #define shl_load innocuous_shl_load
17438
17439 /* System header to define __stub macros and hopefully few prototypes,
17440     which can conflict with char shl_load (); below.
17441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442     <limits.h> exists even on freestanding compilers.  */
17443
17444 #ifdef __STDC__
17445 # include <limits.h>
17446 #else
17447 # include <assert.h>
17448 #endif
17449
17450 #undef shl_load
17451
17452 /* Override any gcc2 internal prototype to avoid an error.  */
17453 #ifdef __cplusplus
17454 extern "C"
17455 {
17456 #endif
17457 /* We use char because int might match the return type of a gcc2
17458    builtin and then its argument prototype would still apply.  */
17459 char shl_load ();
17460 /* The GNU C library defines this for functions which it implements
17461     to always fail with ENOSYS.  Some functions are actually named
17462     something starting with __ and the normal name is an alias.  */
17463 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17464 choke me
17465 #else
17466 char (*f) () = shl_load;
17467 #endif
17468 #ifdef __cplusplus
17469 }
17470 #endif
17471
17472 int
17473 main ()
17474 {
17475 return f != shl_load;
17476   ;
17477   return 0;
17478 }
17479 _ACEOF
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482   (eval $ac_link) 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } &&
17489          { ac_try='test -z "$ac_cxx_werror_flag"
17490                          || test ! -s conftest.err'
17491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492   (eval $ac_try) 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); }; } &&
17496          { ac_try='test -s conftest$ac_exeext'
17497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498   (eval $ac_try) 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); }; }; then
17502   ac_cv_func_shl_load=yes
17503 else
17504   echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 ac_cv_func_shl_load=no
17508 fi
17509 rm -f conftest.err conftest.$ac_objext \
17510       conftest$ac_exeext conftest.$ac_ext
17511 fi
17512 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17513 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17514 if test $ac_cv_func_shl_load = yes; then
17515   lt_cv_dlopen="shl_load"
17516 else
17517   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17518 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17519 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17520   echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522   ac_check_lib_save_LIBS=$LIBS
17523 LIBS="-ldld  $LIBS"
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h.  */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h.  */
17530
17531 /* Override any gcc2 internal prototype to avoid an error.  */
17532 #ifdef __cplusplus
17533 extern "C"
17534 #endif
17535 /* We use char because int might match the return type of a gcc2
17536    builtin and then its argument prototype would still apply.  */
17537 char shl_load ();
17538 int
17539 main ()
17540 {
17541 shl_load ();
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548   (eval $ac_link) 2>conftest.er1
17549   ac_status=$?
17550   grep -v '^ *+' conftest.er1 >conftest.err
17551   rm -f conftest.er1
17552   cat conftest.err >&5
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); } &&
17555          { ac_try='test -z "$ac_cxx_werror_flag"
17556                          || test ! -s conftest.err'
17557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558   (eval $ac_try) 2>&5
17559   ac_status=$?
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); }; } &&
17562          { ac_try='test -s conftest$ac_exeext'
17563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564   (eval $ac_try) 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568   ac_cv_lib_dld_shl_load=yes
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 ac_cv_lib_dld_shl_load=no
17574 fi
17575 rm -f conftest.err conftest.$ac_objext \
17576       conftest$ac_exeext conftest.$ac_ext
17577 LIBS=$ac_check_lib_save_LIBS
17578 fi
17579 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17580 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17581 if test $ac_cv_lib_dld_shl_load = yes; then
17582   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17583 else
17584   echo "$as_me:$LINENO: checking for dlopen" >&5
17585 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17586 if test "${ac_cv_func_dlopen+set}" = set; then
17587   echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589   cat >conftest.$ac_ext <<_ACEOF
17590 /* confdefs.h.  */
17591 _ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h.  */
17595 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17597 #define dlopen innocuous_dlopen
17598
17599 /* System header to define __stub macros and hopefully few prototypes,
17600     which can conflict with char dlopen (); below.
17601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17602     <limits.h> exists even on freestanding compilers.  */
17603
17604 #ifdef __STDC__
17605 # include <limits.h>
17606 #else
17607 # include <assert.h>
17608 #endif
17609
17610 #undef dlopen
17611
17612 /* Override any gcc2 internal prototype to avoid an error.  */
17613 #ifdef __cplusplus
17614 extern "C"
17615 {
17616 #endif
17617 /* We use char because int might match the return type of a gcc2
17618    builtin and then its argument prototype would still apply.  */
17619 char dlopen ();
17620 /* The GNU C library defines this for functions which it implements
17621     to always fail with ENOSYS.  Some functions are actually named
17622     something starting with __ and the normal name is an alias.  */
17623 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17624 choke me
17625 #else
17626 char (*f) () = dlopen;
17627 #endif
17628 #ifdef __cplusplus
17629 }
17630 #endif
17631
17632 int
17633 main ()
17634 {
17635 return f != dlopen;
17636   ;
17637   return 0;
17638 }
17639 _ACEOF
17640 rm -f conftest.$ac_objext conftest$ac_exeext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642   (eval $ac_link) 2>conftest.er1
17643   ac_status=$?
17644   grep -v '^ *+' conftest.er1 >conftest.err
17645   rm -f conftest.er1
17646   cat conftest.err >&5
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); } &&
17649          { ac_try='test -z "$ac_cxx_werror_flag"
17650                          || test ! -s conftest.err'
17651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652   (eval $ac_try) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; } &&
17656          { ac_try='test -s conftest$ac_exeext'
17657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658   (eval $ac_try) 2>&5
17659   ac_status=$?
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); }; }; then
17662   ac_cv_func_dlopen=yes
17663 else
17664   echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667 ac_cv_func_dlopen=no
17668 fi
17669 rm -f conftest.err conftest.$ac_objext \
17670       conftest$ac_exeext conftest.$ac_ext
17671 fi
17672 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17673 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17674 if test $ac_cv_func_dlopen = yes; then
17675   lt_cv_dlopen="dlopen"
17676 else
17677   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17678 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   ac_check_lib_save_LIBS=$LIBS
17683 LIBS="-ldl  $LIBS"
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h.  */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h.  */
17690
17691 /* Override any gcc2 internal prototype to avoid an error.  */
17692 #ifdef __cplusplus
17693 extern "C"
17694 #endif
17695 /* We use char because int might match the return type of a gcc2
17696    builtin and then its argument prototype would still apply.  */
17697 char dlopen ();
17698 int
17699 main ()
17700 {
17701 dlopen ();
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708   (eval $ac_link) 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_cxx_werror_flag"
17716                          || test ! -s conftest.err'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; } &&
17722          { ac_try='test -s conftest$ac_exeext'
17723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724   (eval $ac_try) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; }; then
17728   ac_cv_lib_dl_dlopen=yes
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ac_cv_lib_dl_dlopen=no
17734 fi
17735 rm -f conftest.err conftest.$ac_objext \
17736       conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17738 fi
17739 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17740 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17741 if test $ac_cv_lib_dl_dlopen = yes; then
17742   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17743 else
17744   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17745 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17746 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17747   echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749   ac_check_lib_save_LIBS=$LIBS
17750 LIBS="-lsvld  $LIBS"
17751 cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h.  */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h.  */
17757
17758 /* Override any gcc2 internal prototype to avoid an error.  */
17759 #ifdef __cplusplus
17760 extern "C"
17761 #endif
17762 /* We use char because int might match the return type of a gcc2
17763    builtin and then its argument prototype would still apply.  */
17764 char dlopen ();
17765 int
17766 main ()
17767 {
17768 dlopen ();
17769   ;
17770   return 0;
17771 }
17772 _ACEOF
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775   (eval $ac_link) 2>conftest.er1
17776   ac_status=$?
17777   grep -v '^ *+' conftest.er1 >conftest.err
17778   rm -f conftest.er1
17779   cat conftest.err >&5
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); } &&
17782          { ac_try='test -z "$ac_cxx_werror_flag"
17783                          || test ! -s conftest.err'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; } &&
17789          { ac_try='test -s conftest$ac_exeext'
17790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791   (eval $ac_try) 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; }; then
17795   ac_cv_lib_svld_dlopen=yes
17796 else
17797   echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 ac_cv_lib_svld_dlopen=no
17801 fi
17802 rm -f conftest.err conftest.$ac_objext \
17803       conftest$ac_exeext conftest.$ac_ext
17804 LIBS=$ac_check_lib_save_LIBS
17805 fi
17806 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17807 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17808 if test $ac_cv_lib_svld_dlopen = yes; then
17809   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17810 else
17811   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17812 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17813 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   ac_check_lib_save_LIBS=$LIBS
17817 LIBS="-ldld  $LIBS"
17818 cat >conftest.$ac_ext <<_ACEOF
17819 /* confdefs.h.  */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h.  */
17824
17825 /* Override any gcc2 internal prototype to avoid an error.  */
17826 #ifdef __cplusplus
17827 extern "C"
17828 #endif
17829 /* We use char because int might match the return type of a gcc2
17830    builtin and then its argument prototype would still apply.  */
17831 char dld_link ();
17832 int
17833 main ()
17834 {
17835 dld_link ();
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 rm -f conftest.$ac_objext conftest$ac_exeext
17841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17842   (eval $ac_link) 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } &&
17849          { ac_try='test -z "$ac_cxx_werror_flag"
17850                          || test ! -s conftest.err'
17851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852   (eval $ac_try) 2>&5
17853   ac_status=$?
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); }; } &&
17856          { ac_try='test -s conftest$ac_exeext'
17857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858   (eval $ac_try) 2>&5
17859   ac_status=$?
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); }; }; then
17862   ac_cv_lib_dld_dld_link=yes
17863 else
17864   echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867 ac_cv_lib_dld_dld_link=no
17868 fi
17869 rm -f conftest.err conftest.$ac_objext \
17870       conftest$ac_exeext conftest.$ac_ext
17871 LIBS=$ac_check_lib_save_LIBS
17872 fi
17873 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17874 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17875 if test $ac_cv_lib_dld_dld_link = yes; then
17876   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17877 fi
17878
17879
17880 fi
17881
17882
17883 fi
17884
17885
17886 fi
17887
17888
17889 fi
17890
17891
17892 fi
17893
17894     ;;
17895   esac
17896
17897   if test "x$lt_cv_dlopen" != xno; then
17898     enable_dlopen=yes
17899   else
17900     enable_dlopen=no
17901   fi
17902
17903   case $lt_cv_dlopen in
17904   dlopen)
17905     save_CPPFLAGS="$CPPFLAGS"
17906     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17907
17908     save_LDFLAGS="$LDFLAGS"
17909     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17910
17911     save_LIBS="$LIBS"
17912     LIBS="$lt_cv_dlopen_libs $LIBS"
17913
17914     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17915 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17916 if test "${lt_cv_dlopen_self+set}" = set; then
17917   echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919           if test "$cross_compiling" = yes; then :
17920   lt_cv_dlopen_self=cross
17921 else
17922   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17923   lt_status=$lt_dlunknown
17924   cat > conftest.$ac_ext <<EOF
17925 #line 17925 "configure"
17926 #include "confdefs.h"
17927
17928 #if HAVE_DLFCN_H
17929 #include <dlfcn.h>
17930 #endif
17931
17932 #include <stdio.h>
17933
17934 #ifdef RTLD_GLOBAL
17935 #  define LT_DLGLOBAL           RTLD_GLOBAL
17936 #else
17937 #  ifdef DL_GLOBAL
17938 #    define LT_DLGLOBAL         DL_GLOBAL
17939 #  else
17940 #    define LT_DLGLOBAL         0
17941 #  endif
17942 #endif
17943
17944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17945    find out it does not work in some platform. */
17946 #ifndef LT_DLLAZY_OR_NOW
17947 #  ifdef RTLD_LAZY
17948 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17949 #  else
17950 #    ifdef DL_LAZY
17951 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17952 #    else
17953 #      ifdef RTLD_NOW
17954 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17955 #      else
17956 #        ifdef DL_NOW
17957 #          define LT_DLLAZY_OR_NOW      DL_NOW
17958 #        else
17959 #          define LT_DLLAZY_OR_NOW      0
17960 #        endif
17961 #      endif
17962 #    endif
17963 #  endif
17964 #endif
17965
17966 #ifdef __cplusplus
17967 extern "C" void exit (int);
17968 #endif
17969
17970 void fnord() { int i=42;}
17971 int main ()
17972 {
17973   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17974   int status = $lt_dlunknown;
17975
17976   if (self)
17977     {
17978       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17979       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17980       /* dlclose (self); */
17981     }
17982
17983     exit (status);
17984 }
17985 EOF
17986   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987   (eval $ac_link) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17991     (./conftest; exit; ) 2>/dev/null
17992     lt_status=$?
17993     case x$lt_status in
17994       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17995       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17996       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17997     esac
17998   else :
17999     # compilation failed
18000     lt_cv_dlopen_self=no
18001   fi
18002 fi
18003 rm -fr conftest*
18004
18005
18006 fi
18007 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18008 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18009
18010     if test "x$lt_cv_dlopen_self" = xyes; then
18011       LDFLAGS="$LDFLAGS $link_static_flag"
18012       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18013 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18014 if test "${lt_cv_dlopen_self_static+set}" = set; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017           if test "$cross_compiling" = yes; then :
18018   lt_cv_dlopen_self_static=cross
18019 else
18020   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18021   lt_status=$lt_dlunknown
18022   cat > conftest.$ac_ext <<EOF
18023 #line 18023 "configure"
18024 #include "confdefs.h"
18025
18026 #if HAVE_DLFCN_H
18027 #include <dlfcn.h>
18028 #endif
18029
18030 #include <stdio.h>
18031
18032 #ifdef RTLD_GLOBAL
18033 #  define LT_DLGLOBAL           RTLD_GLOBAL
18034 #else
18035 #  ifdef DL_GLOBAL
18036 #    define LT_DLGLOBAL         DL_GLOBAL
18037 #  else
18038 #    define LT_DLGLOBAL         0
18039 #  endif
18040 #endif
18041
18042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18043    find out it does not work in some platform. */
18044 #ifndef LT_DLLAZY_OR_NOW
18045 #  ifdef RTLD_LAZY
18046 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18047 #  else
18048 #    ifdef DL_LAZY
18049 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18050 #    else
18051 #      ifdef RTLD_NOW
18052 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18053 #      else
18054 #        ifdef DL_NOW
18055 #          define LT_DLLAZY_OR_NOW      DL_NOW
18056 #        else
18057 #          define LT_DLLAZY_OR_NOW      0
18058 #        endif
18059 #      endif
18060 #    endif
18061 #  endif
18062 #endif
18063
18064 #ifdef __cplusplus
18065 extern "C" void exit (int);
18066 #endif
18067
18068 void fnord() { int i=42;}
18069 int main ()
18070 {
18071   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18072   int status = $lt_dlunknown;
18073
18074   if (self)
18075     {
18076       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18077       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18078       /* dlclose (self); */
18079     }
18080
18081     exit (status);
18082 }
18083 EOF
18084   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085   (eval $ac_link) 2>&5
18086   ac_status=$?
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18089     (./conftest; exit; ) 2>/dev/null
18090     lt_status=$?
18091     case x$lt_status in
18092       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18093       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18094       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18095     esac
18096   else :
18097     # compilation failed
18098     lt_cv_dlopen_self_static=no
18099   fi
18100 fi
18101 rm -fr conftest*
18102
18103
18104 fi
18105 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18106 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18107     fi
18108
18109     CPPFLAGS="$save_CPPFLAGS"
18110     LDFLAGS="$save_LDFLAGS"
18111     LIBS="$save_LIBS"
18112     ;;
18113   esac
18114
18115   case $lt_cv_dlopen_self in
18116   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18117   *) enable_dlopen_self=unknown ;;
18118   esac
18119
18120   case $lt_cv_dlopen_self_static in
18121   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18122   *) enable_dlopen_self_static=unknown ;;
18123   esac
18124 fi
18125
18126
18127 # The else clause should only fire when bootstrapping the
18128 # libtool distribution, otherwise you forgot to ship ltmain.sh
18129 # with your package, and you will get complaints that there are
18130 # no rules to generate ltmain.sh.
18131 if test -f "$ltmain"; then
18132   # See if we are running on zsh, and set the options which allow our commands through
18133   # without removal of \ escapes.
18134   if test -n "${ZSH_VERSION+set}" ; then
18135     setopt NO_GLOB_SUBST
18136   fi
18137   # Now quote all the things that may contain metacharacters while being
18138   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18139   # variables and quote the copies for generation of the libtool script.
18140   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18141     SED SHELL STRIP \
18142     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18143     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18144     deplibs_check_method reload_flag reload_cmds need_locks \
18145     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18146     lt_cv_sys_global_symbol_to_c_name_address \
18147     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18148     old_postinstall_cmds old_postuninstall_cmds \
18149     compiler_CXX \
18150     CC_CXX \
18151     LD_CXX \
18152     lt_prog_compiler_wl_CXX \
18153     lt_prog_compiler_pic_CXX \
18154     lt_prog_compiler_static_CXX \
18155     lt_prog_compiler_no_builtin_flag_CXX \
18156     export_dynamic_flag_spec_CXX \
18157     thread_safe_flag_spec_CXX \
18158     whole_archive_flag_spec_CXX \
18159     enable_shared_with_static_runtimes_CXX \
18160     old_archive_cmds_CXX \
18161     old_archive_from_new_cmds_CXX \
18162     predep_objects_CXX \
18163     postdep_objects_CXX \
18164     predeps_CXX \
18165     postdeps_CXX \
18166     compiler_lib_search_path_CXX \
18167     archive_cmds_CXX \
18168     archive_expsym_cmds_CXX \
18169     postinstall_cmds_CXX \
18170     postuninstall_cmds_CXX \
18171     old_archive_from_expsyms_cmds_CXX \
18172     allow_undefined_flag_CXX \
18173     no_undefined_flag_CXX \
18174     export_symbols_cmds_CXX \
18175     hardcode_libdir_flag_spec_CXX \
18176     hardcode_libdir_flag_spec_ld_CXX \
18177     hardcode_libdir_separator_CXX \
18178     hardcode_automatic_CXX \
18179     module_cmds_CXX \
18180     module_expsym_cmds_CXX \
18181     lt_cv_prog_compiler_c_o_CXX \
18182     exclude_expsyms_CXX \
18183     include_expsyms_CXX; do
18184
18185     case $var in
18186     old_archive_cmds_CXX | \
18187     old_archive_from_new_cmds_CXX | \
18188     archive_cmds_CXX | \
18189     archive_expsym_cmds_CXX | \
18190     module_cmds_CXX | \
18191     module_expsym_cmds_CXX | \
18192     old_archive_from_expsyms_cmds_CXX | \
18193     export_symbols_cmds_CXX | \
18194     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18195     postinstall_cmds | postuninstall_cmds | \
18196     old_postinstall_cmds | old_postuninstall_cmds | \
18197     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18198       # Double-quote double-evaled strings.
18199       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18200       ;;
18201     *)
18202       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18203       ;;
18204     esac
18205   done
18206
18207   case $lt_echo in
18208   *'\$0 --fallback-echo"')
18209     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18210     ;;
18211   esac
18212
18213 cfgfile="$ofile"
18214
18215   cat <<__EOF__ >> "$cfgfile"
18216 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18217
18218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18219
18220 # Shell to use when invoking shell scripts.
18221 SHELL=$lt_SHELL
18222
18223 # Whether or not to build shared libraries.
18224 build_libtool_libs=$enable_shared
18225
18226 # Whether or not to build static libraries.
18227 build_old_libs=$enable_static
18228
18229 # Whether or not to add -lc for building shared libraries.
18230 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18231
18232 # Whether or not to disallow shared libs when runtime libs are static
18233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18234
18235 # Whether or not to optimize for fast installation.
18236 fast_install=$enable_fast_install
18237
18238 # The host system.
18239 host_alias=$host_alias
18240 host=$host
18241
18242 # An echo program that does not interpret backslashes.
18243 echo=$lt_echo
18244
18245 # The archiver.
18246 AR=$lt_AR
18247 AR_FLAGS=$lt_AR_FLAGS
18248
18249 # A C compiler.
18250 LTCC=$lt_LTCC
18251
18252 # A language-specific compiler.
18253 CC=$lt_compiler_CXX
18254
18255 # Is the compiler the GNU C compiler?
18256 with_gcc=$GCC_CXX
18257
18258 # An ERE matcher.
18259 EGREP=$lt_EGREP
18260
18261 # The linker used to build libraries.
18262 LD=$lt_LD_CXX
18263
18264 # Whether we need hard or soft links.
18265 LN_S=$lt_LN_S
18266
18267 # A BSD-compatible nm program.
18268 NM=$lt_NM
18269
18270 # A symbol stripping program
18271 STRIP=$lt_STRIP
18272
18273 # Used to examine libraries when file_magic_cmd begins "file"
18274 MAGIC_CMD=$MAGIC_CMD
18275
18276 # Used on cygwin: DLL creation program.
18277 DLLTOOL="$DLLTOOL"
18278
18279 # Used on cygwin: object dumper.
18280 OBJDUMP="$OBJDUMP"
18281
18282 # Used on cygwin: assembler.
18283 AS="$AS"
18284
18285 # The name of the directory that contains temporary libtool files.
18286 objdir=$objdir
18287
18288 # How to create reloadable object files.
18289 reload_flag=$lt_reload_flag
18290 reload_cmds=$lt_reload_cmds
18291
18292 # How to pass a linker flag through the compiler.
18293 wl=$lt_lt_prog_compiler_wl_CXX
18294
18295 # Object file suffix (normally "o").
18296 objext="$ac_objext"
18297
18298 # Old archive suffix (normally "a").
18299 libext="$libext"
18300
18301 # Shared library suffix (normally ".so").
18302 shrext_cmds='$shrext_cmds'
18303
18304 # Executable file suffix (normally "").
18305 exeext="$exeext"
18306
18307 # Additional compiler flags for building library objects.
18308 pic_flag=$lt_lt_prog_compiler_pic_CXX
18309 pic_mode=$pic_mode
18310
18311 # What is the maximum length of a command?
18312 max_cmd_len=$lt_cv_sys_max_cmd_len
18313
18314 # Does compiler simultaneously support -c and -o options?
18315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18316
18317 # Must we lock files when doing compilation ?
18318 need_locks=$lt_need_locks
18319
18320 # Do we need the lib prefix for modules?
18321 need_lib_prefix=$need_lib_prefix
18322
18323 # Do we need a version for libraries?
18324 need_version=$need_version
18325
18326 # Whether dlopen is supported.
18327 dlopen_support=$enable_dlopen
18328
18329 # Whether dlopen of programs is supported.
18330 dlopen_self=$enable_dlopen_self
18331
18332 # Whether dlopen of statically linked programs is supported.
18333 dlopen_self_static=$enable_dlopen_self_static
18334
18335 # Compiler flag to prevent dynamic linking.
18336 link_static_flag=$lt_lt_prog_compiler_static_CXX
18337
18338 # Compiler flag to turn off builtin functions.
18339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18340
18341 # Compiler flag to allow reflexive dlopens.
18342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18343
18344 # Compiler flag to generate shared objects directly from archives.
18345 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18346
18347 # Compiler flag to generate thread-safe objects.
18348 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18349
18350 # Library versioning type.
18351 version_type=$version_type
18352
18353 # Format of library name prefix.
18354 libname_spec=$lt_libname_spec
18355
18356 # List of archive names.  First name is the real one, the rest are links.
18357 # The last name is the one that the linker finds with -lNAME.
18358 library_names_spec=$lt_library_names_spec
18359
18360 # The coded name of the library, if different from the real name.
18361 soname_spec=$lt_soname_spec
18362
18363 # Commands used to build and install an old-style archive.
18364 RANLIB=$lt_RANLIB
18365 old_archive_cmds=$lt_old_archive_cmds_CXX
18366 old_postinstall_cmds=$lt_old_postinstall_cmds
18367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18368
18369 # Create an old-style archive from a shared archive.
18370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18371
18372 # Create a temporary old-style archive to link instead of a shared archive.
18373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18374
18375 # Commands used to build and install a shared archive.
18376 archive_cmds=$lt_archive_cmds_CXX
18377 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18378 postinstall_cmds=$lt_postinstall_cmds
18379 postuninstall_cmds=$lt_postuninstall_cmds
18380
18381 # Commands used to build a loadable module (assumed same as above if empty)
18382 module_cmds=$lt_module_cmds_CXX
18383 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18384
18385 # Commands to strip libraries.
18386 old_striplib=$lt_old_striplib
18387 striplib=$lt_striplib
18388
18389 # Dependencies to place before the objects being linked to create a
18390 # shared library.
18391 predep_objects=$lt_predep_objects_CXX
18392
18393 # Dependencies to place after the objects being linked to create a
18394 # shared library.
18395 postdep_objects=$lt_postdep_objects_CXX
18396
18397 # Dependencies to place before the objects being linked to create a
18398 # shared library.
18399 predeps=$lt_predeps_CXX
18400
18401 # Dependencies to place after the objects being linked to create a
18402 # shared library.
18403 postdeps=$lt_postdeps_CXX
18404
18405 # The library search path used internally by the compiler when linking
18406 # a shared library.
18407 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18408
18409 # Method to check whether dependent libraries are shared objects.
18410 deplibs_check_method=$lt_deplibs_check_method
18411
18412 # Command to use when deplibs_check_method == file_magic.
18413 file_magic_cmd=$lt_file_magic_cmd
18414
18415 # Flag that allows shared libraries with undefined symbols to be built.
18416 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18417
18418 # Flag that forces no undefined symbols.
18419 no_undefined_flag=$lt_no_undefined_flag_CXX
18420
18421 # Commands used to finish a libtool library installation in a directory.
18422 finish_cmds=$lt_finish_cmds
18423
18424 # Same as above, but a single script fragment to be evaled but not shown.
18425 finish_eval=$lt_finish_eval
18426
18427 # Take the output of nm and produce a listing of raw symbols and C names.
18428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18429
18430 # Transform the output of nm in a proper C declaration
18431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18432
18433 # Transform the output of nm in a C name address pair
18434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18435
18436 # This is the shared library runtime path variable.
18437 runpath_var=$runpath_var
18438
18439 # This is the shared library path variable.
18440 shlibpath_var=$shlibpath_var
18441
18442 # Is shlibpath searched before the hard-coded library search path?
18443 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18444
18445 # How to hardcode a shared library path into an executable.
18446 hardcode_action=$hardcode_action_CXX
18447
18448 # Whether we should hardcode library paths into libraries.
18449 hardcode_into_libs=$hardcode_into_libs
18450
18451 # Flag to hardcode \$libdir into a binary during linking.
18452 # This must work even if \$libdir does not exist.
18453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18454
18455 # If ld is used when linking, flag to hardcode \$libdir into
18456 # a binary during linking. This must work even if \$libdir does
18457 # not exist.
18458 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18459
18460 # Whether we need a single -rpath flag with a separated argument.
18461 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18462
18463 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18464 # resulting binary.
18465 hardcode_direct=$hardcode_direct_CXX
18466
18467 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18468 # resulting binary.
18469 hardcode_minus_L=$hardcode_minus_L_CXX
18470
18471 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18472 # the resulting binary.
18473 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18474
18475 # Set to yes if building a shared library automatically hardcodes DIR into the library
18476 # and all subsequent libraries and executables linked against it.
18477 hardcode_automatic=$hardcode_automatic_CXX
18478
18479 # Variables whose values should be saved in libtool wrapper scripts and
18480 # restored at relink time.
18481 variables_saved_for_relink="$variables_saved_for_relink"
18482
18483 # Whether libtool must link a program against all its dependency libraries.
18484 link_all_deplibs=$link_all_deplibs_CXX
18485
18486 # Compile-time system search path for libraries
18487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18488
18489 # Run-time system search path for libraries
18490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18491
18492 # Fix the shell variable \$srcfile for the compiler.
18493 fix_srcfile_path="$fix_srcfile_path_CXX"
18494
18495 # Set to yes if exported symbols are required.
18496 always_export_symbols=$always_export_symbols_CXX
18497
18498 # The commands to list exported symbols.
18499 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18500
18501 # The commands to extract the exported symbol list from a shared archive.
18502 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18503
18504 # Symbols that should not be listed in the preloaded symbols.
18505 exclude_expsyms=$lt_exclude_expsyms_CXX
18506
18507 # Symbols that must always be exported.
18508 include_expsyms=$lt_include_expsyms_CXX
18509
18510 # ### END LIBTOOL TAG CONFIG: $tagname
18511
18512 __EOF__
18513
18514
18515 else
18516   # If there is no Makefile yet, we rely on a make rule to execute
18517   # `config.status --recheck' to rerun these tests and create the
18518   # libtool script then.
18519   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18520   if test -f "$ltmain_in"; then
18521     test -f Makefile && make "$ltmain"
18522   fi
18523 fi
18524
18525
18526 ac_ext=c
18527 ac_cpp='$CPP $CPPFLAGS'
18528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18531
18532 CC=$lt_save_CC
18533 LDCXX=$LD
18534 LD=$lt_save_LD
18535 GCC=$lt_save_GCC
18536 with_gnu_ldcxx=$with_gnu_ld
18537 with_gnu_ld=$lt_save_with_gnu_ld
18538 lt_cv_path_LDCXX=$lt_cv_path_LD
18539 lt_cv_path_LD=$lt_save_path_LD
18540 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18541 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18542
18543         else
18544           tagname=""
18545         fi
18546         ;;
18547
18548       F77)
18549         if test -n "$F77" && test "X$F77" != "Xno"; then
18550
18551 ac_ext=f
18552 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18553 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18555
18556
18557 archive_cmds_need_lc_F77=no
18558 allow_undefined_flag_F77=
18559 always_export_symbols_F77=no
18560 archive_expsym_cmds_F77=
18561 export_dynamic_flag_spec_F77=
18562 hardcode_direct_F77=no
18563 hardcode_libdir_flag_spec_F77=
18564 hardcode_libdir_flag_spec_ld_F77=
18565 hardcode_libdir_separator_F77=
18566 hardcode_minus_L_F77=no
18567 hardcode_automatic_F77=no
18568 module_cmds_F77=
18569 module_expsym_cmds_F77=
18570 link_all_deplibs_F77=unknown
18571 old_archive_cmds_F77=$old_archive_cmds
18572 no_undefined_flag_F77=
18573 whole_archive_flag_spec_F77=
18574 enable_shared_with_static_runtimes_F77=no
18575
18576 # Source file extension for f77 test sources.
18577 ac_ext=f
18578
18579 # Object file extension for compiled f77 test sources.
18580 objext=o
18581 objext_F77=$objext
18582
18583 # Code to be used in simple compile tests
18584 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18585
18586 # Code to be used in simple link tests
18587 lt_simple_link_test_code="      program t\n      end\n"
18588
18589 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18590
18591 # If no C compiler was specified, use CC.
18592 LTCC=${LTCC-"$CC"}
18593
18594 # Allow CC to be a program name with arguments.
18595 compiler=$CC
18596
18597
18598 # Allow CC to be a program name with arguments.
18599 lt_save_CC="$CC"
18600 CC=${F77-"f77"}
18601 compiler=$CC
18602 compiler_F77=$CC
18603 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18604
18605 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18606 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18607 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18608 echo "${ECHO_T}$can_build_shared" >&6
18609
18610 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18611 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18612 test "$can_build_shared" = "no" && enable_shared=no
18613
18614 # On AIX, shared libraries and static libraries use the same namespace, and
18615 # are all built from PIC.
18616 case "$host_os" in
18617 aix3*)
18618   test "$enable_shared" = yes && enable_static=no
18619   if test -n "$RANLIB"; then
18620     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18621     postinstall_cmds='$RANLIB $lib'
18622   fi
18623   ;;
18624 aix4* | aix5*)
18625   test "$enable_shared" = yes && enable_static=no
18626   ;;
18627 esac
18628 echo "$as_me:$LINENO: result: $enable_shared" >&5
18629 echo "${ECHO_T}$enable_shared" >&6
18630
18631 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18632 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18633 # Make sure either enable_shared or enable_static is yes.
18634 test "$enable_shared" = yes || enable_static=yes
18635 echo "$as_me:$LINENO: result: $enable_static" >&5
18636 echo "${ECHO_T}$enable_static" >&6
18637
18638 test "$ld_shlibs_F77" = no && can_build_shared=no
18639
18640 GCC_F77="$G77"
18641 LD_F77="$LD"
18642
18643 lt_prog_compiler_wl_F77=
18644 lt_prog_compiler_pic_F77=
18645 lt_prog_compiler_static_F77=
18646
18647 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18648 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18649
18650   if test "$GCC" = yes; then
18651     lt_prog_compiler_wl_F77='-Wl,'
18652     lt_prog_compiler_static_F77='-static'
18653
18654     case $host_os in
18655       aix*)
18656       # All AIX code is PIC.
18657       if test "$host_cpu" = ia64; then
18658         # AIX 5 now supports IA64 processor
18659         lt_prog_compiler_static_F77='-Bstatic'
18660       fi
18661       ;;
18662
18663     amigaos*)
18664       # FIXME: we need at least 68020 code to build shared libraries, but
18665       # adding the `-m68020' flag to GCC prevents building anything better,
18666       # like `-m68040'.
18667       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18668       ;;
18669
18670     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18671       # PIC is the default for these OSes.
18672       ;;
18673
18674     mingw* | pw32* | os2*)
18675       # This hack is so that the source file can tell whether it is being
18676       # built for inclusion in a dll (and should export symbols for example).
18677       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18678       ;;
18679
18680     darwin* | rhapsody*)
18681       # PIC is the default on this platform
18682       # Common symbols not allowed in MH_DYLIB files
18683       lt_prog_compiler_pic_F77='-fno-common'
18684       ;;
18685
18686     msdosdjgpp*)
18687       # Just because we use GCC doesn't mean we suddenly get shared libraries
18688       # on systems that don't support them.
18689       lt_prog_compiler_can_build_shared_F77=no
18690       enable_shared=no
18691       ;;
18692
18693     sysv4*MP*)
18694       if test -d /usr/nec; then
18695         lt_prog_compiler_pic_F77=-Kconform_pic
18696       fi
18697       ;;
18698
18699     hpux*)
18700       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18701       # not for PA HP-UX.
18702       case "$host_cpu" in
18703       hppa*64*|ia64*)
18704         # +Z the default
18705         ;;
18706       *)
18707         lt_prog_compiler_pic_F77='-fPIC'
18708         ;;
18709       esac
18710       ;;
18711
18712     *)
18713       lt_prog_compiler_pic_F77='-fPIC'
18714       ;;
18715     esac
18716   else
18717     # PORTME Check for flag to pass linker flags through the system compiler.
18718     case $host_os in
18719     aix*)
18720       lt_prog_compiler_wl_F77='-Wl,'
18721       if test "$host_cpu" = ia64; then
18722         # AIX 5 now supports IA64 processor
18723         lt_prog_compiler_static_F77='-Bstatic'
18724       else
18725         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18726       fi
18727       ;;
18728       darwin*)
18729         # PIC is the default on this platform
18730         # Common symbols not allowed in MH_DYLIB files
18731        case "$cc_basename" in
18732          xlc*)
18733          lt_prog_compiler_pic_F77='-qnocommon'
18734          lt_prog_compiler_wl_F77='-Wl,'
18735          ;;
18736        esac
18737        ;;
18738
18739     mingw* | pw32* | os2*)
18740       # This hack is so that the source file can tell whether it is being
18741       # built for inclusion in a dll (and should export symbols for example).
18742       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18743       ;;
18744
18745     hpux9* | hpux10* | hpux11*)
18746       lt_prog_compiler_wl_F77='-Wl,'
18747       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18748       # not for PA HP-UX.
18749       case "$host_cpu" in
18750       hppa*64*|ia64*)
18751         # +Z the default
18752         ;;
18753       *)
18754         lt_prog_compiler_pic_F77='+Z'
18755         ;;
18756       esac
18757       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18758       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18759       ;;
18760
18761     irix5* | irix6* | nonstopux*)
18762       lt_prog_compiler_wl_F77='-Wl,'
18763       # PIC (with -KPIC) is the default.
18764       lt_prog_compiler_static_F77='-non_shared'
18765       ;;
18766
18767     newsos6)
18768       lt_prog_compiler_pic_F77='-KPIC'
18769       lt_prog_compiler_static_F77='-Bstatic'
18770       ;;
18771
18772     linux*)
18773       case $CC in
18774       icc* | ecc*)
18775         lt_prog_compiler_wl_F77='-Wl,'
18776         lt_prog_compiler_pic_F77='-KPIC'
18777         lt_prog_compiler_static_F77='-static'
18778         ;;
18779       ccc*)
18780         lt_prog_compiler_wl_F77='-Wl,'
18781         # All Alpha code is PIC.
18782         lt_prog_compiler_static_F77='-non_shared'
18783         ;;
18784       esac
18785       ;;
18786
18787     osf3* | osf4* | osf5*)
18788       lt_prog_compiler_wl_F77='-Wl,'
18789       # All OSF/1 code is PIC.
18790       lt_prog_compiler_static_F77='-non_shared'
18791       ;;
18792
18793     sco3.2v5*)
18794       lt_prog_compiler_pic_F77='-Kpic'
18795       lt_prog_compiler_static_F77='-dn'
18796       ;;
18797
18798     solaris*)
18799       lt_prog_compiler_wl_F77='-Wl,'
18800       lt_prog_compiler_pic_F77='-KPIC'
18801       lt_prog_compiler_static_F77='-Bstatic'
18802       ;;
18803
18804     sunos4*)
18805       lt_prog_compiler_wl_F77='-Qoption ld '
18806       lt_prog_compiler_pic_F77='-PIC'
18807       lt_prog_compiler_static_F77='-Bstatic'
18808       ;;
18809
18810     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18811       lt_prog_compiler_wl_F77='-Wl,'
18812       lt_prog_compiler_pic_F77='-KPIC'
18813       lt_prog_compiler_static_F77='-Bstatic'
18814       ;;
18815
18816     sysv4*MP*)
18817       if test -d /usr/nec ;then
18818         lt_prog_compiler_pic_F77='-Kconform_pic'
18819         lt_prog_compiler_static_F77='-Bstatic'
18820       fi
18821       ;;
18822
18823     uts4*)
18824       lt_prog_compiler_pic_F77='-pic'
18825       lt_prog_compiler_static_F77='-Bstatic'
18826       ;;
18827
18828     *)
18829       lt_prog_compiler_can_build_shared_F77=no
18830       ;;
18831     esac
18832   fi
18833
18834 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18835 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18836
18837 #
18838 # Check to make sure the PIC flag actually works.
18839 #
18840 if test -n "$lt_prog_compiler_pic_F77"; then
18841
18842 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18843 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18844 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   lt_prog_compiler_pic_works_F77=no
18848   ac_outfile=conftest.$ac_objext
18849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18850    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18851    # Insert the option either (1) after the last *FLAGS variable, or
18852    # (2) before a word containing "conftest.", or (3) at the end.
18853    # Note that $ac_compile itself does not contain backslashes and begins
18854    # with a dollar sign (not a hyphen), so the echo should work correctly.
18855    # The option is referenced via a variable to avoid confusing sed.
18856    lt_compile=`echo "$ac_compile" | $SED \
18857    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18859    -e 's:$: $lt_compiler_flag:'`
18860    (eval echo "\"\$as_me:18860: $lt_compile\"" >&5)
18861    (eval "$lt_compile" 2>conftest.err)
18862    ac_status=$?
18863    cat conftest.err >&5
18864    echo "$as_me:18864: \$? = $ac_status" >&5
18865    if (exit $ac_status) && test -s "$ac_outfile"; then
18866      # The compiler can only warn and ignore the option if not recognized
18867      # So say no if there are warnings
18868      if test ! -s conftest.err; then
18869        lt_prog_compiler_pic_works_F77=yes
18870      fi
18871    fi
18872    $rm conftest*
18873
18874 fi
18875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18876 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18877
18878 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18879     case $lt_prog_compiler_pic_F77 in
18880      "" | " "*) ;;
18881      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18882      esac
18883 else
18884     lt_prog_compiler_pic_F77=
18885      lt_prog_compiler_can_build_shared_F77=no
18886 fi
18887
18888 fi
18889 case "$host_os" in
18890   # For platforms which do not support PIC, -DPIC is meaningless:
18891   *djgpp*)
18892     lt_prog_compiler_pic_F77=
18893     ;;
18894   *)
18895     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18896     ;;
18897 esac
18898
18899 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18900 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18901 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18902   echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904   lt_cv_prog_compiler_c_o_F77=no
18905    $rm -r conftest 2>/dev/null
18906    mkdir conftest
18907    cd conftest
18908    mkdir out
18909    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18910
18911    lt_compiler_flag="-o out/conftest2.$ac_objext"
18912    # Insert the option either (1) after the last *FLAGS variable, or
18913    # (2) before a word containing "conftest.", or (3) at the end.
18914    # Note that $ac_compile itself does not contain backslashes and begins
18915    # with a dollar sign (not a hyphen), so the echo should work correctly.
18916    lt_compile=`echo "$ac_compile" | $SED \
18917    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18918    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18919    -e 's:$: $lt_compiler_flag:'`
18920    (eval echo "\"\$as_me:18920: $lt_compile\"" >&5)
18921    (eval "$lt_compile" 2>out/conftest.err)
18922    ac_status=$?
18923    cat out/conftest.err >&5
18924    echo "$as_me:18924: \$? = $ac_status" >&5
18925    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18926    then
18927      # The compiler can only warn and ignore the option if not recognized
18928      # So say no if there are warnings
18929      if test ! -s out/conftest.err; then
18930        lt_cv_prog_compiler_c_o_F77=yes
18931      fi
18932    fi
18933    chmod u+w .
18934    $rm conftest*
18935    # SGI C++ compiler will create directory out/ii_files/ for
18936    # template instantiation
18937    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18938    $rm out/* && rmdir out
18939    cd ..
18940    rmdir conftest
18941    $rm conftest*
18942
18943 fi
18944 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18946
18947
18948 hard_links="nottested"
18949 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18950   # do not overwrite the value of need_locks provided by the user
18951   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18953   hard_links=yes
18954   $rm conftest*
18955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18956   touch conftest.a
18957   ln conftest.a conftest.b 2>&5 || hard_links=no
18958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18959   echo "$as_me:$LINENO: result: $hard_links" >&5
18960 echo "${ECHO_T}$hard_links" >&6
18961   if test "$hard_links" = no; then
18962     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18964     need_locks=warn
18965   fi
18966 else
18967   need_locks=no
18968 fi
18969
18970 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18972
18973   runpath_var=
18974   allow_undefined_flag_F77=
18975   enable_shared_with_static_runtimes_F77=no
18976   archive_cmds_F77=
18977   archive_expsym_cmds_F77=
18978   old_archive_From_new_cmds_F77=
18979   old_archive_from_expsyms_cmds_F77=
18980   export_dynamic_flag_spec_F77=
18981   whole_archive_flag_spec_F77=
18982   thread_safe_flag_spec_F77=
18983   hardcode_libdir_flag_spec_F77=
18984   hardcode_libdir_flag_spec_ld_F77=
18985   hardcode_libdir_separator_F77=
18986   hardcode_direct_F77=no
18987   hardcode_minus_L_F77=no
18988   hardcode_shlibpath_var_F77=unsupported
18989   link_all_deplibs_F77=unknown
18990   hardcode_automatic_F77=no
18991   module_cmds_F77=
18992   module_expsym_cmds_F77=
18993   always_export_symbols_F77=no
18994   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18995   # include_expsyms should be a list of space-separated symbols to be *always*
18996   # included in the symbol list
18997   include_expsyms_F77=
18998   # exclude_expsyms can be an extended regexp of symbols to exclude
18999   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19000   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19001   # as well as any symbol that contains `d'.
19002   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19003   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19004   # platforms (ab)use it in PIC code, but their linkers get confused if
19005   # the symbol is explicitly referenced.  Since portable code cannot
19006   # rely on this symbol name, it's probably fine to never include it in
19007   # preloaded symbol tables.
19008   extract_expsyms_cmds=
19009
19010   case $host_os in
19011   cygwin* | mingw* | pw32*)
19012     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19013     # When not using gcc, we currently assume that we are using
19014     # Microsoft Visual C++.
19015     if test "$GCC" != yes; then
19016       with_gnu_ld=no
19017     fi
19018     ;;
19019   openbsd*)
19020     with_gnu_ld=no
19021     ;;
19022   esac
19023
19024   ld_shlibs_F77=yes
19025   if test "$with_gnu_ld" = yes; then
19026     # If archive_cmds runs LD, not CC, wlarc should be empty
19027     wlarc='${wl}'
19028
19029     # See if GNU ld supports shared libraries.
19030     case $host_os in
19031     aix3* | aix4* | aix5*)
19032       # On AIX/PPC, the GNU linker is very broken
19033       if test "$host_cpu" != ia64; then
19034         ld_shlibs_F77=no
19035         cat <<EOF 1>&2
19036
19037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19038 *** to be unable to reliably create shared libraries on AIX.
19039 *** Therefore, libtool is disabling shared libraries support.  If you
19040 *** really care for shared libraries, you may want to modify your PATH
19041 *** so that a non-GNU linker is found, and then restart.
19042
19043 EOF
19044       fi
19045       ;;
19046
19047     amigaos*)
19048       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)'
19049       hardcode_libdir_flag_spec_F77='-L$libdir'
19050       hardcode_minus_L_F77=yes
19051
19052       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19053       # that the semantics of dynamic libraries on AmigaOS, at least up
19054       # to version 4, is to share data among multiple programs linked
19055       # with the same dynamic library.  Since this doesn't match the
19056       # behavior of shared libraries on other platforms, we can't use
19057       # them.
19058       ld_shlibs_F77=no
19059       ;;
19060
19061     beos*)
19062       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19063         allow_undefined_flag_F77=unsupported
19064         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19065         # support --undefined.  This deserves some investigation.  FIXME
19066         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19067       else
19068         ld_shlibs_F77=no
19069       fi
19070       ;;
19071
19072     cygwin* | mingw* | pw32*)
19073       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19074       # as there is no search path for DLLs.
19075       hardcode_libdir_flag_spec_F77='-L$libdir'
19076       allow_undefined_flag_F77=unsupported
19077       always_export_symbols_F77=no
19078       enable_shared_with_static_runtimes_F77=yes
19079       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19080
19081       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19082         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19083         # If the export-symbols file already is a .def file (1st line
19084         # is EXPORTS), use it as is; otherwise, prepend...
19085         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19086           cp $export_symbols $output_objdir/$soname.def;
19087         else
19088           echo EXPORTS > $output_objdir/$soname.def;
19089           cat $export_symbols >> $output_objdir/$soname.def;
19090         fi~
19091         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19092       else
19093         ld_shlibs=no
19094       fi
19095       ;;
19096
19097     netbsd*)
19098       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19099         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19100         wlarc=
19101       else
19102         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19103         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19104       fi
19105       ;;
19106
19107     solaris* | sysv5*)
19108       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19109         ld_shlibs_F77=no
19110         cat <<EOF 1>&2
19111
19112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19113 *** create shared libraries on Solaris systems.  Therefore, libtool
19114 *** is disabling shared libraries support.  We urge you to upgrade GNU
19115 *** binutils to release 2.9.1 or newer.  Another option is to modify
19116 *** your PATH or compiler configuration so that the native linker is
19117 *** used, and then restart.
19118
19119 EOF
19120       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19121         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19122         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19123       else
19124         ld_shlibs_F77=no
19125       fi
19126       ;;
19127
19128     sunos4*)
19129       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19130       wlarc=
19131       hardcode_direct_F77=yes
19132       hardcode_shlibpath_var_F77=no
19133       ;;
19134
19135   linux*)
19136     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19137         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138         archive_cmds_F77="$tmp_archive_cmds"
19139       supports_anon_versioning=no
19140       case `$LD -v 2>/dev/null` in
19141         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19142         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19143         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19144         *\ 2.11.*) ;; # other 2.11 versions
19145         *) supports_anon_versioning=yes ;;
19146       esac
19147       if test $supports_anon_versioning = yes; then
19148         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19150 $echo "local: *; };" >> $output_objdir/$libname.ver~
19151         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19152       else
19153         archive_expsym_cmds_F77="$tmp_archive_cmds"
19154       fi
19155     else
19156       ld_shlibs_F77=no
19157     fi
19158     ;;
19159
19160     *)
19161       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19162         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19163         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19164       else
19165         ld_shlibs_F77=no
19166       fi
19167       ;;
19168     esac
19169
19170     if test "$ld_shlibs_F77" = yes; then
19171       runpath_var=LD_RUN_PATH
19172       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19173       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19174       # ancient GNU ld didn't support --whole-archive et. al.
19175       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19176         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19177       else
19178         whole_archive_flag_spec_F77=
19179       fi
19180     fi
19181   else
19182     # PORTME fill in a description of your system's linker (not GNU ld)
19183     case $host_os in
19184     aix3*)
19185       allow_undefined_flag_F77=unsupported
19186       always_export_symbols_F77=yes
19187       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'
19188       # Note: this linker hardcodes the directories in LIBPATH if there
19189       # are no directories specified by -L.
19190       hardcode_minus_L_F77=yes
19191       if test "$GCC" = yes && test -z "$link_static_flag"; then
19192         # Neither direct hardcoding nor static linking is supported with a
19193         # broken collect2.
19194         hardcode_direct_F77=unsupported
19195       fi
19196       ;;
19197
19198     aix4* | aix5*)
19199       if test "$host_cpu" = ia64; then
19200         # On IA64, the linker does run time linking by default, so we don't
19201         # have to do anything special.
19202         aix_use_runtimelinking=no
19203         exp_sym_flag='-Bexport'
19204         no_entry_flag=""
19205       else
19206         # If we're using GNU nm, then we don't want the "-C" option.
19207         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19208         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19209           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'
19210         else
19211           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'
19212         fi
19213         aix_use_runtimelinking=no
19214
19215         # Test if we are trying to use run time linking or normal
19216         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19217         # need to do runtime linking.
19218         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19219           for ld_flag in $LDFLAGS; do
19220           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19221             aix_use_runtimelinking=yes
19222             break
19223           fi
19224           done
19225         esac
19226
19227         exp_sym_flag='-bexport'
19228         no_entry_flag='-bnoentry'
19229       fi
19230
19231       # When large executables or shared objects are built, AIX ld can
19232       # have problems creating the table of contents.  If linking a library
19233       # or program results in "error TOC overflow" add -mminimal-toc to
19234       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19235       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19236
19237       archive_cmds_F77=''
19238       hardcode_direct_F77=yes
19239       hardcode_libdir_separator_F77=':'
19240       link_all_deplibs_F77=yes
19241
19242       if test "$GCC" = yes; then
19243         case $host_os in aix4.012|aix4.012.*)
19244         # We only want to do this on AIX 4.2 and lower, the check
19245         # below for broken collect2 doesn't work under 4.3+
19246           collect2name=`${CC} -print-prog-name=collect2`
19247           if test -f "$collect2name" && \
19248            strings "$collect2name" | grep resolve_lib_name >/dev/null
19249           then
19250           # We have reworked collect2
19251           hardcode_direct_F77=yes
19252           else
19253           # We have old collect2
19254           hardcode_direct_F77=unsupported
19255           # It fails to find uninstalled libraries when the uninstalled
19256           # path is not listed in the libpath.  Setting hardcode_minus_L
19257           # to unsupported forces relinking
19258           hardcode_minus_L_F77=yes
19259           hardcode_libdir_flag_spec_F77='-L$libdir'
19260           hardcode_libdir_separator_F77=
19261           fi
19262         esac
19263         shared_flag='-shared'
19264       else
19265         # not using gcc
19266         if test "$host_cpu" = ia64; then
19267         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19268         # chokes on -Wl,-G. The following line is correct:
19269           shared_flag='-G'
19270         else
19271         if test "$aix_use_runtimelinking" = yes; then
19272             shared_flag='${wl}-G'
19273           else
19274             shared_flag='${wl}-bM:SRE'
19275         fi
19276         fi
19277       fi
19278
19279       # It seems that -bexpall does not export symbols beginning with
19280       # underscore (_), so it is better to generate a list of symbols to export.
19281       always_export_symbols_F77=yes
19282       if test "$aix_use_runtimelinking" = yes; then
19283         # Warning - without using the other runtime loading flags (-brtl),
19284         # -berok will link without error, but may produce a broken library.
19285         allow_undefined_flag_F77='-berok'
19286        # Determine the default libpath from the value encoded in an empty executable.
19287        cat >conftest.$ac_ext <<_ACEOF
19288       program main
19289
19290       end
19291 _ACEOF
19292 rm -f conftest.$ac_objext conftest$ac_exeext
19293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19294   (eval $ac_link) 2>conftest.er1
19295   ac_status=$?
19296   grep -v '^ *+' conftest.er1 >conftest.err
19297   rm -f conftest.er1
19298   cat conftest.err >&5
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); } &&
19301          { ac_try='test -z "$ac_f77_werror_flag"
19302                          || test ! -s conftest.err'
19303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304   (eval $ac_try) 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; } &&
19308          { ac_try='test -s conftest$ac_exeext'
19309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310   (eval $ac_try) 2>&5
19311   ac_status=$?
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); }; }; then
19314
19315 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19316 }'`
19317 # Check for a 64-bit object if we didn't find anything.
19318 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; }
19319 }'`; fi
19320 else
19321   echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 fi
19325 rm -f conftest.err conftest.$ac_objext \
19326       conftest$ac_exeext conftest.$ac_ext
19327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19328
19329        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19330         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"
19331        else
19332         if test "$host_cpu" = ia64; then
19333           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19334           allow_undefined_flag_F77="-z nodefs"
19335           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"
19336         else
19337          # Determine the default libpath from the value encoded in an empty executable.
19338          cat >conftest.$ac_ext <<_ACEOF
19339       program main
19340
19341       end
19342 _ACEOF
19343 rm -f conftest.$ac_objext conftest$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345   (eval $ac_link) 2>conftest.er1
19346   ac_status=$?
19347   grep -v '^ *+' conftest.er1 >conftest.err
19348   rm -f conftest.er1
19349   cat conftest.err >&5
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); } &&
19352          { ac_try='test -z "$ac_f77_werror_flag"
19353                          || test ! -s conftest.err'
19354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355   (eval $ac_try) 2>&5
19356   ac_status=$?
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); }; } &&
19359          { ac_try='test -s conftest$ac_exeext'
19360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361   (eval $ac_try) 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; }; then
19365
19366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19367 }'`
19368 # Check for a 64-bit object if we didn't find anything.
19369 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; }
19370 }'`; fi
19371 else
19372   echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 fi
19376 rm -f conftest.err conftest.$ac_objext \
19377       conftest$ac_exeext conftest.$ac_ext
19378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19379
19380          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19381           # Warning - without using the other run time loading flags,
19382           # -berok will link without error, but may produce a broken library.
19383           no_undefined_flag_F77=' ${wl}-bernotok'
19384           allow_undefined_flag_F77=' ${wl}-berok'
19385           # -bexpall does not export symbols beginning with underscore (_)
19386           always_export_symbols_F77=yes
19387           # Exported symbols can be pulled into shared objects from archives
19388           whole_archive_flag_spec_F77=' '
19389           archive_cmds_need_lc_F77=yes
19390           # This is similar to how AIX traditionally builds it's shared libraries.
19391           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'
19392         fi
19393       fi
19394       ;;
19395
19396     amigaos*)
19397       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)'
19398       hardcode_libdir_flag_spec_F77='-L$libdir'
19399       hardcode_minus_L_F77=yes
19400       # see comment about different semantics on the GNU ld section
19401       ld_shlibs_F77=no
19402       ;;
19403
19404     bsdi[45]*)
19405       export_dynamic_flag_spec_F77=-rdynamic
19406       ;;
19407
19408     cygwin* | mingw* | pw32*)
19409       # When not using gcc, we currently assume that we are using
19410       # Microsoft Visual C++.
19411       # hardcode_libdir_flag_spec is actually meaningless, as there is
19412       # no search path for DLLs.
19413       hardcode_libdir_flag_spec_F77=' '
19414       allow_undefined_flag_F77=unsupported
19415       # Tell ltmain to make .lib files, not .a files.
19416       libext=lib
19417       # Tell ltmain to make .dll files, not .so files.
19418       shrext_cmds=".dll"
19419       # FIXME: Setting linknames here is a bad hack.
19420       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19421       # The linker will automatically build a .lib file if we build a DLL.
19422       old_archive_From_new_cmds_F77='true'
19423       # FIXME: Should let the user specify the lib program.
19424       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19425       fix_srcfile_path='`cygpath -w "$srcfile"`'
19426       enable_shared_with_static_runtimes_F77=yes
19427       ;;
19428
19429     darwin* | rhapsody*)
19430       case "$host_os" in
19431         rhapsody* | darwin1.[012])
19432          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19433          ;;
19434        *) # Darwin 1.3 on
19435          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19436            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19437          else
19438            case ${MACOSX_DEPLOYMENT_TARGET} in
19439              10.[012])
19440                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19441                ;;
19442              10.*)
19443                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19444                ;;
19445            esac
19446          fi
19447          ;;
19448       esac
19449       archive_cmds_need_lc_F77=no
19450       hardcode_direct_F77=no
19451       hardcode_automatic_F77=yes
19452       hardcode_shlibpath_var_F77=unsupported
19453       whole_archive_flag_spec_F77=''
19454       link_all_deplibs_F77=yes
19455     if test "$GCC" = yes ; then
19456         output_verbose_link_cmd='echo'
19457         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19458       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19459       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19460       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}'
19461       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}'
19462     else
19463       case "$cc_basename" in
19464         xlc*)
19465          output_verbose_link_cmd='echo'
19466          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19467          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19468           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19469          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}'
19470           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}'
19471           ;;
19472        *)
19473          ld_shlibs_F77=no
19474           ;;
19475       esac
19476     fi
19477       ;;
19478
19479     dgux*)
19480       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19481       hardcode_libdir_flag_spec_F77='-L$libdir'
19482       hardcode_shlibpath_var_F77=no
19483       ;;
19484
19485     freebsd1*)
19486       ld_shlibs_F77=no
19487       ;;
19488
19489     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19490     # support.  Future versions do this automatically, but an explicit c++rt0.o
19491     # does not break anything, and helps significantly (at the cost of a little
19492     # extra space).
19493     freebsd2.2*)
19494       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19495       hardcode_libdir_flag_spec_F77='-R$libdir'
19496       hardcode_direct_F77=yes
19497       hardcode_shlibpath_var_F77=no
19498       ;;
19499
19500     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19501     freebsd2*)
19502       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19503       hardcode_direct_F77=yes
19504       hardcode_minus_L_F77=yes
19505       hardcode_shlibpath_var_F77=no
19506       ;;
19507
19508     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19509     freebsd* | kfreebsd*-gnu)
19510       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19511       hardcode_libdir_flag_spec_F77='-R$libdir'
19512       hardcode_direct_F77=yes
19513       hardcode_shlibpath_var_F77=no
19514       ;;
19515
19516     hpux9*)
19517       if test "$GCC" = yes; then
19518         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'
19519       else
19520         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'
19521       fi
19522       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19523       hardcode_libdir_separator_F77=:
19524       hardcode_direct_F77=yes
19525
19526       # hardcode_minus_L: Not really in the search PATH,
19527       # but as the default location of the library.
19528       hardcode_minus_L_F77=yes
19529       export_dynamic_flag_spec_F77='${wl}-E'
19530       ;;
19531
19532     hpux10* | hpux11*)
19533       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19534         case "$host_cpu" in
19535         hppa*64*|ia64*)
19536           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19537           ;;
19538         *)
19539           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19540           ;;
19541         esac
19542       else
19543         case "$host_cpu" in
19544         hppa*64*|ia64*)
19545           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19546           ;;
19547         *)
19548           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19549           ;;
19550         esac
19551       fi
19552       if test "$with_gnu_ld" = no; then
19553         case "$host_cpu" in
19554         hppa*64*)
19555           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19556           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19557           hardcode_libdir_separator_F77=:
19558           hardcode_direct_F77=no
19559           hardcode_shlibpath_var_F77=no
19560           ;;
19561         ia64*)
19562           hardcode_libdir_flag_spec_F77='-L$libdir'
19563           hardcode_direct_F77=no
19564           hardcode_shlibpath_var_F77=no
19565
19566           # hardcode_minus_L: Not really in the search PATH,
19567           # but as the default location of the library.
19568           hardcode_minus_L_F77=yes
19569           ;;
19570         *)
19571           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19572           hardcode_libdir_separator_F77=:
19573           hardcode_direct_F77=yes
19574           export_dynamic_flag_spec_F77='${wl}-E'
19575
19576           # hardcode_minus_L: Not really in the search PATH,
19577           # but as the default location of the library.
19578           hardcode_minus_L_F77=yes
19579           ;;
19580         esac
19581       fi
19582       ;;
19583
19584     irix5* | irix6* | nonstopux*)
19585       if test "$GCC" = yes; then
19586         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'
19587       else
19588         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'
19589         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19590       fi
19591       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19592       hardcode_libdir_separator_F77=:
19593       link_all_deplibs_F77=yes
19594       ;;
19595
19596     netbsd*)
19597       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19598         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19599       else
19600         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19601       fi
19602       hardcode_libdir_flag_spec_F77='-R$libdir'
19603       hardcode_direct_F77=yes
19604       hardcode_shlibpath_var_F77=no
19605       ;;
19606
19607     newsos6)
19608       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19609       hardcode_direct_F77=yes
19610       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19611       hardcode_libdir_separator_F77=:
19612       hardcode_shlibpath_var_F77=no
19613       ;;
19614
19615     openbsd*)
19616       hardcode_direct_F77=yes
19617       hardcode_shlibpath_var_F77=no
19618       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19619         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19620         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19621         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19622         export_dynamic_flag_spec_F77='${wl}-E'
19623       else
19624        case $host_os in
19625          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19626            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19627            hardcode_libdir_flag_spec_F77='-R$libdir'
19628            ;;
19629          *)
19630            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19631            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19632            ;;
19633        esac
19634       fi
19635       ;;
19636
19637     os2*)
19638       hardcode_libdir_flag_spec_F77='-L$libdir'
19639       hardcode_minus_L_F77=yes
19640       allow_undefined_flag_F77=unsupported
19641       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'
19642       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19643       ;;
19644
19645     osf3*)
19646       if test "$GCC" = yes; then
19647         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19648         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'
19649       else
19650         allow_undefined_flag_F77=' -expect_unresolved \*'
19651         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'
19652       fi
19653       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19654       hardcode_libdir_separator_F77=:
19655       ;;
19656
19657     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19658       if test "$GCC" = yes; then
19659         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19660         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'
19661         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19662       else
19663         allow_undefined_flag_F77=' -expect_unresolved \*'
19664         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'
19665         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~
19666         $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'
19667
19668         # Both c and cxx compiler support -rpath directly
19669         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19670       fi
19671       hardcode_libdir_separator_F77=:
19672       ;;
19673
19674     sco3.2v5*)
19675       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19676       hardcode_shlibpath_var_F77=no
19677       export_dynamic_flag_spec_F77='${wl}-Bexport'
19678       runpath_var=LD_RUN_PATH
19679       hardcode_runpath_var=yes
19680       ;;
19681
19682     solaris*)
19683       no_undefined_flag_F77=' -z text'
19684       if test "$GCC" = yes; then
19685         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19686         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19687           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19688       else
19689         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19690         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19691         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19692       fi
19693       hardcode_libdir_flag_spec_F77='-R$libdir'
19694       hardcode_shlibpath_var_F77=no
19695       case $host_os in
19696       solaris2.[0-5] | solaris2.[0-5].*) ;;
19697       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19698         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19699       esac
19700       link_all_deplibs_F77=yes
19701       ;;
19702
19703     sunos4*)
19704       if test "x$host_vendor" = xsequent; then
19705         # Use $CC to link under sequent, because it throws in some extra .o
19706         # files that make .init and .fini sections work.
19707         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19708       else
19709         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19710       fi
19711       hardcode_libdir_flag_spec_F77='-L$libdir'
19712       hardcode_direct_F77=yes
19713       hardcode_minus_L_F77=yes
19714       hardcode_shlibpath_var_F77=no
19715       ;;
19716
19717     sysv4)
19718       case $host_vendor in
19719         sni)
19720           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19721           hardcode_direct_F77=yes # is this really true???
19722         ;;
19723         siemens)
19724           ## LD is ld it makes a PLAMLIB
19725           ## CC just makes a GrossModule.
19726           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19727           reload_cmds_F77='$CC -r -o $output$reload_objs'
19728           hardcode_direct_F77=no
19729         ;;
19730         motorola)
19731           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19732           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19733         ;;
19734       esac
19735       runpath_var='LD_RUN_PATH'
19736       hardcode_shlibpath_var_F77=no
19737       ;;
19738
19739     sysv4.3*)
19740       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19741       hardcode_shlibpath_var_F77=no
19742       export_dynamic_flag_spec_F77='-Bexport'
19743       ;;
19744
19745     sysv4*MP*)
19746       if test -d /usr/nec; then
19747         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19748         hardcode_shlibpath_var_F77=no
19749         runpath_var=LD_RUN_PATH
19750         hardcode_runpath_var=yes
19751         ld_shlibs_F77=yes
19752       fi
19753       ;;
19754
19755     sysv4.2uw2*)
19756       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19757       hardcode_direct_F77=yes
19758       hardcode_minus_L_F77=no
19759       hardcode_shlibpath_var_F77=no
19760       hardcode_runpath_var=yes
19761       runpath_var=LD_RUN_PATH
19762       ;;
19763
19764    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19765       no_undefined_flag_F77='${wl}-z ${wl}text'
19766       if test "$GCC" = yes; then
19767         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19768       else
19769         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19770       fi
19771       runpath_var='LD_RUN_PATH'
19772       hardcode_shlibpath_var_F77=no
19773       ;;
19774
19775     sysv5*)
19776       no_undefined_flag_F77=' -z text'
19777       # $CC -shared without GNU ld will not create a library from C++
19778       # object files and a static libstdc++, better avoid it by now
19779       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19780       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19781                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19782       hardcode_libdir_flag_spec_F77=
19783       hardcode_shlibpath_var_F77=no
19784       runpath_var='LD_RUN_PATH'
19785       ;;
19786
19787     uts4*)
19788       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19789       hardcode_libdir_flag_spec_F77='-L$libdir'
19790       hardcode_shlibpath_var_F77=no
19791       ;;
19792
19793     *)
19794       ld_shlibs_F77=no
19795       ;;
19796     esac
19797   fi
19798
19799 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19800 echo "${ECHO_T}$ld_shlibs_F77" >&6
19801 test "$ld_shlibs_F77" = no && can_build_shared=no
19802
19803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19804 if test "$GCC" = yes; then
19805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19806 fi
19807
19808 #
19809 # Do we need to explicitly link libc?
19810 #
19811 case "x$archive_cmds_need_lc_F77" in
19812 x|xyes)
19813   # Assume -lc should be added
19814   archive_cmds_need_lc_F77=yes
19815
19816   if test "$enable_shared" = yes && test "$GCC" = yes; then
19817     case $archive_cmds_F77 in
19818     *'~'*)
19819       # FIXME: we may have to deal with multi-command sequences.
19820       ;;
19821     '$CC '*)
19822       # Test whether the compiler implicitly links with -lc since on some
19823       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19824       # to ld, don't add -lc before -lgcc.
19825       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19827       $rm conftest*
19828       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19829
19830       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831   (eval $ac_compile) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); } 2>conftest.err; then
19835         soname=conftest
19836         lib=conftest
19837         libobjs=conftest.$ac_objext
19838         deplibs=
19839         wl=$lt_prog_compiler_wl_F77
19840         compiler_flags=-v
19841         linker_flags=-v
19842         verstring=
19843         output_objdir=.
19844         libname=conftest
19845         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19846         allow_undefined_flag_F77=
19847         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19848   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); }
19852         then
19853           archive_cmds_need_lc_F77=no
19854         else
19855           archive_cmds_need_lc_F77=yes
19856         fi
19857         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19858       else
19859         cat conftest.err 1>&5
19860       fi
19861       $rm conftest*
19862       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19863 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19864       ;;
19865     esac
19866   fi
19867   ;;
19868 esac
19869
19870 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19872 library_names_spec=
19873 libname_spec='lib$name'
19874 soname_spec=
19875 shrext_cmds=".so"
19876 postinstall_cmds=
19877 postuninstall_cmds=
19878 finish_cmds=
19879 finish_eval=
19880 shlibpath_var=
19881 shlibpath_overrides_runpath=unknown
19882 version_type=none
19883 dynamic_linker="$host_os ld.so"
19884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19885 if test "$GCC" = yes; then
19886   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19887   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19888     # if the path contains ";" then we assume it to be the separator
19889     # otherwise default to the standard path separator (i.e. ":") - it is
19890     # assumed that no part of a normal pathname contains ";" but that should
19891     # okay in the real world where ";" in dirpaths is itself problematic.
19892     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19893   else
19894     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19895   fi
19896 else
19897   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19898 fi
19899 need_lib_prefix=unknown
19900 hardcode_into_libs=no
19901
19902 # when you set need_version to no, make sure it does not cause -set_version
19903 # flags to be left without arguments
19904 need_version=unknown
19905
19906 case $host_os in
19907 aix3*)
19908   version_type=linux
19909   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19910   shlibpath_var=LIBPATH
19911
19912   # AIX 3 has no versioning support, so we append a major version to the name.
19913   soname_spec='${libname}${release}${shared_ext}$major'
19914   ;;
19915
19916 aix4* | aix5*)
19917   version_type=linux
19918   need_lib_prefix=no
19919   need_version=no
19920   hardcode_into_libs=yes
19921   if test "$host_cpu" = ia64; then
19922     # AIX 5 supports IA64
19923     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19924     shlibpath_var=LD_LIBRARY_PATH
19925   else
19926     # With GCC up to 2.95.x, collect2 would create an import file
19927     # for dependence libraries.  The import file would start with
19928     # the line `#! .'.  This would cause the generated library to
19929     # depend on `.', always an invalid library.  This was fixed in
19930     # development snapshots of GCC prior to 3.0.
19931     case $host_os in
19932       aix4 | aix4.[01] | aix4.[01].*)
19933       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19934            echo ' yes '
19935            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19936         :
19937       else
19938         can_build_shared=no
19939       fi
19940       ;;
19941     esac
19942     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19943     # soname into executable. Probably we can add versioning support to
19944     # collect2, so additional links can be useful in future.
19945     if test "$aix_use_runtimelinking" = yes; then
19946       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19947       # instead of lib<name>.a to let people know that these are not
19948       # typical AIX shared libraries.
19949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19950     else
19951       # We preserve .a as extension for shared libraries through AIX4.2
19952       # and later when we are not doing run time linking.
19953       library_names_spec='${libname}${release}.a $libname.a'
19954       soname_spec='${libname}${release}${shared_ext}$major'
19955     fi
19956     shlibpath_var=LIBPATH
19957   fi
19958   ;;
19959
19960 amigaos*)
19961   library_names_spec='$libname.ixlibrary $libname.a'
19962   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19963   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'
19964   ;;
19965
19966 beos*)
19967   library_names_spec='${libname}${shared_ext}'
19968   dynamic_linker="$host_os ld.so"
19969   shlibpath_var=LIBRARY_PATH
19970   ;;
19971
19972 bsdi[45]*)
19973   version_type=linux
19974   need_version=no
19975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976   soname_spec='${libname}${release}${shared_ext}$major'
19977   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19978   shlibpath_var=LD_LIBRARY_PATH
19979   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19980   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19981   # the default ld.so.conf also contains /usr/contrib/lib and
19982   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19983   # libtool to hard-code these into programs
19984   ;;
19985
19986 cygwin* | mingw* | pw32*)
19987   version_type=windows
19988   shrext_cmds=".dll"
19989   need_version=no
19990   need_lib_prefix=no
19991
19992   case $GCC,$host_os in
19993   yes,cygwin* | yes,mingw* | yes,pw32*)
19994     library_names_spec='$libname.dll.a'
19995     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19996     postinstall_cmds='base_file=`basename \${file}`~
19997       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19998       dldir=$destdir/`dirname \$dlpath`~
19999       test -d \$dldir || mkdir -p \$dldir~
20000       $install_prog $dir/$dlname \$dldir/$dlname'
20001     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20002       dlpath=$dir/\$dldll~
20003        $rm \$dlpath'
20004     shlibpath_overrides_runpath=yes
20005
20006     case $host_os in
20007     cygwin*)
20008       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20009       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20010       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20011       ;;
20012     mingw*)
20013       # MinGW DLLs use traditional 'lib' prefix
20014       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20015       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20016       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20017         # It is most probably a Windows format PATH printed by
20018         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20019         # path with ; separators, and with drive letters. We can handle the
20020         # drive letters (cygwin fileutils understands them), so leave them,
20021         # especially as we might pass files found there to a mingw objdump,
20022         # which wouldn't understand a cygwinified path. Ahh.
20023         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20024       else
20025         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20026       fi
20027       ;;
20028     pw32*)
20029       # pw32 DLLs use 'pw' prefix rather than 'lib'
20030       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20031       ;;
20032     esac
20033     ;;
20034
20035   *)
20036     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20037     ;;
20038   esac
20039   dynamic_linker='Win32 ld.exe'
20040   # FIXME: first we should search . and the directory the executable is in
20041   shlibpath_var=PATH
20042   ;;
20043
20044 darwin* | rhapsody*)
20045   dynamic_linker="$host_os dyld"
20046   version_type=darwin
20047   need_lib_prefix=no
20048   need_version=no
20049   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20050   soname_spec='${libname}${release}${major}$shared_ext'
20051   shlibpath_overrides_runpath=yes
20052   shlibpath_var=DYLD_LIBRARY_PATH
20053   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20054   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20055   if test "$GCC" = yes; then
20056     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"`
20057   else
20058     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20059   fi
20060   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20061   ;;
20062
20063 dgux*)
20064   version_type=linux
20065   need_lib_prefix=no
20066   need_version=no
20067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20068   soname_spec='${libname}${release}${shared_ext}$major'
20069   shlibpath_var=LD_LIBRARY_PATH
20070   ;;
20071
20072 freebsd1*)
20073   dynamic_linker=no
20074   ;;
20075
20076 kfreebsd*-gnu)
20077   version_type=linux
20078   need_lib_prefix=no
20079   need_version=no
20080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20081   soname_spec='${libname}${release}${shared_ext}$major'
20082   shlibpath_var=LD_LIBRARY_PATH
20083   shlibpath_overrides_runpath=no
20084   hardcode_into_libs=yes
20085   dynamic_linker='GNU ld.so'
20086   ;;
20087
20088 freebsd*)
20089   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20090   version_type=freebsd-$objformat
20091   case $version_type in
20092     freebsd-elf*)
20093       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20094       need_version=no
20095       need_lib_prefix=no
20096       ;;
20097     freebsd-*)
20098       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20099       need_version=yes
20100       ;;
20101   esac
20102   shlibpath_var=LD_LIBRARY_PATH
20103   case $host_os in
20104   freebsd2*)
20105     shlibpath_overrides_runpath=yes
20106     ;;
20107   freebsd3.01* | freebsdelf3.01*)
20108     shlibpath_overrides_runpath=yes
20109     hardcode_into_libs=yes
20110     ;;
20111   *) # from 3.2 on
20112     shlibpath_overrides_runpath=no
20113     hardcode_into_libs=yes
20114     ;;
20115   esac
20116   ;;
20117
20118 gnu*)
20119   version_type=linux
20120   need_lib_prefix=no
20121   need_version=no
20122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20123   soname_spec='${libname}${release}${shared_ext}$major'
20124   shlibpath_var=LD_LIBRARY_PATH
20125   hardcode_into_libs=yes
20126   ;;
20127
20128 hpux9* | hpux10* | hpux11*)
20129   # Give a soname corresponding to the major version so that dld.sl refuses to
20130   # link against other versions.
20131   version_type=sunos
20132   need_lib_prefix=no
20133   need_version=no
20134   case "$host_cpu" in
20135   ia64*)
20136     shrext_cmds='.so'
20137     hardcode_into_libs=yes
20138     dynamic_linker="$host_os dld.so"
20139     shlibpath_var=LD_LIBRARY_PATH
20140     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142     soname_spec='${libname}${release}${shared_ext}$major'
20143     if test "X$HPUX_IA64_MODE" = X32; then
20144       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20145     else
20146       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20147     fi
20148     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20149     ;;
20150    hppa*64*)
20151      shrext_cmds='.sl'
20152      hardcode_into_libs=yes
20153      dynamic_linker="$host_os dld.sl"
20154      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20155      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20156      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157      soname_spec='${libname}${release}${shared_ext}$major'
20158      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20159      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20160      ;;
20161    *)
20162     shrext_cmds='.sl'
20163     dynamic_linker="$host_os dld.sl"
20164     shlibpath_var=SHLIB_PATH
20165     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167     soname_spec='${libname}${release}${shared_ext}$major'
20168     ;;
20169   esac
20170   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20171   postinstall_cmds='chmod 555 $lib'
20172   ;;
20173
20174 irix5* | irix6* | nonstopux*)
20175   case $host_os in
20176     nonstopux*) version_type=nonstopux ;;
20177     *)
20178         if test "$lt_cv_prog_gnu_ld" = yes; then
20179                 version_type=linux
20180         else
20181                 version_type=irix
20182         fi ;;
20183   esac
20184   need_lib_prefix=no
20185   need_version=no
20186   soname_spec='${libname}${release}${shared_ext}$major'
20187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20188   case $host_os in
20189   irix5* | nonstopux*)
20190     libsuff= shlibsuff=
20191     ;;
20192   *)
20193     case $LD in # libtool.m4 will add one of these switches to LD
20194     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20195       libsuff= shlibsuff= libmagic=32-bit;;
20196     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20197       libsuff=32 shlibsuff=N32 libmagic=N32;;
20198     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20199       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20200     *) libsuff= shlibsuff= libmagic=never-match;;
20201     esac
20202     ;;
20203   esac
20204   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20205   shlibpath_overrides_runpath=no
20206   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20207   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20208   hardcode_into_libs=yes
20209   ;;
20210
20211 # No shared lib support for Linux oldld, aout, or coff.
20212 linux*oldld* | linux*aout* | linux*coff*)
20213   dynamic_linker=no
20214   ;;
20215
20216 # This must be Linux ELF.
20217 linux*)
20218   version_type=linux
20219   need_lib_prefix=no
20220   need_version=no
20221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20222   soname_spec='${libname}${release}${shared_ext}$major'
20223   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20224   shlibpath_var=LD_LIBRARY_PATH
20225   shlibpath_overrides_runpath=no
20226   # This implies no fast_install, which is unacceptable.
20227   # Some rework will be needed to allow for fast_install
20228   # before this can be enabled.
20229   hardcode_into_libs=yes
20230
20231   # Append ld.so.conf contents to the search path
20232   if test -f /etc/ld.so.conf; then
20233     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20234     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20235   fi
20236
20237   # We used to test for /lib/ld.so.1 and disable shared libraries on
20238   # powerpc, because MkLinux only supported shared libraries with the
20239   # GNU dynamic linker.  Since this was broken with cross compilers,
20240   # most powerpc-linux boxes support dynamic linking these days and
20241   # people can always --disable-shared, the test was removed, and we
20242   # assume the GNU/Linux dynamic linker is in use.
20243   dynamic_linker='GNU/Linux ld.so'
20244   ;;
20245
20246 knetbsd*-gnu)
20247   version_type=linux
20248   need_lib_prefix=no
20249   need_version=no
20250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20251   soname_spec='${libname}${release}${shared_ext}$major'
20252   shlibpath_var=LD_LIBRARY_PATH
20253   shlibpath_overrides_runpath=no
20254   hardcode_into_libs=yes
20255   dynamic_linker='GNU ld.so'
20256   ;;
20257
20258 netbsd*)
20259   version_type=sunos
20260   need_lib_prefix=no
20261   need_version=no
20262   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20264     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20265     dynamic_linker='NetBSD (a.out) ld.so'
20266   else
20267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20268     soname_spec='${libname}${release}${shared_ext}$major'
20269     dynamic_linker='NetBSD ld.elf_so'
20270   fi
20271   shlibpath_var=LD_LIBRARY_PATH
20272   shlibpath_overrides_runpath=yes
20273   hardcode_into_libs=yes
20274   ;;
20275
20276 newsos6)
20277   version_type=linux
20278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20279   shlibpath_var=LD_LIBRARY_PATH
20280   shlibpath_overrides_runpath=yes
20281   ;;
20282
20283 nto-qnx*)
20284   version_type=linux
20285   need_lib_prefix=no
20286   need_version=no
20287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288   soname_spec='${libname}${release}${shared_ext}$major'
20289   shlibpath_var=LD_LIBRARY_PATH
20290   shlibpath_overrides_runpath=yes
20291   ;;
20292
20293 openbsd*)
20294   version_type=sunos
20295   need_lib_prefix=no
20296   need_version=no
20297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20298   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20299   shlibpath_var=LD_LIBRARY_PATH
20300   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20301     case $host_os in
20302       openbsd2.[89] | openbsd2.[89].*)
20303         shlibpath_overrides_runpath=no
20304         ;;
20305       *)
20306         shlibpath_overrides_runpath=yes
20307         ;;
20308       esac
20309   else
20310     shlibpath_overrides_runpath=yes
20311   fi
20312   ;;
20313
20314 os2*)
20315   libname_spec='$name'
20316   shrext_cmds=".dll"
20317   need_lib_prefix=no
20318   library_names_spec='$libname${shared_ext} $libname.a'
20319   dynamic_linker='OS/2 ld.exe'
20320   shlibpath_var=LIBPATH
20321   ;;
20322
20323 osf3* | osf4* | osf5*)
20324   version_type=osf
20325   need_lib_prefix=no
20326   need_version=no
20327   soname_spec='${libname}${release}${shared_ext}$major'
20328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329   shlibpath_var=LD_LIBRARY_PATH
20330   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20331   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20332   ;;
20333
20334 sco3.2v5*)
20335   version_type=osf
20336   soname_spec='${libname}${release}${shared_ext}$major'
20337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338   shlibpath_var=LD_LIBRARY_PATH
20339   ;;
20340
20341 solaris*)
20342   version_type=linux
20343   need_lib_prefix=no
20344   need_version=no
20345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346   soname_spec='${libname}${release}${shared_ext}$major'
20347   shlibpath_var=LD_LIBRARY_PATH
20348   shlibpath_overrides_runpath=yes
20349   hardcode_into_libs=yes
20350   # ldd complains unless libraries are executable
20351   postinstall_cmds='chmod +x $lib'
20352   ;;
20353
20354 sunos4*)
20355   version_type=sunos
20356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20357   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20358   shlibpath_var=LD_LIBRARY_PATH
20359   shlibpath_overrides_runpath=yes
20360   if test "$with_gnu_ld" = yes; then
20361     need_lib_prefix=no
20362   fi
20363   need_version=yes
20364   ;;
20365
20366 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20367   version_type=linux
20368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369   soname_spec='${libname}${release}${shared_ext}$major'
20370   shlibpath_var=LD_LIBRARY_PATH
20371   case $host_vendor in
20372     sni)
20373       shlibpath_overrides_runpath=no
20374       need_lib_prefix=no
20375       export_dynamic_flag_spec='${wl}-Blargedynsym'
20376       runpath_var=LD_RUN_PATH
20377       ;;
20378     siemens)
20379       need_lib_prefix=no
20380       ;;
20381     motorola)
20382       need_lib_prefix=no
20383       need_version=no
20384       shlibpath_overrides_runpath=no
20385       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20386       ;;
20387   esac
20388   ;;
20389
20390 sysv4*MP*)
20391   if test -d /usr/nec ;then
20392     version_type=linux
20393     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20394     soname_spec='$libname${shared_ext}.$major'
20395     shlibpath_var=LD_LIBRARY_PATH
20396   fi
20397   ;;
20398
20399 uts4*)
20400   version_type=linux
20401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402   soname_spec='${libname}${release}${shared_ext}$major'
20403   shlibpath_var=LD_LIBRARY_PATH
20404   ;;
20405
20406 *)
20407   dynamic_linker=no
20408   ;;
20409 esac
20410 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20411 echo "${ECHO_T}$dynamic_linker" >&6
20412 test "$dynamic_linker" = no && can_build_shared=no
20413
20414 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20415 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20416 hardcode_action_F77=
20417 if test -n "$hardcode_libdir_flag_spec_F77" || \
20418    test -n "$runpath_var_F77" || \
20419    test "X$hardcode_automatic_F77" = "Xyes" ; then
20420
20421   # We can hardcode non-existant directories.
20422   if test "$hardcode_direct_F77" != no &&
20423      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20424      # have to relink, otherwise we might link with an installed library
20425      # when we should be linking with a yet-to-be-installed one
20426      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20427      test "$hardcode_minus_L_F77" != no; then
20428     # Linking always hardcodes the temporary library directory.
20429     hardcode_action_F77=relink
20430   else
20431     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20432     hardcode_action_F77=immediate
20433   fi
20434 else
20435   # We cannot hardcode anything, or else we can only hardcode existing
20436   # directories.
20437   hardcode_action_F77=unsupported
20438 fi
20439 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20440 echo "${ECHO_T}$hardcode_action_F77" >&6
20441
20442 if test "$hardcode_action_F77" = relink; then
20443   # Fast installation is not supported
20444   enable_fast_install=no
20445 elif test "$shlibpath_overrides_runpath" = yes ||
20446      test "$enable_shared" = no; then
20447   # Fast installation is not necessary
20448   enable_fast_install=needless
20449 fi
20450
20451 striplib=
20452 old_striplib=
20453 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20454 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20455 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20456   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20457   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20458   echo "$as_me:$LINENO: result: yes" >&5
20459 echo "${ECHO_T}yes" >&6
20460 else
20461 # FIXME - insert some real tests, host_os isn't really good enough
20462   case $host_os in
20463    darwin*)
20464        if test -n "$STRIP" ; then
20465          striplib="$STRIP -x"
20466          echo "$as_me:$LINENO: result: yes" >&5
20467 echo "${ECHO_T}yes" >&6
20468        else
20469   echo "$as_me:$LINENO: result: no" >&5
20470 echo "${ECHO_T}no" >&6
20471 fi
20472        ;;
20473    *)
20474   echo "$as_me:$LINENO: result: no" >&5
20475 echo "${ECHO_T}no" >&6
20476     ;;
20477   esac
20478 fi
20479
20480
20481
20482 # The else clause should only fire when bootstrapping the
20483 # libtool distribution, otherwise you forgot to ship ltmain.sh
20484 # with your package, and you will get complaints that there are
20485 # no rules to generate ltmain.sh.
20486 if test -f "$ltmain"; then
20487   # See if we are running on zsh, and set the options which allow our commands through
20488   # without removal of \ escapes.
20489   if test -n "${ZSH_VERSION+set}" ; then
20490     setopt NO_GLOB_SUBST
20491   fi
20492   # Now quote all the things that may contain metacharacters while being
20493   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20494   # variables and quote the copies for generation of the libtool script.
20495   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20496     SED SHELL STRIP \
20497     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20498     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20499     deplibs_check_method reload_flag reload_cmds need_locks \
20500     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20501     lt_cv_sys_global_symbol_to_c_name_address \
20502     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20503     old_postinstall_cmds old_postuninstall_cmds \
20504     compiler_F77 \
20505     CC_F77 \
20506     LD_F77 \
20507     lt_prog_compiler_wl_F77 \
20508     lt_prog_compiler_pic_F77 \
20509     lt_prog_compiler_static_F77 \
20510     lt_prog_compiler_no_builtin_flag_F77 \
20511     export_dynamic_flag_spec_F77 \
20512     thread_safe_flag_spec_F77 \
20513     whole_archive_flag_spec_F77 \
20514     enable_shared_with_static_runtimes_F77 \
20515     old_archive_cmds_F77 \
20516     old_archive_from_new_cmds_F77 \
20517     predep_objects_F77 \
20518     postdep_objects_F77 \
20519     predeps_F77 \
20520     postdeps_F77 \
20521     compiler_lib_search_path_F77 \
20522     archive_cmds_F77 \
20523     archive_expsym_cmds_F77 \
20524     postinstall_cmds_F77 \
20525     postuninstall_cmds_F77 \
20526     old_archive_from_expsyms_cmds_F77 \
20527     allow_undefined_flag_F77 \
20528     no_undefined_flag_F77 \
20529     export_symbols_cmds_F77 \
20530     hardcode_libdir_flag_spec_F77 \
20531     hardcode_libdir_flag_spec_ld_F77 \
20532     hardcode_libdir_separator_F77 \
20533     hardcode_automatic_F77 \
20534     module_cmds_F77 \
20535     module_expsym_cmds_F77 \
20536     lt_cv_prog_compiler_c_o_F77 \
20537     exclude_expsyms_F77 \
20538     include_expsyms_F77; do
20539
20540     case $var in
20541     old_archive_cmds_F77 | \
20542     old_archive_from_new_cmds_F77 | \
20543     archive_cmds_F77 | \
20544     archive_expsym_cmds_F77 | \
20545     module_cmds_F77 | \
20546     module_expsym_cmds_F77 | \
20547     old_archive_from_expsyms_cmds_F77 | \
20548     export_symbols_cmds_F77 | \
20549     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20550     postinstall_cmds | postuninstall_cmds | \
20551     old_postinstall_cmds | old_postuninstall_cmds | \
20552     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20553       # Double-quote double-evaled strings.
20554       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20555       ;;
20556     *)
20557       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20558       ;;
20559     esac
20560   done
20561
20562   case $lt_echo in
20563   *'\$0 --fallback-echo"')
20564     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20565     ;;
20566   esac
20567
20568 cfgfile="$ofile"
20569
20570   cat <<__EOF__ >> "$cfgfile"
20571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20572
20573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20574
20575 # Shell to use when invoking shell scripts.
20576 SHELL=$lt_SHELL
20577
20578 # Whether or not to build shared libraries.
20579 build_libtool_libs=$enable_shared
20580
20581 # Whether or not to build static libraries.
20582 build_old_libs=$enable_static
20583
20584 # Whether or not to add -lc for building shared libraries.
20585 build_libtool_need_lc=$archive_cmds_need_lc_F77
20586
20587 # Whether or not to disallow shared libs when runtime libs are static
20588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20589
20590 # Whether or not to optimize for fast installation.
20591 fast_install=$enable_fast_install
20592
20593 # The host system.
20594 host_alias=$host_alias
20595 host=$host
20596
20597 # An echo program that does not interpret backslashes.
20598 echo=$lt_echo
20599
20600 # The archiver.
20601 AR=$lt_AR
20602 AR_FLAGS=$lt_AR_FLAGS
20603
20604 # A C compiler.
20605 LTCC=$lt_LTCC
20606
20607 # A language-specific compiler.
20608 CC=$lt_compiler_F77
20609
20610 # Is the compiler the GNU C compiler?
20611 with_gcc=$GCC_F77
20612
20613 # An ERE matcher.
20614 EGREP=$lt_EGREP
20615
20616 # The linker used to build libraries.
20617 LD=$lt_LD_F77
20618
20619 # Whether we need hard or soft links.
20620 LN_S=$lt_LN_S
20621
20622 # A BSD-compatible nm program.
20623 NM=$lt_NM
20624
20625 # A symbol stripping program
20626 STRIP=$lt_STRIP
20627
20628 # Used to examine libraries when file_magic_cmd begins "file"
20629 MAGIC_CMD=$MAGIC_CMD
20630
20631 # Used on cygwin: DLL creation program.
20632 DLLTOOL="$DLLTOOL"
20633
20634 # Used on cygwin: object dumper.
20635 OBJDUMP="$OBJDUMP"
20636
20637 # Used on cygwin: assembler.
20638 AS="$AS"
20639
20640 # The name of the directory that contains temporary libtool files.
20641 objdir=$objdir
20642
20643 # How to create reloadable object files.
20644 reload_flag=$lt_reload_flag
20645 reload_cmds=$lt_reload_cmds
20646
20647 # How to pass a linker flag through the compiler.
20648 wl=$lt_lt_prog_compiler_wl_F77
20649
20650 # Object file suffix (normally "o").
20651 objext="$ac_objext"
20652
20653 # Old archive suffix (normally "a").
20654 libext="$libext"
20655
20656 # Shared library suffix (normally ".so").
20657 shrext_cmds='$shrext_cmds'
20658
20659 # Executable file suffix (normally "").
20660 exeext="$exeext"
20661
20662 # Additional compiler flags for building library objects.
20663 pic_flag=$lt_lt_prog_compiler_pic_F77
20664 pic_mode=$pic_mode
20665
20666 # What is the maximum length of a command?
20667 max_cmd_len=$lt_cv_sys_max_cmd_len
20668
20669 # Does compiler simultaneously support -c and -o options?
20670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20671
20672 # Must we lock files when doing compilation ?
20673 need_locks=$lt_need_locks
20674
20675 # Do we need the lib prefix for modules?
20676 need_lib_prefix=$need_lib_prefix
20677
20678 # Do we need a version for libraries?
20679 need_version=$need_version
20680
20681 # Whether dlopen is supported.
20682 dlopen_support=$enable_dlopen
20683
20684 # Whether dlopen of programs is supported.
20685 dlopen_self=$enable_dlopen_self
20686
20687 # Whether dlopen of statically linked programs is supported.
20688 dlopen_self_static=$enable_dlopen_self_static
20689
20690 # Compiler flag to prevent dynamic linking.
20691 link_static_flag=$lt_lt_prog_compiler_static_F77
20692
20693 # Compiler flag to turn off builtin functions.
20694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20695
20696 # Compiler flag to allow reflexive dlopens.
20697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20698
20699 # Compiler flag to generate shared objects directly from archives.
20700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20701
20702 # Compiler flag to generate thread-safe objects.
20703 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20704
20705 # Library versioning type.
20706 version_type=$version_type
20707
20708 # Format of library name prefix.
20709 libname_spec=$lt_libname_spec
20710
20711 # List of archive names.  First name is the real one, the rest are links.
20712 # The last name is the one that the linker finds with -lNAME.
20713 library_names_spec=$lt_library_names_spec
20714
20715 # The coded name of the library, if different from the real name.
20716 soname_spec=$lt_soname_spec
20717
20718 # Commands used to build and install an old-style archive.
20719 RANLIB=$lt_RANLIB
20720 old_archive_cmds=$lt_old_archive_cmds_F77
20721 old_postinstall_cmds=$lt_old_postinstall_cmds
20722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20723
20724 # Create an old-style archive from a shared archive.
20725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20726
20727 # Create a temporary old-style archive to link instead of a shared archive.
20728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20729
20730 # Commands used to build and install a shared archive.
20731 archive_cmds=$lt_archive_cmds_F77
20732 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20733 postinstall_cmds=$lt_postinstall_cmds
20734 postuninstall_cmds=$lt_postuninstall_cmds
20735
20736 # Commands used to build a loadable module (assumed same as above if empty)
20737 module_cmds=$lt_module_cmds_F77
20738 module_expsym_cmds=$lt_module_expsym_cmds_F77
20739
20740 # Commands to strip libraries.
20741 old_striplib=$lt_old_striplib
20742 striplib=$lt_striplib
20743
20744 # Dependencies to place before the objects being linked to create a
20745 # shared library.
20746 predep_objects=$lt_predep_objects_F77
20747
20748 # Dependencies to place after the objects being linked to create a
20749 # shared library.
20750 postdep_objects=$lt_postdep_objects_F77
20751
20752 # Dependencies to place before the objects being linked to create a
20753 # shared library.
20754 predeps=$lt_predeps_F77
20755
20756 # Dependencies to place after the objects being linked to create a
20757 # shared library.
20758 postdeps=$lt_postdeps_F77
20759
20760 # The library search path used internally by the compiler when linking
20761 # a shared library.
20762 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20763
20764 # Method to check whether dependent libraries are shared objects.
20765 deplibs_check_method=$lt_deplibs_check_method
20766
20767 # Command to use when deplibs_check_method == file_magic.
20768 file_magic_cmd=$lt_file_magic_cmd
20769
20770 # Flag that allows shared libraries with undefined symbols to be built.
20771 allow_undefined_flag=$lt_allow_undefined_flag_F77
20772
20773 # Flag that forces no undefined symbols.
20774 no_undefined_flag=$lt_no_undefined_flag_F77
20775
20776 # Commands used to finish a libtool library installation in a directory.
20777 finish_cmds=$lt_finish_cmds
20778
20779 # Same as above, but a single script fragment to be evaled but not shown.
20780 finish_eval=$lt_finish_eval
20781
20782 # Take the output of nm and produce a listing of raw symbols and C names.
20783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20784
20785 # Transform the output of nm in a proper C declaration
20786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20787
20788 # Transform the output of nm in a C name address pair
20789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20790
20791 # This is the shared library runtime path variable.
20792 runpath_var=$runpath_var
20793
20794 # This is the shared library path variable.
20795 shlibpath_var=$shlibpath_var
20796
20797 # Is shlibpath searched before the hard-coded library search path?
20798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20799
20800 # How to hardcode a shared library path into an executable.
20801 hardcode_action=$hardcode_action_F77
20802
20803 # Whether we should hardcode library paths into libraries.
20804 hardcode_into_libs=$hardcode_into_libs
20805
20806 # Flag to hardcode \$libdir into a binary during linking.
20807 # This must work even if \$libdir does not exist.
20808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20809
20810 # If ld is used when linking, flag to hardcode \$libdir into
20811 # a binary during linking. This must work even if \$libdir does
20812 # not exist.
20813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20814
20815 # Whether we need a single -rpath flag with a separated argument.
20816 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20817
20818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20819 # resulting binary.
20820 hardcode_direct=$hardcode_direct_F77
20821
20822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20823 # resulting binary.
20824 hardcode_minus_L=$hardcode_minus_L_F77
20825
20826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20827 # the resulting binary.
20828 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20829
20830 # Set to yes if building a shared library automatically hardcodes DIR into the library
20831 # and all subsequent libraries and executables linked against it.
20832 hardcode_automatic=$hardcode_automatic_F77
20833
20834 # Variables whose values should be saved in libtool wrapper scripts and
20835 # restored at relink time.
20836 variables_saved_for_relink="$variables_saved_for_relink"
20837
20838 # Whether libtool must link a program against all its dependency libraries.
20839 link_all_deplibs=$link_all_deplibs_F77
20840
20841 # Compile-time system search path for libraries
20842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20843
20844 # Run-time system search path for libraries
20845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20846
20847 # Fix the shell variable \$srcfile for the compiler.
20848 fix_srcfile_path="$fix_srcfile_path_F77"
20849
20850 # Set to yes if exported symbols are required.
20851 always_export_symbols=$always_export_symbols_F77
20852
20853 # The commands to list exported symbols.
20854 export_symbols_cmds=$lt_export_symbols_cmds_F77
20855
20856 # The commands to extract the exported symbol list from a shared archive.
20857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20858
20859 # Symbols that should not be listed in the preloaded symbols.
20860 exclude_expsyms=$lt_exclude_expsyms_F77
20861
20862 # Symbols that must always be exported.
20863 include_expsyms=$lt_include_expsyms_F77
20864
20865 # ### END LIBTOOL TAG CONFIG: $tagname
20866
20867 __EOF__
20868
20869
20870 else
20871   # If there is no Makefile yet, we rely on a make rule to execute
20872   # `config.status --recheck' to rerun these tests and create the
20873   # libtool script then.
20874   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20875   if test -f "$ltmain_in"; then
20876     test -f Makefile && make "$ltmain"
20877   fi
20878 fi
20879
20880
20881 ac_ext=c
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
20887 CC="$lt_save_CC"
20888
20889         else
20890           tagname=""
20891         fi
20892         ;;
20893
20894       GCJ)
20895         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20896           ac_ext=c
20897 ac_cpp='$CPP $CPPFLAGS'
20898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20901
20902
20903 # Source file extension for Java test sources.
20904 ac_ext=java
20905
20906 # Object file extension for compiled Java test sources.
20907 objext=o
20908 objext_GCJ=$objext
20909
20910 # Code to be used in simple compile tests
20911 lt_simple_compile_test_code="class foo {}\n"
20912
20913 # Code to be used in simple link tests
20914 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20915
20916 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20917
20918 # If no C compiler was specified, use CC.
20919 LTCC=${LTCC-"$CC"}
20920
20921 # Allow CC to be a program name with arguments.
20922 compiler=$CC
20923
20924
20925 # Allow CC to be a program name with arguments.
20926 lt_save_CC="$CC"
20927 CC=${GCJ-"gcj"}
20928 compiler=$CC
20929 compiler_GCJ=$CC
20930
20931 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20932 archive_cmds_need_lc_GCJ=no
20933
20934
20935 lt_prog_compiler_no_builtin_flag_GCJ=
20936
20937 if test "$GCC" = yes; then
20938   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20939
20940
20941 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20942 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20943 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20944   echo $ECHO_N "(cached) $ECHO_C" >&6
20945 else
20946   lt_cv_prog_compiler_rtti_exceptions=no
20947   ac_outfile=conftest.$ac_objext
20948    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20949    lt_compiler_flag="-fno-rtti -fno-exceptions"
20950    # Insert the option either (1) after the last *FLAGS variable, or
20951    # (2) before a word containing "conftest.", or (3) at the end.
20952    # Note that $ac_compile itself does not contain backslashes and begins
20953    # with a dollar sign (not a hyphen), so the echo should work correctly.
20954    # The option is referenced via a variable to avoid confusing sed.
20955    lt_compile=`echo "$ac_compile" | $SED \
20956    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20957    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20958    -e 's:$: $lt_compiler_flag:'`
20959    (eval echo "\"\$as_me:20959: $lt_compile\"" >&5)
20960    (eval "$lt_compile" 2>conftest.err)
20961    ac_status=$?
20962    cat conftest.err >&5
20963    echo "$as_me:20963: \$? = $ac_status" >&5
20964    if (exit $ac_status) && test -s "$ac_outfile"; then
20965      # The compiler can only warn and ignore the option if not recognized
20966      # So say no if there are warnings
20967      if test ! -s conftest.err; then
20968        lt_cv_prog_compiler_rtti_exceptions=yes
20969      fi
20970    fi
20971    $rm conftest*
20972
20973 fi
20974 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20975 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20976
20977 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20978     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20979 else
20980     :
20981 fi
20982
20983 fi
20984
20985 lt_prog_compiler_wl_GCJ=
20986 lt_prog_compiler_pic_GCJ=
20987 lt_prog_compiler_static_GCJ=
20988
20989 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20990 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20991
20992   if test "$GCC" = yes; then
20993     lt_prog_compiler_wl_GCJ='-Wl,'
20994     lt_prog_compiler_static_GCJ='-static'
20995
20996     case $host_os in
20997       aix*)
20998       # All AIX code is PIC.
20999       if test "$host_cpu" = ia64; then
21000         # AIX 5 now supports IA64 processor
21001         lt_prog_compiler_static_GCJ='-Bstatic'
21002       fi
21003       ;;
21004
21005     amigaos*)
21006       # FIXME: we need at least 68020 code to build shared libraries, but
21007       # adding the `-m68020' flag to GCC prevents building anything better,
21008       # like `-m68040'.
21009       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21010       ;;
21011
21012     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21013       # PIC is the default for these OSes.
21014       ;;
21015
21016     mingw* | pw32* | os2*)
21017       # This hack is so that the source file can tell whether it is being
21018       # built for inclusion in a dll (and should export symbols for example).
21019       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21020       ;;
21021
21022     darwin* | rhapsody*)
21023       # PIC is the default on this platform
21024       # Common symbols not allowed in MH_DYLIB files
21025       lt_prog_compiler_pic_GCJ='-fno-common'
21026       ;;
21027
21028     msdosdjgpp*)
21029       # Just because we use GCC doesn't mean we suddenly get shared libraries
21030       # on systems that don't support them.
21031       lt_prog_compiler_can_build_shared_GCJ=no
21032       enable_shared=no
21033       ;;
21034
21035     sysv4*MP*)
21036       if test -d /usr/nec; then
21037         lt_prog_compiler_pic_GCJ=-Kconform_pic
21038       fi
21039       ;;
21040
21041     hpux*)
21042       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21043       # not for PA HP-UX.
21044       case "$host_cpu" in
21045       hppa*64*|ia64*)
21046         # +Z the default
21047         ;;
21048       *)
21049         lt_prog_compiler_pic_GCJ='-fPIC'
21050         ;;
21051       esac
21052       ;;
21053
21054     *)
21055       lt_prog_compiler_pic_GCJ='-fPIC'
21056       ;;
21057     esac
21058   else
21059     # PORTME Check for flag to pass linker flags through the system compiler.
21060     case $host_os in
21061     aix*)
21062       lt_prog_compiler_wl_GCJ='-Wl,'
21063       if test "$host_cpu" = ia64; then
21064         # AIX 5 now supports IA64 processor
21065         lt_prog_compiler_static_GCJ='-Bstatic'
21066       else
21067         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21068       fi
21069       ;;
21070       darwin*)
21071         # PIC is the default on this platform
21072         # Common symbols not allowed in MH_DYLIB files
21073        case "$cc_basename" in
21074          xlc*)
21075          lt_prog_compiler_pic_GCJ='-qnocommon'
21076          lt_prog_compiler_wl_GCJ='-Wl,'
21077          ;;
21078        esac
21079        ;;
21080
21081     mingw* | pw32* | os2*)
21082       # This hack is so that the source file can tell whether it is being
21083       # built for inclusion in a dll (and should export symbols for example).
21084       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21085       ;;
21086
21087     hpux9* | hpux10* | hpux11*)
21088       lt_prog_compiler_wl_GCJ='-Wl,'
21089       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21090       # not for PA HP-UX.
21091       case "$host_cpu" in
21092       hppa*64*|ia64*)
21093         # +Z the default
21094         ;;
21095       *)
21096         lt_prog_compiler_pic_GCJ='+Z'
21097         ;;
21098       esac
21099       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21100       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21101       ;;
21102
21103     irix5* | irix6* | nonstopux*)
21104       lt_prog_compiler_wl_GCJ='-Wl,'
21105       # PIC (with -KPIC) is the default.
21106       lt_prog_compiler_static_GCJ='-non_shared'
21107       ;;
21108
21109     newsos6)
21110       lt_prog_compiler_pic_GCJ='-KPIC'
21111       lt_prog_compiler_static_GCJ='-Bstatic'
21112       ;;
21113
21114     linux*)
21115       case $CC in
21116       icc* | ecc*)
21117         lt_prog_compiler_wl_GCJ='-Wl,'
21118         lt_prog_compiler_pic_GCJ='-KPIC'
21119         lt_prog_compiler_static_GCJ='-static'
21120         ;;
21121       ccc*)
21122         lt_prog_compiler_wl_GCJ='-Wl,'
21123         # All Alpha code is PIC.
21124         lt_prog_compiler_static_GCJ='-non_shared'
21125         ;;
21126       esac
21127       ;;
21128
21129     osf3* | osf4* | osf5*)
21130       lt_prog_compiler_wl_GCJ='-Wl,'
21131       # All OSF/1 code is PIC.
21132       lt_prog_compiler_static_GCJ='-non_shared'
21133       ;;
21134
21135     sco3.2v5*)
21136       lt_prog_compiler_pic_GCJ='-Kpic'
21137       lt_prog_compiler_static_GCJ='-dn'
21138       ;;
21139
21140     solaris*)
21141       lt_prog_compiler_wl_GCJ='-Wl,'
21142       lt_prog_compiler_pic_GCJ='-KPIC'
21143       lt_prog_compiler_static_GCJ='-Bstatic'
21144       ;;
21145
21146     sunos4*)
21147       lt_prog_compiler_wl_GCJ='-Qoption ld '
21148       lt_prog_compiler_pic_GCJ='-PIC'
21149       lt_prog_compiler_static_GCJ='-Bstatic'
21150       ;;
21151
21152     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21153       lt_prog_compiler_wl_GCJ='-Wl,'
21154       lt_prog_compiler_pic_GCJ='-KPIC'
21155       lt_prog_compiler_static_GCJ='-Bstatic'
21156       ;;
21157
21158     sysv4*MP*)
21159       if test -d /usr/nec ;then
21160         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21161         lt_prog_compiler_static_GCJ='-Bstatic'
21162       fi
21163       ;;
21164
21165     uts4*)
21166       lt_prog_compiler_pic_GCJ='-pic'
21167       lt_prog_compiler_static_GCJ='-Bstatic'
21168       ;;
21169
21170     *)
21171       lt_prog_compiler_can_build_shared_GCJ=no
21172       ;;
21173     esac
21174   fi
21175
21176 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21177 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21178
21179 #
21180 # Check to make sure the PIC flag actually works.
21181 #
21182 if test -n "$lt_prog_compiler_pic_GCJ"; then
21183
21184 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21185 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21186 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21187   echo $ECHO_N "(cached) $ECHO_C" >&6
21188 else
21189   lt_prog_compiler_pic_works_GCJ=no
21190   ac_outfile=conftest.$ac_objext
21191    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21192    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21193    # Insert the option either (1) after the last *FLAGS variable, or
21194    # (2) before a word containing "conftest.", or (3) at the end.
21195    # Note that $ac_compile itself does not contain backslashes and begins
21196    # with a dollar sign (not a hyphen), so the echo should work correctly.
21197    # The option is referenced via a variable to avoid confusing sed.
21198    lt_compile=`echo "$ac_compile" | $SED \
21199    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21200    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21201    -e 's:$: $lt_compiler_flag:'`
21202    (eval echo "\"\$as_me:21202: $lt_compile\"" >&5)
21203    (eval "$lt_compile" 2>conftest.err)
21204    ac_status=$?
21205    cat conftest.err >&5
21206    echo "$as_me:21206: \$? = $ac_status" >&5
21207    if (exit $ac_status) && test -s "$ac_outfile"; then
21208      # The compiler can only warn and ignore the option if not recognized
21209      # So say no if there are warnings
21210      if test ! -s conftest.err; then
21211        lt_prog_compiler_pic_works_GCJ=yes
21212      fi
21213    fi
21214    $rm conftest*
21215
21216 fi
21217 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21218 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21219
21220 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21221     case $lt_prog_compiler_pic_GCJ in
21222      "" | " "*) ;;
21223      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21224      esac
21225 else
21226     lt_prog_compiler_pic_GCJ=
21227      lt_prog_compiler_can_build_shared_GCJ=no
21228 fi
21229
21230 fi
21231 case "$host_os" in
21232   # For platforms which do not support PIC, -DPIC is meaningless:
21233   *djgpp*)
21234     lt_prog_compiler_pic_GCJ=
21235     ;;
21236   *)
21237     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21238     ;;
21239 esac
21240
21241 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21242 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21243 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21244   echo $ECHO_N "(cached) $ECHO_C" >&6
21245 else
21246   lt_cv_prog_compiler_c_o_GCJ=no
21247    $rm -r conftest 2>/dev/null
21248    mkdir conftest
21249    cd conftest
21250    mkdir out
21251    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21252
21253    lt_compiler_flag="-o out/conftest2.$ac_objext"
21254    # Insert the option either (1) after the last *FLAGS variable, or
21255    # (2) before a word containing "conftest.", or (3) at the end.
21256    # Note that $ac_compile itself does not contain backslashes and begins
21257    # with a dollar sign (not a hyphen), so the echo should work correctly.
21258    lt_compile=`echo "$ac_compile" | $SED \
21259    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21260    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21261    -e 's:$: $lt_compiler_flag:'`
21262    (eval echo "\"\$as_me:21262: $lt_compile\"" >&5)
21263    (eval "$lt_compile" 2>out/conftest.err)
21264    ac_status=$?
21265    cat out/conftest.err >&5
21266    echo "$as_me:21266: \$? = $ac_status" >&5
21267    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21268    then
21269      # The compiler can only warn and ignore the option if not recognized
21270      # So say no if there are warnings
21271      if test ! -s out/conftest.err; then
21272        lt_cv_prog_compiler_c_o_GCJ=yes
21273      fi
21274    fi
21275    chmod u+w .
21276    $rm conftest*
21277    # SGI C++ compiler will create directory out/ii_files/ for
21278    # template instantiation
21279    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21280    $rm out/* && rmdir out
21281    cd ..
21282    rmdir conftest
21283    $rm conftest*
21284
21285 fi
21286 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21287 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21288
21289
21290 hard_links="nottested"
21291 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21292   # do not overwrite the value of need_locks provided by the user
21293   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21294 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21295   hard_links=yes
21296   $rm conftest*
21297   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21298   touch conftest.a
21299   ln conftest.a conftest.b 2>&5 || hard_links=no
21300   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21301   echo "$as_me:$LINENO: result: $hard_links" >&5
21302 echo "${ECHO_T}$hard_links" >&6
21303   if test "$hard_links" = no; then
21304     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21305 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21306     need_locks=warn
21307   fi
21308 else
21309   need_locks=no
21310 fi
21311
21312 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21313 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21314
21315   runpath_var=
21316   allow_undefined_flag_GCJ=
21317   enable_shared_with_static_runtimes_GCJ=no
21318   archive_cmds_GCJ=
21319   archive_expsym_cmds_GCJ=
21320   old_archive_From_new_cmds_GCJ=
21321   old_archive_from_expsyms_cmds_GCJ=
21322   export_dynamic_flag_spec_GCJ=
21323   whole_archive_flag_spec_GCJ=
21324   thread_safe_flag_spec_GCJ=
21325   hardcode_libdir_flag_spec_GCJ=
21326   hardcode_libdir_flag_spec_ld_GCJ=
21327   hardcode_libdir_separator_GCJ=
21328   hardcode_direct_GCJ=no
21329   hardcode_minus_L_GCJ=no
21330   hardcode_shlibpath_var_GCJ=unsupported
21331   link_all_deplibs_GCJ=unknown
21332   hardcode_automatic_GCJ=no
21333   module_cmds_GCJ=
21334   module_expsym_cmds_GCJ=
21335   always_export_symbols_GCJ=no
21336   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21337   # include_expsyms should be a list of space-separated symbols to be *always*
21338   # included in the symbol list
21339   include_expsyms_GCJ=
21340   # exclude_expsyms can be an extended regexp of symbols to exclude
21341   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21342   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21343   # as well as any symbol that contains `d'.
21344   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21345   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21346   # platforms (ab)use it in PIC code, but their linkers get confused if
21347   # the symbol is explicitly referenced.  Since portable code cannot
21348   # rely on this symbol name, it's probably fine to never include it in
21349   # preloaded symbol tables.
21350   extract_expsyms_cmds=
21351
21352   case $host_os in
21353   cygwin* | mingw* | pw32*)
21354     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21355     # When not using gcc, we currently assume that we are using
21356     # Microsoft Visual C++.
21357     if test "$GCC" != yes; then
21358       with_gnu_ld=no
21359     fi
21360     ;;
21361   openbsd*)
21362     with_gnu_ld=no
21363     ;;
21364   esac
21365
21366   ld_shlibs_GCJ=yes
21367   if test "$with_gnu_ld" = yes; then
21368     # If archive_cmds runs LD, not CC, wlarc should be empty
21369     wlarc='${wl}'
21370
21371     # See if GNU ld supports shared libraries.
21372     case $host_os in
21373     aix3* | aix4* | aix5*)
21374       # On AIX/PPC, the GNU linker is very broken
21375       if test "$host_cpu" != ia64; then
21376         ld_shlibs_GCJ=no
21377         cat <<EOF 1>&2
21378
21379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21380 *** to be unable to reliably create shared libraries on AIX.
21381 *** Therefore, libtool is disabling shared libraries support.  If you
21382 *** really care for shared libraries, you may want to modify your PATH
21383 *** so that a non-GNU linker is found, and then restart.
21384
21385 EOF
21386       fi
21387       ;;
21388
21389     amigaos*)
21390       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)'
21391       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21392       hardcode_minus_L_GCJ=yes
21393
21394       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21395       # that the semantics of dynamic libraries on AmigaOS, at least up
21396       # to version 4, is to share data among multiple programs linked
21397       # with the same dynamic library.  Since this doesn't match the
21398       # behavior of shared libraries on other platforms, we can't use
21399       # them.
21400       ld_shlibs_GCJ=no
21401       ;;
21402
21403     beos*)
21404       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21405         allow_undefined_flag_GCJ=unsupported
21406         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21407         # support --undefined.  This deserves some investigation.  FIXME
21408         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21409       else
21410         ld_shlibs_GCJ=no
21411       fi
21412       ;;
21413
21414     cygwin* | mingw* | pw32*)
21415       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21416       # as there is no search path for DLLs.
21417       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21418       allow_undefined_flag_GCJ=unsupported
21419       always_export_symbols_GCJ=no
21420       enable_shared_with_static_runtimes_GCJ=yes
21421       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21422
21423       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21424         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21425         # If the export-symbols file already is a .def file (1st line
21426         # is EXPORTS), use it as is; otherwise, prepend...
21427         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21428           cp $export_symbols $output_objdir/$soname.def;
21429         else
21430           echo EXPORTS > $output_objdir/$soname.def;
21431           cat $export_symbols >> $output_objdir/$soname.def;
21432         fi~
21433         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21434       else
21435         ld_shlibs=no
21436       fi
21437       ;;
21438
21439     netbsd*)
21440       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21441         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21442         wlarc=
21443       else
21444         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21445         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21446       fi
21447       ;;
21448
21449     solaris* | sysv5*)
21450       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21451         ld_shlibs_GCJ=no
21452         cat <<EOF 1>&2
21453
21454 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21455 *** create shared libraries on Solaris systems.  Therefore, libtool
21456 *** is disabling shared libraries support.  We urge you to upgrade GNU
21457 *** binutils to release 2.9.1 or newer.  Another option is to modify
21458 *** your PATH or compiler configuration so that the native linker is
21459 *** used, and then restart.
21460
21461 EOF
21462       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21463         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21464         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21465       else
21466         ld_shlibs_GCJ=no
21467       fi
21468       ;;
21469
21470     sunos4*)
21471       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21472       wlarc=
21473       hardcode_direct_GCJ=yes
21474       hardcode_shlibpath_var_GCJ=no
21475       ;;
21476
21477   linux*)
21478     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21479         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21480         archive_cmds_GCJ="$tmp_archive_cmds"
21481       supports_anon_versioning=no
21482       case `$LD -v 2>/dev/null` in
21483         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21484         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21485         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21486         *\ 2.11.*) ;; # other 2.11 versions
21487         *) supports_anon_versioning=yes ;;
21488       esac
21489       if test $supports_anon_versioning = yes; then
21490         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21492 $echo "local: *; };" >> $output_objdir/$libname.ver~
21493         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21494       else
21495         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21496       fi
21497     else
21498       ld_shlibs_GCJ=no
21499     fi
21500     ;;
21501
21502     *)
21503       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21504         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21505         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21506       else
21507         ld_shlibs_GCJ=no
21508       fi
21509       ;;
21510     esac
21511
21512     if test "$ld_shlibs_GCJ" = yes; then
21513       runpath_var=LD_RUN_PATH
21514       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21515       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21516       # ancient GNU ld didn't support --whole-archive et. al.
21517       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21518         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21519       else
21520         whole_archive_flag_spec_GCJ=
21521       fi
21522     fi
21523   else
21524     # PORTME fill in a description of your system's linker (not GNU ld)
21525     case $host_os in
21526     aix3*)
21527       allow_undefined_flag_GCJ=unsupported
21528       always_export_symbols_GCJ=yes
21529       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'
21530       # Note: this linker hardcodes the directories in LIBPATH if there
21531       # are no directories specified by -L.
21532       hardcode_minus_L_GCJ=yes
21533       if test "$GCC" = yes && test -z "$link_static_flag"; then
21534         # Neither direct hardcoding nor static linking is supported with a
21535         # broken collect2.
21536         hardcode_direct_GCJ=unsupported
21537       fi
21538       ;;
21539
21540     aix4* | aix5*)
21541       if test "$host_cpu" = ia64; then
21542         # On IA64, the linker does run time linking by default, so we don't
21543         # have to do anything special.
21544         aix_use_runtimelinking=no
21545         exp_sym_flag='-Bexport'
21546         no_entry_flag=""
21547       else
21548         # If we're using GNU nm, then we don't want the "-C" option.
21549         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21550         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21551           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'
21552         else
21553           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'
21554         fi
21555         aix_use_runtimelinking=no
21556
21557         # Test if we are trying to use run time linking or normal
21558         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21559         # need to do runtime linking.
21560         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21561           for ld_flag in $LDFLAGS; do
21562           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21563             aix_use_runtimelinking=yes
21564             break
21565           fi
21566           done
21567         esac
21568
21569         exp_sym_flag='-bexport'
21570         no_entry_flag='-bnoentry'
21571       fi
21572
21573       # When large executables or shared objects are built, AIX ld can
21574       # have problems creating the table of contents.  If linking a library
21575       # or program results in "error TOC overflow" add -mminimal-toc to
21576       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21577       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21578
21579       archive_cmds_GCJ=''
21580       hardcode_direct_GCJ=yes
21581       hardcode_libdir_separator_GCJ=':'
21582       link_all_deplibs_GCJ=yes
21583
21584       if test "$GCC" = yes; then
21585         case $host_os in aix4.012|aix4.012.*)
21586         # We only want to do this on AIX 4.2 and lower, the check
21587         # below for broken collect2 doesn't work under 4.3+
21588           collect2name=`${CC} -print-prog-name=collect2`
21589           if test -f "$collect2name" && \
21590            strings "$collect2name" | grep resolve_lib_name >/dev/null
21591           then
21592           # We have reworked collect2
21593           hardcode_direct_GCJ=yes
21594           else
21595           # We have old collect2
21596           hardcode_direct_GCJ=unsupported
21597           # It fails to find uninstalled libraries when the uninstalled
21598           # path is not listed in the libpath.  Setting hardcode_minus_L
21599           # to unsupported forces relinking
21600           hardcode_minus_L_GCJ=yes
21601           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21602           hardcode_libdir_separator_GCJ=
21603           fi
21604         esac
21605         shared_flag='-shared'
21606       else
21607         # not using gcc
21608         if test "$host_cpu" = ia64; then
21609         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21610         # chokes on -Wl,-G. The following line is correct:
21611           shared_flag='-G'
21612         else
21613         if test "$aix_use_runtimelinking" = yes; then
21614             shared_flag='${wl}-G'
21615           else
21616             shared_flag='${wl}-bM:SRE'
21617         fi
21618         fi
21619       fi
21620
21621       # It seems that -bexpall does not export symbols beginning with
21622       # underscore (_), so it is better to generate a list of symbols to export.
21623       always_export_symbols_GCJ=yes
21624       if test "$aix_use_runtimelinking" = yes; then
21625         # Warning - without using the other runtime loading flags (-brtl),
21626         # -berok will link without error, but may produce a broken library.
21627         allow_undefined_flag_GCJ='-berok'
21628        # Determine the default libpath from the value encoded in an empty executable.
21629        cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h.  */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h.  */
21635
21636 int
21637 main ()
21638 {
21639
21640   ;
21641   return 0;
21642 }
21643 _ACEOF
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21646   (eval $ac_link) 2>conftest.er1
21647   ac_status=$?
21648   grep -v '^ *+' conftest.er1 >conftest.err
21649   rm -f conftest.er1
21650   cat conftest.err >&5
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); } &&
21653          { ac_try='test -z "$ac_c_werror_flag"
21654                          || test ! -s conftest.err'
21655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656   (eval $ac_try) 2>&5
21657   ac_status=$?
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); }; } &&
21660          { ac_try='test -s conftest$ac_exeext'
21661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662   (eval $ac_try) 2>&5
21663   ac_status=$?
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); }; }; then
21666
21667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21668 }'`
21669 # Check for a 64-bit object if we didn't find anything.
21670 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; }
21671 }'`; fi
21672 else
21673   echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21675
21676 fi
21677 rm -f conftest.err conftest.$ac_objext \
21678       conftest$ac_exeext conftest.$ac_ext
21679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21680
21681        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21682         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"
21683        else
21684         if test "$host_cpu" = ia64; then
21685           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21686           allow_undefined_flag_GCJ="-z nodefs"
21687           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"
21688         else
21689          # Determine the default libpath from the value encoded in an empty executable.
21690          cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696
21697 int
21698 main ()
21699 {
21700
21701   ;
21702   return 0;
21703 }
21704 _ACEOF
21705 rm -f conftest.$ac_objext conftest$ac_exeext
21706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21707   (eval $ac_link) 2>conftest.er1
21708   ac_status=$?
21709   grep -v '^ *+' conftest.er1 >conftest.err
21710   rm -f conftest.er1
21711   cat conftest.err >&5
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); } &&
21714          { ac_try='test -z "$ac_c_werror_flag"
21715                          || test ! -s conftest.err'
21716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717   (eval $ac_try) 2>&5
21718   ac_status=$?
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); }; } &&
21721          { ac_try='test -s conftest$ac_exeext'
21722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723   (eval $ac_try) 2>&5
21724   ac_status=$?
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); }; }; then
21727
21728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21729 }'`
21730 # Check for a 64-bit object if we didn't find anything.
21731 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; }
21732 }'`; fi
21733 else
21734   echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21736
21737 fi
21738 rm -f conftest.err conftest.$ac_objext \
21739       conftest$ac_exeext conftest.$ac_ext
21740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21741
21742          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21743           # Warning - without using the other run time loading flags,
21744           # -berok will link without error, but may produce a broken library.
21745           no_undefined_flag_GCJ=' ${wl}-bernotok'
21746           allow_undefined_flag_GCJ=' ${wl}-berok'
21747           # -bexpall does not export symbols beginning with underscore (_)
21748           always_export_symbols_GCJ=yes
21749           # Exported symbols can be pulled into shared objects from archives
21750           whole_archive_flag_spec_GCJ=' '
21751           archive_cmds_need_lc_GCJ=yes
21752           # This is similar to how AIX traditionally builds it's shared libraries.
21753           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'
21754         fi
21755       fi
21756       ;;
21757
21758     amigaos*)
21759       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)'
21760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21761       hardcode_minus_L_GCJ=yes
21762       # see comment about different semantics on the GNU ld section
21763       ld_shlibs_GCJ=no
21764       ;;
21765
21766     bsdi[45]*)
21767       export_dynamic_flag_spec_GCJ=-rdynamic
21768       ;;
21769
21770     cygwin* | mingw* | pw32*)
21771       # When not using gcc, we currently assume that we are using
21772       # Microsoft Visual C++.
21773       # hardcode_libdir_flag_spec is actually meaningless, as there is
21774       # no search path for DLLs.
21775       hardcode_libdir_flag_spec_GCJ=' '
21776       allow_undefined_flag_GCJ=unsupported
21777       # Tell ltmain to make .lib files, not .a files.
21778       libext=lib
21779       # Tell ltmain to make .dll files, not .so files.
21780       shrext_cmds=".dll"
21781       # FIXME: Setting linknames here is a bad hack.
21782       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21783       # The linker will automatically build a .lib file if we build a DLL.
21784       old_archive_From_new_cmds_GCJ='true'
21785       # FIXME: Should let the user specify the lib program.
21786       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21787       fix_srcfile_path='`cygpath -w "$srcfile"`'
21788       enable_shared_with_static_runtimes_GCJ=yes
21789       ;;
21790
21791     darwin* | rhapsody*)
21792       case "$host_os" in
21793         rhapsody* | darwin1.[012])
21794          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21795          ;;
21796        *) # Darwin 1.3 on
21797          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21798            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21799          else
21800            case ${MACOSX_DEPLOYMENT_TARGET} in
21801              10.[012])
21802                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21803                ;;
21804              10.*)
21805                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21806                ;;
21807            esac
21808          fi
21809          ;;
21810       esac
21811       archive_cmds_need_lc_GCJ=no
21812       hardcode_direct_GCJ=no
21813       hardcode_automatic_GCJ=yes
21814       hardcode_shlibpath_var_GCJ=unsupported
21815       whole_archive_flag_spec_GCJ=''
21816       link_all_deplibs_GCJ=yes
21817     if test "$GCC" = yes ; then
21818         output_verbose_link_cmd='echo'
21819         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21820       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21821       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21822       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}'
21823       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}'
21824     else
21825       case "$cc_basename" in
21826         xlc*)
21827          output_verbose_link_cmd='echo'
21828          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21829          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21830           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21831          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}'
21832           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}'
21833           ;;
21834        *)
21835          ld_shlibs_GCJ=no
21836           ;;
21837       esac
21838     fi
21839       ;;
21840
21841     dgux*)
21842       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21843       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21844       hardcode_shlibpath_var_GCJ=no
21845       ;;
21846
21847     freebsd1*)
21848       ld_shlibs_GCJ=no
21849       ;;
21850
21851     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21852     # support.  Future versions do this automatically, but an explicit c++rt0.o
21853     # does not break anything, and helps significantly (at the cost of a little
21854     # extra space).
21855     freebsd2.2*)
21856       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21857       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21858       hardcode_direct_GCJ=yes
21859       hardcode_shlibpath_var_GCJ=no
21860       ;;
21861
21862     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21863     freebsd2*)
21864       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21865       hardcode_direct_GCJ=yes
21866       hardcode_minus_L_GCJ=yes
21867       hardcode_shlibpath_var_GCJ=no
21868       ;;
21869
21870     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21871     freebsd* | kfreebsd*-gnu)
21872       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21873       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21874       hardcode_direct_GCJ=yes
21875       hardcode_shlibpath_var_GCJ=no
21876       ;;
21877
21878     hpux9*)
21879       if test "$GCC" = yes; then
21880         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'
21881       else
21882         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'
21883       fi
21884       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21885       hardcode_libdir_separator_GCJ=:
21886       hardcode_direct_GCJ=yes
21887
21888       # hardcode_minus_L: Not really in the search PATH,
21889       # but as the default location of the library.
21890       hardcode_minus_L_GCJ=yes
21891       export_dynamic_flag_spec_GCJ='${wl}-E'
21892       ;;
21893
21894     hpux10* | hpux11*)
21895       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21896         case "$host_cpu" in
21897         hppa*64*|ia64*)
21898           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21899           ;;
21900         *)
21901           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21902           ;;
21903         esac
21904       else
21905         case "$host_cpu" in
21906         hppa*64*|ia64*)
21907           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21908           ;;
21909         *)
21910           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21911           ;;
21912         esac
21913       fi
21914       if test "$with_gnu_ld" = no; then
21915         case "$host_cpu" in
21916         hppa*64*)
21917           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21918           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21919           hardcode_libdir_separator_GCJ=:
21920           hardcode_direct_GCJ=no
21921           hardcode_shlibpath_var_GCJ=no
21922           ;;
21923         ia64*)
21924           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21925           hardcode_direct_GCJ=no
21926           hardcode_shlibpath_var_GCJ=no
21927
21928           # hardcode_minus_L: Not really in the search PATH,
21929           # but as the default location of the library.
21930           hardcode_minus_L_GCJ=yes
21931           ;;
21932         *)
21933           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21934           hardcode_libdir_separator_GCJ=:
21935           hardcode_direct_GCJ=yes
21936           export_dynamic_flag_spec_GCJ='${wl}-E'
21937
21938           # hardcode_minus_L: Not really in the search PATH,
21939           # but as the default location of the library.
21940           hardcode_minus_L_GCJ=yes
21941           ;;
21942         esac
21943       fi
21944       ;;
21945
21946     irix5* | irix6* | nonstopux*)
21947       if test "$GCC" = yes; then
21948         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'
21949       else
21950         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'
21951         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21952       fi
21953       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21954       hardcode_libdir_separator_GCJ=:
21955       link_all_deplibs_GCJ=yes
21956       ;;
21957
21958     netbsd*)
21959       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21960         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21961       else
21962         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21963       fi
21964       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21965       hardcode_direct_GCJ=yes
21966       hardcode_shlibpath_var_GCJ=no
21967       ;;
21968
21969     newsos6)
21970       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21971       hardcode_direct_GCJ=yes
21972       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21973       hardcode_libdir_separator_GCJ=:
21974       hardcode_shlibpath_var_GCJ=no
21975       ;;
21976
21977     openbsd*)
21978       hardcode_direct_GCJ=yes
21979       hardcode_shlibpath_var_GCJ=no
21980       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21981         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21982         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21983         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21984         export_dynamic_flag_spec_GCJ='${wl}-E'
21985       else
21986        case $host_os in
21987          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21988            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21989            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21990            ;;
21991          *)
21992            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21993            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21994            ;;
21995        esac
21996       fi
21997       ;;
21998
21999     os2*)
22000       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22001       hardcode_minus_L_GCJ=yes
22002       allow_undefined_flag_GCJ=unsupported
22003       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'
22004       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22005       ;;
22006
22007     osf3*)
22008       if test "$GCC" = yes; then
22009         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22010         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'
22011       else
22012         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22013         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'
22014       fi
22015       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22016       hardcode_libdir_separator_GCJ=:
22017       ;;
22018
22019     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22020       if test "$GCC" = yes; then
22021         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22022         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'
22023         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22024       else
22025         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22026         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'
22027         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~
22028         $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'
22029
22030         # Both c and cxx compiler support -rpath directly
22031         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22032       fi
22033       hardcode_libdir_separator_GCJ=:
22034       ;;
22035
22036     sco3.2v5*)
22037       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22038       hardcode_shlibpath_var_GCJ=no
22039       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22040       runpath_var=LD_RUN_PATH
22041       hardcode_runpath_var=yes
22042       ;;
22043
22044     solaris*)
22045       no_undefined_flag_GCJ=' -z text'
22046       if test "$GCC" = yes; then
22047         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22048         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22049           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22050       else
22051         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22052         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22053         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22054       fi
22055       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22056       hardcode_shlibpath_var_GCJ=no
22057       case $host_os in
22058       solaris2.[0-5] | solaris2.[0-5].*) ;;
22059       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22060         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22061       esac
22062       link_all_deplibs_GCJ=yes
22063       ;;
22064
22065     sunos4*)
22066       if test "x$host_vendor" = xsequent; then
22067         # Use $CC to link under sequent, because it throws in some extra .o
22068         # files that make .init and .fini sections work.
22069         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22070       else
22071         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22072       fi
22073       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22074       hardcode_direct_GCJ=yes
22075       hardcode_minus_L_GCJ=yes
22076       hardcode_shlibpath_var_GCJ=no
22077       ;;
22078
22079     sysv4)
22080       case $host_vendor in
22081         sni)
22082           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22083           hardcode_direct_GCJ=yes # is this really true???
22084         ;;
22085         siemens)
22086           ## LD is ld it makes a PLAMLIB
22087           ## CC just makes a GrossModule.
22088           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22089           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22090           hardcode_direct_GCJ=no
22091         ;;
22092         motorola)
22093           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22094           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22095         ;;
22096       esac
22097       runpath_var='LD_RUN_PATH'
22098       hardcode_shlibpath_var_GCJ=no
22099       ;;
22100
22101     sysv4.3*)
22102       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22103       hardcode_shlibpath_var_GCJ=no
22104       export_dynamic_flag_spec_GCJ='-Bexport'
22105       ;;
22106
22107     sysv4*MP*)
22108       if test -d /usr/nec; then
22109         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22110         hardcode_shlibpath_var_GCJ=no
22111         runpath_var=LD_RUN_PATH
22112         hardcode_runpath_var=yes
22113         ld_shlibs_GCJ=yes
22114       fi
22115       ;;
22116
22117     sysv4.2uw2*)
22118       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22119       hardcode_direct_GCJ=yes
22120       hardcode_minus_L_GCJ=no
22121       hardcode_shlibpath_var_GCJ=no
22122       hardcode_runpath_var=yes
22123       runpath_var=LD_RUN_PATH
22124       ;;
22125
22126    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22127       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22128       if test "$GCC" = yes; then
22129         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22130       else
22131         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22132       fi
22133       runpath_var='LD_RUN_PATH'
22134       hardcode_shlibpath_var_GCJ=no
22135       ;;
22136
22137     sysv5*)
22138       no_undefined_flag_GCJ=' -z text'
22139       # $CC -shared without GNU ld will not create a library from C++
22140       # object files and a static libstdc++, better avoid it by now
22141       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22142       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22143                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22144       hardcode_libdir_flag_spec_GCJ=
22145       hardcode_shlibpath_var_GCJ=no
22146       runpath_var='LD_RUN_PATH'
22147       ;;
22148
22149     uts4*)
22150       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22152       hardcode_shlibpath_var_GCJ=no
22153       ;;
22154
22155     *)
22156       ld_shlibs_GCJ=no
22157       ;;
22158     esac
22159   fi
22160
22161 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22162 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22163 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22164
22165 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22166 if test "$GCC" = yes; then
22167   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22168 fi
22169
22170 #
22171 # Do we need to explicitly link libc?
22172 #
22173 case "x$archive_cmds_need_lc_GCJ" in
22174 x|xyes)
22175   # Assume -lc should be added
22176   archive_cmds_need_lc_GCJ=yes
22177
22178   if test "$enable_shared" = yes && test "$GCC" = yes; then
22179     case $archive_cmds_GCJ in
22180     *'~'*)
22181       # FIXME: we may have to deal with multi-command sequences.
22182       ;;
22183     '$CC '*)
22184       # Test whether the compiler implicitly links with -lc since on some
22185       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22186       # to ld, don't add -lc before -lgcc.
22187       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22188 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22189       $rm conftest*
22190       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22191
22192       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22193   (eval $ac_compile) 2>&5
22194   ac_status=$?
22195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196   (exit $ac_status); } 2>conftest.err; then
22197         soname=conftest
22198         lib=conftest
22199         libobjs=conftest.$ac_objext
22200         deplibs=
22201         wl=$lt_prog_compiler_wl_GCJ
22202         compiler_flags=-v
22203         linker_flags=-v
22204         verstring=
22205         output_objdir=.
22206         libname=conftest
22207         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22208         allow_undefined_flag_GCJ=
22209         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22210   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22211   ac_status=$?
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); }
22214         then
22215           archive_cmds_need_lc_GCJ=no
22216         else
22217           archive_cmds_need_lc_GCJ=yes
22218         fi
22219         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22220       else
22221         cat conftest.err 1>&5
22222       fi
22223       $rm conftest*
22224       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22225 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22226       ;;
22227     esac
22228   fi
22229   ;;
22230 esac
22231
22232 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22233 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22234 library_names_spec=
22235 libname_spec='lib$name'
22236 soname_spec=
22237 shrext_cmds=".so"
22238 postinstall_cmds=
22239 postuninstall_cmds=
22240 finish_cmds=
22241 finish_eval=
22242 shlibpath_var=
22243 shlibpath_overrides_runpath=unknown
22244 version_type=none
22245 dynamic_linker="$host_os ld.so"
22246 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22247 if test "$GCC" = yes; then
22248   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22249   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22250     # if the path contains ";" then we assume it to be the separator
22251     # otherwise default to the standard path separator (i.e. ":") - it is
22252     # assumed that no part of a normal pathname contains ";" but that should
22253     # okay in the real world where ";" in dirpaths is itself problematic.
22254     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22255   else
22256     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22257   fi
22258 else
22259   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22260 fi
22261 need_lib_prefix=unknown
22262 hardcode_into_libs=no
22263
22264 # when you set need_version to no, make sure it does not cause -set_version
22265 # flags to be left without arguments
22266 need_version=unknown
22267
22268 case $host_os in
22269 aix3*)
22270   version_type=linux
22271   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22272   shlibpath_var=LIBPATH
22273
22274   # AIX 3 has no versioning support, so we append a major version to the name.
22275   soname_spec='${libname}${release}${shared_ext}$major'
22276   ;;
22277
22278 aix4* | aix5*)
22279   version_type=linux
22280   need_lib_prefix=no
22281   need_version=no
22282   hardcode_into_libs=yes
22283   if test "$host_cpu" = ia64; then
22284     # AIX 5 supports IA64
22285     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22286     shlibpath_var=LD_LIBRARY_PATH
22287   else
22288     # With GCC up to 2.95.x, collect2 would create an import file
22289     # for dependence libraries.  The import file would start with
22290     # the line `#! .'.  This would cause the generated library to
22291     # depend on `.', always an invalid library.  This was fixed in
22292     # development snapshots of GCC prior to 3.0.
22293     case $host_os in
22294       aix4 | aix4.[01] | aix4.[01].*)
22295       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22296            echo ' yes '
22297            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22298         :
22299       else
22300         can_build_shared=no
22301       fi
22302       ;;
22303     esac
22304     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22305     # soname into executable. Probably we can add versioning support to
22306     # collect2, so additional links can be useful in future.
22307     if test "$aix_use_runtimelinking" = yes; then
22308       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22309       # instead of lib<name>.a to let people know that these are not
22310       # typical AIX shared libraries.
22311       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22312     else
22313       # We preserve .a as extension for shared libraries through AIX4.2
22314       # and later when we are not doing run time linking.
22315       library_names_spec='${libname}${release}.a $libname.a'
22316       soname_spec='${libname}${release}${shared_ext}$major'
22317     fi
22318     shlibpath_var=LIBPATH
22319   fi
22320   ;;
22321
22322 amigaos*)
22323   library_names_spec='$libname.ixlibrary $libname.a'
22324   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22325   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'
22326   ;;
22327
22328 beos*)
22329   library_names_spec='${libname}${shared_ext}'
22330   dynamic_linker="$host_os ld.so"
22331   shlibpath_var=LIBRARY_PATH
22332   ;;
22333
22334 bsdi[45]*)
22335   version_type=linux
22336   need_version=no
22337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22338   soname_spec='${libname}${release}${shared_ext}$major'
22339   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22340   shlibpath_var=LD_LIBRARY_PATH
22341   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22342   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22343   # the default ld.so.conf also contains /usr/contrib/lib and
22344   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22345   # libtool to hard-code these into programs
22346   ;;
22347
22348 cygwin* | mingw* | pw32*)
22349   version_type=windows
22350   shrext_cmds=".dll"
22351   need_version=no
22352   need_lib_prefix=no
22353
22354   case $GCC,$host_os in
22355   yes,cygwin* | yes,mingw* | yes,pw32*)
22356     library_names_spec='$libname.dll.a'
22357     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22358     postinstall_cmds='base_file=`basename \${file}`~
22359       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22360       dldir=$destdir/`dirname \$dlpath`~
22361       test -d \$dldir || mkdir -p \$dldir~
22362       $install_prog $dir/$dlname \$dldir/$dlname'
22363     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22364       dlpath=$dir/\$dldll~
22365        $rm \$dlpath'
22366     shlibpath_overrides_runpath=yes
22367
22368     case $host_os in
22369     cygwin*)
22370       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22371       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22372       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22373       ;;
22374     mingw*)
22375       # MinGW DLLs use traditional 'lib' prefix
22376       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22377       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22378       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22379         # It is most probably a Windows format PATH printed by
22380         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22381         # path with ; separators, and with drive letters. We can handle the
22382         # drive letters (cygwin fileutils understands them), so leave them,
22383         # especially as we might pass files found there to a mingw objdump,
22384         # which wouldn't understand a cygwinified path. Ahh.
22385         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22386       else
22387         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22388       fi
22389       ;;
22390     pw32*)
22391       # pw32 DLLs use 'pw' prefix rather than 'lib'
22392       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22393       ;;
22394     esac
22395     ;;
22396
22397   *)
22398     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22399     ;;
22400   esac
22401   dynamic_linker='Win32 ld.exe'
22402   # FIXME: first we should search . and the directory the executable is in
22403   shlibpath_var=PATH
22404   ;;
22405
22406 darwin* | rhapsody*)
22407   dynamic_linker="$host_os dyld"
22408   version_type=darwin
22409   need_lib_prefix=no
22410   need_version=no
22411   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22412   soname_spec='${libname}${release}${major}$shared_ext'
22413   shlibpath_overrides_runpath=yes
22414   shlibpath_var=DYLD_LIBRARY_PATH
22415   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22416   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22417   if test "$GCC" = yes; then
22418     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"`
22419   else
22420     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22421   fi
22422   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22423   ;;
22424
22425 dgux*)
22426   version_type=linux
22427   need_lib_prefix=no
22428   need_version=no
22429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22430   soname_spec='${libname}${release}${shared_ext}$major'
22431   shlibpath_var=LD_LIBRARY_PATH
22432   ;;
22433
22434 freebsd1*)
22435   dynamic_linker=no
22436   ;;
22437
22438 kfreebsd*-gnu)
22439   version_type=linux
22440   need_lib_prefix=no
22441   need_version=no
22442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22443   soname_spec='${libname}${release}${shared_ext}$major'
22444   shlibpath_var=LD_LIBRARY_PATH
22445   shlibpath_overrides_runpath=no
22446   hardcode_into_libs=yes
22447   dynamic_linker='GNU ld.so'
22448   ;;
22449
22450 freebsd*)
22451   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22452   version_type=freebsd-$objformat
22453   case $version_type in
22454     freebsd-elf*)
22455       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22456       need_version=no
22457       need_lib_prefix=no
22458       ;;
22459     freebsd-*)
22460       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22461       need_version=yes
22462       ;;
22463   esac
22464   shlibpath_var=LD_LIBRARY_PATH
22465   case $host_os in
22466   freebsd2*)
22467     shlibpath_overrides_runpath=yes
22468     ;;
22469   freebsd3.01* | freebsdelf3.01*)
22470     shlibpath_overrides_runpath=yes
22471     hardcode_into_libs=yes
22472     ;;
22473   *) # from 3.2 on
22474     shlibpath_overrides_runpath=no
22475     hardcode_into_libs=yes
22476     ;;
22477   esac
22478   ;;
22479
22480 gnu*)
22481   version_type=linux
22482   need_lib_prefix=no
22483   need_version=no
22484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22485   soname_spec='${libname}${release}${shared_ext}$major'
22486   shlibpath_var=LD_LIBRARY_PATH
22487   hardcode_into_libs=yes
22488   ;;
22489
22490 hpux9* | hpux10* | hpux11*)
22491   # Give a soname corresponding to the major version so that dld.sl refuses to
22492   # link against other versions.
22493   version_type=sunos
22494   need_lib_prefix=no
22495   need_version=no
22496   case "$host_cpu" in
22497   ia64*)
22498     shrext_cmds='.so'
22499     hardcode_into_libs=yes
22500     dynamic_linker="$host_os dld.so"
22501     shlibpath_var=LD_LIBRARY_PATH
22502     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22504     soname_spec='${libname}${release}${shared_ext}$major'
22505     if test "X$HPUX_IA64_MODE" = X32; then
22506       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22507     else
22508       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22509     fi
22510     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22511     ;;
22512    hppa*64*)
22513      shrext_cmds='.sl'
22514      hardcode_into_libs=yes
22515      dynamic_linker="$host_os dld.sl"
22516      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22517      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22518      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22519      soname_spec='${libname}${release}${shared_ext}$major'
22520      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22521      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22522      ;;
22523    *)
22524     shrext_cmds='.sl'
22525     dynamic_linker="$host_os dld.sl"
22526     shlibpath_var=SHLIB_PATH
22527     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22529     soname_spec='${libname}${release}${shared_ext}$major'
22530     ;;
22531   esac
22532   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22533   postinstall_cmds='chmod 555 $lib'
22534   ;;
22535
22536 irix5* | irix6* | nonstopux*)
22537   case $host_os in
22538     nonstopux*) version_type=nonstopux ;;
22539     *)
22540         if test "$lt_cv_prog_gnu_ld" = yes; then
22541                 version_type=linux
22542         else
22543                 version_type=irix
22544         fi ;;
22545   esac
22546   need_lib_prefix=no
22547   need_version=no
22548   soname_spec='${libname}${release}${shared_ext}$major'
22549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22550   case $host_os in
22551   irix5* | nonstopux*)
22552     libsuff= shlibsuff=
22553     ;;
22554   *)
22555     case $LD in # libtool.m4 will add one of these switches to LD
22556     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22557       libsuff= shlibsuff= libmagic=32-bit;;
22558     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22559       libsuff=32 shlibsuff=N32 libmagic=N32;;
22560     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22561       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22562     *) libsuff= shlibsuff= libmagic=never-match;;
22563     esac
22564     ;;
22565   esac
22566   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22567   shlibpath_overrides_runpath=no
22568   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22569   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22570   hardcode_into_libs=yes
22571   ;;
22572
22573 # No shared lib support for Linux oldld, aout, or coff.
22574 linux*oldld* | linux*aout* | linux*coff*)
22575   dynamic_linker=no
22576   ;;
22577
22578 # This must be Linux ELF.
22579 linux*)
22580   version_type=linux
22581   need_lib_prefix=no
22582   need_version=no
22583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22584   soname_spec='${libname}${release}${shared_ext}$major'
22585   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22586   shlibpath_var=LD_LIBRARY_PATH
22587   shlibpath_overrides_runpath=no
22588   # This implies no fast_install, which is unacceptable.
22589   # Some rework will be needed to allow for fast_install
22590   # before this can be enabled.
22591   hardcode_into_libs=yes
22592
22593   # Append ld.so.conf contents to the search path
22594   if test -f /etc/ld.so.conf; then
22595     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22596     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22597   fi
22598
22599   # We used to test for /lib/ld.so.1 and disable shared libraries on
22600   # powerpc, because MkLinux only supported shared libraries with the
22601   # GNU dynamic linker.  Since this was broken with cross compilers,
22602   # most powerpc-linux boxes support dynamic linking these days and
22603   # people can always --disable-shared, the test was removed, and we
22604   # assume the GNU/Linux dynamic linker is in use.
22605   dynamic_linker='GNU/Linux ld.so'
22606   ;;
22607
22608 knetbsd*-gnu)
22609   version_type=linux
22610   need_lib_prefix=no
22611   need_version=no
22612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22613   soname_spec='${libname}${release}${shared_ext}$major'
22614   shlibpath_var=LD_LIBRARY_PATH
22615   shlibpath_overrides_runpath=no
22616   hardcode_into_libs=yes
22617   dynamic_linker='GNU ld.so'
22618   ;;
22619
22620 netbsd*)
22621   version_type=sunos
22622   need_lib_prefix=no
22623   need_version=no
22624   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22626     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22627     dynamic_linker='NetBSD (a.out) ld.so'
22628   else
22629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22630     soname_spec='${libname}${release}${shared_ext}$major'
22631     dynamic_linker='NetBSD ld.elf_so'
22632   fi
22633   shlibpath_var=LD_LIBRARY_PATH
22634   shlibpath_overrides_runpath=yes
22635   hardcode_into_libs=yes
22636   ;;
22637
22638 newsos6)
22639   version_type=linux
22640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22641   shlibpath_var=LD_LIBRARY_PATH
22642   shlibpath_overrides_runpath=yes
22643   ;;
22644
22645 nto-qnx*)
22646   version_type=linux
22647   need_lib_prefix=no
22648   need_version=no
22649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22650   soname_spec='${libname}${release}${shared_ext}$major'
22651   shlibpath_var=LD_LIBRARY_PATH
22652   shlibpath_overrides_runpath=yes
22653   ;;
22654
22655 openbsd*)
22656   version_type=sunos
22657   need_lib_prefix=no
22658   need_version=no
22659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22661   shlibpath_var=LD_LIBRARY_PATH
22662   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22663     case $host_os in
22664       openbsd2.[89] | openbsd2.[89].*)
22665         shlibpath_overrides_runpath=no
22666         ;;
22667       *)
22668         shlibpath_overrides_runpath=yes
22669         ;;
22670       esac
22671   else
22672     shlibpath_overrides_runpath=yes
22673   fi
22674   ;;
22675
22676 os2*)
22677   libname_spec='$name'
22678   shrext_cmds=".dll"
22679   need_lib_prefix=no
22680   library_names_spec='$libname${shared_ext} $libname.a'
22681   dynamic_linker='OS/2 ld.exe'
22682   shlibpath_var=LIBPATH
22683   ;;
22684
22685 osf3* | osf4* | osf5*)
22686   version_type=osf
22687   need_lib_prefix=no
22688   need_version=no
22689   soname_spec='${libname}${release}${shared_ext}$major'
22690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691   shlibpath_var=LD_LIBRARY_PATH
22692   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22693   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22694   ;;
22695
22696 sco3.2v5*)
22697   version_type=osf
22698   soname_spec='${libname}${release}${shared_ext}$major'
22699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22700   shlibpath_var=LD_LIBRARY_PATH
22701   ;;
22702
22703 solaris*)
22704   version_type=linux
22705   need_lib_prefix=no
22706   need_version=no
22707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22708   soname_spec='${libname}${release}${shared_ext}$major'
22709   shlibpath_var=LD_LIBRARY_PATH
22710   shlibpath_overrides_runpath=yes
22711   hardcode_into_libs=yes
22712   # ldd complains unless libraries are executable
22713   postinstall_cmds='chmod +x $lib'
22714   ;;
22715
22716 sunos4*)
22717   version_type=sunos
22718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22719   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22720   shlibpath_var=LD_LIBRARY_PATH
22721   shlibpath_overrides_runpath=yes
22722   if test "$with_gnu_ld" = yes; then
22723     need_lib_prefix=no
22724   fi
22725   need_version=yes
22726   ;;
22727
22728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22729   version_type=linux
22730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731   soname_spec='${libname}${release}${shared_ext}$major'
22732   shlibpath_var=LD_LIBRARY_PATH
22733   case $host_vendor in
22734     sni)
22735       shlibpath_overrides_runpath=no
22736       need_lib_prefix=no
22737       export_dynamic_flag_spec='${wl}-Blargedynsym'
22738       runpath_var=LD_RUN_PATH
22739       ;;
22740     siemens)
22741       need_lib_prefix=no
22742       ;;
22743     motorola)
22744       need_lib_prefix=no
22745       need_version=no
22746       shlibpath_overrides_runpath=no
22747       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22748       ;;
22749   esac
22750   ;;
22751
22752 sysv4*MP*)
22753   if test -d /usr/nec ;then
22754     version_type=linux
22755     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22756     soname_spec='$libname${shared_ext}.$major'
22757     shlibpath_var=LD_LIBRARY_PATH
22758   fi
22759   ;;
22760
22761 uts4*)
22762   version_type=linux
22763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22764   soname_spec='${libname}${release}${shared_ext}$major'
22765   shlibpath_var=LD_LIBRARY_PATH
22766   ;;
22767
22768 *)
22769   dynamic_linker=no
22770   ;;
22771 esac
22772 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22773 echo "${ECHO_T}$dynamic_linker" >&6
22774 test "$dynamic_linker" = no && can_build_shared=no
22775
22776 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22777 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22778 hardcode_action_GCJ=
22779 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22780    test -n "$runpath_var_GCJ" || \
22781    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22782
22783   # We can hardcode non-existant directories.
22784   if test "$hardcode_direct_GCJ" != no &&
22785      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22786      # have to relink, otherwise we might link with an installed library
22787      # when we should be linking with a yet-to-be-installed one
22788      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22789      test "$hardcode_minus_L_GCJ" != no; then
22790     # Linking always hardcodes the temporary library directory.
22791     hardcode_action_GCJ=relink
22792   else
22793     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22794     hardcode_action_GCJ=immediate
22795   fi
22796 else
22797   # We cannot hardcode anything, or else we can only hardcode existing
22798   # directories.
22799   hardcode_action_GCJ=unsupported
22800 fi
22801 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22802 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22803
22804 if test "$hardcode_action_GCJ" = relink; then
22805   # Fast installation is not supported
22806   enable_fast_install=no
22807 elif test "$shlibpath_overrides_runpath" = yes ||
22808      test "$enable_shared" = no; then
22809   # Fast installation is not necessary
22810   enable_fast_install=needless
22811 fi
22812
22813 striplib=
22814 old_striplib=
22815 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22816 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22817 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22818   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22819   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22820   echo "$as_me:$LINENO: result: yes" >&5
22821 echo "${ECHO_T}yes" >&6
22822 else
22823 # FIXME - insert some real tests, host_os isn't really good enough
22824   case $host_os in
22825    darwin*)
22826        if test -n "$STRIP" ; then
22827          striplib="$STRIP -x"
22828          echo "$as_me:$LINENO: result: yes" >&5
22829 echo "${ECHO_T}yes" >&6
22830        else
22831   echo "$as_me:$LINENO: result: no" >&5
22832 echo "${ECHO_T}no" >&6
22833 fi
22834        ;;
22835    *)
22836   echo "$as_me:$LINENO: result: no" >&5
22837 echo "${ECHO_T}no" >&6
22838     ;;
22839   esac
22840 fi
22841
22842 if test "x$enable_dlopen" != xyes; then
22843   enable_dlopen=unknown
22844   enable_dlopen_self=unknown
22845   enable_dlopen_self_static=unknown
22846 else
22847   lt_cv_dlopen=no
22848   lt_cv_dlopen_libs=
22849
22850   case $host_os in
22851   beos*)
22852     lt_cv_dlopen="load_add_on"
22853     lt_cv_dlopen_libs=
22854     lt_cv_dlopen_self=yes
22855     ;;
22856
22857   mingw* | pw32*)
22858     lt_cv_dlopen="LoadLibrary"
22859     lt_cv_dlopen_libs=
22860    ;;
22861
22862   cygwin*)
22863     lt_cv_dlopen="dlopen"
22864     lt_cv_dlopen_libs=
22865    ;;
22866
22867   darwin*)
22868   # if libdl is installed we need to link against it
22869     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22872   echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874   ac_check_lib_save_LIBS=$LIBS
22875 LIBS="-ldl  $LIBS"
22876 cat >conftest.$ac_ext <<_ACEOF
22877 /* confdefs.h.  */
22878 _ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h.  */
22882
22883 /* Override any gcc2 internal prototype to avoid an error.  */
22884 #ifdef __cplusplus
22885 extern "C"
22886 #endif
22887 /* We use char because int might match the return type of a gcc2
22888    builtin and then its argument prototype would still apply.  */
22889 char dlopen ();
22890 int
22891 main ()
22892 {
22893 dlopen ();
22894   ;
22895   return 0;
22896 }
22897 _ACEOF
22898 rm -f conftest.$ac_objext conftest$ac_exeext
22899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22900   (eval $ac_link) 2>conftest.er1
22901   ac_status=$?
22902   grep -v '^ *+' conftest.er1 >conftest.err
22903   rm -f conftest.er1
22904   cat conftest.err >&5
22905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); } &&
22907          { ac_try='test -z "$ac_c_werror_flag"
22908                          || test ! -s conftest.err'
22909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910   (eval $ac_try) 2>&5
22911   ac_status=$?
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); }; } &&
22914          { ac_try='test -s conftest$ac_exeext'
22915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916   (eval $ac_try) 2>&5
22917   ac_status=$?
22918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919   (exit $ac_status); }; }; then
22920   ac_cv_lib_dl_dlopen=yes
22921 else
22922   echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22924
22925 ac_cv_lib_dl_dlopen=no
22926 fi
22927 rm -f conftest.err conftest.$ac_objext \
22928       conftest$ac_exeext conftest.$ac_ext
22929 LIBS=$ac_check_lib_save_LIBS
22930 fi
22931 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22932 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22933 if test $ac_cv_lib_dl_dlopen = yes; then
22934   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22935 else
22936
22937     lt_cv_dlopen="dyld"
22938     lt_cv_dlopen_libs=
22939     lt_cv_dlopen_self=yes
22940
22941 fi
22942
22943    ;;
22944
22945   *)
22946     echo "$as_me:$LINENO: checking for shl_load" >&5
22947 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22948 if test "${ac_cv_func_shl_load+set}" = set; then
22949   echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951   cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h.  */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h.  */
22957 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22959 #define shl_load innocuous_shl_load
22960
22961 /* System header to define __stub macros and hopefully few prototypes,
22962     which can conflict with char shl_load (); below.
22963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22964     <limits.h> exists even on freestanding compilers.  */
22965
22966 #ifdef __STDC__
22967 # include <limits.h>
22968 #else
22969 # include <assert.h>
22970 #endif
22971
22972 #undef shl_load
22973
22974 /* Override any gcc2 internal prototype to avoid an error.  */
22975 #ifdef __cplusplus
22976 extern "C"
22977 {
22978 #endif
22979 /* We use char because int might match the return type of a gcc2
22980    builtin and then its argument prototype would still apply.  */
22981 char shl_load ();
22982 /* The GNU C library defines this for functions which it implements
22983     to always fail with ENOSYS.  Some functions are actually named
22984     something starting with __ and the normal name is an alias.  */
22985 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22986 choke me
22987 #else
22988 char (*f) () = shl_load;
22989 #endif
22990 #ifdef __cplusplus
22991 }
22992 #endif
22993
22994 int
22995 main ()
22996 {
22997 return f != shl_load;
22998   ;
22999   return 0;
23000 }
23001 _ACEOF
23002 rm -f conftest.$ac_objext conftest$ac_exeext
23003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23004   (eval $ac_link) 2>conftest.er1
23005   ac_status=$?
23006   grep -v '^ *+' conftest.er1 >conftest.err
23007   rm -f conftest.er1
23008   cat conftest.err >&5
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); } &&
23011          { ac_try='test -z "$ac_c_werror_flag"
23012                          || test ! -s conftest.err'
23013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014   (eval $ac_try) 2>&5
23015   ac_status=$?
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); }; } &&
23018          { ac_try='test -s conftest$ac_exeext'
23019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020   (eval $ac_try) 2>&5
23021   ac_status=$?
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); }; }; then
23024   ac_cv_func_shl_load=yes
23025 else
23026   echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23028
23029 ac_cv_func_shl_load=no
23030 fi
23031 rm -f conftest.err conftest.$ac_objext \
23032       conftest$ac_exeext conftest.$ac_ext
23033 fi
23034 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23035 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23036 if test $ac_cv_func_shl_load = yes; then
23037   lt_cv_dlopen="shl_load"
23038 else
23039   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23040 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23041 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23042   echo $ECHO_N "(cached) $ECHO_C" >&6
23043 else
23044   ac_check_lib_save_LIBS=$LIBS
23045 LIBS="-ldld  $LIBS"
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052
23053 /* Override any gcc2 internal prototype to avoid an error.  */
23054 #ifdef __cplusplus
23055 extern "C"
23056 #endif
23057 /* We use char because int might match the return type of a gcc2
23058    builtin and then its argument prototype would still apply.  */
23059 char shl_load ();
23060 int
23061 main ()
23062 {
23063 shl_load ();
23064   ;
23065   return 0;
23066 }
23067 _ACEOF
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23070   (eval $ac_link) 2>conftest.er1
23071   ac_status=$?
23072   grep -v '^ *+' conftest.er1 >conftest.err
23073   rm -f conftest.er1
23074   cat conftest.err >&5
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); } &&
23077          { ac_try='test -z "$ac_c_werror_flag"
23078                          || test ! -s conftest.err'
23079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080   (eval $ac_try) 2>&5
23081   ac_status=$?
23082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083   (exit $ac_status); }; } &&
23084          { ac_try='test -s conftest$ac_exeext'
23085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086   (eval $ac_try) 2>&5
23087   ac_status=$?
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); }; }; then
23090   ac_cv_lib_dld_shl_load=yes
23091 else
23092   echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095 ac_cv_lib_dld_shl_load=no
23096 fi
23097 rm -f conftest.err conftest.$ac_objext \
23098       conftest$ac_exeext conftest.$ac_ext
23099 LIBS=$ac_check_lib_save_LIBS
23100 fi
23101 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23102 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23103 if test $ac_cv_lib_dld_shl_load = yes; then
23104   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23105 else
23106   echo "$as_me:$LINENO: checking for dlopen" >&5
23107 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23108 if test "${ac_cv_func_dlopen+set}" = set; then
23109   echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111   cat >conftest.$ac_ext <<_ACEOF
23112 /* confdefs.h.  */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h.  */
23117 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23119 #define dlopen innocuous_dlopen
23120
23121 /* System header to define __stub macros and hopefully few prototypes,
23122     which can conflict with char dlopen (); below.
23123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23124     <limits.h> exists even on freestanding compilers.  */
23125
23126 #ifdef __STDC__
23127 # include <limits.h>
23128 #else
23129 # include <assert.h>
23130 #endif
23131
23132 #undef dlopen
23133
23134 /* Override any gcc2 internal prototype to avoid an error.  */
23135 #ifdef __cplusplus
23136 extern "C"
23137 {
23138 #endif
23139 /* We use char because int might match the return type of a gcc2
23140    builtin and then its argument prototype would still apply.  */
23141 char dlopen ();
23142 /* The GNU C library defines this for functions which it implements
23143     to always fail with ENOSYS.  Some functions are actually named
23144     something starting with __ and the normal name is an alias.  */
23145 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23146 choke me
23147 #else
23148 char (*f) () = dlopen;
23149 #endif
23150 #ifdef __cplusplus
23151 }
23152 #endif
23153
23154 int
23155 main ()
23156 {
23157 return f != dlopen;
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164   (eval $ac_link) 2>conftest.er1
23165   ac_status=$?
23166   grep -v '^ *+' conftest.er1 >conftest.err
23167   rm -f conftest.er1
23168   cat conftest.err >&5
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); } &&
23171          { ac_try='test -z "$ac_c_werror_flag"
23172                          || test ! -s conftest.err'
23173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174   (eval $ac_try) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); }; } &&
23178          { ac_try='test -s conftest$ac_exeext'
23179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); }; }; then
23184   ac_cv_func_dlopen=yes
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_cv_func_dlopen=no
23190 fi
23191 rm -f conftest.err conftest.$ac_objext \
23192       conftest$ac_exeext conftest.$ac_ext
23193 fi
23194 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23195 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23196 if test $ac_cv_func_dlopen = yes; then
23197   lt_cv_dlopen="dlopen"
23198 else
23199   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23200 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23201 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23202   echo $ECHO_N "(cached) $ECHO_C" >&6
23203 else
23204   ac_check_lib_save_LIBS=$LIBS
23205 LIBS="-ldl  $LIBS"
23206 cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h.  */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h.  */
23212
23213 /* Override any gcc2 internal prototype to avoid an error.  */
23214 #ifdef __cplusplus
23215 extern "C"
23216 #endif
23217 /* We use char because int might match the return type of a gcc2
23218    builtin and then its argument prototype would still apply.  */
23219 char dlopen ();
23220 int
23221 main ()
23222 {
23223 dlopen ();
23224   ;
23225   return 0;
23226 }
23227 _ACEOF
23228 rm -f conftest.$ac_objext conftest$ac_exeext
23229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23230   (eval $ac_link) 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } &&
23237          { ac_try='test -z "$ac_c_werror_flag"
23238                          || test ! -s conftest.err'
23239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240   (eval $ac_try) 2>&5
23241   ac_status=$?
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); }; } &&
23244          { ac_try='test -s conftest$ac_exeext'
23245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246   (eval $ac_try) 2>&5
23247   ac_status=$?
23248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249   (exit $ac_status); }; }; then
23250   ac_cv_lib_dl_dlopen=yes
23251 else
23252   echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255 ac_cv_lib_dl_dlopen=no
23256 fi
23257 rm -f conftest.err conftest.$ac_objext \
23258       conftest$ac_exeext conftest.$ac_ext
23259 LIBS=$ac_check_lib_save_LIBS
23260 fi
23261 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23262 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23263 if test $ac_cv_lib_dl_dlopen = yes; then
23264   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23265 else
23266   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23267 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23268 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23269   echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271   ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lsvld  $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279
23280 /* Override any gcc2 internal prototype to avoid an error.  */
23281 #ifdef __cplusplus
23282 extern "C"
23283 #endif
23284 /* We use char because int might match the return type of a gcc2
23285    builtin and then its argument prototype would still apply.  */
23286 char dlopen ();
23287 int
23288 main ()
23289 {
23290 dlopen ();
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23297   (eval $ac_link) 2>conftest.er1
23298   ac_status=$?
23299   grep -v '^ *+' conftest.er1 >conftest.err
23300   rm -f conftest.er1
23301   cat conftest.err >&5
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); } &&
23304          { ac_try='test -z "$ac_c_werror_flag"
23305                          || test ! -s conftest.err'
23306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307   (eval $ac_try) 2>&5
23308   ac_status=$?
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); }; } &&
23311          { ac_try='test -s conftest$ac_exeext'
23312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313   (eval $ac_try) 2>&5
23314   ac_status=$?
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); }; }; then
23317   ac_cv_lib_svld_dlopen=yes
23318 else
23319   echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23321
23322 ac_cv_lib_svld_dlopen=no
23323 fi
23324 rm -f conftest.err conftest.$ac_objext \
23325       conftest$ac_exeext conftest.$ac_ext
23326 LIBS=$ac_check_lib_save_LIBS
23327 fi
23328 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23329 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23330 if test $ac_cv_lib_svld_dlopen = yes; then
23331   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23332 else
23333   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23334 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23335 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23336   echo $ECHO_N "(cached) $ECHO_C" >&6
23337 else
23338   ac_check_lib_save_LIBS=$LIBS
23339 LIBS="-ldld  $LIBS"
23340 cat >conftest.$ac_ext <<_ACEOF
23341 /* confdefs.h.  */
23342 _ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h.  */
23346
23347 /* Override any gcc2 internal prototype to avoid an error.  */
23348 #ifdef __cplusplus
23349 extern "C"
23350 #endif
23351 /* We use char because int might match the return type of a gcc2
23352    builtin and then its argument prototype would still apply.  */
23353 char dld_link ();
23354 int
23355 main ()
23356 {
23357 dld_link ();
23358   ;
23359   return 0;
23360 }
23361 _ACEOF
23362 rm -f conftest.$ac_objext conftest$ac_exeext
23363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23364   (eval $ac_link) 2>conftest.er1
23365   ac_status=$?
23366   grep -v '^ *+' conftest.er1 >conftest.err
23367   rm -f conftest.er1
23368   cat conftest.err >&5
23369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); } &&
23371          { ac_try='test -z "$ac_c_werror_flag"
23372                          || test ! -s conftest.err'
23373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374   (eval $ac_try) 2>&5
23375   ac_status=$?
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); }; } &&
23378          { ac_try='test -s conftest$ac_exeext'
23379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); }; }; then
23384   ac_cv_lib_dld_dld_link=yes
23385 else
23386   echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389 ac_cv_lib_dld_dld_link=no
23390 fi
23391 rm -f conftest.err conftest.$ac_objext \
23392       conftest$ac_exeext conftest.$ac_ext
23393 LIBS=$ac_check_lib_save_LIBS
23394 fi
23395 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23396 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23397 if test $ac_cv_lib_dld_dld_link = yes; then
23398   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23399 fi
23400
23401
23402 fi
23403
23404
23405 fi
23406
23407
23408 fi
23409
23410
23411 fi
23412
23413
23414 fi
23415
23416     ;;
23417   esac
23418
23419   if test "x$lt_cv_dlopen" != xno; then
23420     enable_dlopen=yes
23421   else
23422     enable_dlopen=no
23423   fi
23424
23425   case $lt_cv_dlopen in
23426   dlopen)
23427     save_CPPFLAGS="$CPPFLAGS"
23428     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23429
23430     save_LDFLAGS="$LDFLAGS"
23431     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23432
23433     save_LIBS="$LIBS"
23434     LIBS="$lt_cv_dlopen_libs $LIBS"
23435
23436     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23437 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23438 if test "${lt_cv_dlopen_self+set}" = set; then
23439   echo $ECHO_N "(cached) $ECHO_C" >&6
23440 else
23441           if test "$cross_compiling" = yes; then :
23442   lt_cv_dlopen_self=cross
23443 else
23444   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23445   lt_status=$lt_dlunknown
23446   cat > conftest.$ac_ext <<EOF
23447 #line 23447 "configure"
23448 #include "confdefs.h"
23449
23450 #if HAVE_DLFCN_H
23451 #include <dlfcn.h>
23452 #endif
23453
23454 #include <stdio.h>
23455
23456 #ifdef RTLD_GLOBAL
23457 #  define LT_DLGLOBAL           RTLD_GLOBAL
23458 #else
23459 #  ifdef DL_GLOBAL
23460 #    define LT_DLGLOBAL         DL_GLOBAL
23461 #  else
23462 #    define LT_DLGLOBAL         0
23463 #  endif
23464 #endif
23465
23466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23467    find out it does not work in some platform. */
23468 #ifndef LT_DLLAZY_OR_NOW
23469 #  ifdef RTLD_LAZY
23470 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23471 #  else
23472 #    ifdef DL_LAZY
23473 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23474 #    else
23475 #      ifdef RTLD_NOW
23476 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23477 #      else
23478 #        ifdef DL_NOW
23479 #          define LT_DLLAZY_OR_NOW      DL_NOW
23480 #        else
23481 #          define LT_DLLAZY_OR_NOW      0
23482 #        endif
23483 #      endif
23484 #    endif
23485 #  endif
23486 #endif
23487
23488 #ifdef __cplusplus
23489 extern "C" void exit (int);
23490 #endif
23491
23492 void fnord() { int i=42;}
23493 int main ()
23494 {
23495   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23496   int status = $lt_dlunknown;
23497
23498   if (self)
23499     {
23500       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23501       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23502       /* dlclose (self); */
23503     }
23504
23505     exit (status);
23506 }
23507 EOF
23508   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509   (eval $ac_link) 2>&5
23510   ac_status=$?
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23513     (./conftest; exit; ) 2>/dev/null
23514     lt_status=$?
23515     case x$lt_status in
23516       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23517       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23518       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23519     esac
23520   else :
23521     # compilation failed
23522     lt_cv_dlopen_self=no
23523   fi
23524 fi
23525 rm -fr conftest*
23526
23527
23528 fi
23529 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23530 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23531
23532     if test "x$lt_cv_dlopen_self" = xyes; then
23533       LDFLAGS="$LDFLAGS $link_static_flag"
23534       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23535 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23536 if test "${lt_cv_dlopen_self_static+set}" = set; then
23537   echo $ECHO_N "(cached) $ECHO_C" >&6
23538 else
23539           if test "$cross_compiling" = yes; then :
23540   lt_cv_dlopen_self_static=cross
23541 else
23542   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23543   lt_status=$lt_dlunknown
23544   cat > conftest.$ac_ext <<EOF
23545 #line 23545 "configure"
23546 #include "confdefs.h"
23547
23548 #if HAVE_DLFCN_H
23549 #include <dlfcn.h>
23550 #endif
23551
23552 #include <stdio.h>
23553
23554 #ifdef RTLD_GLOBAL
23555 #  define LT_DLGLOBAL           RTLD_GLOBAL
23556 #else
23557 #  ifdef DL_GLOBAL
23558 #    define LT_DLGLOBAL         DL_GLOBAL
23559 #  else
23560 #    define LT_DLGLOBAL         0
23561 #  endif
23562 #endif
23563
23564 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23565    find out it does not work in some platform. */
23566 #ifndef LT_DLLAZY_OR_NOW
23567 #  ifdef RTLD_LAZY
23568 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23569 #  else
23570 #    ifdef DL_LAZY
23571 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23572 #    else
23573 #      ifdef RTLD_NOW
23574 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23575 #      else
23576 #        ifdef DL_NOW
23577 #          define LT_DLLAZY_OR_NOW      DL_NOW
23578 #        else
23579 #          define LT_DLLAZY_OR_NOW      0
23580 #        endif
23581 #      endif
23582 #    endif
23583 #  endif
23584 #endif
23585
23586 #ifdef __cplusplus
23587 extern "C" void exit (int);
23588 #endif
23589
23590 void fnord() { int i=42;}
23591 int main ()
23592 {
23593   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23594   int status = $lt_dlunknown;
23595
23596   if (self)
23597     {
23598       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23599       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23600       /* dlclose (self); */
23601     }
23602
23603     exit (status);
23604 }
23605 EOF
23606   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607   (eval $ac_link) 2>&5
23608   ac_status=$?
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23611     (./conftest; exit; ) 2>/dev/null
23612     lt_status=$?
23613     case x$lt_status in
23614       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23615       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23616       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23617     esac
23618   else :
23619     # compilation failed
23620     lt_cv_dlopen_self_static=no
23621   fi
23622 fi
23623 rm -fr conftest*
23624
23625
23626 fi
23627 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23628 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23629     fi
23630
23631     CPPFLAGS="$save_CPPFLAGS"
23632     LDFLAGS="$save_LDFLAGS"
23633     LIBS="$save_LIBS"
23634     ;;
23635   esac
23636
23637   case $lt_cv_dlopen_self in
23638   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23639   *) enable_dlopen_self=unknown ;;
23640   esac
23641
23642   case $lt_cv_dlopen_self_static in
23643   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23644   *) enable_dlopen_self_static=unknown ;;
23645   esac
23646 fi
23647
23648
23649 # The else clause should only fire when bootstrapping the
23650 # libtool distribution, otherwise you forgot to ship ltmain.sh
23651 # with your package, and you will get complaints that there are
23652 # no rules to generate ltmain.sh.
23653 if test -f "$ltmain"; then
23654   # See if we are running on zsh, and set the options which allow our commands through
23655   # without removal of \ escapes.
23656   if test -n "${ZSH_VERSION+set}" ; then
23657     setopt NO_GLOB_SUBST
23658   fi
23659   # Now quote all the things that may contain metacharacters while being
23660   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23661   # variables and quote the copies for generation of the libtool script.
23662   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23663     SED SHELL STRIP \
23664     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23665     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23666     deplibs_check_method reload_flag reload_cmds need_locks \
23667     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23668     lt_cv_sys_global_symbol_to_c_name_address \
23669     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23670     old_postinstall_cmds old_postuninstall_cmds \
23671     compiler_GCJ \
23672     CC_GCJ \
23673     LD_GCJ \
23674     lt_prog_compiler_wl_GCJ \
23675     lt_prog_compiler_pic_GCJ \
23676     lt_prog_compiler_static_GCJ \
23677     lt_prog_compiler_no_builtin_flag_GCJ \
23678     export_dynamic_flag_spec_GCJ \
23679     thread_safe_flag_spec_GCJ \
23680     whole_archive_flag_spec_GCJ \
23681     enable_shared_with_static_runtimes_GCJ \
23682     old_archive_cmds_GCJ \
23683     old_archive_from_new_cmds_GCJ \
23684     predep_objects_GCJ \
23685     postdep_objects_GCJ \
23686     predeps_GCJ \
23687     postdeps_GCJ \
23688     compiler_lib_search_path_GCJ \
23689     archive_cmds_GCJ \
23690     archive_expsym_cmds_GCJ \
23691     postinstall_cmds_GCJ \
23692     postuninstall_cmds_GCJ \
23693     old_archive_from_expsyms_cmds_GCJ \
23694     allow_undefined_flag_GCJ \
23695     no_undefined_flag_GCJ \
23696     export_symbols_cmds_GCJ \
23697     hardcode_libdir_flag_spec_GCJ \
23698     hardcode_libdir_flag_spec_ld_GCJ \
23699     hardcode_libdir_separator_GCJ \
23700     hardcode_automatic_GCJ \
23701     module_cmds_GCJ \
23702     module_expsym_cmds_GCJ \
23703     lt_cv_prog_compiler_c_o_GCJ \
23704     exclude_expsyms_GCJ \
23705     include_expsyms_GCJ; do
23706
23707     case $var in
23708     old_archive_cmds_GCJ | \
23709     old_archive_from_new_cmds_GCJ | \
23710     archive_cmds_GCJ | \
23711     archive_expsym_cmds_GCJ | \
23712     module_cmds_GCJ | \
23713     module_expsym_cmds_GCJ | \
23714     old_archive_from_expsyms_cmds_GCJ | \
23715     export_symbols_cmds_GCJ | \
23716     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23717     postinstall_cmds | postuninstall_cmds | \
23718     old_postinstall_cmds | old_postuninstall_cmds | \
23719     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23720       # Double-quote double-evaled strings.
23721       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23722       ;;
23723     *)
23724       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23725       ;;
23726     esac
23727   done
23728
23729   case $lt_echo in
23730   *'\$0 --fallback-echo"')
23731     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23732     ;;
23733   esac
23734
23735 cfgfile="$ofile"
23736
23737   cat <<__EOF__ >> "$cfgfile"
23738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23739
23740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23741
23742 # Shell to use when invoking shell scripts.
23743 SHELL=$lt_SHELL
23744
23745 # Whether or not to build shared libraries.
23746 build_libtool_libs=$enable_shared
23747
23748 # Whether or not to build static libraries.
23749 build_old_libs=$enable_static
23750
23751 # Whether or not to add -lc for building shared libraries.
23752 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23753
23754 # Whether or not to disallow shared libs when runtime libs are static
23755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23756
23757 # Whether or not to optimize for fast installation.
23758 fast_install=$enable_fast_install
23759
23760 # The host system.
23761 host_alias=$host_alias
23762 host=$host
23763
23764 # An echo program that does not interpret backslashes.
23765 echo=$lt_echo
23766
23767 # The archiver.
23768 AR=$lt_AR
23769 AR_FLAGS=$lt_AR_FLAGS
23770
23771 # A C compiler.
23772 LTCC=$lt_LTCC
23773
23774 # A language-specific compiler.
23775 CC=$lt_compiler_GCJ
23776
23777 # Is the compiler the GNU C compiler?
23778 with_gcc=$GCC_GCJ
23779
23780 # An ERE matcher.
23781 EGREP=$lt_EGREP
23782
23783 # The linker used to build libraries.
23784 LD=$lt_LD_GCJ
23785
23786 # Whether we need hard or soft links.
23787 LN_S=$lt_LN_S
23788
23789 # A BSD-compatible nm program.
23790 NM=$lt_NM
23791
23792 # A symbol stripping program
23793 STRIP=$lt_STRIP
23794
23795 # Used to examine libraries when file_magic_cmd begins "file"
23796 MAGIC_CMD=$MAGIC_CMD
23797
23798 # Used on cygwin: DLL creation program.
23799 DLLTOOL="$DLLTOOL"
23800
23801 # Used on cygwin: object dumper.
23802 OBJDUMP="$OBJDUMP"
23803
23804 # Used on cygwin: assembler.
23805 AS="$AS"
23806
23807 # The name of the directory that contains temporary libtool files.
23808 objdir=$objdir
23809
23810 # How to create reloadable object files.
23811 reload_flag=$lt_reload_flag
23812 reload_cmds=$lt_reload_cmds
23813
23814 # How to pass a linker flag through the compiler.
23815 wl=$lt_lt_prog_compiler_wl_GCJ
23816
23817 # Object file suffix (normally "o").
23818 objext="$ac_objext"
23819
23820 # Old archive suffix (normally "a").
23821 libext="$libext"
23822
23823 # Shared library suffix (normally ".so").
23824 shrext_cmds='$shrext_cmds'
23825
23826 # Executable file suffix (normally "").
23827 exeext="$exeext"
23828
23829 # Additional compiler flags for building library objects.
23830 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23831 pic_mode=$pic_mode
23832
23833 # What is the maximum length of a command?
23834 max_cmd_len=$lt_cv_sys_max_cmd_len
23835
23836 # Does compiler simultaneously support -c and -o options?
23837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23838
23839 # Must we lock files when doing compilation ?
23840 need_locks=$lt_need_locks
23841
23842 # Do we need the lib prefix for modules?
23843 need_lib_prefix=$need_lib_prefix
23844
23845 # Do we need a version for libraries?
23846 need_version=$need_version
23847
23848 # Whether dlopen is supported.
23849 dlopen_support=$enable_dlopen
23850
23851 # Whether dlopen of programs is supported.
23852 dlopen_self=$enable_dlopen_self
23853
23854 # Whether dlopen of statically linked programs is supported.
23855 dlopen_self_static=$enable_dlopen_self_static
23856
23857 # Compiler flag to prevent dynamic linking.
23858 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23859
23860 # Compiler flag to turn off builtin functions.
23861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23862
23863 # Compiler flag to allow reflexive dlopens.
23864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23865
23866 # Compiler flag to generate shared objects directly from archives.
23867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23868
23869 # Compiler flag to generate thread-safe objects.
23870 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23871
23872 # Library versioning type.
23873 version_type=$version_type
23874
23875 # Format of library name prefix.
23876 libname_spec=$lt_libname_spec
23877
23878 # List of archive names.  First name is the real one, the rest are links.
23879 # The last name is the one that the linker finds with -lNAME.
23880 library_names_spec=$lt_library_names_spec
23881
23882 # The coded name of the library, if different from the real name.
23883 soname_spec=$lt_soname_spec
23884
23885 # Commands used to build and install an old-style archive.
23886 RANLIB=$lt_RANLIB
23887 old_archive_cmds=$lt_old_archive_cmds_GCJ
23888 old_postinstall_cmds=$lt_old_postinstall_cmds
23889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23890
23891 # Create an old-style archive from a shared archive.
23892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23893
23894 # Create a temporary old-style archive to link instead of a shared archive.
23895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23896
23897 # Commands used to build and install a shared archive.
23898 archive_cmds=$lt_archive_cmds_GCJ
23899 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23900 postinstall_cmds=$lt_postinstall_cmds
23901 postuninstall_cmds=$lt_postuninstall_cmds
23902
23903 # Commands used to build a loadable module (assumed same as above if empty)
23904 module_cmds=$lt_module_cmds_GCJ
23905 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23906
23907 # Commands to strip libraries.
23908 old_striplib=$lt_old_striplib
23909 striplib=$lt_striplib
23910
23911 # Dependencies to place before the objects being linked to create a
23912 # shared library.
23913 predep_objects=$lt_predep_objects_GCJ
23914
23915 # Dependencies to place after the objects being linked to create a
23916 # shared library.
23917 postdep_objects=$lt_postdep_objects_GCJ
23918
23919 # Dependencies to place before the objects being linked to create a
23920 # shared library.
23921 predeps=$lt_predeps_GCJ
23922
23923 # Dependencies to place after the objects being linked to create a
23924 # shared library.
23925 postdeps=$lt_postdeps_GCJ
23926
23927 # The library search path used internally by the compiler when linking
23928 # a shared library.
23929 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23930
23931 # Method to check whether dependent libraries are shared objects.
23932 deplibs_check_method=$lt_deplibs_check_method
23933
23934 # Command to use when deplibs_check_method == file_magic.
23935 file_magic_cmd=$lt_file_magic_cmd
23936
23937 # Flag that allows shared libraries with undefined symbols to be built.
23938 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23939
23940 # Flag that forces no undefined symbols.
23941 no_undefined_flag=$lt_no_undefined_flag_GCJ
23942
23943 # Commands used to finish a libtool library installation in a directory.
23944 finish_cmds=$lt_finish_cmds
23945
23946 # Same as above, but a single script fragment to be evaled but not shown.
23947 finish_eval=$lt_finish_eval
23948
23949 # Take the output of nm and produce a listing of raw symbols and C names.
23950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23951
23952 # Transform the output of nm in a proper C declaration
23953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23954
23955 # Transform the output of nm in a C name address pair
23956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23957
23958 # This is the shared library runtime path variable.
23959 runpath_var=$runpath_var
23960
23961 # This is the shared library path variable.
23962 shlibpath_var=$shlibpath_var
23963
23964 # Is shlibpath searched before the hard-coded library search path?
23965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23966
23967 # How to hardcode a shared library path into an executable.
23968 hardcode_action=$hardcode_action_GCJ
23969
23970 # Whether we should hardcode library paths into libraries.
23971 hardcode_into_libs=$hardcode_into_libs
23972
23973 # Flag to hardcode \$libdir into a binary during linking.
23974 # This must work even if \$libdir does not exist.
23975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23976
23977 # If ld is used when linking, flag to hardcode \$libdir into
23978 # a binary during linking. This must work even if \$libdir does
23979 # not exist.
23980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23981
23982 # Whether we need a single -rpath flag with a separated argument.
23983 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23984
23985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23986 # resulting binary.
23987 hardcode_direct=$hardcode_direct_GCJ
23988
23989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23990 # resulting binary.
23991 hardcode_minus_L=$hardcode_minus_L_GCJ
23992
23993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23994 # the resulting binary.
23995 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23996
23997 # Set to yes if building a shared library automatically hardcodes DIR into the library
23998 # and all subsequent libraries and executables linked against it.
23999 hardcode_automatic=$hardcode_automatic_GCJ
24000
24001 # Variables whose values should be saved in libtool wrapper scripts and
24002 # restored at relink time.
24003 variables_saved_for_relink="$variables_saved_for_relink"
24004
24005 # Whether libtool must link a program against all its dependency libraries.
24006 link_all_deplibs=$link_all_deplibs_GCJ
24007
24008 # Compile-time system search path for libraries
24009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24010
24011 # Run-time system search path for libraries
24012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24013
24014 # Fix the shell variable \$srcfile for the compiler.
24015 fix_srcfile_path="$fix_srcfile_path_GCJ"
24016
24017 # Set to yes if exported symbols are required.
24018 always_export_symbols=$always_export_symbols_GCJ
24019
24020 # The commands to list exported symbols.
24021 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24022
24023 # The commands to extract the exported symbol list from a shared archive.
24024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24025
24026 # Symbols that should not be listed in the preloaded symbols.
24027 exclude_expsyms=$lt_exclude_expsyms_GCJ
24028
24029 # Symbols that must always be exported.
24030 include_expsyms=$lt_include_expsyms_GCJ
24031
24032 # ### END LIBTOOL TAG CONFIG: $tagname
24033
24034 __EOF__
24035
24036
24037 else
24038   # If there is no Makefile yet, we rely on a make rule to execute
24039   # `config.status --recheck' to rerun these tests and create the
24040   # libtool script then.
24041   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24042   if test -f "$ltmain_in"; then
24043     test -f Makefile && make "$ltmain"
24044   fi
24045 fi
24046
24047
24048 ac_ext=c
24049 ac_cpp='$CPP $CPPFLAGS'
24050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24053
24054 CC="$lt_save_CC"
24055
24056         else
24057           tagname=""
24058         fi
24059         ;;
24060
24061       RC)
24062         ac_ext=c
24063 ac_cpp='$CPP $CPPFLAGS'
24064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24067
24068
24069 # Source file extension for RC test sources.
24070 ac_ext=rc
24071
24072 # Object file extension for compiled RC test sources.
24073 objext=o
24074 objext_RC=$objext
24075
24076 # Code to be used in simple compile tests
24077 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24078
24079 # Code to be used in simple link tests
24080 lt_simple_link_test_code="$lt_simple_compile_test_code"
24081
24082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24083
24084 # If no C compiler was specified, use CC.
24085 LTCC=${LTCC-"$CC"}
24086
24087 # Allow CC to be a program name with arguments.
24088 compiler=$CC
24089
24090
24091 # Allow CC to be a program name with arguments.
24092 lt_save_CC="$CC"
24093 CC=${RC-"windres"}
24094 compiler=$CC
24095 compiler_RC=$CC
24096 lt_cv_prog_compiler_c_o_RC=yes
24097
24098 # The else clause should only fire when bootstrapping the
24099 # libtool distribution, otherwise you forgot to ship ltmain.sh
24100 # with your package, and you will get complaints that there are
24101 # no rules to generate ltmain.sh.
24102 if test -f "$ltmain"; then
24103   # See if we are running on zsh, and set the options which allow our commands through
24104   # without removal of \ escapes.
24105   if test -n "${ZSH_VERSION+set}" ; then
24106     setopt NO_GLOB_SUBST
24107   fi
24108   # Now quote all the things that may contain metacharacters while being
24109   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24110   # variables and quote the copies for generation of the libtool script.
24111   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24112     SED SHELL STRIP \
24113     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24114     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24115     deplibs_check_method reload_flag reload_cmds need_locks \
24116     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24117     lt_cv_sys_global_symbol_to_c_name_address \
24118     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24119     old_postinstall_cmds old_postuninstall_cmds \
24120     compiler_RC \
24121     CC_RC \
24122     LD_RC \
24123     lt_prog_compiler_wl_RC \
24124     lt_prog_compiler_pic_RC \
24125     lt_prog_compiler_static_RC \
24126     lt_prog_compiler_no_builtin_flag_RC \
24127     export_dynamic_flag_spec_RC \
24128     thread_safe_flag_spec_RC \
24129     whole_archive_flag_spec_RC \
24130     enable_shared_with_static_runtimes_RC \
24131     old_archive_cmds_RC \
24132     old_archive_from_new_cmds_RC \
24133     predep_objects_RC \
24134     postdep_objects_RC \
24135     predeps_RC \
24136     postdeps_RC \
24137     compiler_lib_search_path_RC \
24138     archive_cmds_RC \
24139     archive_expsym_cmds_RC \
24140     postinstall_cmds_RC \
24141     postuninstall_cmds_RC \
24142     old_archive_from_expsyms_cmds_RC \
24143     allow_undefined_flag_RC \
24144     no_undefined_flag_RC \
24145     export_symbols_cmds_RC \
24146     hardcode_libdir_flag_spec_RC \
24147     hardcode_libdir_flag_spec_ld_RC \
24148     hardcode_libdir_separator_RC \
24149     hardcode_automatic_RC \
24150     module_cmds_RC \
24151     module_expsym_cmds_RC \
24152     lt_cv_prog_compiler_c_o_RC \
24153     exclude_expsyms_RC \
24154     include_expsyms_RC; do
24155
24156     case $var in
24157     old_archive_cmds_RC | \
24158     old_archive_from_new_cmds_RC | \
24159     archive_cmds_RC | \
24160     archive_expsym_cmds_RC | \
24161     module_cmds_RC | \
24162     module_expsym_cmds_RC | \
24163     old_archive_from_expsyms_cmds_RC | \
24164     export_symbols_cmds_RC | \
24165     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24166     postinstall_cmds | postuninstall_cmds | \
24167     old_postinstall_cmds | old_postuninstall_cmds | \
24168     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24169       # Double-quote double-evaled strings.
24170       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24171       ;;
24172     *)
24173       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24174       ;;
24175     esac
24176   done
24177
24178   case $lt_echo in
24179   *'\$0 --fallback-echo"')
24180     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24181     ;;
24182   esac
24183
24184 cfgfile="$ofile"
24185
24186   cat <<__EOF__ >> "$cfgfile"
24187 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24188
24189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24190
24191 # Shell to use when invoking shell scripts.
24192 SHELL=$lt_SHELL
24193
24194 # Whether or not to build shared libraries.
24195 build_libtool_libs=$enable_shared
24196
24197 # Whether or not to build static libraries.
24198 build_old_libs=$enable_static
24199
24200 # Whether or not to add -lc for building shared libraries.
24201 build_libtool_need_lc=$archive_cmds_need_lc_RC
24202
24203 # Whether or not to disallow shared libs when runtime libs are static
24204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24205
24206 # Whether or not to optimize for fast installation.
24207 fast_install=$enable_fast_install
24208
24209 # The host system.
24210 host_alias=$host_alias
24211 host=$host
24212
24213 # An echo program that does not interpret backslashes.
24214 echo=$lt_echo
24215
24216 # The archiver.
24217 AR=$lt_AR
24218 AR_FLAGS=$lt_AR_FLAGS
24219
24220 # A C compiler.
24221 LTCC=$lt_LTCC
24222
24223 # A language-specific compiler.
24224 CC=$lt_compiler_RC
24225
24226 # Is the compiler the GNU C compiler?
24227 with_gcc=$GCC_RC
24228
24229 # An ERE matcher.
24230 EGREP=$lt_EGREP
24231
24232 # The linker used to build libraries.
24233 LD=$lt_LD_RC
24234
24235 # Whether we need hard or soft links.
24236 LN_S=$lt_LN_S
24237
24238 # A BSD-compatible nm program.
24239 NM=$lt_NM
24240
24241 # A symbol stripping program
24242 STRIP=$lt_STRIP
24243
24244 # Used to examine libraries when file_magic_cmd begins "file"
24245 MAGIC_CMD=$MAGIC_CMD
24246
24247 # Used on cygwin: DLL creation program.
24248 DLLTOOL="$DLLTOOL"
24249
24250 # Used on cygwin: object dumper.
24251 OBJDUMP="$OBJDUMP"
24252
24253 # Used on cygwin: assembler.
24254 AS="$AS"
24255
24256 # The name of the directory that contains temporary libtool files.
24257 objdir=$objdir
24258
24259 # How to create reloadable object files.
24260 reload_flag=$lt_reload_flag
24261 reload_cmds=$lt_reload_cmds
24262
24263 # How to pass a linker flag through the compiler.
24264 wl=$lt_lt_prog_compiler_wl_RC
24265
24266 # Object file suffix (normally "o").
24267 objext="$ac_objext"
24268
24269 # Old archive suffix (normally "a").
24270 libext="$libext"
24271
24272 # Shared library suffix (normally ".so").
24273 shrext_cmds='$shrext_cmds'
24274
24275 # Executable file suffix (normally "").
24276 exeext="$exeext"
24277
24278 # Additional compiler flags for building library objects.
24279 pic_flag=$lt_lt_prog_compiler_pic_RC
24280 pic_mode=$pic_mode
24281
24282 # What is the maximum length of a command?
24283 max_cmd_len=$lt_cv_sys_max_cmd_len
24284
24285 # Does compiler simultaneously support -c and -o options?
24286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24287
24288 # Must we lock files when doing compilation ?
24289 need_locks=$lt_need_locks
24290
24291 # Do we need the lib prefix for modules?
24292 need_lib_prefix=$need_lib_prefix
24293
24294 # Do we need a version for libraries?
24295 need_version=$need_version
24296
24297 # Whether dlopen is supported.
24298 dlopen_support=$enable_dlopen
24299
24300 # Whether dlopen of programs is supported.
24301 dlopen_self=$enable_dlopen_self
24302
24303 # Whether dlopen of statically linked programs is supported.
24304 dlopen_self_static=$enable_dlopen_self_static
24305
24306 # Compiler flag to prevent dynamic linking.
24307 link_static_flag=$lt_lt_prog_compiler_static_RC
24308
24309 # Compiler flag to turn off builtin functions.
24310 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24311
24312 # Compiler flag to allow reflexive dlopens.
24313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24314
24315 # Compiler flag to generate shared objects directly from archives.
24316 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24317
24318 # Compiler flag to generate thread-safe objects.
24319 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24320
24321 # Library versioning type.
24322 version_type=$version_type
24323
24324 # Format of library name prefix.
24325 libname_spec=$lt_libname_spec
24326
24327 # List of archive names.  First name is the real one, the rest are links.
24328 # The last name is the one that the linker finds with -lNAME.
24329 library_names_spec=$lt_library_names_spec
24330
24331 # The coded name of the library, if different from the real name.
24332 soname_spec=$lt_soname_spec
24333
24334 # Commands used to build and install an old-style archive.
24335 RANLIB=$lt_RANLIB
24336 old_archive_cmds=$lt_old_archive_cmds_RC
24337 old_postinstall_cmds=$lt_old_postinstall_cmds
24338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24339
24340 # Create an old-style archive from a shared archive.
24341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24342
24343 # Create a temporary old-style archive to link instead of a shared archive.
24344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24345
24346 # Commands used to build and install a shared archive.
24347 archive_cmds=$lt_archive_cmds_RC
24348 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24349 postinstall_cmds=$lt_postinstall_cmds
24350 postuninstall_cmds=$lt_postuninstall_cmds
24351
24352 # Commands used to build a loadable module (assumed same as above if empty)
24353 module_cmds=$lt_module_cmds_RC
24354 module_expsym_cmds=$lt_module_expsym_cmds_RC
24355
24356 # Commands to strip libraries.
24357 old_striplib=$lt_old_striplib
24358 striplib=$lt_striplib
24359
24360 # Dependencies to place before the objects being linked to create a
24361 # shared library.
24362 predep_objects=$lt_predep_objects_RC
24363
24364 # Dependencies to place after the objects being linked to create a
24365 # shared library.
24366 postdep_objects=$lt_postdep_objects_RC
24367
24368 # Dependencies to place before the objects being linked to create a
24369 # shared library.
24370 predeps=$lt_predeps_RC
24371
24372 # Dependencies to place after the objects being linked to create a
24373 # shared library.
24374 postdeps=$lt_postdeps_RC
24375
24376 # The library search path used internally by the compiler when linking
24377 # a shared library.
24378 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24379
24380 # Method to check whether dependent libraries are shared objects.
24381 deplibs_check_method=$lt_deplibs_check_method
24382
24383 # Command to use when deplibs_check_method == file_magic.
24384 file_magic_cmd=$lt_file_magic_cmd
24385
24386 # Flag that allows shared libraries with undefined symbols to be built.
24387 allow_undefined_flag=$lt_allow_undefined_flag_RC
24388
24389 # Flag that forces no undefined symbols.
24390 no_undefined_flag=$lt_no_undefined_flag_RC
24391
24392 # Commands used to finish a libtool library installation in a directory.
24393 finish_cmds=$lt_finish_cmds
24394
24395 # Same as above, but a single script fragment to be evaled but not shown.
24396 finish_eval=$lt_finish_eval
24397
24398 # Take the output of nm and produce a listing of raw symbols and C names.
24399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24400
24401 # Transform the output of nm in a proper C declaration
24402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24403
24404 # Transform the output of nm in a C name address pair
24405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24406
24407 # This is the shared library runtime path variable.
24408 runpath_var=$runpath_var
24409
24410 # This is the shared library path variable.
24411 shlibpath_var=$shlibpath_var
24412
24413 # Is shlibpath searched before the hard-coded library search path?
24414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24415
24416 # How to hardcode a shared library path into an executable.
24417 hardcode_action=$hardcode_action_RC
24418
24419 # Whether we should hardcode library paths into libraries.
24420 hardcode_into_libs=$hardcode_into_libs
24421
24422 # Flag to hardcode \$libdir into a binary during linking.
24423 # This must work even if \$libdir does not exist.
24424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24425
24426 # If ld is used when linking, flag to hardcode \$libdir into
24427 # a binary during linking. This must work even if \$libdir does
24428 # not exist.
24429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24430
24431 # Whether we need a single -rpath flag with a separated argument.
24432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24433
24434 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24435 # resulting binary.
24436 hardcode_direct=$hardcode_direct_RC
24437
24438 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24439 # resulting binary.
24440 hardcode_minus_L=$hardcode_minus_L_RC
24441
24442 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24443 # the resulting binary.
24444 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24445
24446 # Set to yes if building a shared library automatically hardcodes DIR into the library
24447 # and all subsequent libraries and executables linked against it.
24448 hardcode_automatic=$hardcode_automatic_RC
24449
24450 # Variables whose values should be saved in libtool wrapper scripts and
24451 # restored at relink time.
24452 variables_saved_for_relink="$variables_saved_for_relink"
24453
24454 # Whether libtool must link a program against all its dependency libraries.
24455 link_all_deplibs=$link_all_deplibs_RC
24456
24457 # Compile-time system search path for libraries
24458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24459
24460 # Run-time system search path for libraries
24461 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24462
24463 # Fix the shell variable \$srcfile for the compiler.
24464 fix_srcfile_path="$fix_srcfile_path_RC"
24465
24466 # Set to yes if exported symbols are required.
24467 always_export_symbols=$always_export_symbols_RC
24468
24469 # The commands to list exported symbols.
24470 export_symbols_cmds=$lt_export_symbols_cmds_RC
24471
24472 # The commands to extract the exported symbol list from a shared archive.
24473 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24474
24475 # Symbols that should not be listed in the preloaded symbols.
24476 exclude_expsyms=$lt_exclude_expsyms_RC
24477
24478 # Symbols that must always be exported.
24479 include_expsyms=$lt_include_expsyms_RC
24480
24481 # ### END LIBTOOL TAG CONFIG: $tagname
24482
24483 __EOF__
24484
24485
24486 else
24487   # If there is no Makefile yet, we rely on a make rule to execute
24488   # `config.status --recheck' to rerun these tests and create the
24489   # libtool script then.
24490   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24491   if test -f "$ltmain_in"; then
24492     test -f Makefile && make "$ltmain"
24493   fi
24494 fi
24495
24496
24497 ac_ext=c
24498 ac_cpp='$CPP $CPPFLAGS'
24499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24502
24503 CC="$lt_save_CC"
24504
24505         ;;
24506
24507       *)
24508         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24509 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24510    { (exit 1); exit 1; }; }
24511         ;;
24512       esac
24513
24514       # Append the new tag name to the list of available tags.
24515       if test -n "$tagname" ; then
24516       available_tags="$available_tags $tagname"
24517     fi
24518     fi
24519   done
24520   IFS="$lt_save_ifs"
24521
24522   # Now substitute the updated list of available tags.
24523   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24524     mv "${ofile}T" "$ofile"
24525     chmod +x "$ofile"
24526   else
24527     rm -f "${ofile}T"
24528     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24529 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24530    { (exit 1); exit 1; }; }
24531   fi
24532 fi
24533
24534
24535
24536 # This can be used to rebuild libtool when needed
24537 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24538
24539 # Always use our own libtool.
24540 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24541
24542 # Prevent multiple expansion
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564 etags_version=`$ETAGS --version 2>&1`
24565 case "$etags_version" in
24566         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24567         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24568         *) ETAGSFLAGS="" ;;
24569 esac
24570 ETAGSFLAGS=$ETAGSFLAGS
24571
24572
24573 echo "$as_me:$LINENO: checking tool compatibility" >&5
24574 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24575
24576 ICC=no
24577 IXX=no
24578 case $CC in
24579   icc*|icpc*)
24580     ICC=yes
24581     IXX=yes
24582     ;;
24583    *)
24584     ;;
24585 esac
24586
24587 if test "$GCC" != "yes" && test "$ICC" != "yes"
24588 then
24589   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24590 echo "$as_me: error: gcc|icc required but not found" >&2;}
24591    { (exit 1); exit 1; }; }
24592 fi
24593
24594 if test "$GXX" != "yes" && test "$IXX" != "yes"
24595 then
24596   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24597 echo "$as_me: error: g++|icc required but not found" >&2;}
24598    { (exit 1); exit 1; }; }
24599 fi
24600
24601 if test "$GCC" = "yes"
24602 then
24603   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24604   if test "$gccmajor" -lt "3"
24605   then
24606     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24607 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24608    { (exit 1); exit 1; }; }
24609   fi
24610 fi
24611
24612 if test -z "$llvm_cv_gnu_make_command"
24613 then
24614   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24615 echo "$as_me: error: GNU Make required but not found" >&2;}
24616    { (exit 1); exit 1; }; }
24617 fi
24618
24619 echo "$as_me:$LINENO: result: ok" >&5
24620 echo "${ECHO_T}ok" >&6
24621
24622
24623
24624 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24625 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24626 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24627   echo $ECHO_N "(cached) $ECHO_C" >&6
24628 else
24629   ac_check_lib_save_LIBS=$LIBS
24630 LIBS="-lelf  $LIBS"
24631 cat >conftest.$ac_ext <<_ACEOF
24632 /* confdefs.h.  */
24633 _ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h.  */
24637
24638 /* Override any gcc2 internal prototype to avoid an error.  */
24639 #ifdef __cplusplus
24640 extern "C"
24641 #endif
24642 /* We use char because int might match the return type of a gcc2
24643    builtin and then its argument prototype would still apply.  */
24644 char elf_begin ();
24645 int
24646 main ()
24647 {
24648 elf_begin ();
24649   ;
24650   return 0;
24651 }
24652 _ACEOF
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655   (eval $ac_link) 2>conftest.er1
24656   ac_status=$?
24657   grep -v '^ *+' conftest.er1 >conftest.err
24658   rm -f conftest.er1
24659   cat conftest.err >&5
24660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661   (exit $ac_status); } &&
24662          { ac_try='test -z "$ac_c_werror_flag"
24663                          || test ! -s conftest.err'
24664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665   (eval $ac_try) 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); }; } &&
24669          { ac_try='test -s conftest$ac_exeext'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; }; then
24675   ac_cv_lib_elf_elf_begin=yes
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680 ac_cv_lib_elf_elf_begin=no
24681 fi
24682 rm -f conftest.err conftest.$ac_objext \
24683       conftest$ac_exeext conftest.$ac_ext
24684 LIBS=$ac_check_lib_save_LIBS
24685 fi
24686 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24687 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24688 if test $ac_cv_lib_elf_elf_begin = yes; then
24689   cat >>confdefs.h <<_ACEOF
24690 #define HAVE_LIBELF 1
24691 _ACEOF
24692
24693   LIBS="-lelf $LIBS"
24694
24695 fi
24696
24697
24698 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24699 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24700 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24701   echo $ECHO_N "(cached) $ECHO_C" >&6
24702 else
24703   ac_func_search_save_LIBS=$LIBS
24704 ac_cv_search_lt_dlopen=no
24705 cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h.  */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h.  */
24711
24712 /* Override any gcc2 internal prototype to avoid an error.  */
24713 #ifdef __cplusplus
24714 extern "C"
24715 #endif
24716 /* We use char because int might match the return type of a gcc2
24717    builtin and then its argument prototype would still apply.  */
24718 char lt_dlopen ();
24719 int
24720 main ()
24721 {
24722 lt_dlopen ();
24723   ;
24724   return 0;
24725 }
24726 _ACEOF
24727 rm -f conftest.$ac_objext conftest$ac_exeext
24728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24729   (eval $ac_link) 2>conftest.er1
24730   ac_status=$?
24731   grep -v '^ *+' conftest.er1 >conftest.err
24732   rm -f conftest.er1
24733   cat conftest.err >&5
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } &&
24736          { ac_try='test -z "$ac_c_werror_flag"
24737                          || test ! -s conftest.err'
24738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739   (eval $ac_try) 2>&5
24740   ac_status=$?
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); }; } &&
24743          { ac_try='test -s conftest$ac_exeext'
24744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745   (eval $ac_try) 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; }; then
24749   ac_cv_search_lt_dlopen="none required"
24750 else
24751   echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.$ac_ext >&5
24753
24754 fi
24755 rm -f conftest.err conftest.$ac_objext \
24756       conftest$ac_exeext conftest.$ac_ext
24757 if test "$ac_cv_search_lt_dlopen" = no; then
24758   for ac_lib in ltdl; do
24759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24760     cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766
24767 /* Override any gcc2 internal prototype to avoid an error.  */
24768 #ifdef __cplusplus
24769 extern "C"
24770 #endif
24771 /* We use char because int might match the return type of a gcc2
24772    builtin and then its argument prototype would still apply.  */
24773 char lt_dlopen ();
24774 int
24775 main ()
24776 {
24777 lt_dlopen ();
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24784   (eval $ac_link) 2>conftest.er1
24785   ac_status=$?
24786   grep -v '^ *+' conftest.er1 >conftest.err
24787   rm -f conftest.er1
24788   cat conftest.err >&5
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); } &&
24791          { ac_try='test -z "$ac_c_werror_flag"
24792                          || test ! -s conftest.err'
24793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794   (eval $ac_try) 2>&5
24795   ac_status=$?
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); }; } &&
24798          { ac_try='test -s conftest$ac_exeext'
24799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800   (eval $ac_try) 2>&5
24801   ac_status=$?
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); }; }; then
24804   ac_cv_search_lt_dlopen="-l$ac_lib"
24805 break
24806 else
24807   echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24809
24810 fi
24811 rm -f conftest.err conftest.$ac_objext \
24812       conftest$ac_exeext conftest.$ac_ext
24813   done
24814 fi
24815 LIBS=$ac_func_search_save_LIBS
24816 fi
24817 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24818 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24819 if test "$ac_cv_search_lt_dlopen" != no; then
24820   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24821
24822 cat >>confdefs.h <<\_ACEOF
24823 #define HAVE_LT_DLOPEN 1
24824 _ACEOF
24825
24826 else
24827   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24828                            not be available" >&5
24829 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24830                            not be available" >&2;}
24831 fi
24832
24833
24834 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24835 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24836 if test "${ac_cv_search_dlopen+set}" = set; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839   ac_func_search_save_LIBS=$LIBS
24840 ac_cv_search_dlopen=no
24841 cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h.  */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h.  */
24847
24848 /* Override any gcc2 internal prototype to avoid an error.  */
24849 #ifdef __cplusplus
24850 extern "C"
24851 #endif
24852 /* We use char because int might match the return type of a gcc2
24853    builtin and then its argument prototype would still apply.  */
24854 char dlopen ();
24855 int
24856 main ()
24857 {
24858 dlopen ();
24859   ;
24860   return 0;
24861 }
24862 _ACEOF
24863 rm -f conftest.$ac_objext conftest$ac_exeext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24865   (eval $ac_link) 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } &&
24872          { ac_try='test -z "$ac_c_werror_flag"
24873                          || test ! -s conftest.err'
24874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875   (eval $ac_try) 2>&5
24876   ac_status=$?
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); }; } &&
24879          { ac_try='test -s conftest$ac_exeext'
24880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881   (eval $ac_try) 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); }; }; then
24885   ac_cv_search_dlopen="none required"
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890 fi
24891 rm -f conftest.err conftest.$ac_objext \
24892       conftest$ac_exeext conftest.$ac_ext
24893 if test "$ac_cv_search_dlopen" = no; then
24894   for ac_lib in dl; do
24895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24896     cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902
24903 /* Override any gcc2 internal prototype to avoid an error.  */
24904 #ifdef __cplusplus
24905 extern "C"
24906 #endif
24907 /* We use char because int might match the return type of a gcc2
24908    builtin and then its argument prototype would still apply.  */
24909 char dlopen ();
24910 int
24911 main ()
24912 {
24913 dlopen ();
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920   (eval $ac_link) 2>conftest.er1
24921   ac_status=$?
24922   grep -v '^ *+' conftest.er1 >conftest.err
24923   rm -f conftest.er1
24924   cat conftest.err >&5
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); } &&
24927          { ac_try='test -z "$ac_c_werror_flag"
24928                          || test ! -s conftest.err'
24929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930   (eval $ac_try) 2>&5
24931   ac_status=$?
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); }; } &&
24934          { ac_try='test -s conftest$ac_exeext'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; }; then
24940   ac_cv_search_dlopen="-l$ac_lib"
24941 break
24942 else
24943   echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24945
24946 fi
24947 rm -f conftest.err conftest.$ac_objext \
24948       conftest$ac_exeext conftest.$ac_ext
24949   done
24950 fi
24951 LIBS=$ac_func_search_save_LIBS
24952 fi
24953 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24954 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24955 if test "$ac_cv_search_dlopen" != no; then
24956   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24957
24958 cat >>confdefs.h <<\_ACEOF
24959 #define HAVE_DLOPEN 1
24960 _ACEOF
24961
24962 else
24963   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24964 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24965 fi
24966
24967
24968 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24969 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24970 if test "${ac_cv_search_mallinfo+set}" = set; then
24971   echo $ECHO_N "(cached) $ECHO_C" >&6
24972 else
24973   ac_func_search_save_LIBS=$LIBS
24974 ac_cv_search_mallinfo=no
24975 cat >conftest.$ac_ext <<_ACEOF
24976 /* confdefs.h.  */
24977 _ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h.  */
24981
24982 /* Override any gcc2 internal prototype to avoid an error.  */
24983 #ifdef __cplusplus
24984 extern "C"
24985 #endif
24986 /* We use char because int might match the return type of a gcc2
24987    builtin and then its argument prototype would still apply.  */
24988 char mallinfo ();
24989 int
24990 main ()
24991 {
24992 mallinfo ();
24993   ;
24994   return 0;
24995 }
24996 _ACEOF
24997 rm -f conftest.$ac_objext conftest$ac_exeext
24998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24999   (eval $ac_link) 2>conftest.er1
25000   ac_status=$?
25001   grep -v '^ *+' conftest.er1 >conftest.err
25002   rm -f conftest.er1
25003   cat conftest.err >&5
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); } &&
25006          { ac_try='test -z "$ac_c_werror_flag"
25007                          || test ! -s conftest.err'
25008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009   (eval $ac_try) 2>&5
25010   ac_status=$?
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); }; } &&
25013          { ac_try='test -s conftest$ac_exeext'
25014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25015   (eval $ac_try) 2>&5
25016   ac_status=$?
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); }; }; then
25019   ac_cv_search_mallinfo="none required"
25020 else
25021   echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25023
25024 fi
25025 rm -f conftest.err conftest.$ac_objext \
25026       conftest$ac_exeext conftest.$ac_ext
25027 if test "$ac_cv_search_mallinfo" = no; then
25028   for ac_lib in malloc; do
25029     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25030     cat >conftest.$ac_ext <<_ACEOF
25031 /* confdefs.h.  */
25032 _ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h.  */
25036
25037 /* Override any gcc2 internal prototype to avoid an error.  */
25038 #ifdef __cplusplus
25039 extern "C"
25040 #endif
25041 /* We use char because int might match the return type of a gcc2
25042    builtin and then its argument prototype would still apply.  */
25043 char mallinfo ();
25044 int
25045 main ()
25046 {
25047 mallinfo ();
25048   ;
25049   return 0;
25050 }
25051 _ACEOF
25052 rm -f conftest.$ac_objext conftest$ac_exeext
25053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25054   (eval $ac_link) 2>conftest.er1
25055   ac_status=$?
25056   grep -v '^ *+' conftest.er1 >conftest.err
25057   rm -f conftest.er1
25058   cat conftest.err >&5
25059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060   (exit $ac_status); } &&
25061          { ac_try='test -z "$ac_c_werror_flag"
25062                          || test ! -s conftest.err'
25063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064   (eval $ac_try) 2>&5
25065   ac_status=$?
25066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067   (exit $ac_status); }; } &&
25068          { ac_try='test -s conftest$ac_exeext'
25069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070   (eval $ac_try) 2>&5
25071   ac_status=$?
25072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); }; }; then
25074   ac_cv_search_mallinfo="-l$ac_lib"
25075 break
25076 else
25077   echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25079
25080 fi
25081 rm -f conftest.err conftest.$ac_objext \
25082       conftest$ac_exeext conftest.$ac_ext
25083   done
25084 fi
25085 LIBS=$ac_func_search_save_LIBS
25086 fi
25087 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25088 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25089 if test "$ac_cv_search_mallinfo" != no; then
25090   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25091
25092 cat >>confdefs.h <<\_ACEOF
25093 #define HAVE_MALLINFO 1
25094 _ACEOF
25095
25096 fi
25097
25098
25099 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25100 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25101 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25102   echo $ECHO_N "(cached) $ECHO_C" >&6
25103 else
25104   ac_func_search_save_LIBS=$LIBS
25105 ac_cv_search_pthread_mutex_lock=no
25106 cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h.  */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h.  */
25112
25113 /* Override any gcc2 internal prototype to avoid an error.  */
25114 #ifdef __cplusplus
25115 extern "C"
25116 #endif
25117 /* We use char because int might match the return type of a gcc2
25118    builtin and then its argument prototype would still apply.  */
25119 char pthread_mutex_lock ();
25120 int
25121 main ()
25122 {
25123 pthread_mutex_lock ();
25124   ;
25125   return 0;
25126 }
25127 _ACEOF
25128 rm -f conftest.$ac_objext conftest$ac_exeext
25129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25130   (eval $ac_link) 2>conftest.er1
25131   ac_status=$?
25132   grep -v '^ *+' conftest.er1 >conftest.err
25133   rm -f conftest.er1
25134   cat conftest.err >&5
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); } &&
25137          { ac_try='test -z "$ac_c_werror_flag"
25138                          || test ! -s conftest.err'
25139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140   (eval $ac_try) 2>&5
25141   ac_status=$?
25142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143   (exit $ac_status); }; } &&
25144          { ac_try='test -s conftest$ac_exeext'
25145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146   (eval $ac_try) 2>&5
25147   ac_status=$?
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); }; }; then
25150   ac_cv_search_pthread_mutex_lock="none required"
25151 else
25152   echo "$as_me: failed program was:" >&5
25153 sed 's/^/| /' conftest.$ac_ext >&5
25154
25155 fi
25156 rm -f conftest.err conftest.$ac_objext \
25157       conftest$ac_exeext conftest.$ac_ext
25158 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25159   for ac_lib in pthread; do
25160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25161     cat >conftest.$ac_ext <<_ACEOF
25162 /* confdefs.h.  */
25163 _ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h.  */
25167
25168 /* Override any gcc2 internal prototype to avoid an error.  */
25169 #ifdef __cplusplus
25170 extern "C"
25171 #endif
25172 /* We use char because int might match the return type of a gcc2
25173    builtin and then its argument prototype would still apply.  */
25174 char pthread_mutex_lock ();
25175 int
25176 main ()
25177 {
25178 pthread_mutex_lock ();
25179   ;
25180   return 0;
25181 }
25182 _ACEOF
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185   (eval $ac_link) 2>conftest.er1
25186   ac_status=$?
25187   grep -v '^ *+' conftest.er1 >conftest.err
25188   rm -f conftest.er1
25189   cat conftest.err >&5
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); } &&
25192          { ac_try='test -z "$ac_c_werror_flag"
25193                          || test ! -s conftest.err'
25194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195   (eval $ac_try) 2>&5
25196   ac_status=$?
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); }; } &&
25199          { ac_try='test -s conftest$ac_exeext'
25200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201   (eval $ac_try) 2>&5
25202   ac_status=$?
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); }; }; then
25205   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25206 break
25207 else
25208   echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25210
25211 fi
25212 rm -f conftest.err conftest.$ac_objext \
25213       conftest$ac_exeext conftest.$ac_ext
25214   done
25215 fi
25216 LIBS=$ac_func_search_save_LIBS
25217 fi
25218 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25219 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25220 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25221   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25222
25223 cat >>confdefs.h <<\_ACEOF
25224 #define HAVE_PTHREAD_MUTEX_LOCK 1
25225 _ACEOF
25226
25227 fi
25228
25229
25230
25231 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25232 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25233 if test "${ac_cv_header_stdc+set}" = set; then
25234   echo $ECHO_N "(cached) $ECHO_C" >&6
25235 else
25236   cat >conftest.$ac_ext <<_ACEOF
25237 /* confdefs.h.  */
25238 _ACEOF
25239 cat confdefs.h >>conftest.$ac_ext
25240 cat >>conftest.$ac_ext <<_ACEOF
25241 /* end confdefs.h.  */
25242 #include <stdlib.h>
25243 #include <stdarg.h>
25244 #include <string.h>
25245 #include <float.h>
25246
25247 int
25248 main ()
25249 {
25250
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25257   (eval $ac_compile) 2>conftest.er1
25258   ac_status=$?
25259   grep -v '^ *+' conftest.er1 >conftest.err
25260   rm -f conftest.er1
25261   cat conftest.err >&5
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); } &&
25264          { ac_try='test -z "$ac_c_werror_flag"
25265                          || test ! -s conftest.err'
25266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267   (eval $ac_try) 2>&5
25268   ac_status=$?
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); }; } &&
25271          { ac_try='test -s conftest.$ac_objext'
25272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273   (eval $ac_try) 2>&5
25274   ac_status=$?
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); }; }; then
25277   ac_cv_header_stdc=yes
25278 else
25279   echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 ac_cv_header_stdc=no
25283 fi
25284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25285
25286 if test $ac_cv_header_stdc = yes; then
25287   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25288   cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h.  */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h.  */
25294 #include <string.h>
25295
25296 _ACEOF
25297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25298   $EGREP "memchr" >/dev/null 2>&1; then
25299   :
25300 else
25301   ac_cv_header_stdc=no
25302 fi
25303 rm -f conftest*
25304
25305 fi
25306
25307 if test $ac_cv_header_stdc = yes; then
25308   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25309   cat >conftest.$ac_ext <<_ACEOF
25310 /* confdefs.h.  */
25311 _ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h.  */
25315 #include <stdlib.h>
25316
25317 _ACEOF
25318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25319   $EGREP "free" >/dev/null 2>&1; then
25320   :
25321 else
25322   ac_cv_header_stdc=no
25323 fi
25324 rm -f conftest*
25325
25326 fi
25327
25328 if test $ac_cv_header_stdc = yes; then
25329   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25330   if test "$cross_compiling" = yes; then
25331   :
25332 else
25333   cat >conftest.$ac_ext <<_ACEOF
25334 /* confdefs.h.  */
25335 _ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h.  */
25339 #include <ctype.h>
25340 #if ((' ' & 0x0FF) == 0x020)
25341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25343 #else
25344 # define ISLOWER(c) \
25345                    (('a' <= (c) && (c) <= 'i') \
25346                      || ('j' <= (c) && (c) <= 'r') \
25347                      || ('s' <= (c) && (c) <= 'z'))
25348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25349 #endif
25350
25351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25352 int
25353 main ()
25354 {
25355   int i;
25356   for (i = 0; i < 256; i++)
25357     if (XOR (islower (i), ISLOWER (i))
25358         || toupper (i) != TOUPPER (i))
25359       exit(2);
25360   exit (0);
25361 }
25362 _ACEOF
25363 rm -f conftest$ac_exeext
25364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25365   (eval $ac_link) 2>&5
25366   ac_status=$?
25367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370   (eval $ac_try) 2>&5
25371   ac_status=$?
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); }; }; then
25374   :
25375 else
25376   echo "$as_me: program exited with status $ac_status" >&5
25377 echo "$as_me: failed program was:" >&5
25378 sed 's/^/| /' conftest.$ac_ext >&5
25379
25380 ( exit $ac_status )
25381 ac_cv_header_stdc=no
25382 fi
25383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25384 fi
25385 fi
25386 fi
25387 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25388 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25389 if test $ac_cv_header_stdc = yes; then
25390
25391 cat >>confdefs.h <<\_ACEOF
25392 #define STDC_HEADERS 1
25393 _ACEOF
25394
25395 fi
25396
25397
25398 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25399 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25400 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403   cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h.  */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h.  */
25409 #include <sys/types.h>
25410 #include <sys/wait.h>
25411 #ifndef WEXITSTATUS
25412 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25413 #endif
25414 #ifndef WIFEXITED
25415 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25416 #endif
25417
25418 int
25419 main ()
25420 {
25421   int s;
25422   wait (&s);
25423   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25424   ;
25425   return 0;
25426 }
25427 _ACEOF
25428 rm -f conftest.$ac_objext
25429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25430   (eval $ac_compile) 2>conftest.er1
25431   ac_status=$?
25432   grep -v '^ *+' conftest.er1 >conftest.err
25433   rm -f conftest.er1
25434   cat conftest.err >&5
25435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436   (exit $ac_status); } &&
25437          { ac_try='test -z "$ac_c_werror_flag"
25438                          || test ! -s conftest.err'
25439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25440   (eval $ac_try) 2>&5
25441   ac_status=$?
25442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443   (exit $ac_status); }; } &&
25444          { ac_try='test -s conftest.$ac_objext'
25445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25446   (eval $ac_try) 2>&5
25447   ac_status=$?
25448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449   (exit $ac_status); }; }; then
25450   ac_cv_header_sys_wait_h=yes
25451 else
25452   echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25454
25455 ac_cv_header_sys_wait_h=no
25456 fi
25457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25458 fi
25459 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25460 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25461 if test $ac_cv_header_sys_wait_h = yes; then
25462
25463 cat >>confdefs.h <<\_ACEOF
25464 #define HAVE_SYS_WAIT_H 1
25465 _ACEOF
25466
25467 fi
25468
25469
25470
25471
25472
25473
25474 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25475 do
25476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25478   echo "$as_me:$LINENO: checking for $ac_header" >&5
25479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25481   echo $ECHO_N "(cached) $ECHO_C" >&6
25482 fi
25483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25485 else
25486   # Is the header compilable?
25487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25489 cat >conftest.$ac_ext <<_ACEOF
25490 /* confdefs.h.  */
25491 _ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h.  */
25495 $ac_includes_default
25496 #include <$ac_header>
25497 _ACEOF
25498 rm -f conftest.$ac_objext
25499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25500   (eval $ac_compile) 2>conftest.er1
25501   ac_status=$?
25502   grep -v '^ *+' conftest.er1 >conftest.err
25503   rm -f conftest.er1
25504   cat conftest.err >&5
25505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506   (exit $ac_status); } &&
25507          { ac_try='test -z "$ac_c_werror_flag"
25508                          || test ! -s conftest.err'
25509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510   (eval $ac_try) 2>&5
25511   ac_status=$?
25512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513   (exit $ac_status); }; } &&
25514          { ac_try='test -s conftest.$ac_objext'
25515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516   (eval $ac_try) 2>&5
25517   ac_status=$?
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); }; }; then
25520   ac_header_compiler=yes
25521 else
25522   echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25524
25525 ac_header_compiler=no
25526 fi
25527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25529 echo "${ECHO_T}$ac_header_compiler" >&6
25530
25531 # Is the header present?
25532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25534 cat >conftest.$ac_ext <<_ACEOF
25535 /* confdefs.h.  */
25536 _ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h.  */
25540 #include <$ac_header>
25541 _ACEOF
25542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25544   ac_status=$?
25545   grep -v '^ *+' conftest.er1 >conftest.err
25546   rm -f conftest.er1
25547   cat conftest.err >&5
25548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549   (exit $ac_status); } >/dev/null; then
25550   if test -s conftest.err; then
25551     ac_cpp_err=$ac_c_preproc_warn_flag
25552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25553   else
25554     ac_cpp_err=
25555   fi
25556 else
25557   ac_cpp_err=yes
25558 fi
25559 if test -z "$ac_cpp_err"; then
25560   ac_header_preproc=yes
25561 else
25562   echo "$as_me: failed program was:" >&5
25563 sed 's/^/| /' conftest.$ac_ext >&5
25564
25565   ac_header_preproc=no
25566 fi
25567 rm -f conftest.err conftest.$ac_ext
25568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25569 echo "${ECHO_T}$ac_header_preproc" >&6
25570
25571 # So?  What about this header?
25572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25573   yes:no: )
25574     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25578     ac_header_preproc=yes
25579     ;;
25580   no:yes:* )
25581     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25583     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25584 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25585     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25587     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25588 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25591     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25593     (
25594       cat <<\_ASBOX
25595 ## ----------------------------------- ##
25596 ## Report this to llvmbugs@cs.uiuc.edu ##
25597 ## ----------------------------------- ##
25598 _ASBOX
25599     ) |
25600       sed "s/^/$as_me: WARNING:     /" >&2
25601     ;;
25602 esac
25603 echo "$as_me:$LINENO: checking for $ac_header" >&5
25604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25606   echo $ECHO_N "(cached) $ECHO_C" >&6
25607 else
25608   eval "$as_ac_Header=\$ac_header_preproc"
25609 fi
25610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25612
25613 fi
25614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25615   cat >>confdefs.h <<_ACEOF
25616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25617 _ACEOF
25618
25619 fi
25620
25621 done
25622
25623
25624
25625
25626
25627
25628 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25629 do
25630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25632   echo "$as_me:$LINENO: checking for $ac_header" >&5
25633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25635   echo $ECHO_N "(cached) $ECHO_C" >&6
25636 fi
25637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25639 else
25640   # Is the header compilable?
25641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25643 cat >conftest.$ac_ext <<_ACEOF
25644 /* confdefs.h.  */
25645 _ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h.  */
25649 $ac_includes_default
25650 #include <$ac_header>
25651 _ACEOF
25652 rm -f conftest.$ac_objext
25653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25654   (eval $ac_compile) 2>conftest.er1
25655   ac_status=$?
25656   grep -v '^ *+' conftest.er1 >conftest.err
25657   rm -f conftest.er1
25658   cat conftest.err >&5
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); } &&
25661          { ac_try='test -z "$ac_c_werror_flag"
25662                          || test ! -s conftest.err'
25663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664   (eval $ac_try) 2>&5
25665   ac_status=$?
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); }; } &&
25668          { ac_try='test -s conftest.$ac_objext'
25669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670   (eval $ac_try) 2>&5
25671   ac_status=$?
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); }; }; then
25674   ac_header_compiler=yes
25675 else
25676   echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25678
25679 ac_header_compiler=no
25680 fi
25681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25683 echo "${ECHO_T}$ac_header_compiler" >&6
25684
25685 # Is the header present?
25686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25688 cat >conftest.$ac_ext <<_ACEOF
25689 /* confdefs.h.  */
25690 _ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h.  */
25694 #include <$ac_header>
25695 _ACEOF
25696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25698   ac_status=$?
25699   grep -v '^ *+' conftest.er1 >conftest.err
25700   rm -f conftest.er1
25701   cat conftest.err >&5
25702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703   (exit $ac_status); } >/dev/null; then
25704   if test -s conftest.err; then
25705     ac_cpp_err=$ac_c_preproc_warn_flag
25706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25707   else
25708     ac_cpp_err=
25709   fi
25710 else
25711   ac_cpp_err=yes
25712 fi
25713 if test -z "$ac_cpp_err"; then
25714   ac_header_preproc=yes
25715 else
25716   echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25718
25719   ac_header_preproc=no
25720 fi
25721 rm -f conftest.err conftest.$ac_ext
25722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25723 echo "${ECHO_T}$ac_header_preproc" >&6
25724
25725 # So?  What about this header?
25726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25727   yes:no: )
25728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25732     ac_header_preproc=yes
25733     ;;
25734   no:yes:* )
25735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25747     (
25748       cat <<\_ASBOX
25749 ## ----------------------------------- ##
25750 ## Report this to llvmbugs@cs.uiuc.edu ##
25751 ## ----------------------------------- ##
25752 _ASBOX
25753     ) |
25754       sed "s/^/$as_me: WARNING:     /" >&2
25755     ;;
25756 esac
25757 echo "$as_me:$LINENO: checking for $ac_header" >&5
25758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25760   echo $ECHO_N "(cached) $ECHO_C" >&6
25761 else
25762   eval "$as_ac_Header=\$ac_header_preproc"
25763 fi
25764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25766
25767 fi
25768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25769   cat >>confdefs.h <<_ACEOF
25770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25771 _ACEOF
25772
25773 fi
25774
25775 done
25776
25777
25778
25779
25780 for ac_header in malloc.h unistd.h windows.h
25781 do
25782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25784   echo "$as_me:$LINENO: checking for $ac_header" >&5
25785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25787   echo $ECHO_N "(cached) $ECHO_C" >&6
25788 fi
25789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25791 else
25792   # Is the header compilable?
25793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25795 cat >conftest.$ac_ext <<_ACEOF
25796 /* confdefs.h.  */
25797 _ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h.  */
25801 $ac_includes_default
25802 #include <$ac_header>
25803 _ACEOF
25804 rm -f conftest.$ac_objext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25806   (eval $ac_compile) 2>conftest.er1
25807   ac_status=$?
25808   grep -v '^ *+' conftest.er1 >conftest.err
25809   rm -f conftest.er1
25810   cat conftest.err >&5
25811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); } &&
25813          { ac_try='test -z "$ac_c_werror_flag"
25814                          || test ! -s conftest.err'
25815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816   (eval $ac_try) 2>&5
25817   ac_status=$?
25818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819   (exit $ac_status); }; } &&
25820          { ac_try='test -s conftest.$ac_objext'
25821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822   (eval $ac_try) 2>&5
25823   ac_status=$?
25824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825   (exit $ac_status); }; }; then
25826   ac_header_compiler=yes
25827 else
25828   echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25830
25831 ac_header_compiler=no
25832 fi
25833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25835 echo "${ECHO_T}$ac_header_compiler" >&6
25836
25837 # Is the header present?
25838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25840 cat >conftest.$ac_ext <<_ACEOF
25841 /* confdefs.h.  */
25842 _ACEOF
25843 cat confdefs.h >>conftest.$ac_ext
25844 cat >>conftest.$ac_ext <<_ACEOF
25845 /* end confdefs.h.  */
25846 #include <$ac_header>
25847 _ACEOF
25848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25850   ac_status=$?
25851   grep -v '^ *+' conftest.er1 >conftest.err
25852   rm -f conftest.er1
25853   cat conftest.err >&5
25854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855   (exit $ac_status); } >/dev/null; then
25856   if test -s conftest.err; then
25857     ac_cpp_err=$ac_c_preproc_warn_flag
25858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25859   else
25860     ac_cpp_err=
25861   fi
25862 else
25863   ac_cpp_err=yes
25864 fi
25865 if test -z "$ac_cpp_err"; then
25866   ac_header_preproc=yes
25867 else
25868   echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25870
25871   ac_header_preproc=no
25872 fi
25873 rm -f conftest.err conftest.$ac_ext
25874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25875 echo "${ECHO_T}$ac_header_preproc" >&6
25876
25877 # So?  What about this header?
25878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25879   yes:no: )
25880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25884     ac_header_preproc=yes
25885     ;;
25886   no:yes:* )
25887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25899     (
25900       cat <<\_ASBOX
25901 ## ----------------------------------- ##
25902 ## Report this to llvmbugs@cs.uiuc.edu ##
25903 ## ----------------------------------- ##
25904 _ASBOX
25905     ) |
25906       sed "s/^/$as_me: WARNING:     /" >&2
25907     ;;
25908 esac
25909 echo "$as_me:$LINENO: checking for $ac_header" >&5
25910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25912   echo $ECHO_N "(cached) $ECHO_C" >&6
25913 else
25914   eval "$as_ac_Header=\$ac_header_preproc"
25915 fi
25916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25918
25919 fi
25920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25921   cat >>confdefs.h <<_ACEOF
25922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25923 _ACEOF
25924
25925 fi
25926
25927 done
25928
25929 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25930 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25931 if test "${ac_cv_header_time+set}" = set; then
25932   echo $ECHO_N "(cached) $ECHO_C" >&6
25933 else
25934   cat >conftest.$ac_ext <<_ACEOF
25935 /* confdefs.h.  */
25936 _ACEOF
25937 cat confdefs.h >>conftest.$ac_ext
25938 cat >>conftest.$ac_ext <<_ACEOF
25939 /* end confdefs.h.  */
25940 #include <sys/types.h>
25941 #include <sys/time.h>
25942 #include <time.h>
25943
25944 int
25945 main ()
25946 {
25947 if ((struct tm *) 0)
25948 return 0;
25949   ;
25950   return 0;
25951 }
25952 _ACEOF
25953 rm -f conftest.$ac_objext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25955   (eval $ac_compile) 2>conftest.er1
25956   ac_status=$?
25957   grep -v '^ *+' conftest.er1 >conftest.err
25958   rm -f conftest.er1
25959   cat conftest.err >&5
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); } &&
25962          { ac_try='test -z "$ac_c_werror_flag"
25963                          || test ! -s conftest.err'
25964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965   (eval $ac_try) 2>&5
25966   ac_status=$?
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); }; } &&
25969          { ac_try='test -s conftest.$ac_objext'
25970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971   (eval $ac_try) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; }; then
25975   ac_cv_header_time=yes
25976 else
25977   echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 ac_cv_header_time=no
25981 fi
25982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25983 fi
25984 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25985 echo "${ECHO_T}$ac_cv_header_time" >&6
25986 if test $ac_cv_header_time = yes; then
25987
25988 cat >>confdefs.h <<\_ACEOF
25989 #define TIME_WITH_SYS_TIME 1
25990 _ACEOF
25991
25992 fi
25993
25994 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25995 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25996 if test "${ac_cv_header_mmap_anon+set}" = set; then
25997   echo $ECHO_N "(cached) $ECHO_C" >&6
25998 else
25999    ac_ext=c
26000 ac_cpp='$CPP $CPPFLAGS'
26001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26004
26005   cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h.  */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h.  */
26011 #include <sys/mman.h>
26012 #include <unistd.h>
26013 #include <fcntl.h>
26014 int
26015 main ()
26016 {
26017 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26018   ;
26019   return 0;
26020 }
26021 _ACEOF
26022 rm -f conftest.$ac_objext
26023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26024   (eval $ac_compile) 2>conftest.er1
26025   ac_status=$?
26026   grep -v '^ *+' conftest.er1 >conftest.err
26027   rm -f conftest.er1
26028   cat conftest.err >&5
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); } &&
26031          { ac_try='test -z "$ac_c_werror_flag"
26032                          || test ! -s conftest.err'
26033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034   (eval $ac_try) 2>&5
26035   ac_status=$?
26036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); }; } &&
26038          { ac_try='test -s conftest.$ac_objext'
26039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040   (eval $ac_try) 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); }; }; then
26044   ac_cv_header_mmap_anon=yes
26045 else
26046   echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049 ac_cv_header_mmap_anon=no
26050 fi
26051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26052   ac_ext=c
26053 ac_cpp='$CPP $CPPFLAGS'
26054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26057
26058
26059 fi
26060 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26061 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26062 if test "$ac_cv_header_mmap_anon" = yes; then
26063
26064 cat >>confdefs.h <<\_ACEOF
26065 #define HAVE_MMAP_ANONYMOUS
26066 _ACEOF
26067
26068 fi
26069
26070
26071
26072
26073 for ac_header in inttypes.h stdint.h
26074 do
26075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26077   echo "$as_me:$LINENO: checking for $ac_header" >&5
26078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26080   echo $ECHO_N "(cached) $ECHO_C" >&6
26081 fi
26082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26084 else
26085   # Is the header compilable?
26086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26088 cat >conftest.$ac_ext <<_ACEOF
26089 /* confdefs.h.  */
26090 _ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h.  */
26094 $ac_includes_default
26095 #include <$ac_header>
26096 _ACEOF
26097 rm -f conftest.$ac_objext
26098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26099   (eval $ac_compile) 2>conftest.er1
26100   ac_status=$?
26101   grep -v '^ *+' conftest.er1 >conftest.err
26102   rm -f conftest.er1
26103   cat conftest.err >&5
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); } &&
26106          { ac_try='test -z "$ac_c_werror_flag"
26107                          || test ! -s conftest.err'
26108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109   (eval $ac_try) 2>&5
26110   ac_status=$?
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); }; } &&
26113          { ac_try='test -s conftest.$ac_objext'
26114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115   (eval $ac_try) 2>&5
26116   ac_status=$?
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); }; }; then
26119   ac_header_compiler=yes
26120 else
26121   echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26123
26124 ac_header_compiler=no
26125 fi
26126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26128 echo "${ECHO_T}$ac_header_compiler" >&6
26129
26130 # Is the header present?
26131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26133 cat >conftest.$ac_ext <<_ACEOF
26134 /* confdefs.h.  */
26135 _ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h.  */
26139 #include <$ac_header>
26140 _ACEOF
26141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26143   ac_status=$?
26144   grep -v '^ *+' conftest.er1 >conftest.err
26145   rm -f conftest.er1
26146   cat conftest.err >&5
26147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148   (exit $ac_status); } >/dev/null; then
26149   if test -s conftest.err; then
26150     ac_cpp_err=$ac_c_preproc_warn_flag
26151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26152   else
26153     ac_cpp_err=
26154   fi
26155 else
26156   ac_cpp_err=yes
26157 fi
26158 if test -z "$ac_cpp_err"; then
26159   ac_header_preproc=yes
26160 else
26161   echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164   ac_header_preproc=no
26165 fi
26166 rm -f conftest.err conftest.$ac_ext
26167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26168 echo "${ECHO_T}$ac_header_preproc" >&6
26169
26170 # So?  What about this header?
26171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26172   yes:no: )
26173     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26177     ac_header_preproc=yes
26178     ;;
26179   no:yes:* )
26180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26182     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26183 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26184     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26186     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26187 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26190     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26192     (
26193       cat <<\_ASBOX
26194 ## ----------------------------------- ##
26195 ## Report this to llvmbugs@cs.uiuc.edu ##
26196 ## ----------------------------------- ##
26197 _ASBOX
26198     ) |
26199       sed "s/^/$as_me: WARNING:     /" >&2
26200     ;;
26201 esac
26202 echo "$as_me:$LINENO: checking for $ac_header" >&5
26203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26205   echo $ECHO_N "(cached) $ECHO_C" >&6
26206 else
26207   eval "$as_ac_Header=\$ac_header_preproc"
26208 fi
26209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26211
26212 fi
26213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26214   cat >>confdefs.h <<_ACEOF
26215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26216 _ACEOF
26217
26218 fi
26219
26220 done
26221
26222
26223
26224 echo "$as_me:$LINENO: checking for pid_t" >&5
26225 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26226 if test "${ac_cv_type_pid_t+set}" = set; then
26227   echo $ECHO_N "(cached) $ECHO_C" >&6
26228 else
26229   cat >conftest.$ac_ext <<_ACEOF
26230 /* confdefs.h.  */
26231 _ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h.  */
26235 $ac_includes_default
26236 int
26237 main ()
26238 {
26239 if ((pid_t *) 0)
26240   return 0;
26241 if (sizeof (pid_t))
26242   return 0;
26243   ;
26244   return 0;
26245 }
26246 _ACEOF
26247 rm -f conftest.$ac_objext
26248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26249   (eval $ac_compile) 2>conftest.er1
26250   ac_status=$?
26251   grep -v '^ *+' conftest.er1 >conftest.err
26252   rm -f conftest.er1
26253   cat conftest.err >&5
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); } &&
26256          { ac_try='test -z "$ac_c_werror_flag"
26257                          || test ! -s conftest.err'
26258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259   (eval $ac_try) 2>&5
26260   ac_status=$?
26261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262   (exit $ac_status); }; } &&
26263          { ac_try='test -s conftest.$ac_objext'
26264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26265   (eval $ac_try) 2>&5
26266   ac_status=$?
26267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); }; }; then
26269   ac_cv_type_pid_t=yes
26270 else
26271   echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26273
26274 ac_cv_type_pid_t=no
26275 fi
26276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26277 fi
26278 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26279 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26280 if test $ac_cv_type_pid_t = yes; then
26281   :
26282 else
26283
26284 cat >>confdefs.h <<_ACEOF
26285 #define pid_t int
26286 _ACEOF
26287
26288 fi
26289
26290 echo "$as_me:$LINENO: checking for size_t" >&5
26291 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26292 if test "${ac_cv_type_size_t+set}" = set; then
26293   echo $ECHO_N "(cached) $ECHO_C" >&6
26294 else
26295   cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 $ac_includes_default
26302 int
26303 main ()
26304 {
26305 if ((size_t *) 0)
26306   return 0;
26307 if (sizeof (size_t))
26308   return 0;
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest.$ac_objext
26314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26315   (eval $ac_compile) 2>conftest.er1
26316   ac_status=$?
26317   grep -v '^ *+' conftest.er1 >conftest.err
26318   rm -f conftest.er1
26319   cat conftest.err >&5
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); } &&
26322          { ac_try='test -z "$ac_c_werror_flag"
26323                          || test ! -s conftest.err'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; } &&
26329          { ac_try='test -s conftest.$ac_objext'
26330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331   (eval $ac_try) 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); }; }; then
26335   ac_cv_type_size_t=yes
26336 else
26337   echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26339
26340 ac_cv_type_size_t=no
26341 fi
26342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26343 fi
26344 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26345 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26346 if test $ac_cv_type_size_t = yes; then
26347   :
26348 else
26349
26350 cat >>confdefs.h <<_ACEOF
26351 #define size_t unsigned
26352 _ACEOF
26353
26354 fi
26355
26356 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26357 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26358 if test "${ac_cv_type_signal+set}" = set; then
26359   echo $ECHO_N "(cached) $ECHO_C" >&6
26360 else
26361   cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h.  */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h.  */
26367 #include <sys/types.h>
26368 #include <signal.h>
26369 #ifdef signal
26370 # undef signal
26371 #endif
26372 #ifdef __cplusplus
26373 extern "C" void (*signal (int, void (*)(int)))(int);
26374 #else
26375 void (*signal ()) ();
26376 #endif
26377
26378 int
26379 main ()
26380 {
26381 int i;
26382   ;
26383   return 0;
26384 }
26385 _ACEOF
26386 rm -f conftest.$ac_objext
26387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26388   (eval $ac_compile) 2>conftest.er1
26389   ac_status=$?
26390   grep -v '^ *+' conftest.er1 >conftest.err
26391   rm -f conftest.er1
26392   cat conftest.err >&5
26393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394   (exit $ac_status); } &&
26395          { ac_try='test -z "$ac_c_werror_flag"
26396                          || test ! -s conftest.err'
26397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398   (eval $ac_try) 2>&5
26399   ac_status=$?
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); }; } &&
26402          { ac_try='test -s conftest.$ac_objext'
26403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404   (eval $ac_try) 2>&5
26405   ac_status=$?
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); }; }; then
26408   ac_cv_type_signal=void
26409 else
26410   echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26412
26413 ac_cv_type_signal=int
26414 fi
26415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26416 fi
26417 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26418 echo "${ECHO_T}$ac_cv_type_signal" >&6
26419
26420 cat >>confdefs.h <<_ACEOF
26421 #define RETSIGTYPE $ac_cv_type_signal
26422 _ACEOF
26423
26424
26425 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26426 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26427 if test "${ac_cv_struct_tm+set}" = set; then
26428   echo $ECHO_N "(cached) $ECHO_C" >&6
26429 else
26430   cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436 #include <sys/types.h>
26437 #include <time.h>
26438
26439 int
26440 main ()
26441 {
26442 struct tm *tp; tp->tm_sec;
26443   ;
26444   return 0;
26445 }
26446 _ACEOF
26447 rm -f conftest.$ac_objext
26448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26449   (eval $ac_compile) 2>conftest.er1
26450   ac_status=$?
26451   grep -v '^ *+' conftest.er1 >conftest.err
26452   rm -f conftest.er1
26453   cat conftest.err >&5
26454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455   (exit $ac_status); } &&
26456          { ac_try='test -z "$ac_c_werror_flag"
26457                          || test ! -s conftest.err'
26458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459   (eval $ac_try) 2>&5
26460   ac_status=$?
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); }; } &&
26463          { ac_try='test -s conftest.$ac_objext'
26464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465   (eval $ac_try) 2>&5
26466   ac_status=$?
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); }; }; then
26469   ac_cv_struct_tm=time.h
26470 else
26471   echo "$as_me: failed program was:" >&5
26472 sed 's/^/| /' conftest.$ac_ext >&5
26473
26474 ac_cv_struct_tm=sys/time.h
26475 fi
26476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26477 fi
26478 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26479 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26480 if test $ac_cv_struct_tm = sys/time.h; then
26481
26482 cat >>confdefs.h <<\_ACEOF
26483 #define TM_IN_SYS_TIME 1
26484 _ACEOF
26485
26486 fi
26487
26488 echo "$as_me:$LINENO: checking for int64_t" >&5
26489 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26490 if test "${ac_cv_type_int64_t+set}" = set; then
26491   echo $ECHO_N "(cached) $ECHO_C" >&6
26492 else
26493   cat >conftest.$ac_ext <<_ACEOF
26494 /* confdefs.h.  */
26495 _ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h.  */
26499 $ac_includes_default
26500 int
26501 main ()
26502 {
26503 if ((int64_t *) 0)
26504   return 0;
26505 if (sizeof (int64_t))
26506   return 0;
26507   ;
26508   return 0;
26509 }
26510 _ACEOF
26511 rm -f conftest.$ac_objext
26512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26513   (eval $ac_compile) 2>conftest.er1
26514   ac_status=$?
26515   grep -v '^ *+' conftest.er1 >conftest.err
26516   rm -f conftest.er1
26517   cat conftest.err >&5
26518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519   (exit $ac_status); } &&
26520          { ac_try='test -z "$ac_c_werror_flag"
26521                          || test ! -s conftest.err'
26522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523   (eval $ac_try) 2>&5
26524   ac_status=$?
26525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526   (exit $ac_status); }; } &&
26527          { ac_try='test -s conftest.$ac_objext'
26528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529   (eval $ac_try) 2>&5
26530   ac_status=$?
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); }; }; then
26533   ac_cv_type_int64_t=yes
26534 else
26535   echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26537
26538 ac_cv_type_int64_t=no
26539 fi
26540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26541 fi
26542 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26544 if test $ac_cv_type_int64_t = yes; then
26545
26546 cat >>confdefs.h <<_ACEOF
26547 #define HAVE_INT64_T 1
26548 _ACEOF
26549
26550
26551 else
26552   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26553 echo "$as_me: error: Type int64_t required but not found" >&2;}
26554    { (exit 1); exit 1; }; }
26555 fi
26556
26557 echo "$as_me:$LINENO: checking for uint64_t" >&5
26558 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26559 if test "${ac_cv_type_uint64_t+set}" = set; then
26560   echo $ECHO_N "(cached) $ECHO_C" >&6
26561 else
26562   cat >conftest.$ac_ext <<_ACEOF
26563 /* confdefs.h.  */
26564 _ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h.  */
26568 $ac_includes_default
26569 int
26570 main ()
26571 {
26572 if ((uint64_t *) 0)
26573   return 0;
26574 if (sizeof (uint64_t))
26575   return 0;
26576   ;
26577   return 0;
26578 }
26579 _ACEOF
26580 rm -f conftest.$ac_objext
26581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26582   (eval $ac_compile) 2>conftest.er1
26583   ac_status=$?
26584   grep -v '^ *+' conftest.er1 >conftest.err
26585   rm -f conftest.er1
26586   cat conftest.err >&5
26587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588   (exit $ac_status); } &&
26589          { ac_try='test -z "$ac_c_werror_flag"
26590                          || test ! -s conftest.err'
26591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592   (eval $ac_try) 2>&5
26593   ac_status=$?
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); }; } &&
26596          { ac_try='test -s conftest.$ac_objext'
26597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598   (eval $ac_try) 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; }; then
26602   ac_cv_type_uint64_t=yes
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607 ac_cv_type_uint64_t=no
26608 fi
26609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26610 fi
26611 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26612 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26613 if test $ac_cv_type_uint64_t = yes; then
26614
26615 cat >>confdefs.h <<_ACEOF
26616 #define HAVE_UINT64_T 1
26617 _ACEOF
26618
26619
26620 else
26621   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26622 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26623 if test "${ac_cv_type_u_int64_t+set}" = set; then
26624   echo $ECHO_N "(cached) $ECHO_C" >&6
26625 else
26626   cat >conftest.$ac_ext <<_ACEOF
26627 /* confdefs.h.  */
26628 _ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h.  */
26632 $ac_includes_default
26633 int
26634 main ()
26635 {
26636 if ((u_int64_t *) 0)
26637   return 0;
26638 if (sizeof (u_int64_t))
26639   return 0;
26640   ;
26641   return 0;
26642 }
26643 _ACEOF
26644 rm -f conftest.$ac_objext
26645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26646   (eval $ac_compile) 2>conftest.er1
26647   ac_status=$?
26648   grep -v '^ *+' conftest.er1 >conftest.err
26649   rm -f conftest.er1
26650   cat conftest.err >&5
26651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); } &&
26653          { ac_try='test -z "$ac_c_werror_flag"
26654                          || test ! -s conftest.err'
26655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656   (eval $ac_try) 2>&5
26657   ac_status=$?
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); }; } &&
26660          { ac_try='test -s conftest.$ac_objext'
26661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662   (eval $ac_try) 2>&5
26663   ac_status=$?
26664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665   (exit $ac_status); }; }; then
26666   ac_cv_type_u_int64_t=yes
26667 else
26668   echo "$as_me: failed program was:" >&5
26669 sed 's/^/| /' conftest.$ac_ext >&5
26670
26671 ac_cv_type_u_int64_t=no
26672 fi
26673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26674 fi
26675 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26676 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26677 if test $ac_cv_type_u_int64_t = yes; then
26678
26679 cat >>confdefs.h <<_ACEOF
26680 #define HAVE_U_INT64_T 1
26681 _ACEOF
26682
26683
26684 else
26685   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26686 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26687    { (exit 1); exit 1; }; }
26688 fi
26689
26690 fi
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
26701 do
26702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26703 echo "$as_me:$LINENO: checking for $ac_func" >&5
26704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26705 if eval "test \"\${$as_ac_var+set}\" = set"; then
26706   echo $ECHO_N "(cached) $ECHO_C" >&6
26707 else
26708   cat >conftest.$ac_ext <<_ACEOF
26709 /* confdefs.h.  */
26710 _ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h.  */
26714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26716 #define $ac_func innocuous_$ac_func
26717
26718 /* System header to define __stub macros and hopefully few prototypes,
26719     which can conflict with char $ac_func (); below.
26720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26721     <limits.h> exists even on freestanding compilers.  */
26722
26723 #ifdef __STDC__
26724 # include <limits.h>
26725 #else
26726 # include <assert.h>
26727 #endif
26728
26729 #undef $ac_func
26730
26731 /* Override any gcc2 internal prototype to avoid an error.  */
26732 #ifdef __cplusplus
26733 extern "C"
26734 {
26735 #endif
26736 /* We use char because int might match the return type of a gcc2
26737    builtin and then its argument prototype would still apply.  */
26738 char $ac_func ();
26739 /* The GNU C library defines this for functions which it implements
26740     to always fail with ENOSYS.  Some functions are actually named
26741     something starting with __ and the normal name is an alias.  */
26742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26743 choke me
26744 #else
26745 char (*f) () = $ac_func;
26746 #endif
26747 #ifdef __cplusplus
26748 }
26749 #endif
26750
26751 int
26752 main ()
26753 {
26754 return f != $ac_func;
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext conftest$ac_exeext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26761   (eval $ac_link) 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } &&
26768          { ac_try='test -z "$ac_c_werror_flag"
26769                          || test ! -s conftest.err'
26770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26771   (eval $ac_try) 2>&5
26772   ac_status=$?
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); }; } &&
26775          { ac_try='test -s conftest$ac_exeext'
26776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777   (eval $ac_try) 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; }; then
26781   eval "$as_ac_var=yes"
26782 else
26783   echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26785
26786 eval "$as_ac_var=no"
26787 fi
26788 rm -f conftest.err conftest.$ac_objext \
26789       conftest$ac_exeext conftest.$ac_ext
26790 fi
26791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26793 if test `eval echo '${'$as_ac_var'}'` = yes; then
26794   cat >>confdefs.h <<_ACEOF
26795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26796 _ACEOF
26797
26798 fi
26799 done
26800
26801
26802
26803
26804 for ac_func in mkdtemp mkstemp mktemp
26805 do
26806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26807 echo "$as_me:$LINENO: checking for $ac_func" >&5
26808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26809 if eval "test \"\${$as_ac_var+set}\" = set"; then
26810   echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812   cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26820 #define $ac_func innocuous_$ac_func
26821
26822 /* System header to define __stub macros and hopefully few prototypes,
26823     which can conflict with char $ac_func (); below.
26824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26825     <limits.h> exists even on freestanding compilers.  */
26826
26827 #ifdef __STDC__
26828 # include <limits.h>
26829 #else
26830 # include <assert.h>
26831 #endif
26832
26833 #undef $ac_func
26834
26835 /* Override any gcc2 internal prototype to avoid an error.  */
26836 #ifdef __cplusplus
26837 extern "C"
26838 {
26839 #endif
26840 /* We use char because int might match the return type of a gcc2
26841    builtin and then its argument prototype would still apply.  */
26842 char $ac_func ();
26843 /* The GNU C library defines this for functions which it implements
26844     to always fail with ENOSYS.  Some functions are actually named
26845     something starting with __ and the normal name is an alias.  */
26846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26847 choke me
26848 #else
26849 char (*f) () = $ac_func;
26850 #endif
26851 #ifdef __cplusplus
26852 }
26853 #endif
26854
26855 int
26856 main ()
26857 {
26858 return f != $ac_func;
26859   ;
26860   return 0;
26861 }
26862 _ACEOF
26863 rm -f conftest.$ac_objext conftest$ac_exeext
26864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26865   (eval $ac_link) 2>conftest.er1
26866   ac_status=$?
26867   grep -v '^ *+' conftest.er1 >conftest.err
26868   rm -f conftest.er1
26869   cat conftest.err >&5
26870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); } &&
26872          { ac_try='test -z "$ac_c_werror_flag"
26873                          || test ! -s conftest.err'
26874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875   (eval $ac_try) 2>&5
26876   ac_status=$?
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); }; } &&
26879          { ac_try='test -s conftest$ac_exeext'
26880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881   (eval $ac_try) 2>&5
26882   ac_status=$?
26883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); }; }; then
26885   eval "$as_ac_var=yes"
26886 else
26887   echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26889
26890 eval "$as_ac_var=no"
26891 fi
26892 rm -f conftest.err conftest.$ac_objext \
26893       conftest$ac_exeext conftest.$ac_ext
26894 fi
26895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26897 if test `eval echo '${'$as_ac_var'}'` = yes; then
26898   cat >>confdefs.h <<_ACEOF
26899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26900 _ACEOF
26901
26902 fi
26903 done
26904
26905
26906
26907
26908
26909
26910 for ac_func in realpath strdup strtoq strtoll sysconf
26911 do
26912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26913 echo "$as_me:$LINENO: checking for $ac_func" >&5
26914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26915 if eval "test \"\${$as_ac_var+set}\" = set"; then
26916   echo $ECHO_N "(cached) $ECHO_C" >&6
26917 else
26918   cat >conftest.$ac_ext <<_ACEOF
26919 /* confdefs.h.  */
26920 _ACEOF
26921 cat confdefs.h >>conftest.$ac_ext
26922 cat >>conftest.$ac_ext <<_ACEOF
26923 /* end confdefs.h.  */
26924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26926 #define $ac_func innocuous_$ac_func
26927
26928 /* System header to define __stub macros and hopefully few prototypes,
26929     which can conflict with char $ac_func (); below.
26930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26931     <limits.h> exists even on freestanding compilers.  */
26932
26933 #ifdef __STDC__
26934 # include <limits.h>
26935 #else
26936 # include <assert.h>
26937 #endif
26938
26939 #undef $ac_func
26940
26941 /* Override any gcc2 internal prototype to avoid an error.  */
26942 #ifdef __cplusplus
26943 extern "C"
26944 {
26945 #endif
26946 /* We use char because int might match the return type of a gcc2
26947    builtin and then its argument prototype would still apply.  */
26948 char $ac_func ();
26949 /* The GNU C library defines this for functions which it implements
26950     to always fail with ENOSYS.  Some functions are actually named
26951     something starting with __ and the normal name is an alias.  */
26952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26953 choke me
26954 #else
26955 char (*f) () = $ac_func;
26956 #endif
26957 #ifdef __cplusplus
26958 }
26959 #endif
26960
26961 int
26962 main ()
26963 {
26964 return f != $ac_func;
26965   ;
26966   return 0;
26967 }
26968 _ACEOF
26969 rm -f conftest.$ac_objext conftest$ac_exeext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26971   (eval $ac_link) 2>conftest.er1
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
26975   cat conftest.err >&5
26976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); } &&
26978          { ac_try='test -z "$ac_c_werror_flag"
26979                          || test ! -s conftest.err'
26980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981   (eval $ac_try) 2>&5
26982   ac_status=$?
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); }; } &&
26985          { ac_try='test -s conftest$ac_exeext'
26986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26987   (eval $ac_try) 2>&5
26988   ac_status=$?
26989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990   (exit $ac_status); }; }; then
26991   eval "$as_ac_var=yes"
26992 else
26993   echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26995
26996 eval "$as_ac_var=no"
26997 fi
26998 rm -f conftest.err conftest.$ac_objext \
26999       conftest$ac_exeext conftest.$ac_ext
27000 fi
27001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27003 if test `eval echo '${'$as_ac_var'}'` = yes; then
27004   cat >>confdefs.h <<_ACEOF
27005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27006 _ACEOF
27007
27008 fi
27009 done
27010
27011 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27012 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27013 if test "${llvm_cv_c_printf_a+set}" = set; then
27014   echo $ECHO_N "(cached) $ECHO_C" >&6
27015 else
27016   ac_ext=c
27017 ac_cpp='$CPP $CPPFLAGS'
27018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27021
27022  if test "$cross_compiling" = yes; then
27023   llvmac_cv_c_printf_a=no
27024 else
27025   cat >conftest.$ac_ext <<_ACEOF
27026
27027   /* confdefs.h.  */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h.  */
27032
27033 #include <stdio.h>
27034 #include <stdlib.h>
27035
27036 int
27037 main ()
27038 {
27039
27040 volatile double A, B;
27041 char Buffer[100];
27042 A = 1;
27043 A /= 10.0;
27044 sprintf(Buffer, "%a", A);
27045 B = atof(Buffer);
27046 if (A != B)
27047   return (1);
27048 if (A != 0x1.999999999999ap-4)
27049   return (1);
27050 return (0);
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 rm -f conftest$ac_exeext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27057   (eval $ac_link) 2>&5
27058   ac_status=$?
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062   (eval $ac_try) 2>&5
27063   ac_status=$?
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); }; }; then
27066   llvm_cv_c_printf_a=yes
27067 else
27068   echo "$as_me: program exited with status $ac_status" >&5
27069 echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072 ( exit $ac_status )
27073 llvmac_cv_c_printf_a=no
27074 fi
27075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27076 fi
27077  ac_ext=c
27078 ac_cpp='$CPP $CPPFLAGS'
27079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27082
27083 fi
27084 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27085 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27086  if test "$llvm_cv_c_printf_a" = "yes"; then
27087
27088 cat >>confdefs.h <<\_ACEOF
27089 #define HAVE_PRINTF_A 1
27090 _ACEOF
27091
27092  fi
27093
27094 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27095 # for constant arguments.  Useless!
27096 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27097 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27098 if test "${ac_cv_working_alloca_h+set}" = set; then
27099   echo $ECHO_N "(cached) $ECHO_C" >&6
27100 else
27101   cat >conftest.$ac_ext <<_ACEOF
27102 /* confdefs.h.  */
27103 _ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h.  */
27107 #include <alloca.h>
27108 int
27109 main ()
27110 {
27111 char *p = (char *) alloca (2 * sizeof (int));
27112   ;
27113   return 0;
27114 }
27115 _ACEOF
27116 rm -f conftest.$ac_objext conftest$ac_exeext
27117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27118   (eval $ac_link) 2>conftest.er1
27119   ac_status=$?
27120   grep -v '^ *+' conftest.er1 >conftest.err
27121   rm -f conftest.er1
27122   cat conftest.err >&5
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); } &&
27125          { ac_try='test -z "$ac_c_werror_flag"
27126                          || test ! -s conftest.err'
27127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128   (eval $ac_try) 2>&5
27129   ac_status=$?
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); }; } &&
27132          { ac_try='test -s conftest$ac_exeext'
27133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134   (eval $ac_try) 2>&5
27135   ac_status=$?
27136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); }; }; then
27138   ac_cv_working_alloca_h=yes
27139 else
27140   echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27142
27143 ac_cv_working_alloca_h=no
27144 fi
27145 rm -f conftest.err conftest.$ac_objext \
27146       conftest$ac_exeext conftest.$ac_ext
27147 fi
27148 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27149 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27150 if test $ac_cv_working_alloca_h = yes; then
27151
27152 cat >>confdefs.h <<\_ACEOF
27153 #define HAVE_ALLOCA_H 1
27154 _ACEOF
27155
27156 fi
27157
27158 echo "$as_me:$LINENO: checking for alloca" >&5
27159 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27160 if test "${ac_cv_func_alloca_works+set}" = set; then
27161   echo $ECHO_N "(cached) $ECHO_C" >&6
27162 else
27163   cat >conftest.$ac_ext <<_ACEOF
27164 /* confdefs.h.  */
27165 _ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h.  */
27169 #ifdef __GNUC__
27170 # define alloca __builtin_alloca
27171 #else
27172 # ifdef _MSC_VER
27173 #  include <malloc.h>
27174 #  define alloca _alloca
27175 # else
27176 #  if HAVE_ALLOCA_H
27177 #   include <alloca.h>
27178 #  else
27179 #   ifdef _AIX
27180  #pragma alloca
27181 #   else
27182 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27183 char *alloca ();
27184 #    endif
27185 #   endif
27186 #  endif
27187 # endif
27188 #endif
27189
27190 int
27191 main ()
27192 {
27193 char *p = (char *) alloca (1);
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 rm -f conftest.$ac_objext conftest$ac_exeext
27199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27200   (eval $ac_link) 2>conftest.er1
27201   ac_status=$?
27202   grep -v '^ *+' conftest.er1 >conftest.err
27203   rm -f conftest.er1
27204   cat conftest.err >&5
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); } &&
27207          { ac_try='test -z "$ac_c_werror_flag"
27208                          || test ! -s conftest.err'
27209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210   (eval $ac_try) 2>&5
27211   ac_status=$?
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); }; } &&
27214          { ac_try='test -s conftest$ac_exeext'
27215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216   (eval $ac_try) 2>&5
27217   ac_status=$?
27218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); }; }; then
27220   ac_cv_func_alloca_works=yes
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225 ac_cv_func_alloca_works=no
27226 fi
27227 rm -f conftest.err conftest.$ac_objext \
27228       conftest$ac_exeext conftest.$ac_ext
27229 fi
27230 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27231 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27232
27233 if test $ac_cv_func_alloca_works = yes; then
27234
27235 cat >>confdefs.h <<\_ACEOF
27236 #define HAVE_ALLOCA 1
27237 _ACEOF
27238
27239 else
27240   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27241 # that cause trouble.  Some versions do not even contain alloca or
27242 # contain a buggy version.  If you still want to use their alloca,
27243 # use ar to extract alloca.o from them instead of compiling alloca.c.
27244
27245 ALLOCA=alloca.$ac_objext
27246
27247 cat >>confdefs.h <<\_ACEOF
27248 #define C_ALLOCA 1
27249 _ACEOF
27250
27251
27252 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27253 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27254 if test "${ac_cv_os_cray+set}" = set; then
27255   echo $ECHO_N "(cached) $ECHO_C" >&6
27256 else
27257   cat >conftest.$ac_ext <<_ACEOF
27258 /* confdefs.h.  */
27259 _ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h.  */
27263 #if defined(CRAY) && ! defined(CRAY2)
27264 webecray
27265 #else
27266 wenotbecray
27267 #endif
27268
27269 _ACEOF
27270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27271   $EGREP "webecray" >/dev/null 2>&1; then
27272   ac_cv_os_cray=yes
27273 else
27274   ac_cv_os_cray=no
27275 fi
27276 rm -f conftest*
27277
27278 fi
27279 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27280 echo "${ECHO_T}$ac_cv_os_cray" >&6
27281 if test $ac_cv_os_cray = yes; then
27282   for ac_func in _getb67 GETB67 getb67; do
27283     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27284 echo "$as_me:$LINENO: checking for $ac_func" >&5
27285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27286 if eval "test \"\${$as_ac_var+set}\" = set"; then
27287   echo $ECHO_N "(cached) $ECHO_C" >&6
27288 else
27289   cat >conftest.$ac_ext <<_ACEOF
27290 /* confdefs.h.  */
27291 _ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h.  */
27295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27297 #define $ac_func innocuous_$ac_func
27298
27299 /* System header to define __stub macros and hopefully few prototypes,
27300     which can conflict with char $ac_func (); below.
27301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27302     <limits.h> exists even on freestanding compilers.  */
27303
27304 #ifdef __STDC__
27305 # include <limits.h>
27306 #else
27307 # include <assert.h>
27308 #endif
27309
27310 #undef $ac_func
27311
27312 /* Override any gcc2 internal prototype to avoid an error.  */
27313 #ifdef __cplusplus
27314 extern "C"
27315 {
27316 #endif
27317 /* We use char because int might match the return type of a gcc2
27318    builtin and then its argument prototype would still apply.  */
27319 char $ac_func ();
27320 /* The GNU C library defines this for functions which it implements
27321     to always fail with ENOSYS.  Some functions are actually named
27322     something starting with __ and the normal name is an alias.  */
27323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27324 choke me
27325 #else
27326 char (*f) () = $ac_func;
27327 #endif
27328 #ifdef __cplusplus
27329 }
27330 #endif
27331
27332 int
27333 main ()
27334 {
27335 return f != $ac_func;
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 rm -f conftest.$ac_objext conftest$ac_exeext
27341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27342   (eval $ac_link) 2>conftest.er1
27343   ac_status=$?
27344   grep -v '^ *+' conftest.er1 >conftest.err
27345   rm -f conftest.er1
27346   cat conftest.err >&5
27347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); } &&
27349          { ac_try='test -z "$ac_c_werror_flag"
27350                          || test ! -s conftest.err'
27351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352   (eval $ac_try) 2>&5
27353   ac_status=$?
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); }; } &&
27356          { ac_try='test -s conftest$ac_exeext'
27357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358   (eval $ac_try) 2>&5
27359   ac_status=$?
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); }; }; then
27362   eval "$as_ac_var=yes"
27363 else
27364   echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.$ac_ext >&5
27366
27367 eval "$as_ac_var=no"
27368 fi
27369 rm -f conftest.err conftest.$ac_objext \
27370       conftest$ac_exeext conftest.$ac_ext
27371 fi
27372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27374 if test `eval echo '${'$as_ac_var'}'` = yes; then
27375
27376 cat >>confdefs.h <<_ACEOF
27377 #define CRAY_STACKSEG_END $ac_func
27378 _ACEOF
27379
27380     break
27381 fi
27382
27383   done
27384 fi
27385
27386 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27387 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27388 if test "${ac_cv_c_stack_direction+set}" = set; then
27389   echo $ECHO_N "(cached) $ECHO_C" >&6
27390 else
27391   if test "$cross_compiling" = yes; then
27392   ac_cv_c_stack_direction=0
27393 else
27394   cat >conftest.$ac_ext <<_ACEOF
27395 /* confdefs.h.  */
27396 _ACEOF
27397 cat confdefs.h >>conftest.$ac_ext
27398 cat >>conftest.$ac_ext <<_ACEOF
27399 /* end confdefs.h.  */
27400 int
27401 find_stack_direction ()
27402 {
27403   static char *addr = 0;
27404   auto char dummy;
27405   if (addr == 0)
27406     {
27407       addr = &dummy;
27408       return find_stack_direction ();
27409     }
27410   else
27411     return (&dummy > addr) ? 1 : -1;
27412 }
27413
27414 int
27415 main ()
27416 {
27417   exit (find_stack_direction () < 0);
27418 }
27419 _ACEOF
27420 rm -f conftest$ac_exeext
27421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27422   (eval $ac_link) 2>&5
27423   ac_status=$?
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27427   (eval $ac_try) 2>&5
27428   ac_status=$?
27429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430   (exit $ac_status); }; }; then
27431   ac_cv_c_stack_direction=1
27432 else
27433   echo "$as_me: program exited with status $ac_status" >&5
27434 echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27436
27437 ( exit $ac_status )
27438 ac_cv_c_stack_direction=-1
27439 fi
27440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27441 fi
27442 fi
27443 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27444 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27445
27446 cat >>confdefs.h <<_ACEOF
27447 #define STACK_DIRECTION $ac_cv_c_stack_direction
27448 _ACEOF
27449
27450
27451 fi
27452
27453
27454 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27455 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27456 if test "${ac_cv_func_rand48+set}" = set; then
27457   echo $ECHO_N "(cached) $ECHO_C" >&6
27458 else
27459   ac_ext=cc
27460 ac_cpp='$CXXCPP $CPPFLAGS'
27461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27464
27465    cat >conftest.$ac_ext <<_ACEOF
27466 /* confdefs.h.  */
27467 _ACEOF
27468 cat confdefs.h >>conftest.$ac_ext
27469 cat >>conftest.$ac_ext <<_ACEOF
27470 /* end confdefs.h.  */
27471 #include <stdlib.h>
27472 int
27473 main ()
27474 {
27475 srand48(0);lrand48();drand48();
27476   ;
27477   return 0;
27478 }
27479 _ACEOF
27480 rm -f conftest.$ac_objext
27481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27482   (eval $ac_compile) 2>conftest.er1
27483   ac_status=$?
27484   grep -v '^ *+' conftest.er1 >conftest.err
27485   rm -f conftest.er1
27486   cat conftest.err >&5
27487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); } &&
27489          { ac_try='test -z "$ac_cxx_werror_flag"
27490                          || test ! -s conftest.err'
27491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492   (eval $ac_try) 2>&5
27493   ac_status=$?
27494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495   (exit $ac_status); }; } &&
27496          { ac_try='test -s conftest.$ac_objext'
27497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498   (eval $ac_try) 2>&5
27499   ac_status=$?
27500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501   (exit $ac_status); }; }; then
27502   ac_cv_func_rand48=yes
27503 else
27504   echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27506
27507 ac_cv_func_rand48=no
27508 fi
27509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27510   ac_ext=c
27511 ac_cpp='$CPP $CPPFLAGS'
27512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27515
27516 fi
27517 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27518 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27519
27520 if test "$ac_cv_func_rand48" = "yes" ; then
27521
27522 cat >>confdefs.h <<\_ACEOF
27523 #define HAVE_RAND48 1
27524 _ACEOF
27525
27526 fi
27527
27528
27529 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27530 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27531 if test "${ac_cv_cxx_namespaces+set}" = set; then
27532   echo $ECHO_N "(cached) $ECHO_C" >&6
27533 else
27534   ac_ext=cc
27535 ac_cpp='$CXXCPP $CPPFLAGS'
27536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27539
27540  cat >conftest.$ac_ext <<_ACEOF
27541 /* confdefs.h.  */
27542 _ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h.  */
27546 namespace Outer { namespace Inner { int i = 0; }}
27547 int
27548 main ()
27549 {
27550 using namespace Outer::Inner; return i;
27551   ;
27552   return 0;
27553 }
27554 _ACEOF
27555 rm -f conftest.$ac_objext
27556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27557   (eval $ac_compile) 2>conftest.er1
27558   ac_status=$?
27559   grep -v '^ *+' conftest.er1 >conftest.err
27560   rm -f conftest.er1
27561   cat conftest.err >&5
27562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563   (exit $ac_status); } &&
27564          { ac_try='test -z "$ac_cxx_werror_flag"
27565                          || test ! -s conftest.err'
27566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567   (eval $ac_try) 2>&5
27568   ac_status=$?
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); }; } &&
27571          { ac_try='test -s conftest.$ac_objext'
27572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573   (eval $ac_try) 2>&5
27574   ac_status=$?
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); }; }; then
27577   ac_cv_cxx_namespaces=yes
27578 else
27579   echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27581
27582 ac_cv_cxx_namespaces=no
27583 fi
27584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27585  ac_ext=c
27586 ac_cpp='$CPP $CPPFLAGS'
27587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27590
27591
27592 fi
27593 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27594 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27595 if test "$ac_cv_cxx_namespaces" = yes; then
27596
27597 cat >>confdefs.h <<\_ACEOF
27598 #define HAVE_NAMESPACES
27599 _ACEOF
27600
27601 fi
27602
27603 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27604 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27605 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27606   echo $ECHO_N "(cached) $ECHO_C" >&6
27607 else
27608
27609   ac_ext=cc
27610 ac_cpp='$CXXCPP $CPPFLAGS'
27611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27614
27615   cat >conftest.$ac_ext <<_ACEOF
27616 /* confdefs.h.  */
27617 _ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h.  */
27621 #include <ext/hash_map>
27622 #ifdef HAVE_NAMESPACES
27623 using namespace std;
27624 #endif
27625 int
27626 main ()
27627 {
27628 hash_map<int, int> t;
27629   ;
27630   return 0;
27631 }
27632 _ACEOF
27633 rm -f conftest.$ac_objext
27634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27635   (eval $ac_compile) 2>conftest.er1
27636   ac_status=$?
27637   grep -v '^ *+' conftest.er1 >conftest.err
27638   rm -f conftest.er1
27639   cat conftest.err >&5
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); } &&
27642          { ac_try='test -z "$ac_cxx_werror_flag"
27643                          || test ! -s conftest.err'
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); }; } &&
27649          { ac_try='test -s conftest.$ac_objext'
27650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651   (eval $ac_try) 2>&5
27652   ac_status=$?
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); }; }; then
27655   ac_cv_cxx_have_std_ext_hash_map=yes
27656 else
27657   echo "$as_me: failed program was:" >&5
27658 sed 's/^/| /' conftest.$ac_ext >&5
27659
27660 ac_cv_cxx_have_std_ext_hash_map=no
27661 fi
27662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27663   ac_ext=c
27664 ac_cpp='$CPP $CPPFLAGS'
27665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27668
27669 fi
27670 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27671 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27672  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27673  then
27674
27675 cat >>confdefs.h <<\_ACEOF
27676 #define HAVE_STD_EXT_HASH_MAP 1
27677 _ACEOF
27678
27679  else
27680
27681 cat >>confdefs.h <<\_ACEOF
27682 #define HAVE_STD_EXT_HASH_MAP 0
27683 _ACEOF
27684
27685  fi
27686
27687  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27688 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27689 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692
27693   ac_ext=cc
27694 ac_cpp='$CXXCPP $CPPFLAGS'
27695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27698
27699   cat >conftest.$ac_ext <<_ACEOF
27700 /* confdefs.h.  */
27701 _ACEOF
27702 cat confdefs.h >>conftest.$ac_ext
27703 cat >>conftest.$ac_ext <<_ACEOF
27704 /* end confdefs.h.  */
27705 #include <ext/hash_map>
27706 #ifdef HAVE_NAMESPACES
27707 using namespace __gnu_cxx;
27708 #endif
27709 int
27710 main ()
27711 {
27712 hash_map<int,int> t;
27713   ;
27714   return 0;
27715 }
27716 _ACEOF
27717 rm -f conftest.$ac_objext
27718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27719   (eval $ac_compile) 2>conftest.er1
27720   ac_status=$?
27721   grep -v '^ *+' conftest.er1 >conftest.err
27722   rm -f conftest.er1
27723   cat conftest.err >&5
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); } &&
27726          { ac_try='test -z "$ac_cxx_werror_flag"
27727                          || test ! -s conftest.err'
27728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729   (eval $ac_try) 2>&5
27730   ac_status=$?
27731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732   (exit $ac_status); }; } &&
27733          { ac_try='test -s conftest.$ac_objext'
27734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27735   (eval $ac_try) 2>&5
27736   ac_status=$?
27737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738   (exit $ac_status); }; }; then
27739   ac_cv_cxx_have_gnu_ext_hash_map=yes
27740 else
27741   echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27743
27744 ac_cv_cxx_have_gnu_ext_hash_map=no
27745 fi
27746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27747   ac_ext=c
27748 ac_cpp='$CPP $CPPFLAGS'
27749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27752
27753 fi
27754 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27755 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27756  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27757  then
27758
27759 cat >>confdefs.h <<\_ACEOF
27760 #define HAVE_GNU_EXT_HASH_MAP 1
27761 _ACEOF
27762
27763  else
27764
27765 cat >>confdefs.h <<\_ACEOF
27766 #define HAVE_GNU_EXT_HASH_MAP 0
27767 _ACEOF
27768
27769  fi
27770
27771  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27772 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27773 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27774   echo $ECHO_N "(cached) $ECHO_C" >&6
27775 else
27776
27777   ac_ext=cc
27778 ac_cpp='$CXXCPP $CPPFLAGS'
27779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27782
27783   cat >conftest.$ac_ext <<_ACEOF
27784 /* confdefs.h.  */
27785 _ACEOF
27786 cat confdefs.h >>conftest.$ac_ext
27787 cat >>conftest.$ac_ext <<_ACEOF
27788 /* end confdefs.h.  */
27789 #include <hash_map>
27790 int
27791 main ()
27792 {
27793 hash_map<int,int> t;
27794   ;
27795   return 0;
27796 }
27797 _ACEOF
27798 rm -f conftest.$ac_objext
27799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27800   (eval $ac_compile) 2>conftest.er1
27801   ac_status=$?
27802   grep -v '^ *+' conftest.er1 >conftest.err
27803   rm -f conftest.er1
27804   cat conftest.err >&5
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); } &&
27807          { ac_try='test -z "$ac_cxx_werror_flag"
27808                          || test ! -s conftest.err'
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); }; } &&
27814          { ac_try='test -s conftest.$ac_objext'
27815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816   (eval $ac_try) 2>&5
27817   ac_status=$?
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); }; }; then
27820   ac_cv_cxx_have_global_hash_map=yes
27821 else
27822   echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27824
27825 ac_cv_cxx_have_global_hash_map=no
27826 fi
27827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27828   ac_ext=c
27829 ac_cpp='$CPP $CPPFLAGS'
27830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27833
27834 fi
27835 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27836 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27837  if test "$ac_cv_cxx_have_global_hash_map" = yes
27838  then
27839
27840 cat >>confdefs.h <<\_ACEOF
27841 #define HAVE_GLOBAL_HASH_MAP 1
27842 _ACEOF
27843
27844  else
27845
27846 cat >>confdefs.h <<\_ACEOF
27847 #define HAVE_GLOBAL_HASH_MAP 0
27848 _ACEOF
27849
27850  fi
27851
27852 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27853 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27854 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27855   echo $ECHO_N "(cached) $ECHO_C" >&6
27856 else
27857
27858   ac_ext=cc
27859 ac_cpp='$CXXCPP $CPPFLAGS'
27860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27863
27864   cat >conftest.$ac_ext <<_ACEOF
27865 /* confdefs.h.  */
27866 _ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h.  */
27870 #include <ext/hash_set>
27871 #ifdef HAVE_NAMESPACES
27872 using namespace std;
27873 #endif
27874 int
27875 main ()
27876 {
27877 hash_set<int> t;
27878   ;
27879   return 0;
27880 }
27881 _ACEOF
27882 rm -f conftest.$ac_objext
27883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27884   (eval $ac_compile) 2>conftest.er1
27885   ac_status=$?
27886   grep -v '^ *+' conftest.er1 >conftest.err
27887   rm -f conftest.er1
27888   cat conftest.err >&5
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); } &&
27891          { ac_try='test -z "$ac_cxx_werror_flag"
27892                          || test ! -s conftest.err'
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); }; } &&
27898          { ac_try='test -s conftest.$ac_objext'
27899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27900   (eval $ac_try) 2>&5
27901   ac_status=$?
27902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903   (exit $ac_status); }; }; then
27904   ac_cv_cxx_have_std_ext_hash_set=yes
27905 else
27906   echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27908
27909 ac_cv_cxx_have_std_ext_hash_set=no
27910 fi
27911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27912   ac_ext=c
27913 ac_cpp='$CPP $CPPFLAGS'
27914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27917
27918 fi
27919 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27920 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27921  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27922  then
27923
27924 cat >>confdefs.h <<\_ACEOF
27925 #define HAVE_STD_EXT_HASH_SET 1
27926 _ACEOF
27927
27928  else
27929
27930 cat >>confdefs.h <<\_ACEOF
27931 #define HAVE_STD_EXT_HASH_SET 0
27932 _ACEOF
27933
27934  fi
27935
27936  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27937 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27938 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27939   echo $ECHO_N "(cached) $ECHO_C" >&6
27940 else
27941
27942   ac_ext=cc
27943 ac_cpp='$CXXCPP $CPPFLAGS'
27944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27947
27948   cat >conftest.$ac_ext <<_ACEOF
27949 /* confdefs.h.  */
27950 _ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h.  */
27954 #include <ext/hash_set>
27955 #ifdef HAVE_NAMESPACES
27956 using namespace __gnu_cxx;
27957 #endif
27958 int
27959 main ()
27960 {
27961 hash_set<int> t;
27962   ;
27963   return 0;
27964 }
27965 _ACEOF
27966 rm -f conftest.$ac_objext
27967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27968   (eval $ac_compile) 2>conftest.er1
27969   ac_status=$?
27970   grep -v '^ *+' conftest.er1 >conftest.err
27971   rm -f conftest.er1
27972   cat conftest.err >&5
27973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974   (exit $ac_status); } &&
27975          { ac_try='test -z "$ac_cxx_werror_flag"
27976                          || test ! -s conftest.err'
27977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27978   (eval $ac_try) 2>&5
27979   ac_status=$?
27980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981   (exit $ac_status); }; } &&
27982          { ac_try='test -s conftest.$ac_objext'
27983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984   (eval $ac_try) 2>&5
27985   ac_status=$?
27986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987   (exit $ac_status); }; }; then
27988   ac_cv_cxx_have_gnu_ext_hash_set=yes
27989 else
27990   echo "$as_me: failed program was:" >&5
27991 sed 's/^/| /' conftest.$ac_ext >&5
27992
27993 ac_cv_cxx_have_gnu_ext_hash_set=no
27994 fi
27995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27996   ac_ext=c
27997 ac_cpp='$CPP $CPPFLAGS'
27998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28001
28002 fi
28003 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28004 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28005  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28006  then
28007
28008 cat >>confdefs.h <<\_ACEOF
28009 #define HAVE_GNU_EXT_HASH_SET 1
28010 _ACEOF
28011
28012  else
28013
28014 cat >>confdefs.h <<\_ACEOF
28015 #define HAVE_GNU_EXT_HASH_SET 0
28016 _ACEOF
28017
28018  fi
28019
28020  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28021 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28022 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28023   echo $ECHO_N "(cached) $ECHO_C" >&6
28024 else
28025
28026   ac_ext=cc
28027 ac_cpp='$CXXCPP $CPPFLAGS'
28028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28031
28032   cat >conftest.$ac_ext <<_ACEOF
28033 /* confdefs.h.  */
28034 _ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h.  */
28038 #include <hash_set>
28039 int
28040 main ()
28041 {
28042 hash_set<int> t; return 0;
28043   ;
28044   return 0;
28045 }
28046 _ACEOF
28047 rm -f conftest.$ac_objext
28048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28049   (eval $ac_compile) 2>conftest.er1
28050   ac_status=$?
28051   grep -v '^ *+' conftest.er1 >conftest.err
28052   rm -f conftest.er1
28053   cat conftest.err >&5
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } &&
28056          { ac_try='test -z "$ac_cxx_werror_flag"
28057                          || test ! -s conftest.err'
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); }; } &&
28063          { ac_try='test -s conftest.$ac_objext'
28064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065   (eval $ac_try) 2>&5
28066   ac_status=$?
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); }; }; then
28069   ac_cv_cxx_have_global_hash_set=yes
28070 else
28071   echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28073
28074 ac_cv_cxx_have_global_hash_set=no
28075 fi
28076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28077   ac_ext=c
28078 ac_cpp='$CPP $CPPFLAGS'
28079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28082
28083 fi
28084 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28085 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28086  if test "$ac_cv_cxx_have_global_hash_set" = yes
28087  then
28088
28089 cat >>confdefs.h <<\_ACEOF
28090 #define HAVE_GLOBAL_HASH_SET 1
28091 _ACEOF
28092
28093  else
28094
28095 cat >>confdefs.h <<\_ACEOF
28096 #define HAVE_GLOBAL_HASH_SET 0
28097 _ACEOF
28098
28099  fi
28100
28101 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28102 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28103 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28104   echo $ECHO_N "(cached) $ECHO_C" >&6
28105 else
28106
28107   ac_ext=cc
28108 ac_cpp='$CXXCPP $CPPFLAGS'
28109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28112
28113   cat >conftest.$ac_ext <<_ACEOF
28114 /* confdefs.h.  */
28115 _ACEOF
28116 cat confdefs.h >>conftest.$ac_ext
28117 cat >>conftest.$ac_ext <<_ACEOF
28118 /* end confdefs.h.  */
28119 #include <iterator>
28120 #ifdef HAVE_NAMESPACES
28121 using namespace std;
28122 #endif
28123 int
28124 main ()
28125 {
28126 iterator<int,int,int> t; return 0;
28127   ;
28128   return 0;
28129 }
28130 _ACEOF
28131 rm -f conftest.$ac_objext
28132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28133   (eval $ac_compile) 2>conftest.er1
28134   ac_status=$?
28135   grep -v '^ *+' conftest.er1 >conftest.err
28136   rm -f conftest.er1
28137   cat conftest.err >&5
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); } &&
28140          { ac_try='test -z "$ac_cxx_werror_flag"
28141                          || test ! -s conftest.err'
28142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143   (eval $ac_try) 2>&5
28144   ac_status=$?
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); }; } &&
28147          { ac_try='test -s conftest.$ac_objext'
28148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149   (eval $ac_try) 2>&5
28150   ac_status=$?
28151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); }; }; then
28153   ac_cv_cxx_have_std_iterator=yes
28154 else
28155   echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28157
28158 ac_cv_cxx_have_std_iterator=no
28159 fi
28160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28161   ac_ext=c
28162 ac_cpp='$CPP $CPPFLAGS'
28163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28166
28167
28168 fi
28169 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28170 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28171 if test "$ac_cv_cxx_have_std_iterator" = yes
28172 then
28173
28174 cat >>confdefs.h <<\_ACEOF
28175 #define HAVE_STD_ITERATOR 1
28176 _ACEOF
28177
28178 else
28179
28180 cat >>confdefs.h <<\_ACEOF
28181 #define HAVE_STD_ITERATOR 0
28182 _ACEOF
28183
28184 fi
28185
28186 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28187 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28188 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28189   echo $ECHO_N "(cached) $ECHO_C" >&6
28190 else
28191
28192   ac_ext=cc
28193 ac_cpp='$CXXCPP $CPPFLAGS'
28194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28197
28198   cat >conftest.$ac_ext <<_ACEOF
28199 /* confdefs.h.  */
28200 _ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h.  */
28204 #include <iterator>
28205 #ifdef HAVE_NAMESPACES
28206 using namespace std;
28207 #endif
28208 int
28209 main ()
28210 {
28211 bidirectional_iterator<int,int> t; return 0;
28212   ;
28213   return 0;
28214 }
28215 _ACEOF
28216 rm -f conftest.$ac_objext
28217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28218   (eval $ac_compile) 2>conftest.er1
28219   ac_status=$?
28220   grep -v '^ *+' conftest.er1 >conftest.err
28221   rm -f conftest.er1
28222   cat conftest.err >&5
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } &&
28225          { ac_try='test -z "$ac_cxx_werror_flag"
28226                          || test ! -s conftest.err'
28227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228   (eval $ac_try) 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); }; } &&
28232          { ac_try='test -s conftest.$ac_objext'
28233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234   (eval $ac_try) 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); }; }; then
28238   ac_cv_cxx_have_bi_iterator=yes
28239 else
28240   echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28242
28243 ac_cv_cxx_have_bi_iterator=no
28244 fi
28245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28246   ac_ext=c
28247 ac_cpp='$CPP $CPPFLAGS'
28248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28251
28252
28253 fi
28254 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28255 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28256 if test "$ac_cv_cxx_have_bi_iterator" = yes
28257 then
28258
28259 cat >>confdefs.h <<\_ACEOF
28260 #define HAVE_BI_ITERATOR 1
28261 _ACEOF
28262
28263 else
28264
28265 cat >>confdefs.h <<\_ACEOF
28266 #define HAVE_BI_ITERATOR 0
28267 _ACEOF
28268
28269 fi
28270
28271 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28272 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28273 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28274   echo $ECHO_N "(cached) $ECHO_C" >&6
28275 else
28276
28277   ac_ext=cc
28278 ac_cpp='$CXXCPP $CPPFLAGS'
28279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28282
28283   cat >conftest.$ac_ext <<_ACEOF
28284 /* confdefs.h.  */
28285 _ACEOF
28286 cat confdefs.h >>conftest.$ac_ext
28287 cat >>conftest.$ac_ext <<_ACEOF
28288 /* end confdefs.h.  */
28289 #include <iterator>
28290 #ifdef HAVE_NAMESPACES
28291 using namespace std;
28292 #endif
28293 int
28294 main ()
28295 {
28296 forward_iterator<int,int> t; return 0;
28297   ;
28298   return 0;
28299 }
28300 _ACEOF
28301 rm -f conftest.$ac_objext
28302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28303   (eval $ac_compile) 2>conftest.er1
28304   ac_status=$?
28305   grep -v '^ *+' conftest.er1 >conftest.err
28306   rm -f conftest.er1
28307   cat conftest.err >&5
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); } &&
28310          { ac_try='test -z "$ac_cxx_werror_flag"
28311                          || test ! -s conftest.err'
28312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313   (eval $ac_try) 2>&5
28314   ac_status=$?
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); }; } &&
28317          { ac_try='test -s conftest.$ac_objext'
28318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28319   (eval $ac_try) 2>&5
28320   ac_status=$?
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); }; }; then
28323   ac_cv_cxx_have_fwd_iterator=yes
28324 else
28325   echo "$as_me: failed program was:" >&5
28326 sed 's/^/| /' conftest.$ac_ext >&5
28327
28328 ac_cv_cxx_have_fwd_iterator=no
28329 fi
28330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28331   ac_ext=c
28332 ac_cpp='$CPP $CPPFLAGS'
28333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28336
28337
28338 fi
28339 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28340 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28341 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28342 then
28343
28344 cat >>confdefs.h <<\_ACEOF
28345 #define HAVE_FWD_ITERATOR 1
28346 _ACEOF
28347
28348 else
28349
28350 cat >>confdefs.h <<\_ACEOF
28351 #define HAVE_FWD_ITERATOR 0
28352 _ACEOF
28353
28354 fi
28355
28356
28357 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28358 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28359 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28360   echo $ECHO_N "(cached) $ECHO_C" >&6
28361 else
28362   ac_ext=cc
28363 ac_cpp='$CXXCPP $CPPFLAGS'
28364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28367
28368    cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374 #include <math.h>
28375 int
28376 main ()
28377 {
28378 float f; isnan(f);
28379   ;
28380   return 0;
28381 }
28382 _ACEOF
28383 rm -f conftest.$ac_objext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28385   (eval $ac_compile) 2>conftest.er1
28386   ac_status=$?
28387   grep -v '^ *+' conftest.er1 >conftest.err
28388   rm -f conftest.er1
28389   cat conftest.err >&5
28390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391   (exit $ac_status); } &&
28392          { ac_try='test -z "$ac_cxx_werror_flag"
28393                          || test ! -s conftest.err'
28394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395   (eval $ac_try) 2>&5
28396   ac_status=$?
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); }; } &&
28399          { ac_try='test -s conftest.$ac_objext'
28400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401   (eval $ac_try) 2>&5
28402   ac_status=$?
28403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); }; }; then
28405   ac_cv_func_isnan_in_math_h=yes
28406 else
28407   echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28409
28410 ac_cv_func_isnan_in_math_h=no
28411 fi
28412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28413   ac_ext=c
28414 ac_cpp='$CPP $CPPFLAGS'
28415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28418
28419 fi
28420 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28421 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28422
28423
28424 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28425
28426 cat >>confdefs.h <<\_ACEOF
28427 #define HAVE_ISNAN_IN_MATH_H 1
28428 _ACEOF
28429
28430 fi
28431
28432 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28433 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28434 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28435   echo $ECHO_N "(cached) $ECHO_C" >&6
28436 else
28437   ac_ext=cc
28438 ac_cpp='$CXXCPP $CPPFLAGS'
28439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28442
28443    cat >conftest.$ac_ext <<_ACEOF
28444 /* confdefs.h.  */
28445 _ACEOF
28446 cat confdefs.h >>conftest.$ac_ext
28447 cat >>conftest.$ac_ext <<_ACEOF
28448 /* end confdefs.h.  */
28449 #include <cmath>
28450 int
28451 main ()
28452 {
28453 float f; isnan(f);
28454   ;
28455   return 0;
28456 }
28457 _ACEOF
28458 rm -f conftest.$ac_objext
28459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28460   (eval $ac_compile) 2>conftest.er1
28461   ac_status=$?
28462   grep -v '^ *+' conftest.er1 >conftest.err
28463   rm -f conftest.er1
28464   cat conftest.err >&5
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); } &&
28467          { ac_try='test -z "$ac_cxx_werror_flag"
28468                          || test ! -s conftest.err'
28469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470   (eval $ac_try) 2>&5
28471   ac_status=$?
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); }; } &&
28474          { ac_try='test -s conftest.$ac_objext'
28475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476   (eval $ac_try) 2>&5
28477   ac_status=$?
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); }; }; then
28480   ac_cv_func_isnan_in_cmath=yes
28481 else
28482   echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28484
28485 ac_cv_func_isnan_in_cmath=no
28486 fi
28487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28488   ac_ext=c
28489 ac_cpp='$CPP $CPPFLAGS'
28490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28493
28494 fi
28495 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28496 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28497
28498 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28499
28500 cat >>confdefs.h <<\_ACEOF
28501 #define HAVE_ISNAN_IN_CMATH 1
28502 _ACEOF
28503
28504 fi
28505
28506 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28507 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28508 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28509   echo $ECHO_N "(cached) $ECHO_C" >&6
28510 else
28511   ac_ext=cc
28512 ac_cpp='$CXXCPP $CPPFLAGS'
28513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28516
28517    cat >conftest.$ac_ext <<_ACEOF
28518 /* confdefs.h.  */
28519 _ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h.  */
28523 #include <cmath>
28524 int
28525 main ()
28526 {
28527 float f; std::isnan(f);
28528   ;
28529   return 0;
28530 }
28531 _ACEOF
28532 rm -f conftest.$ac_objext
28533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28534   (eval $ac_compile) 2>conftest.er1
28535   ac_status=$?
28536   grep -v '^ *+' conftest.er1 >conftest.err
28537   rm -f conftest.er1
28538   cat conftest.err >&5
28539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540   (exit $ac_status); } &&
28541          { ac_try='test -z "$ac_cxx_werror_flag"
28542                          || test ! -s conftest.err'
28543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544   (eval $ac_try) 2>&5
28545   ac_status=$?
28546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547   (exit $ac_status); }; } &&
28548          { ac_try='test -s conftest.$ac_objext'
28549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28550   (eval $ac_try) 2>&5
28551   ac_status=$?
28552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553   (exit $ac_status); }; }; then
28554   ac_cv_func_std_isnan_in_cmath=yes
28555 else
28556   echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28558
28559 ac_cv_func_std_isnan_in_cmath=no
28560 fi
28561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28562   ac_ext=c
28563 ac_cpp='$CPP $CPPFLAGS'
28564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28567
28568 fi
28569 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28570 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28571
28572 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28573
28574 cat >>confdefs.h <<\_ACEOF
28575 #define HAVE_STD_ISNAN_IN_CMATH 1
28576 _ACEOF
28577
28578 fi
28579
28580
28581 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28582 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28583 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28584   echo $ECHO_N "(cached) $ECHO_C" >&6
28585 else
28586   ac_ext=cc
28587 ac_cpp='$CXXCPP $CPPFLAGS'
28588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28591
28592    cat >conftest.$ac_ext <<_ACEOF
28593 /* confdefs.h.  */
28594 _ACEOF
28595 cat confdefs.h >>conftest.$ac_ext
28596 cat >>conftest.$ac_ext <<_ACEOF
28597 /* end confdefs.h.  */
28598 #include <math.h>
28599 int
28600 main ()
28601 {
28602 float f; isinf(f);
28603   ;
28604   return 0;
28605 }
28606 _ACEOF
28607 rm -f conftest.$ac_objext
28608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28609   (eval $ac_compile) 2>conftest.er1
28610   ac_status=$?
28611   grep -v '^ *+' conftest.er1 >conftest.err
28612   rm -f conftest.er1
28613   cat conftest.err >&5
28614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615   (exit $ac_status); } &&
28616          { ac_try='test -z "$ac_cxx_werror_flag"
28617                          || test ! -s conftest.err'
28618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619   (eval $ac_try) 2>&5
28620   ac_status=$?
28621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622   (exit $ac_status); }; } &&
28623          { ac_try='test -s conftest.$ac_objext'
28624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625   (eval $ac_try) 2>&5
28626   ac_status=$?
28627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628   (exit $ac_status); }; }; then
28629   ac_cv_func_isinf_in_math_h=yes
28630 else
28631   echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634 ac_cv_func_isinf_in_math_h=no
28635 fi
28636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28637   ac_ext=c
28638 ac_cpp='$CPP $CPPFLAGS'
28639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28642
28643 fi
28644 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28645 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28646
28647 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28648
28649 cat >>confdefs.h <<\_ACEOF
28650 #define HAVE_ISINF_IN_MATH_H 1
28651 _ACEOF
28652
28653 fi
28654
28655 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28656 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28657 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   ac_ext=cc
28661 ac_cpp='$CXXCPP $CPPFLAGS'
28662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28665
28666    cat >conftest.$ac_ext <<_ACEOF
28667 /* confdefs.h.  */
28668 _ACEOF
28669 cat confdefs.h >>conftest.$ac_ext
28670 cat >>conftest.$ac_ext <<_ACEOF
28671 /* end confdefs.h.  */
28672 #include <cmath>
28673 int
28674 main ()
28675 {
28676 float f; isinf(f);
28677   ;
28678   return 0;
28679 }
28680 _ACEOF
28681 rm -f conftest.$ac_objext
28682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28683   (eval $ac_compile) 2>conftest.er1
28684   ac_status=$?
28685   grep -v '^ *+' conftest.er1 >conftest.err
28686   rm -f conftest.er1
28687   cat conftest.err >&5
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); } &&
28690          { ac_try='test -z "$ac_cxx_werror_flag"
28691                          || test ! -s conftest.err'
28692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693   (eval $ac_try) 2>&5
28694   ac_status=$?
28695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696   (exit $ac_status); }; } &&
28697          { ac_try='test -s conftest.$ac_objext'
28698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699   (eval $ac_try) 2>&5
28700   ac_status=$?
28701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702   (exit $ac_status); }; }; then
28703   ac_cv_func_isinf_in_cmath=yes
28704 else
28705   echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28707
28708 ac_cv_func_isinf_in_cmath=no
28709 fi
28710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28711   ac_ext=c
28712 ac_cpp='$CPP $CPPFLAGS'
28713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28716
28717 fi
28718 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28719 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28720
28721 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28722
28723 cat >>confdefs.h <<\_ACEOF
28724 #define HAVE_ISINF_IN_CMATH 1
28725 _ACEOF
28726
28727 fi
28728
28729 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28730 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28731 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28732   echo $ECHO_N "(cached) $ECHO_C" >&6
28733 else
28734   ac_ext=cc
28735 ac_cpp='$CXXCPP $CPPFLAGS'
28736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28739
28740    cat >conftest.$ac_ext <<_ACEOF
28741 /* confdefs.h.  */
28742 _ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h.  */
28746 #include <cmath>
28747 int
28748 main ()
28749 {
28750 float f; std::isinf(f)}
28751   ;
28752   return 0;
28753 }
28754 _ACEOF
28755 rm -f conftest.$ac_objext
28756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28757   (eval $ac_compile) 2>conftest.er1
28758   ac_status=$?
28759   grep -v '^ *+' conftest.er1 >conftest.err
28760   rm -f conftest.er1
28761   cat conftest.err >&5
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); } &&
28764          { ac_try='test -z "$ac_cxx_werror_flag"
28765                          || test ! -s conftest.err'
28766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767   (eval $ac_try) 2>&5
28768   ac_status=$?
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); }; } &&
28771          { ac_try='test -s conftest.$ac_objext'
28772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773   (eval $ac_try) 2>&5
28774   ac_status=$?
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); }; }; then
28777   ac_cv_func_std_isinf_in_cmath=yes
28778 else
28779   echo "$as_me: failed program was:" >&5
28780 sed 's/^/| /' conftest.$ac_ext >&5
28781
28782 ac_cv_func_std_isinf_in_cmath=no
28783 fi
28784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28785   ac_ext=c
28786 ac_cpp='$CPP $CPPFLAGS'
28787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28790
28791 fi
28792 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28793 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28794
28795 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28796
28797 cat >>confdefs.h <<\_ACEOF
28798 #define HAVE_STD_ISINF_IN_CMATH 1
28799 _ACEOF
28800
28801 fi
28802
28803 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28804 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28805 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28806   echo $ECHO_N "(cached) $ECHO_C" >&6
28807 else
28808   ac_ext=cc
28809 ac_cpp='$CXXCPP $CPPFLAGS'
28810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28813
28814    cat >conftest.$ac_ext <<_ACEOF
28815 /* confdefs.h.  */
28816 _ACEOF
28817 cat confdefs.h >>conftest.$ac_ext
28818 cat >>conftest.$ac_ext <<_ACEOF
28819 /* end confdefs.h.  */
28820 #include <ieeefp.h>
28821 int
28822 main ()
28823 {
28824 float f; finite(f);
28825   ;
28826   return 0;
28827 }
28828 _ACEOF
28829 rm -f conftest.$ac_objext
28830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28831   (eval $ac_compile) 2>conftest.er1
28832   ac_status=$?
28833   grep -v '^ *+' conftest.er1 >conftest.err
28834   rm -f conftest.er1
28835   cat conftest.err >&5
28836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837   (exit $ac_status); } &&
28838          { ac_try='test -z "$ac_cxx_werror_flag"
28839                          || test ! -s conftest.err'
28840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841   (eval $ac_try) 2>&5
28842   ac_status=$?
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); }; } &&
28845          { ac_try='test -s conftest.$ac_objext'
28846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28847   (eval $ac_try) 2>&5
28848   ac_status=$?
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); }; }; then
28851   ac_cv_func_finite_in_ieeefp_h=yes
28852 else
28853   echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.$ac_ext >&5
28855
28856 ac_cv_func_finite_in_ieeefp_h=no
28857 fi
28858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28859   ac_ext=c
28860 ac_cpp='$CPP $CPPFLAGS'
28861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28864
28865 fi
28866 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28867 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28868
28869 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28870
28871 cat >>confdefs.h <<\_ACEOF
28872 #define HAVE_FINITE_IN_IEEEFP_H 1
28873 _ACEOF
28874
28875 fi
28876
28877
28878
28879
28880
28881 for ac_header in stdlib.h unistd.h
28882 do
28883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28885   echo "$as_me:$LINENO: checking for $ac_header" >&5
28886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28888   echo $ECHO_N "(cached) $ECHO_C" >&6
28889 fi
28890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28892 else
28893   # Is the header compilable?
28894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28896 cat >conftest.$ac_ext <<_ACEOF
28897 /* confdefs.h.  */
28898 _ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h.  */
28902 $ac_includes_default
28903 #include <$ac_header>
28904 _ACEOF
28905 rm -f conftest.$ac_objext
28906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28907   (eval $ac_compile) 2>conftest.er1
28908   ac_status=$?
28909   grep -v '^ *+' conftest.er1 >conftest.err
28910   rm -f conftest.er1
28911   cat conftest.err >&5
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); } &&
28914          { ac_try='test -z "$ac_c_werror_flag"
28915                          || test ! -s conftest.err'
28916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917   (eval $ac_try) 2>&5
28918   ac_status=$?
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); }; } &&
28921          { ac_try='test -s conftest.$ac_objext'
28922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923   (eval $ac_try) 2>&5
28924   ac_status=$?
28925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926   (exit $ac_status); }; }; then
28927   ac_header_compiler=yes
28928 else
28929   echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28931
28932 ac_header_compiler=no
28933 fi
28934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28936 echo "${ECHO_T}$ac_header_compiler" >&6
28937
28938 # Is the header present?
28939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28941 cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h.  */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h.  */
28947 #include <$ac_header>
28948 _ACEOF
28949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28951   ac_status=$?
28952   grep -v '^ *+' conftest.er1 >conftest.err
28953   rm -f conftest.er1
28954   cat conftest.err >&5
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); } >/dev/null; then
28957   if test -s conftest.err; then
28958     ac_cpp_err=$ac_c_preproc_warn_flag
28959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28960   else
28961     ac_cpp_err=
28962   fi
28963 else
28964   ac_cpp_err=yes
28965 fi
28966 if test -z "$ac_cpp_err"; then
28967   ac_header_preproc=yes
28968 else
28969   echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28971
28972   ac_header_preproc=no
28973 fi
28974 rm -f conftest.err conftest.$ac_ext
28975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28976 echo "${ECHO_T}$ac_header_preproc" >&6
28977
28978 # So?  What about this header?
28979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28980   yes:no: )
28981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28985     ac_header_preproc=yes
28986     ;;
28987   no:yes:* )
28988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28990     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28991 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28992     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28994     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28995 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28998     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29000     (
29001       cat <<\_ASBOX
29002 ## ----------------------------------- ##
29003 ## Report this to llvmbugs@cs.uiuc.edu ##
29004 ## ----------------------------------- ##
29005 _ASBOX
29006     ) |
29007       sed "s/^/$as_me: WARNING:     /" >&2
29008     ;;
29009 esac
29010 echo "$as_me:$LINENO: checking for $ac_header" >&5
29011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29013   echo $ECHO_N "(cached) $ECHO_C" >&6
29014 else
29015   eval "$as_ac_Header=\$ac_header_preproc"
29016 fi
29017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29019
29020 fi
29021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29022   cat >>confdefs.h <<_ACEOF
29023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29024 _ACEOF
29025
29026 fi
29027
29028 done
29029
29030
29031 for ac_func in getpagesize
29032 do
29033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29034 echo "$as_me:$LINENO: checking for $ac_func" >&5
29035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29036 if eval "test \"\${$as_ac_var+set}\" = set"; then
29037   echo $ECHO_N "(cached) $ECHO_C" >&6
29038 else
29039   cat >conftest.$ac_ext <<_ACEOF
29040 /* confdefs.h.  */
29041 _ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h.  */
29045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29047 #define $ac_func innocuous_$ac_func
29048
29049 /* System header to define __stub macros and hopefully few prototypes,
29050     which can conflict with char $ac_func (); below.
29051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29052     <limits.h> exists even on freestanding compilers.  */
29053
29054 #ifdef __STDC__
29055 # include <limits.h>
29056 #else
29057 # include <assert.h>
29058 #endif
29059
29060 #undef $ac_func
29061
29062 /* Override any gcc2 internal prototype to avoid an error.  */
29063 #ifdef __cplusplus
29064 extern "C"
29065 {
29066 #endif
29067 /* We use char because int might match the return type of a gcc2
29068    builtin and then its argument prototype would still apply.  */
29069 char $ac_func ();
29070 /* The GNU C library defines this for functions which it implements
29071     to always fail with ENOSYS.  Some functions are actually named
29072     something starting with __ and the normal name is an alias.  */
29073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29074 choke me
29075 #else
29076 char (*f) () = $ac_func;
29077 #endif
29078 #ifdef __cplusplus
29079 }
29080 #endif
29081
29082 int
29083 main ()
29084 {
29085 return f != $ac_func;
29086   ;
29087   return 0;
29088 }
29089 _ACEOF
29090 rm -f conftest.$ac_objext conftest$ac_exeext
29091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29092   (eval $ac_link) 2>conftest.er1
29093   ac_status=$?
29094   grep -v '^ *+' conftest.er1 >conftest.err
29095   rm -f conftest.er1
29096   cat conftest.err >&5
29097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098   (exit $ac_status); } &&
29099          { ac_try='test -z "$ac_c_werror_flag"
29100                          || test ! -s conftest.err'
29101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102   (eval $ac_try) 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; } &&
29106          { ac_try='test -s conftest$ac_exeext'
29107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108   (eval $ac_try) 2>&5
29109   ac_status=$?
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); }; }; then
29112   eval "$as_ac_var=yes"
29113 else
29114   echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29116
29117 eval "$as_ac_var=no"
29118 fi
29119 rm -f conftest.err conftest.$ac_objext \
29120       conftest$ac_exeext conftest.$ac_ext
29121 fi
29122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29124 if test `eval echo '${'$as_ac_var'}'` = yes; then
29125   cat >>confdefs.h <<_ACEOF
29126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29127 _ACEOF
29128
29129 fi
29130 done
29131
29132 echo "$as_me:$LINENO: checking for working mmap" >&5
29133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29135   echo $ECHO_N "(cached) $ECHO_C" >&6
29136 else
29137   if test "$cross_compiling" = yes; then
29138   ac_cv_func_mmap_fixed_mapped=no
29139 else
29140   cat >conftest.$ac_ext <<_ACEOF
29141 /* confdefs.h.  */
29142 _ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h.  */
29146 $ac_includes_default
29147 /* malloc might have been renamed as rpl_malloc. */
29148 #undef malloc
29149
29150 /* Thanks to Mike Haertel and Jim Avera for this test.
29151    Here is a matrix of mmap possibilities:
29152         mmap private not fixed
29153         mmap private fixed at somewhere currently unmapped
29154         mmap private fixed at somewhere already mapped
29155         mmap shared not fixed
29156         mmap shared fixed at somewhere currently unmapped
29157         mmap shared fixed at somewhere already mapped
29158    For private mappings, we should verify that changes cannot be read()
29159    back from the file, nor mmap's back from the file at a different
29160    address.  (There have been systems where private was not correctly
29161    implemented like the infamous i386 svr4.0, and systems where the
29162    VM page cache was not coherent with the file system buffer cache
29163    like early versions of FreeBSD and possibly contemporary NetBSD.)
29164    For shared mappings, we should conversely verify that changes get
29165    propagated back to all the places they're supposed to be.
29166
29167    Grep wants private fixed already mapped.
29168    The main things grep needs to know about mmap are:
29169    * does it exist and is it safe to write into the mmap'd area
29170    * how to use it (BSD variants)  */
29171
29172 #include <fcntl.h>
29173 #include <sys/mman.h>
29174
29175 #if !STDC_HEADERS && !HAVE_STDLIB_H
29176 char *malloc ();
29177 #endif
29178
29179 /* This mess was copied from the GNU getpagesize.h.  */
29180 #if !HAVE_GETPAGESIZE
29181 /* Assume that all systems that can run configure have sys/param.h.  */
29182 # if !HAVE_SYS_PARAM_H
29183 #  define HAVE_SYS_PARAM_H 1
29184 # endif
29185
29186 # ifdef _SC_PAGESIZE
29187 #  define getpagesize() sysconf(_SC_PAGESIZE)
29188 # else /* no _SC_PAGESIZE */
29189 #  if HAVE_SYS_PARAM_H
29190 #   include <sys/param.h>
29191 #   ifdef EXEC_PAGESIZE
29192 #    define getpagesize() EXEC_PAGESIZE
29193 #   else /* no EXEC_PAGESIZE */
29194 #    ifdef NBPG
29195 #     define getpagesize() NBPG * CLSIZE
29196 #     ifndef CLSIZE
29197 #      define CLSIZE 1
29198 #     endif /* no CLSIZE */
29199 #    else /* no NBPG */
29200 #     ifdef NBPC
29201 #      define getpagesize() NBPC
29202 #     else /* no NBPC */
29203 #      ifdef PAGESIZE
29204 #       define getpagesize() PAGESIZE
29205 #      endif /* PAGESIZE */
29206 #     endif /* no NBPC */
29207 #    endif /* no NBPG */
29208 #   endif /* no EXEC_PAGESIZE */
29209 #  else /* no HAVE_SYS_PARAM_H */
29210 #   define getpagesize() 8192   /* punt totally */
29211 #  endif /* no HAVE_SYS_PARAM_H */
29212 # endif /* no _SC_PAGESIZE */
29213
29214 #endif /* no HAVE_GETPAGESIZE */
29215
29216 int
29217 main ()
29218 {
29219   char *data, *data2, *data3;
29220   int i, pagesize;
29221   int fd;
29222
29223   pagesize = getpagesize ();
29224
29225   /* First, make a file with some known garbage in it. */
29226   data = (char *) malloc (pagesize);
29227   if (!data)
29228     exit (1);
29229   for (i = 0; i < pagesize; ++i)
29230     *(data + i) = rand ();
29231   umask (0);
29232   fd = creat ("conftest.mmap", 0600);
29233   if (fd < 0)
29234     exit (1);
29235   if (write (fd, data, pagesize) != pagesize)
29236     exit (1);
29237   close (fd);
29238
29239   /* Next, try to mmap the file at a fixed address which already has
29240      something else allocated at it.  If we can, also make sure that
29241      we see the same garbage.  */
29242   fd = open ("conftest.mmap", O_RDWR);
29243   if (fd < 0)
29244     exit (1);
29245   data2 = (char *) malloc (2 * pagesize);
29246   if (!data2)
29247     exit (1);
29248   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29249   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29250                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29251     exit (1);
29252   for (i = 0; i < pagesize; ++i)
29253     if (*(data + i) != *(data2 + i))
29254       exit (1);
29255
29256   /* Finally, make sure that changes to the mapped area do not
29257      percolate back to the file as seen by read().  (This is a bug on
29258      some variants of i386 svr4.0.)  */
29259   for (i = 0; i < pagesize; ++i)
29260     *(data2 + i) = *(data2 + i) + 1;
29261   data3 = (char *) malloc (pagesize);
29262   if (!data3)
29263     exit (1);
29264   if (read (fd, data3, pagesize) != pagesize)
29265     exit (1);
29266   for (i = 0; i < pagesize; ++i)
29267     if (*(data + i) != *(data3 + i))
29268       exit (1);
29269   close (fd);
29270   exit (0);
29271 }
29272 _ACEOF
29273 rm -f conftest$ac_exeext
29274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29275   (eval $ac_link) 2>&5
29276   ac_status=$?
29277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280   (eval $ac_try) 2>&5
29281   ac_status=$?
29282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283   (exit $ac_status); }; }; then
29284   ac_cv_func_mmap_fixed_mapped=yes
29285 else
29286   echo "$as_me: program exited with status $ac_status" >&5
29287 echo "$as_me: failed program was:" >&5
29288 sed 's/^/| /' conftest.$ac_ext >&5
29289
29290 ( exit $ac_status )
29291 ac_cv_func_mmap_fixed_mapped=no
29292 fi
29293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29294 fi
29295 fi
29296 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29299
29300 cat >>confdefs.h <<\_ACEOF
29301 #define HAVE_MMAP 1
29302 _ACEOF
29303
29304 fi
29305 rm -f conftest.mmap
29306
29307 echo "$as_me:$LINENO: checking for mmap of files" >&5
29308 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29309 if test "${ac_cv_func_mmap_file+set}" = set; then
29310   echo $ECHO_N "(cached) $ECHO_C" >&6
29311 else
29312    ac_ext=c
29313 ac_cpp='$CPP $CPPFLAGS'
29314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29317
29318   if test "$cross_compiling" = yes; then
29319   ac_cv_func_mmap_file=no
29320 else
29321   cat >conftest.$ac_ext <<_ACEOF
29322
29323     /* confdefs.h.  */
29324 _ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h.  */
29328
29329 #include <sys/types.h>
29330 #include <sys/mman.h>
29331 #include <fcntl.h>
29332
29333 int
29334 main ()
29335 {
29336
29337   int fd;
29338   fd = creat ("foo",0777);
29339   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29340   unlink ("foo");
29341   return (fd != (int) MAP_FAILED);
29342   ;
29343   return 0;
29344 }
29345 _ACEOF
29346 rm -f conftest$ac_exeext
29347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29348   (eval $ac_link) 2>&5
29349   ac_status=$?
29350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29353   (eval $ac_try) 2>&5
29354   ac_status=$?
29355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356   (exit $ac_status); }; }; then
29357   ac_cv_func_mmap_file=yes
29358 else
29359   echo "$as_me: program exited with status $ac_status" >&5
29360 echo "$as_me: failed program was:" >&5
29361 sed 's/^/| /' conftest.$ac_ext >&5
29362
29363 ( exit $ac_status )
29364 ac_cv_func_mmap_file=no
29365 fi
29366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29367 fi
29368   ac_ext=c
29369 ac_cpp='$CPP $CPPFLAGS'
29370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29373
29374
29375 fi
29376 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29377 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29378 if test "$ac_cv_func_mmap_file" = yes; then
29379
29380 cat >>confdefs.h <<\_ACEOF
29381 #define HAVE_MMAP_FILE
29382 _ACEOF
29383
29384    MMAP_FILE=yes
29385
29386 fi
29387
29388 echo "$as_me:$LINENO: checking for mprotect" >&5
29389 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29390 if test "${ac_cv_func_mprotect+set}" = set; then
29391   echo $ECHO_N "(cached) $ECHO_C" >&6
29392 else
29393   cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29401 #define mprotect innocuous_mprotect
29402
29403 /* System header to define __stub macros and hopefully few prototypes,
29404     which can conflict with char mprotect (); below.
29405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29406     <limits.h> exists even on freestanding compilers.  */
29407
29408 #ifdef __STDC__
29409 # include <limits.h>
29410 #else
29411 # include <assert.h>
29412 #endif
29413
29414 #undef mprotect
29415
29416 /* Override any gcc2 internal prototype to avoid an error.  */
29417 #ifdef __cplusplus
29418 extern "C"
29419 {
29420 #endif
29421 /* We use char because int might match the return type of a gcc2
29422    builtin and then its argument prototype would still apply.  */
29423 char mprotect ();
29424 /* The GNU C library defines this for functions which it implements
29425     to always fail with ENOSYS.  Some functions are actually named
29426     something starting with __ and the normal name is an alias.  */
29427 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29428 choke me
29429 #else
29430 char (*f) () = mprotect;
29431 #endif
29432 #ifdef __cplusplus
29433 }
29434 #endif
29435
29436 int
29437 main ()
29438 {
29439 return f != mprotect;
29440   ;
29441   return 0;
29442 }
29443 _ACEOF
29444 rm -f conftest.$ac_objext conftest$ac_exeext
29445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29446   (eval $ac_link) 2>conftest.er1
29447   ac_status=$?
29448   grep -v '^ *+' conftest.er1 >conftest.err
29449   rm -f conftest.er1
29450   cat conftest.err >&5
29451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452   (exit $ac_status); } &&
29453          { ac_try='test -z "$ac_c_werror_flag"
29454                          || test ! -s conftest.err'
29455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456   (eval $ac_try) 2>&5
29457   ac_status=$?
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); }; } &&
29460          { ac_try='test -s conftest$ac_exeext'
29461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462   (eval $ac_try) 2>&5
29463   ac_status=$?
29464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465   (exit $ac_status); }; }; then
29466   ac_cv_func_mprotect=yes
29467 else
29468   echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29470
29471 ac_cv_func_mprotect=no
29472 fi
29473 rm -f conftest.err conftest.$ac_objext \
29474       conftest$ac_exeext conftest.$ac_ext
29475 fi
29476 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29477 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29478 if test $ac_cv_func_mprotect = yes; then
29479   :
29480 else
29481   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29482 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29483    { (exit 1); exit 1; }; }
29484 fi
29485
29486
29487 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29488 then
29489   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29490 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29491 fi
29492 if test "$ac_cv_func_mmap_file" = "no"
29493 then
29494   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29495 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29496 fi
29497
29498
29499 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29500 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29501 if test "${llvm_cv_llvmgcc+set}" = set; then
29502   echo $ECHO_N "(cached) $ECHO_C" >&6
29503 else
29504   llvm_cv_llvmgcc='llvmgcc_not_found'
29505 if test -d "$LLVMGCCDIR" ; then
29506   if test -x "$LLVMGCCDIR/bin/gcc" ; then
29507     llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29508   fi
29509 fi
29510 fi
29511 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29512 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29513
29514 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29515 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29516 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29517   echo $ECHO_N "(cached) $ECHO_C" >&6
29518 else
29519   llvm_cv_llvmgcc_sanity="no"
29520 if test -x "$llvm_cv_llvmgcc" ; then
29521   cp /dev/null conftest.c
29522   "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29523   if test $? -eq 0 ; then
29524     llvm_cv_llvmgcc_sanity="yes"
29525   fi
29526   rm conftest.c
29527 fi
29528 fi
29529 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29530 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29531
29532 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29533   LLVMGCC="$llvm_cv_llvmgcc"
29534
29535   llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29536   LLVMCC1=$llvmcc1path
29537
29538   llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29539   LLVMCC1PLUS=$llvmcc1pluspath
29540
29541 fi
29542
29543 SHLIBEXT=$libltdl_cv_shlibext
29544
29545
29546 # Translate the various configuration directories and other basic
29547 # information into substitutions that will end up in Makefile.config.in
29548 # that these configured values can be used by the makefiles
29549 eval LLVM_PREFIX="${prefix}";
29550 eval LLVM_BINDIR="${prefix}/bin";
29551 eval LLVM_LIBDIR="${prefix}/lib";
29552 eval LLVM_DATADIR="${prefix}/share/llvm";
29553 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29554 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29555 eval LLVM_INCLUDEDIR="${prefix}/include";
29556 eval LLVM_INFODIR="${prefix}/info";
29557 eval LLVM_MANDIR="${prefix}/man";
29558 LLVM_CONFIGTIME=`date`
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570 # Place the various directores into the config.h file as #defines so that we
29571 # can know about the installation paths within LLVM.
29572
29573 cat >>confdefs.h <<_ACEOF
29574 #define LLVM_PREFIX "$LLVM_PREFIX"
29575 _ACEOF
29576
29577
29578 cat >>confdefs.h <<_ACEOF
29579 #define LLVM_BINDIR "$LLVM_BINDIR"
29580 _ACEOF
29581
29582
29583 cat >>confdefs.h <<_ACEOF
29584 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29585 _ACEOF
29586
29587
29588 cat >>confdefs.h <<_ACEOF
29589 #define LLVM_DATADIR "$LLVM_DATADIR"
29590 _ACEOF
29591
29592
29593 cat >>confdefs.h <<_ACEOF
29594 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29595 _ACEOF
29596
29597
29598 cat >>confdefs.h <<_ACEOF
29599 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29600 _ACEOF
29601
29602
29603 cat >>confdefs.h <<_ACEOF
29604 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29605 _ACEOF
29606
29607
29608 cat >>confdefs.h <<_ACEOF
29609 #define LLVM_INFODIR "$LLVM_INFODIR"
29610 _ACEOF
29611
29612
29613 cat >>confdefs.h <<_ACEOF
29614 #define LLVM_MANDIR "$LLVM_MANDIR"
29615 _ACEOF
29616
29617
29618 cat >>confdefs.h <<_ACEOF
29619 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29620 _ACEOF
29621
29622
29623
29624           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29625
29626
29627           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29628
29629           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29630
29631           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29632
29633           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29634
29635           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29636
29637
29638           ac_config_files="$ac_config_files Makefile.config"
29639
29640
29641                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29642
29643
29644           ac_config_files="$ac_config_files docs/doxygen.cfg"
29645
29646
29647           ac_config_commands="$ac_config_commands Makefile"
29648
29649
29650           ac_config_commands="$ac_config_commands Makefile.common"
29651
29652
29653           ac_config_commands="$ac_config_commands examples/Makefile"
29654
29655
29656           ac_config_commands="$ac_config_commands lib/Makefile"
29657
29658
29659           ac_config_commands="$ac_config_commands runtime/Makefile"
29660
29661
29662           ac_config_commands="$ac_config_commands test/Makefile"
29663
29664
29665           ac_config_commands="$ac_config_commands test/Makefile.tests"
29666
29667
29668           ac_config_commands="$ac_config_commands tools/Makefile"
29669
29670
29671           ac_config_commands="$ac_config_commands utils/Makefile"
29672
29673
29674           ac_config_commands="$ac_config_commands projects/Makefile"
29675
29676
29677
29678 cat >confcache <<\_ACEOF
29679 # This file is a shell script that caches the results of configure
29680 # tests run on this system so they can be shared between configure
29681 # scripts and configure runs, see configure's option --config-cache.
29682 # It is not useful on other systems.  If it contains results you don't
29683 # want to keep, you may remove or edit it.
29684 #
29685 # config.status only pays attention to the cache file if you give it
29686 # the --recheck option to rerun configure.
29687 #
29688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29690 # following values.
29691
29692 _ACEOF
29693
29694 # The following way of writing the cache mishandles newlines in values,
29695 # but we know of no workaround that is simple, portable, and efficient.
29696 # So, don't put newlines in cache variables' values.
29697 # Ultrix sh set writes to stderr and can't be redirected directly,
29698 # and sets the high bit in the cache file unless we assign to the vars.
29699 {
29700   (set) 2>&1 |
29701     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29702     *ac_space=\ *)
29703       # `set' does not quote correctly, so add quotes (double-quote
29704       # substitution turns \\\\ into \\, and sed turns \\ into \).
29705       sed -n \
29706         "s/'/'\\\\''/g;
29707           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29708       ;;
29709     *)
29710       # `set' quotes correctly as required by POSIX, so do not add quotes.
29711       sed -n \
29712         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29713       ;;
29714     esac;
29715 } |
29716   sed '
29717      t clear
29718      : clear
29719      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29720      t end
29721      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29722      : end' >>confcache
29723 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29724   if test -w $cache_file; then
29725     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29726     cat confcache >$cache_file
29727   else
29728     echo "not updating unwritable cache $cache_file"
29729   fi
29730 fi
29731 rm -f confcache
29732
29733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29734 # Let make expand exec_prefix.
29735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29736
29737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29739 # trailing colons and then remove the whole line if VPATH becomes empty
29740 # (actually we leave an empty line to preserve line numbers).
29741 if test "x$srcdir" = x.; then
29742   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29743 s/:*\$(srcdir):*/:/;
29744 s/:*\${srcdir}:*/:/;
29745 s/:*@srcdir@:*/:/;
29746 s/^\([^=]*=[     ]*\):*/\1/;
29747 s/:*$//;
29748 s/^[^=]*=[       ]*$//;
29749 }'
29750 fi
29751
29752 DEFS=-DHAVE_CONFIG_H
29753
29754 ac_libobjs=
29755 ac_ltlibobjs=
29756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29757   # 1. Remove the extension, and $U if already installed.
29758   ac_i=`echo "$ac_i" |
29759          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29760   # 2. Add them.
29761   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29762   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29763 done
29764 LIBOBJS=$ac_libobjs
29765
29766 LTLIBOBJS=$ac_ltlibobjs
29767
29768
29769 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29770   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29771 Usually this means the macro was only invoked conditionally." >&5
29772 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29773 Usually this means the macro was only invoked conditionally." >&2;}
29774    { (exit 1); exit 1; }; }
29775 fi
29776 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29777   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29778 Usually this means the macro was only invoked conditionally." >&5
29779 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29780 Usually this means the macro was only invoked conditionally." >&2;}
29781    { (exit 1); exit 1; }; }
29782 fi
29783
29784 : ${CONFIG_STATUS=./config.status}
29785 ac_clean_files_save=$ac_clean_files
29786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29787 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29788 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29789 cat >$CONFIG_STATUS <<_ACEOF
29790 #! $SHELL
29791 # Generated by $as_me.
29792 # Run this file to recreate the current configuration.
29793 # Compiler output produced by configure, useful for debugging
29794 # configure, is in config.log if it exists.
29795
29796 debug=false
29797 ac_cs_recheck=false
29798 ac_cs_silent=false
29799 SHELL=\${CONFIG_SHELL-$SHELL}
29800 _ACEOF
29801
29802 cat >>$CONFIG_STATUS <<\_ACEOF
29803 ## --------------------- ##
29804 ## M4sh Initialization.  ##
29805 ## --------------------- ##
29806
29807 # Be Bourne compatible
29808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29809   emulate sh
29810   NULLCMD=:
29811   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29812   # is contrary to our usage.  Disable this feature.
29813   alias -g '${1+"$@"}'='"$@"'
29814 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29815   set -o posix
29816 fi
29817 DUALCASE=1; export DUALCASE # for MKS sh
29818
29819 # Support unset when possible.
29820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29821   as_unset=unset
29822 else
29823   as_unset=false
29824 fi
29825
29826
29827 # Work around bugs in pre-3.0 UWIN ksh.
29828 $as_unset ENV MAIL MAILPATH
29829 PS1='$ '
29830 PS2='> '
29831 PS4='+ '
29832
29833 # NLS nuisances.
29834 for as_var in \
29835   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29836   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29837   LC_TELEPHONE LC_TIME
29838 do
29839   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29840     eval $as_var=C; export $as_var
29841   else
29842     $as_unset $as_var
29843   fi
29844 done
29845
29846 # Required to use basename.
29847 if expr a : '\(a\)' >/dev/null 2>&1; then
29848   as_expr=expr
29849 else
29850   as_expr=false
29851 fi
29852
29853 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29854   as_basename=basename
29855 else
29856   as_basename=false
29857 fi
29858
29859
29860 # Name of the executable.
29861 as_me=`$as_basename "$0" ||
29862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29863          X"$0" : 'X\(//\)$' \| \
29864          X"$0" : 'X\(/\)$' \| \
29865          .     : '\(.\)' 2>/dev/null ||
29866 echo X/"$0" |
29867     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29868           /^X\/\(\/\/\)$/{ s//\1/; q; }
29869           /^X\/\(\/\).*/{ s//\1/; q; }
29870           s/.*/./; q'`
29871
29872
29873 # PATH needs CR, and LINENO needs CR and PATH.
29874 # Avoid depending upon Character Ranges.
29875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29878 as_cr_digits='0123456789'
29879 as_cr_alnum=$as_cr_Letters$as_cr_digits
29880
29881 # The user is always right.
29882 if test "${PATH_SEPARATOR+set}" != set; then
29883   echo "#! /bin/sh" >conf$$.sh
29884   echo  "exit 0"   >>conf$$.sh
29885   chmod +x conf$$.sh
29886   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29887     PATH_SEPARATOR=';'
29888   else
29889     PATH_SEPARATOR=:
29890   fi
29891   rm -f conf$$.sh
29892 fi
29893
29894
29895   as_lineno_1=$LINENO
29896   as_lineno_2=$LINENO
29897   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29898   test "x$as_lineno_1" != "x$as_lineno_2" &&
29899   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29900   # Find who we are.  Look in the path if we contain no path at all
29901   # relative or not.
29902   case $0 in
29903     *[\\/]* ) as_myself=$0 ;;
29904     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29905 for as_dir in $PATH
29906 do
29907   IFS=$as_save_IFS
29908   test -z "$as_dir" && as_dir=.
29909   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29910 done
29911
29912        ;;
29913   esac
29914   # We did not find ourselves, most probably we were run as `sh COMMAND'
29915   # in which case we are not to be found in the path.
29916   if test "x$as_myself" = x; then
29917     as_myself=$0
29918   fi
29919   if test ! -f "$as_myself"; then
29920     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29921 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29922    { (exit 1); exit 1; }; }
29923   fi
29924   case $CONFIG_SHELL in
29925   '')
29926     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29927 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29928 do
29929   IFS=$as_save_IFS
29930   test -z "$as_dir" && as_dir=.
29931   for as_base in sh bash ksh sh5; do
29932          case $as_dir in
29933          /*)
29934            if ("$as_dir/$as_base" -c '
29935   as_lineno_1=$LINENO
29936   as_lineno_2=$LINENO
29937   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29938   test "x$as_lineno_1" != "x$as_lineno_2" &&
29939   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29940              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29941              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29942              CONFIG_SHELL=$as_dir/$as_base
29943              export CONFIG_SHELL
29944              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29945            fi;;
29946          esac
29947        done
29948 done
29949 ;;
29950   esac
29951
29952   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29953   # uniformly replaced by the line number.  The first 'sed' inserts a
29954   # line-number line before each line; the second 'sed' does the real
29955   # work.  The second script uses 'N' to pair each line-number line
29956   # with the numbered line, and appends trailing '-' during
29957   # substitution so that $LINENO is not a special case at line end.
29958   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29959   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29960   sed '=' <$as_myself |
29961     sed '
29962       N
29963       s,$,-,
29964       : loop
29965       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29966       t loop
29967       s,-$,,
29968       s,^['$as_cr_digits']*\n,,
29969     ' >$as_me.lineno &&
29970   chmod +x $as_me.lineno ||
29971     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29972 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29973    { (exit 1); exit 1; }; }
29974
29975   # Don't try to exec as it changes $[0], causing all sort of problems
29976   # (the dirname of $[0] is not the place where we might find the
29977   # original and so on.  Autoconf is especially sensible to this).
29978   . ./$as_me.lineno
29979   # Exit status is that of the last command.
29980   exit
29981 }
29982
29983
29984 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29985   *c*,-n*) ECHO_N= ECHO_C='
29986 ' ECHO_T='      ' ;;
29987   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29988   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29989 esac
29990
29991 if expr a : '\(a\)' >/dev/null 2>&1; then
29992   as_expr=expr
29993 else
29994   as_expr=false
29995 fi
29996
29997 rm -f conf$$ conf$$.exe conf$$.file
29998 echo >conf$$.file
29999 if ln -s conf$$.file conf$$ 2>/dev/null; then
30000   # We could just check for DJGPP; but this test a) works b) is more generic
30001   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30002   if test -f conf$$.exe; then
30003     # Don't use ln at all; we don't have any links
30004     as_ln_s='cp -p'
30005   else
30006     as_ln_s='ln -s'
30007   fi
30008 elif ln conf$$.file conf$$ 2>/dev/null; then
30009   as_ln_s=ln
30010 else
30011   as_ln_s='cp -p'
30012 fi
30013 rm -f conf$$ conf$$.exe conf$$.file
30014
30015 if mkdir -p . 2>/dev/null; then
30016   as_mkdir_p=:
30017 else
30018   test -d ./-p && rmdir ./-p
30019   as_mkdir_p=false
30020 fi
30021
30022 as_executable_p="test -f"
30023
30024 # Sed expression to map a string onto a valid CPP name.
30025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30026
30027 # Sed expression to map a string onto a valid variable name.
30028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30029
30030
30031 # IFS
30032 # We need space, tab and new line, in precisely that order.
30033 as_nl='
30034 '
30035 IFS="   $as_nl"
30036
30037 # CDPATH.
30038 $as_unset CDPATH
30039
30040 exec 6>&1
30041
30042 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30043 # report actual input values of CONFIG_FILES etc. instead of their
30044 # values after options handling.  Logging --version etc. is OK.
30045 exec 5>>config.log
30046 {
30047   echo
30048   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30049 ## Running $as_me. ##
30050 _ASBOX
30051 } >&5
30052 cat >&5 <<_CSEOF
30053
30054 This file was extended by llvm $as_me 1.4, which was
30055 generated by GNU Autoconf 2.59.  Invocation command line was
30056
30057   CONFIG_FILES    = $CONFIG_FILES
30058   CONFIG_HEADERS  = $CONFIG_HEADERS
30059   CONFIG_LINKS    = $CONFIG_LINKS
30060   CONFIG_COMMANDS = $CONFIG_COMMANDS
30061   $ $0 $@
30062
30063 _CSEOF
30064 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30065 echo >&5
30066 _ACEOF
30067
30068 # Files that config.status was made for.
30069 if test -n "$ac_config_files"; then
30070   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30071 fi
30072
30073 if test -n "$ac_config_headers"; then
30074   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30075 fi
30076
30077 if test -n "$ac_config_links"; then
30078   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30079 fi
30080
30081 if test -n "$ac_config_commands"; then
30082   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30083 fi
30084
30085 cat >>$CONFIG_STATUS <<\_ACEOF
30086
30087 ac_cs_usage="\
30088 \`$as_me' instantiates files from templates according to the
30089 current configuration.
30090
30091 Usage: $0 [OPTIONS] [FILE]...
30092
30093   -h, --help       print this help, then exit
30094   -V, --version    print version number, then exit
30095   -q, --quiet      do not print progress messages
30096   -d, --debug      don't remove temporary files
30097       --recheck    update $as_me by reconfiguring in the same conditions
30098   --file=FILE[:TEMPLATE]
30099                    instantiate the configuration file FILE
30100   --header=FILE[:TEMPLATE]
30101                    instantiate the configuration header FILE
30102
30103 Configuration files:
30104 $config_files
30105
30106 Configuration headers:
30107 $config_headers
30108
30109 Configuration links:
30110 $config_links
30111
30112 Configuration commands:
30113 $config_commands
30114
30115 Report bugs to <bug-autoconf@gnu.org>."
30116 _ACEOF
30117
30118 cat >>$CONFIG_STATUS <<_ACEOF
30119 ac_cs_version="\\
30120 llvm config.status 1.4
30121 configured by $0, generated by GNU Autoconf 2.59,
30122   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30123
30124 Copyright (C) 2003 Free Software Foundation, Inc.
30125 This config.status script is free software; the Free Software Foundation
30126 gives unlimited permission to copy, distribute and modify it."
30127 srcdir=$srcdir
30128 INSTALL="$INSTALL"
30129 _ACEOF
30130
30131 cat >>$CONFIG_STATUS <<\_ACEOF
30132 # If no file are specified by the user, then we need to provide default
30133 # value.  By we need to know if files were specified by the user.
30134 ac_need_defaults=:
30135 while test $# != 0
30136 do
30137   case $1 in
30138   --*=*)
30139     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30140     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30141     ac_shift=:
30142     ;;
30143   -*)
30144     ac_option=$1
30145     ac_optarg=$2
30146     ac_shift=shift
30147     ;;
30148   *) # This is not an option, so the user has probably given explicit
30149      # arguments.
30150      ac_option=$1
30151      ac_need_defaults=false;;
30152   esac
30153
30154   case $ac_option in
30155   # Handling of the options.
30156 _ACEOF
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30158   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30159     ac_cs_recheck=: ;;
30160   --version | --vers* | -V )
30161     echo "$ac_cs_version"; exit 0 ;;
30162   --he | --h)
30163     # Conflict between --help and --header
30164     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30165 Try \`$0 --help' for more information." >&5
30166 echo "$as_me: error: ambiguous option: $1
30167 Try \`$0 --help' for more information." >&2;}
30168    { (exit 1); exit 1; }; };;
30169   --help | --hel | -h )
30170     echo "$ac_cs_usage"; exit 0 ;;
30171   --debug | --d* | -d )
30172     debug=: ;;
30173   --file | --fil | --fi | --f )
30174     $ac_shift
30175     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30176     ac_need_defaults=false;;
30177   --header | --heade | --head | --hea )
30178     $ac_shift
30179     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30180     ac_need_defaults=false;;
30181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30182   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30183     ac_cs_silent=: ;;
30184
30185   # This is an error.
30186   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30187 Try \`$0 --help' for more information." >&5
30188 echo "$as_me: error: unrecognized option: $1
30189 Try \`$0 --help' for more information." >&2;}
30190    { (exit 1); exit 1; }; } ;;
30191
30192   *) ac_config_targets="$ac_config_targets $1" ;;
30193
30194   esac
30195   shift
30196 done
30197
30198 ac_configure_extra_args=
30199
30200 if $ac_cs_silent; then
30201   exec 6>/dev/null
30202   ac_configure_extra_args="$ac_configure_extra_args --silent"
30203 fi
30204
30205 _ACEOF
30206 cat >>$CONFIG_STATUS <<_ACEOF
30207 if \$ac_cs_recheck; then
30208   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30209   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30210 fi
30211
30212 _ACEOF
30213
30214 cat >>$CONFIG_STATUS <<_ACEOF
30215 #
30216 # INIT-COMMANDS section.
30217 #
30218
30219 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30220 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30221 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30222 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30223 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30224 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30225 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30226 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30227 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30228 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30229
30230 _ACEOF
30231
30232
30233
30234 cat >>$CONFIG_STATUS <<\_ACEOF
30235 for ac_config_target in $ac_config_targets
30236 do
30237   case "$ac_config_target" in
30238   # Handling of arguments.
30239   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30240   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30241   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30242   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30243   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30244   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30245   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30246   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30247   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30248   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30249   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30250   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30251   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30252   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30253   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30254   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30255   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30256   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30257   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30258   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30259   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30260   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30261   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30262   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30263 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30264    { (exit 1); exit 1; }; };;
30265   esac
30266 done
30267
30268 # If the user did not use the arguments to specify the items to instantiate,
30269 # then the envvar interface is used.  Set only those that are not.
30270 # We use the long form for the default assignment because of an extremely
30271 # bizarre bug on SunOS 4.1.3.
30272 if $ac_need_defaults; then
30273   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30274   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30275   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30276   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30277 fi
30278
30279 # Have a temporary directory for convenience.  Make it in the build tree
30280 # simply because there is no reason to put it here, and in addition,
30281 # creating and moving files from /tmp can sometimes cause problems.
30282 # Create a temporary directory, and hook for its removal unless debugging.
30283 $debug ||
30284 {
30285   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30286   trap '{ (exit 1); exit 1; }' 1 2 13 15
30287 }
30288
30289 # Create a (secure) tmp directory for tmp files.
30290
30291 {
30292   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30293   test -n "$tmp" && test -d "$tmp"
30294 }  ||
30295 {
30296   tmp=./confstat$$-$RANDOM
30297   (umask 077 && mkdir $tmp)
30298 } ||
30299 {
30300    echo "$me: cannot create a temporary directory in ." >&2
30301    { (exit 1); exit 1; }
30302 }
30303
30304 _ACEOF
30305
30306 cat >>$CONFIG_STATUS <<_ACEOF
30307
30308 #
30309 # CONFIG_FILES section.
30310 #
30311
30312 # No need to generate the scripts if there are no CONFIG_FILES.
30313 # This happens for instance when ./config.status config.h
30314 if test -n "\$CONFIG_FILES"; then
30315   # Protect against being on the right side of a sed subst in config.status.
30316   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30317    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30318 s,@SHELL@,$SHELL,;t t
30319 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30320 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30321 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30322 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30323 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30324 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30325 s,@exec_prefix@,$exec_prefix,;t t
30326 s,@prefix@,$prefix,;t t
30327 s,@program_transform_name@,$program_transform_name,;t t
30328 s,@bindir@,$bindir,;t t
30329 s,@sbindir@,$sbindir,;t t
30330 s,@libexecdir@,$libexecdir,;t t
30331 s,@datadir@,$datadir,;t t
30332 s,@sysconfdir@,$sysconfdir,;t t
30333 s,@sharedstatedir@,$sharedstatedir,;t t
30334 s,@localstatedir@,$localstatedir,;t t
30335 s,@libdir@,$libdir,;t t
30336 s,@includedir@,$includedir,;t t
30337 s,@oldincludedir@,$oldincludedir,;t t
30338 s,@infodir@,$infodir,;t t
30339 s,@mandir@,$mandir,;t t
30340 s,@build_alias@,$build_alias,;t t
30341 s,@host_alias@,$host_alias,;t t
30342 s,@target_alias@,$target_alias,;t t
30343 s,@DEFS@,$DEFS,;t t
30344 s,@ECHO_C@,$ECHO_C,;t t
30345 s,@ECHO_N@,$ECHO_N,;t t
30346 s,@ECHO_T@,$ECHO_T,;t t
30347 s,@LIBS@,$LIBS,;t t
30348 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30349 s,@subdirs@,$subdirs,;t t
30350 s,@build@,$build,;t t
30351 s,@build_cpu@,$build_cpu,;t t
30352 s,@build_vendor@,$build_vendor,;t t
30353 s,@build_os@,$build_os,;t t
30354 s,@host@,$host,;t t
30355 s,@host_cpu@,$host_cpu,;t t
30356 s,@host_vendor@,$host_vendor,;t t
30357 s,@host_os@,$host_os,;t t
30358 s,@target@,$target,;t t
30359 s,@target_cpu@,$target_cpu,;t t
30360 s,@target_vendor@,$target_vendor,;t t
30361 s,@target_os@,$target_os,;t t
30362 s,@OS@,$OS,;t t
30363 s,@ARCH@,$ARCH,;t t
30364 s,@ENDIAN@,$ENDIAN,;t t
30365 s,@CC@,$CC,;t t
30366 s,@CFLAGS@,$CFLAGS,;t t
30367 s,@LDFLAGS@,$LDFLAGS,;t t
30368 s,@CPPFLAGS@,$CPPFLAGS,;t t
30369 s,@ac_ct_CC@,$ac_ct_CC,;t t
30370 s,@EXEEXT@,$EXEEXT,;t t
30371 s,@OBJEXT@,$OBJEXT,;t t
30372 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30373 s,@JIT@,$JIT,;t t
30374 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30375 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30376 s,@CPP@,$CPP,;t t
30377 s,@CXX@,$CXX,;t t
30378 s,@CXXFLAGS@,$CXXFLAGS,;t t
30379 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30380 s,@LEX@,$LEX,;t t
30381 s,@LEXLIB@,$LEXLIB,;t t
30382 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30383 s,@FLEX@,$FLEX,;t t
30384 s,@YACC@,$YACC,;t t
30385 s,@BISON@,$BISON,;t t
30386 s,@ifGNUmake@,$ifGNUmake,;t t
30387 s,@LN_S@,$LN_S,;t t
30388 s,@CMP@,$CMP,;t t
30389 s,@CP@,$CP,;t t
30390 s,@DATE@,$DATE,;t t
30391 s,@FIND@,$FIND,;t t
30392 s,@GREP@,$GREP,;t t
30393 s,@MKDIR@,$MKDIR,;t t
30394 s,@MV@,$MV,;t t
30395 s,@PAX@,$PAX,;t t
30396 s,@RANLIB@,$RANLIB,;t t
30397 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30398 s,@RM@,$RM,;t t
30399 s,@SED@,$SED,;t t
30400 s,@TAR@,$TAR,;t t
30401 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30402 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30403 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30404 s,@BZIP2@,$BZIP2,;t t
30405 s,@DOT@,$DOT,;t t
30406 s,@DOXYGEN@,$DOXYGEN,;t t
30407 s,@ETAGS@,$ETAGS,;t t
30408 s,@GROFF@,$GROFF,;t t
30409 s,@GZIP@,$GZIP,;t t
30410 s,@POD2HTML@,$POD2HTML,;t t
30411 s,@POD2MAN@,$POD2MAN,;t t
30412 s,@RUNTEST@,$RUNTEST,;t t
30413 s,@TCLSH@,$TCLSH,;t t
30414 s,@ZIP@,$ZIP,;t t
30415 s,@EGREP@,$EGREP,;t t
30416 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30417 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30418 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30419 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30420 s,@LIBADD_DL@,$LIBADD_DL,;t t
30421 s,@ECHO@,$ECHO,;t t
30422 s,@AR@,$AR,;t t
30423 s,@ac_ct_AR@,$ac_ct_AR,;t t
30424 s,@STRIP@,$STRIP,;t t
30425 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30426 s,@CXXCPP@,$CXXCPP,;t t
30427 s,@F77@,$F77,;t t
30428 s,@FFLAGS@,$FFLAGS,;t t
30429 s,@ac_ct_F77@,$ac_ct_F77,;t t
30430 s,@LIBTOOL@,$LIBTOOL,;t t
30431 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30432 s,@ALLOCA@,$ALLOCA,;t t
30433 s,@MMAP_FILE@,$MMAP_FILE,;t t
30434 s,@LLVMGCC@,$LLVMGCC,;t t
30435 s,@LLVMCC1@,$LLVMCC1,;t t
30436 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30437 s,@SHLIBEXT@,$SHLIBEXT,;t t
30438 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30439 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30440 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30441 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30442 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30443 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30444 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30445 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30446 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30447 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30448 s,@LIBOBJS@,$LIBOBJS,;t t
30449 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30450 CEOF
30451
30452 _ACEOF
30453
30454   cat >>$CONFIG_STATUS <<\_ACEOF
30455   # Split the substitutions into bite-sized pieces for seds with
30456   # small command number limits, like on Digital OSF/1 and HP-UX.
30457   ac_max_sed_lines=48
30458   ac_sed_frag=1 # Number of current file.
30459   ac_beg=1 # First line for current file.
30460   ac_end=$ac_max_sed_lines # Line after last line for current file.
30461   ac_more_lines=:
30462   ac_sed_cmds=
30463   while $ac_more_lines; do
30464     if test $ac_beg -gt 1; then
30465       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30466     else
30467       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30468     fi
30469     if test ! -s $tmp/subs.frag; then
30470       ac_more_lines=false
30471     else
30472       # The purpose of the label and of the branching condition is to
30473       # speed up the sed processing (if there are no `@' at all, there
30474       # is no need to browse any of the substitutions).
30475       # These are the two extra sed commands mentioned above.
30476       (echo ':t
30477   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30478       if test -z "$ac_sed_cmds"; then
30479         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30480       else
30481         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30482       fi
30483       ac_sed_frag=`expr $ac_sed_frag + 1`
30484       ac_beg=$ac_end
30485       ac_end=`expr $ac_end + $ac_max_sed_lines`
30486     fi
30487   done
30488   if test -z "$ac_sed_cmds"; then
30489     ac_sed_cmds=cat
30490   fi
30491 fi # test -n "$CONFIG_FILES"
30492
30493 _ACEOF
30494 cat >>$CONFIG_STATUS <<\_ACEOF
30495 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30496   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30497   case $ac_file in
30498   - | *:- | *:-:* ) # input from stdin
30499         cat >$tmp/stdin
30500         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30501         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30502   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30503         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30504   * )   ac_file_in=$ac_file.in ;;
30505   esac
30506
30507   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30508   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30510          X"$ac_file" : 'X\(//\)[^/]' \| \
30511          X"$ac_file" : 'X\(//\)$' \| \
30512          X"$ac_file" : 'X\(/\)' \| \
30513          .     : '\(.\)' 2>/dev/null ||
30514 echo X"$ac_file" |
30515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30517           /^X\(\/\/\)$/{ s//\1/; q; }
30518           /^X\(\/\).*/{ s//\1/; q; }
30519           s/.*/./; q'`
30520   { if $as_mkdir_p; then
30521     mkdir -p "$ac_dir"
30522   else
30523     as_dir="$ac_dir"
30524     as_dirs=
30525     while test ! -d "$as_dir"; do
30526       as_dirs="$as_dir $as_dirs"
30527       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30529          X"$as_dir" : 'X\(//\)[^/]' \| \
30530          X"$as_dir" : 'X\(//\)$' \| \
30531          X"$as_dir" : 'X\(/\)' \| \
30532          .     : '\(.\)' 2>/dev/null ||
30533 echo X"$as_dir" |
30534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30535           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30536           /^X\(\/\/\)$/{ s//\1/; q; }
30537           /^X\(\/\).*/{ s//\1/; q; }
30538           s/.*/./; q'`
30539     done
30540     test ! -n "$as_dirs" || mkdir $as_dirs
30541   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30543    { (exit 1); exit 1; }; }; }
30544
30545   ac_builddir=.
30546
30547 if test "$ac_dir" != .; then
30548   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30549   # A "../" for each directory in $ac_dir_suffix.
30550   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30551 else
30552   ac_dir_suffix= ac_top_builddir=
30553 fi
30554
30555 case $srcdir in
30556   .)  # No --srcdir option.  We are building in place.
30557     ac_srcdir=.
30558     if test -z "$ac_top_builddir"; then
30559        ac_top_srcdir=.
30560     else
30561        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30562     fi ;;
30563   [\\/]* | ?:[\\/]* )  # Absolute path.
30564     ac_srcdir=$srcdir$ac_dir_suffix;
30565     ac_top_srcdir=$srcdir ;;
30566   *) # Relative path.
30567     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30568     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30569 esac
30570
30571 # Do not use `cd foo && pwd` to compute absolute paths, because
30572 # the directories may not exist.
30573 case `pwd` in
30574 .) ac_abs_builddir="$ac_dir";;
30575 *)
30576   case "$ac_dir" in
30577   .) ac_abs_builddir=`pwd`;;
30578   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30579   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30580   esac;;
30581 esac
30582 case $ac_abs_builddir in
30583 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30584 *)
30585   case ${ac_top_builddir}. in
30586   .) ac_abs_top_builddir=$ac_abs_builddir;;
30587   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30588   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30589   esac;;
30590 esac
30591 case $ac_abs_builddir in
30592 .) ac_abs_srcdir=$ac_srcdir;;
30593 *)
30594   case $ac_srcdir in
30595   .) ac_abs_srcdir=$ac_abs_builddir;;
30596   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30597   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30598   esac;;
30599 esac
30600 case $ac_abs_builddir in
30601 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30602 *)
30603   case $ac_top_srcdir in
30604   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30605   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30606   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30607   esac;;
30608 esac
30609
30610
30611   case $INSTALL in
30612   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30613   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30614   esac
30615
30616   if test x"$ac_file" != x-; then
30617     { echo "$as_me:$LINENO: creating $ac_file" >&5
30618 echo "$as_me: creating $ac_file" >&6;}
30619     rm -f "$ac_file"
30620   fi
30621   # Let's still pretend it is `configure' which instantiates (i.e., don't
30622   # use $as_me), people would be surprised to read:
30623   #    /* config.h.  Generated by config.status.  */
30624   if test x"$ac_file" = x-; then
30625     configure_input=
30626   else
30627     configure_input="$ac_file.  "
30628   fi
30629   configure_input=$configure_input"Generated from `echo $ac_file_in |
30630                                      sed 's,.*/,,'` by configure."
30631
30632   # First look for the input files in the build tree, otherwise in the
30633   # src tree.
30634   ac_file_inputs=`IFS=:
30635     for f in $ac_file_in; do
30636       case $f in
30637       -) echo $tmp/stdin ;;
30638       [\\/$]*)
30639          # Absolute (can't be DOS-style, as IFS=:)
30640          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30641 echo "$as_me: error: cannot find input file: $f" >&2;}
30642    { (exit 1); exit 1; }; }
30643          echo "$f";;
30644       *) # Relative
30645          if test -f "$f"; then
30646            # Build tree
30647            echo "$f"
30648          elif test -f "$srcdir/$f"; then
30649            # Source tree
30650            echo "$srcdir/$f"
30651          else
30652            # /dev/null tree
30653            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30654 echo "$as_me: error: cannot find input file: $f" >&2;}
30655    { (exit 1); exit 1; }; }
30656          fi;;
30657       esac
30658     done` || { (exit 1); exit 1; }
30659 _ACEOF
30660 cat >>$CONFIG_STATUS <<_ACEOF
30661   sed "$ac_vpsub
30662 $extrasub
30663 _ACEOF
30664 cat >>$CONFIG_STATUS <<\_ACEOF
30665 :t
30666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30667 s,@configure_input@,$configure_input,;t t
30668 s,@srcdir@,$ac_srcdir,;t t
30669 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30670 s,@top_srcdir@,$ac_top_srcdir,;t t
30671 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30672 s,@builddir@,$ac_builddir,;t t
30673 s,@abs_builddir@,$ac_abs_builddir,;t t
30674 s,@top_builddir@,$ac_top_builddir,;t t
30675 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30676 s,@INSTALL@,$ac_INSTALL,;t t
30677 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30678   rm -f $tmp/stdin
30679   if test x"$ac_file" != x-; then
30680     mv $tmp/out $ac_file
30681   else
30682     cat $tmp/out
30683     rm -f $tmp/out
30684   fi
30685
30686 done
30687 _ACEOF
30688 cat >>$CONFIG_STATUS <<\_ACEOF
30689
30690 #
30691 # CONFIG_HEADER section.
30692 #
30693
30694 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30695 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30696 #
30697 # ac_d sets the value in "#define NAME VALUE" lines.
30698 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30699 ac_dB='[         ].*$,\1#\2'
30700 ac_dC=' '
30701 ac_dD=',;t'
30702 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30703 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30704 ac_uB='$,\1#\2define\3'
30705 ac_uC=' '
30706 ac_uD=',;t'
30707
30708 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30709   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30710   case $ac_file in
30711   - | *:- | *:-:* ) # input from stdin
30712         cat >$tmp/stdin
30713         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30714         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30715   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30716         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30717   * )   ac_file_in=$ac_file.in ;;
30718   esac
30719
30720   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30721 echo "$as_me: creating $ac_file" >&6;}
30722
30723   # First look for the input files in the build tree, otherwise in the
30724   # src tree.
30725   ac_file_inputs=`IFS=:
30726     for f in $ac_file_in; do
30727       case $f in
30728       -) echo $tmp/stdin ;;
30729       [\\/$]*)
30730          # Absolute (can't be DOS-style, as IFS=:)
30731          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30732 echo "$as_me: error: cannot find input file: $f" >&2;}
30733    { (exit 1); exit 1; }; }
30734          # Do quote $f, to prevent DOS paths from being IFS'd.
30735          echo "$f";;
30736       *) # Relative
30737          if test -f "$f"; then
30738            # Build tree
30739            echo "$f"
30740          elif test -f "$srcdir/$f"; then
30741            # Source tree
30742            echo "$srcdir/$f"
30743          else
30744            # /dev/null tree
30745            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30746 echo "$as_me: error: cannot find input file: $f" >&2;}
30747    { (exit 1); exit 1; }; }
30748          fi;;
30749       esac
30750     done` || { (exit 1); exit 1; }
30751   # Remove the trailing spaces.
30752   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30753
30754 _ACEOF
30755
30756 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30757 # `conftest.undefs', that substitutes the proper values into
30758 # config.h.in to produce config.h.  The first handles `#define'
30759 # templates, and the second `#undef' templates.
30760 # And first: Protect against being on the right side of a sed subst in
30761 # config.status.  Protect against being in an unquoted here document
30762 # in config.status.
30763 rm -f conftest.defines conftest.undefs
30764 # Using a here document instead of a string reduces the quoting nightmare.
30765 # Putting comments in sed scripts is not portable.
30766 #
30767 # `end' is used to avoid that the second main sed command (meant for
30768 # 0-ary CPP macros) applies to n-ary macro definitions.
30769 # See the Autoconf documentation for `clear'.
30770 cat >confdef2sed.sed <<\_ACEOF
30771 s/[\\&,]/\\&/g
30772 s,[\\$`],\\&,g
30773 t clear
30774 : clear
30775 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30776 t end
30777 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30778 : end
30779 _ACEOF
30780 # If some macros were called several times there might be several times
30781 # the same #defines, which is useless.  Nevertheless, we may not want to
30782 # sort them, since we want the *last* AC-DEFINE to be honored.
30783 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30784 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30785 rm -f confdef2sed.sed
30786
30787 # This sed command replaces #undef with comments.  This is necessary, for
30788 # example, in the case of _POSIX_SOURCE, which is predefined and required
30789 # on some systems where configure will not decide to define it.
30790 cat >>conftest.undefs <<\_ACEOF
30791 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30792 _ACEOF
30793
30794 # Break up conftest.defines because some shells have a limit on the size
30795 # of here documents, and old seds have small limits too (100 cmds).
30796 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30797 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30798 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30799 echo '  :' >>$CONFIG_STATUS
30800 rm -f conftest.tail
30801 while grep . conftest.defines >/dev/null
30802 do
30803   # Write a limited-size here document to $tmp/defines.sed.
30804   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30805   # Speed up: don't consider the non `#define' lines.
30806   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30807   # Work around the forget-to-reset-the-flag bug.
30808   echo 't clr' >>$CONFIG_STATUS
30809   echo ': clr' >>$CONFIG_STATUS
30810   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30811   echo 'CEOF
30812   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30813   rm -f $tmp/in
30814   mv $tmp/out $tmp/in
30815 ' >>$CONFIG_STATUS
30816   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30817   rm -f conftest.defines
30818   mv conftest.tail conftest.defines
30819 done
30820 rm -f conftest.defines
30821 echo '  fi # grep' >>$CONFIG_STATUS
30822 echo >>$CONFIG_STATUS
30823
30824 # Break up conftest.undefs because some shells have a limit on the size
30825 # of here documents, and old seds have small limits too (100 cmds).
30826 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30827 rm -f conftest.tail
30828 while grep . conftest.undefs >/dev/null
30829 do
30830   # Write a limited-size here document to $tmp/undefs.sed.
30831   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30832   # Speed up: don't consider the non `#undef'
30833   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30834   # Work around the forget-to-reset-the-flag bug.
30835   echo 't clr' >>$CONFIG_STATUS
30836   echo ': clr' >>$CONFIG_STATUS
30837   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30838   echo 'CEOF
30839   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30840   rm -f $tmp/in
30841   mv $tmp/out $tmp/in
30842 ' >>$CONFIG_STATUS
30843   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30844   rm -f conftest.undefs
30845   mv conftest.tail conftest.undefs
30846 done
30847 rm -f conftest.undefs
30848
30849 cat >>$CONFIG_STATUS <<\_ACEOF
30850   # Let's still pretend it is `configure' which instantiates (i.e., don't
30851   # use $as_me), people would be surprised to read:
30852   #    /* config.h.  Generated by config.status.  */
30853   if test x"$ac_file" = x-; then
30854     echo "/* Generated by configure.  */" >$tmp/config.h
30855   else
30856     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30857   fi
30858   cat $tmp/in >>$tmp/config.h
30859   rm -f $tmp/in
30860   if test x"$ac_file" != x-; then
30861     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30862       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30863 echo "$as_me: $ac_file is unchanged" >&6;}
30864     else
30865       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30867          X"$ac_file" : 'X\(//\)[^/]' \| \
30868          X"$ac_file" : 'X\(//\)$' \| \
30869          X"$ac_file" : 'X\(/\)' \| \
30870          .     : '\(.\)' 2>/dev/null ||
30871 echo X"$ac_file" |
30872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30874           /^X\(\/\/\)$/{ s//\1/; q; }
30875           /^X\(\/\).*/{ s//\1/; q; }
30876           s/.*/./; q'`
30877       { if $as_mkdir_p; then
30878     mkdir -p "$ac_dir"
30879   else
30880     as_dir="$ac_dir"
30881     as_dirs=
30882     while test ! -d "$as_dir"; do
30883       as_dirs="$as_dir $as_dirs"
30884       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30886          X"$as_dir" : 'X\(//\)[^/]' \| \
30887          X"$as_dir" : 'X\(//\)$' \| \
30888          X"$as_dir" : 'X\(/\)' \| \
30889          .     : '\(.\)' 2>/dev/null ||
30890 echo X"$as_dir" |
30891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30892           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30893           /^X\(\/\/\)$/{ s//\1/; q; }
30894           /^X\(\/\).*/{ s//\1/; q; }
30895           s/.*/./; q'`
30896     done
30897     test ! -n "$as_dirs" || mkdir $as_dirs
30898   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30899 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30900    { (exit 1); exit 1; }; }; }
30901
30902       rm -f $ac_file
30903       mv $tmp/config.h $ac_file
30904     fi
30905   else
30906     cat $tmp/config.h
30907     rm -f $tmp/config.h
30908   fi
30909 done
30910 _ACEOF
30911 cat >>$CONFIG_STATUS <<\_ACEOF
30912
30913 #
30914 # CONFIG_LINKS section.
30915 #
30916
30917 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30918   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30919   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30920
30921   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30922 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30923
30924   if test ! -r $srcdir/$ac_source; then
30925     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30926 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30927    { (exit 1); exit 1; }; }
30928   fi
30929   rm -f $ac_dest
30930
30931   # Make relative symlinks.
30932   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30933 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30934          X"$ac_dest" : 'X\(//\)[^/]' \| \
30935          X"$ac_dest" : 'X\(//\)$' \| \
30936          X"$ac_dest" : 'X\(/\)' \| \
30937          .     : '\(.\)' 2>/dev/null ||
30938 echo X"$ac_dest" |
30939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30940           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30941           /^X\(\/\/\)$/{ s//\1/; q; }
30942           /^X\(\/\).*/{ s//\1/; q; }
30943           s/.*/./; q'`
30944   { if $as_mkdir_p; then
30945     mkdir -p "$ac_dest_dir"
30946   else
30947     as_dir="$ac_dest_dir"
30948     as_dirs=
30949     while test ! -d "$as_dir"; do
30950       as_dirs="$as_dir $as_dirs"
30951       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30953          X"$as_dir" : 'X\(//\)[^/]' \| \
30954          X"$as_dir" : 'X\(//\)$' \| \
30955          X"$as_dir" : 'X\(/\)' \| \
30956          .     : '\(.\)' 2>/dev/null ||
30957 echo X"$as_dir" |
30958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30959           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30960           /^X\(\/\/\)$/{ s//\1/; q; }
30961           /^X\(\/\).*/{ s//\1/; q; }
30962           s/.*/./; q'`
30963     done
30964     test ! -n "$as_dirs" || mkdir $as_dirs
30965   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30966 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30967    { (exit 1); exit 1; }; }; }
30968
30969   ac_builddir=.
30970
30971 if test "$ac_dest_dir" != .; then
30972   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30973   # A "../" for each directory in $ac_dir_suffix.
30974   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30975 else
30976   ac_dir_suffix= ac_top_builddir=
30977 fi
30978
30979 case $srcdir in
30980   .)  # No --srcdir option.  We are building in place.
30981     ac_srcdir=.
30982     if test -z "$ac_top_builddir"; then
30983        ac_top_srcdir=.
30984     else
30985        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30986     fi ;;
30987   [\\/]* | ?:[\\/]* )  # Absolute path.
30988     ac_srcdir=$srcdir$ac_dir_suffix;
30989     ac_top_srcdir=$srcdir ;;
30990   *) # Relative path.
30991     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30992     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30993 esac
30994
30995 # Do not use `cd foo && pwd` to compute absolute paths, because
30996 # the directories may not exist.
30997 case `pwd` in
30998 .) ac_abs_builddir="$ac_dest_dir";;
30999 *)
31000   case "$ac_dest_dir" in
31001   .) ac_abs_builddir=`pwd`;;
31002   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31003   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31004   esac;;
31005 esac
31006 case $ac_abs_builddir in
31007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31008 *)
31009   case ${ac_top_builddir}. in
31010   .) ac_abs_top_builddir=$ac_abs_builddir;;
31011   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31012   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31013   esac;;
31014 esac
31015 case $ac_abs_builddir in
31016 .) ac_abs_srcdir=$ac_srcdir;;
31017 *)
31018   case $ac_srcdir in
31019   .) ac_abs_srcdir=$ac_abs_builddir;;
31020   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31021   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31022   esac;;
31023 esac
31024 case $ac_abs_builddir in
31025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31026 *)
31027   case $ac_top_srcdir in
31028   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31029   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31030   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31031   esac;;
31032 esac
31033
31034
31035   case $srcdir in
31036   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31037       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31038   esac
31039
31040   # Try a symlink, then a hard link, then a copy.
31041   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31042     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31043     cp -p $srcdir/$ac_source $ac_dest ||
31044     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31045 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31046    { (exit 1); exit 1; }; }
31047 done
31048 _ACEOF
31049 cat >>$CONFIG_STATUS <<\_ACEOF
31050
31051 #
31052 # CONFIG_COMMANDS section.
31053 #
31054 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31055   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31056   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31057   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31058 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31059          X"$ac_dest" : 'X\(//\)[^/]' \| \
31060          X"$ac_dest" : 'X\(//\)$' \| \
31061          X"$ac_dest" : 'X\(/\)' \| \
31062          .     : '\(.\)' 2>/dev/null ||
31063 echo X"$ac_dest" |
31064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31065           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31066           /^X\(\/\/\)$/{ s//\1/; q; }
31067           /^X\(\/\).*/{ s//\1/; q; }
31068           s/.*/./; q'`
31069   { if $as_mkdir_p; then
31070     mkdir -p "$ac_dir"
31071   else
31072     as_dir="$ac_dir"
31073     as_dirs=
31074     while test ! -d "$as_dir"; do
31075       as_dirs="$as_dir $as_dirs"
31076       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31078          X"$as_dir" : 'X\(//\)[^/]' \| \
31079          X"$as_dir" : 'X\(//\)$' \| \
31080          X"$as_dir" : 'X\(/\)' \| \
31081          .     : '\(.\)' 2>/dev/null ||
31082 echo X"$as_dir" |
31083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31084           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31085           /^X\(\/\/\)$/{ s//\1/; q; }
31086           /^X\(\/\).*/{ s//\1/; q; }
31087           s/.*/./; q'`
31088     done
31089     test ! -n "$as_dirs" || mkdir $as_dirs
31090   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31091 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31092    { (exit 1); exit 1; }; }; }
31093
31094   ac_builddir=.
31095
31096 if test "$ac_dir" != .; then
31097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31098   # A "../" for each directory in $ac_dir_suffix.
31099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31100 else
31101   ac_dir_suffix= ac_top_builddir=
31102 fi
31103
31104 case $srcdir in
31105   .)  # No --srcdir option.  We are building in place.
31106     ac_srcdir=.
31107     if test -z "$ac_top_builddir"; then
31108        ac_top_srcdir=.
31109     else
31110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31111     fi ;;
31112   [\\/]* | ?:[\\/]* )  # Absolute path.
31113     ac_srcdir=$srcdir$ac_dir_suffix;
31114     ac_top_srcdir=$srcdir ;;
31115   *) # Relative path.
31116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31118 esac
31119
31120 # Do not use `cd foo && pwd` to compute absolute paths, because
31121 # the directories may not exist.
31122 case `pwd` in
31123 .) ac_abs_builddir="$ac_dir";;
31124 *)
31125   case "$ac_dir" in
31126   .) ac_abs_builddir=`pwd`;;
31127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31129   esac;;
31130 esac
31131 case $ac_abs_builddir in
31132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31133 *)
31134   case ${ac_top_builddir}. in
31135   .) ac_abs_top_builddir=$ac_abs_builddir;;
31136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31138   esac;;
31139 esac
31140 case $ac_abs_builddir in
31141 .) ac_abs_srcdir=$ac_srcdir;;
31142 *)
31143   case $ac_srcdir in
31144   .) ac_abs_srcdir=$ac_abs_builddir;;
31145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31147   esac;;
31148 esac
31149 case $ac_abs_builddir in
31150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31151 *)
31152   case $ac_top_srcdir in
31153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31156   esac;;
31157 esac
31158
31159
31160   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31161 echo "$as_me: executing $ac_dest commands" >&6;}
31162   case $ac_dest in
31163     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31164     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31165     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31166     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31167     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31168     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31169     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31170     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31171     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31172     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31173   esac
31174 done
31175 _ACEOF
31176
31177 cat >>$CONFIG_STATUS <<\_ACEOF
31178
31179 { (exit 0); exit 0; }
31180 _ACEOF
31181 chmod +x $CONFIG_STATUS
31182 ac_clean_files=$ac_clean_files_save
31183
31184
31185 # configure is writing to config.log, and then calls config.status.
31186 # config.status does its own redirection, appending to config.log.
31187 # Unfortunately, on DOS this fails, as config.log is still kept open
31188 # by configure, so config.status won't be able to write to it; its
31189 # output is simply discarded.  So we exec the FD to /dev/null,
31190 # effectively closing config.log, so it can be properly (re)opened and
31191 # appended to by config.status.  When coming back to configure, we
31192 # need to make the FD available again.
31193 if test "$no_create" != yes; then
31194   ac_cs_success=:
31195   ac_config_status_args=
31196   test "$silent" = yes &&
31197     ac_config_status_args="$ac_config_status_args --quiet"
31198   exec 5>/dev/null
31199   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31200   exec 5>>config.log
31201   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31202   # would make configure fail if this is the last instruction.
31203   $ac_cs_success || { (exit 1); exit 1; }
31204 fi
31205
31206 #
31207 # CONFIG_SUBDIRS section.
31208 #
31209 if test "$no_recursion" != yes; then
31210
31211   # Remove --cache-file and --srcdir arguments so they do not pile up.
31212   ac_sub_configure_args=
31213   ac_prev=
31214   for ac_arg in $ac_configure_args; do
31215     if test -n "$ac_prev"; then
31216       ac_prev=
31217       continue
31218     fi
31219     case $ac_arg in
31220     -cache-file | --cache-file | --cache-fil | --cache-fi \
31221     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31222       ac_prev=cache_file ;;
31223     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31224     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31225     | --c=*)
31226       ;;
31227     --config-cache | -C)
31228       ;;
31229     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31230       ac_prev=srcdir ;;
31231     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31232       ;;
31233     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31234       ac_prev=prefix ;;
31235     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31236       ;;
31237     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31238     esac
31239   done
31240
31241   # Always prepend --prefix to ensure using the same prefix
31242   # in subdir configurations.
31243   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31244
31245   ac_popdir=`pwd`
31246   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31247
31248     # Do not complain, so a configure script can configure whichever
31249     # parts of a large source tree are present.
31250     test -d $srcdir/$ac_dir || continue
31251
31252     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31253 echo "$as_me: configuring in $ac_dir" >&6;}
31254     { if $as_mkdir_p; then
31255     mkdir -p "$ac_dir"
31256   else
31257     as_dir="$ac_dir"
31258     as_dirs=
31259     while test ! -d "$as_dir"; do
31260       as_dirs="$as_dir $as_dirs"
31261       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31263          X"$as_dir" : 'X\(//\)[^/]' \| \
31264          X"$as_dir" : 'X\(//\)$' \| \
31265          X"$as_dir" : 'X\(/\)' \| \
31266          .     : '\(.\)' 2>/dev/null ||
31267 echo X"$as_dir" |
31268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31270           /^X\(\/\/\)$/{ s//\1/; q; }
31271           /^X\(\/\).*/{ s//\1/; q; }
31272           s/.*/./; q'`
31273     done
31274     test ! -n "$as_dirs" || mkdir $as_dirs
31275   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31277    { (exit 1); exit 1; }; }; }
31278
31279     ac_builddir=.
31280
31281 if test "$ac_dir" != .; then
31282   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31283   # A "../" for each directory in $ac_dir_suffix.
31284   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31285 else
31286   ac_dir_suffix= ac_top_builddir=
31287 fi
31288
31289 case $srcdir in
31290   .)  # No --srcdir option.  We are building in place.
31291     ac_srcdir=.
31292     if test -z "$ac_top_builddir"; then
31293        ac_top_srcdir=.
31294     else
31295        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31296     fi ;;
31297   [\\/]* | ?:[\\/]* )  # Absolute path.
31298     ac_srcdir=$srcdir$ac_dir_suffix;
31299     ac_top_srcdir=$srcdir ;;
31300   *) # Relative path.
31301     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31302     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31303 esac
31304
31305 # Do not use `cd foo && pwd` to compute absolute paths, because
31306 # the directories may not exist.
31307 case `pwd` in
31308 .) ac_abs_builddir="$ac_dir";;
31309 *)
31310   case "$ac_dir" in
31311   .) ac_abs_builddir=`pwd`;;
31312   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31313   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31314   esac;;
31315 esac
31316 case $ac_abs_builddir in
31317 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31318 *)
31319   case ${ac_top_builddir}. in
31320   .) ac_abs_top_builddir=$ac_abs_builddir;;
31321   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31322   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31323   esac;;
31324 esac
31325 case $ac_abs_builddir in
31326 .) ac_abs_srcdir=$ac_srcdir;;
31327 *)
31328   case $ac_srcdir in
31329   .) ac_abs_srcdir=$ac_abs_builddir;;
31330   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31331   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31332   esac;;
31333 esac
31334 case $ac_abs_builddir in
31335 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31336 *)
31337   case $ac_top_srcdir in
31338   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31339   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31340   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31341   esac;;
31342 esac
31343
31344
31345     cd $ac_dir
31346
31347     # Check for guested configure; otherwise get Cygnus style configure.
31348     if test -f $ac_srcdir/configure.gnu; then
31349       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31350     elif test -f $ac_srcdir/configure; then
31351       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31352     elif test -f $ac_srcdir/configure.in; then
31353       ac_sub_configure=$ac_configure
31354     else
31355       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31356 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31357       ac_sub_configure=
31358     fi
31359
31360     # The recursion is here.
31361     if test -n "$ac_sub_configure"; then
31362       # Make the cache file name correct relative to the subdirectory.
31363       case $cache_file in
31364       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31365       *) # Relative path.
31366         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31367       esac
31368
31369       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31370 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31371       # The eval makes quoting arguments work.
31372       eval $ac_sub_configure $ac_sub_configure_args \
31373            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31374         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31375 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31376    { (exit 1); exit 1; }; }
31377     fi
31378
31379     cd $ac_popdir
31380   done
31381 fi
31382
31383
31384 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31385  { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31386 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31387  { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31388 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31389  { echo "$as_me:$LINENO: WARNING: ***** " >&5
31390 echo "$as_me: WARNING: ***** " >&2;}
31391  { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31392 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31393  { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31394 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31395  { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31396 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31397 fi