First step in avoiding compilation/usage of non-relevant targets. New
[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.5cvs.
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.5cvs'
429 PACKAGE_STRING='llvm 1.5cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-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 LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.5cvs 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.5cvs:";;
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-target-this    Build only the current host's target (default is NO)
1041   --enable-target-x86     Build the x86 target (default is YES)
1042   --enable-target-x86-64  Build the x86_64 target (default is YES)
1043   --enable-target-sparc   Build the Sparc target (default is YES)
1044   --enable-target-powerpc Build the PowerPC target (default is YES)
1045   --enable-target-alpha   Build the Alpha target (default is YES)
1046   --enable-target-ia64    Build the IA64 target (default is YES)
1047   --enable-ltdl-install   install libltdl
1048   --enable-shared[=PKGS]
1049                           build shared libraries [default=yes]
1050   --enable-static[=PKGS]
1051                           build static libraries [default=yes]
1052   --enable-fast-install[=PKGS]
1053                           optimize for fast installation [default=yes]
1054   --disable-libtool-lock  avoid locking (might break parallel builds)
1055
1056 Optional Packages:
1057   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1058   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1059   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1060                           searches PATH)
1061   --with-tclinclude       directory where tcl headers are
1062   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1063   --with-pic              try to use only PIC/non-PIC objects [default=use
1064                           both]
1065   --with-tags[=TAGS]
1066                           include additional configurations [automatic]
1067
1068 Some influential environment variables:
1069   CC          C compiler command
1070   CFLAGS      C compiler flags
1071   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072               nonstandard directory <lib dir>
1073   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074               headers in a nonstandard directory <include dir>
1075   CPP         C preprocessor
1076   CXX         C++ compiler command
1077   CXXFLAGS    C++ compiler flags
1078   CXXCPP      C++ preprocessor
1079   F77         Fortran 77 compiler command
1080   FFLAGS      Fortran 77 compiler flags
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <llvmbugs@cs.uiuc.edu>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090   # If there are subdirs, report their specific --help.
1091   ac_popdir=`pwd`
1092   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093     test -d $ac_dir || continue
1094     ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098   # A "../" for each directory in $ac_dir_suffix.
1099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101   ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105   .)  # No --srcdir option.  We are building in place.
1106     ac_srcdir=.
1107     if test -z "$ac_top_builddir"; then
1108        ac_top_srcdir=.
1109     else
1110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111     fi ;;
1112   [\\/]* | ?:[\\/]* )  # Absolute path.
1113     ac_srcdir=$srcdir$ac_dir_suffix;
1114     ac_top_srcdir=$srcdir ;;
1115   *) # Relative path.
1116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125   case "$ac_dir" in
1126   .) ac_abs_builddir=`pwd`;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134   case ${ac_top_builddir}. in
1135   .) ac_abs_top_builddir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143   case $ac_srcdir in
1144   .) ac_abs_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152   case $ac_top_srcdir in
1153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156   esac;;
1157 esac
1158
1159     cd $ac_dir
1160     # Check for guested configure; otherwise get Cygnus style configure.
1161     if test -f $ac_srcdir/configure.gnu; then
1162       echo
1163       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164     elif test -f $ac_srcdir/configure; then
1165       echo
1166       $SHELL $ac_srcdir/configure  --help=recursive
1167     elif test -f $ac_srcdir/configure.ac ||
1168            test -f $ac_srcdir/configure.in; then
1169       echo
1170       $ac_configure --help
1171     else
1172       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173     fi
1174     cd $ac_popdir
1175   done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180   cat <<\_ACEOF
1181 llvm configure 1.5cvs
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187
1188 $LLVM_COPYRIGHT
1189 _ACEOF
1190   exit 0
1191 fi
1192 exec 5>config.log
1193 cat >&5 <<_ACEOF
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1196
1197 It was created by llvm $as_me 1.5cvs, which was
1198 generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200   $ $0 $@
1201
1202 _ACEOF
1203 {
1204 cat <<_ASUNAME
1205 ## --------- ##
1206 ## Platform. ##
1207 ## --------- ##
1208
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226 _ASUNAME
1227
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 for as_dir in $PATH
1230 do
1231   IFS=$as_save_IFS
1232   test -z "$as_dir" && as_dir=.
1233   echo "PATH: $as_dir"
1234 done
1235
1236 } >&5
1237
1238 cat >&5 <<_ACEOF
1239
1240
1241 ## ----------- ##
1242 ## Core tests. ##
1243 ## ----------- ##
1244
1245 _ACEOF
1246
1247
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_configure_args=
1254 ac_configure_args0=
1255 ac_configure_args1=
1256 ac_sep=
1257 ac_must_keep_next=false
1258 for ac_pass in 1 2
1259 do
1260   for ac_arg
1261   do
1262     case $ac_arg in
1263     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265     | -silent | --silent | --silen | --sile | --sil)
1266       continue ;;
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     esac
1270     case $ac_pass in
1271     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272     2)
1273       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274       if test $ac_must_keep_next = true; then
1275         ac_must_keep_next=false # Got value, back to normal.
1276       else
1277         case $ac_arg in
1278           *=* | --config-cache | -C | -disable-* | --disable-* \
1279           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281           | -with-* | --with-* | -without-* | --without-* | --x)
1282             case "$ac_configure_args0 " in
1283               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284             esac
1285             ;;
1286           -* ) ac_must_keep_next=true ;;
1287         esac
1288       fi
1289       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290       # Get rid of the leading space.
1291       ac_sep=" "
1292       ;;
1293     esac
1294   done
1295 done
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log.  We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305   # Save into config.log some information that might help in debugging.
1306   {
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1313 _ASBOX
1314     echo
1315     # The following way of writing the cache mishandles newlines in values,
1316 {
1317   (set) 2>&1 |
1318     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319     *ac_space=\ *)
1320       sed -n \
1321         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323       ;;
1324     *)
1325       sed -n \
1326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327       ;;
1328     esac;
1329 }
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1336 _ASBOX
1337     echo
1338     for ac_var in $ac_subst_vars
1339     do
1340       eval ac_val=$`echo $ac_var`
1341       echo "$ac_var='"'"'$ac_val'"'"'"
1342     done | sort
1343     echo
1344
1345     if test -n "$ac_subst_files"; then
1346       cat <<\_ASBOX
1347 ## ------------- ##
1348 ## Output files. ##
1349 ## ------------- ##
1350 _ASBOX
1351       echo
1352       for ac_var in $ac_subst_files
1353       do
1354         eval ac_val=$`echo $ac_var`
1355         echo "$ac_var='"'"'$ac_val'"'"'"
1356       done | sort
1357       echo
1358     fi
1359
1360     if test -s confdefs.h; then
1361       cat <<\_ASBOX
1362 ## ----------- ##
1363 ## confdefs.h. ##
1364 ## ----------- ##
1365 _ASBOX
1366       echo
1367       sed "/^$/d" confdefs.h | sort
1368       echo
1369     fi
1370     test "$ac_signal" != 0 &&
1371       echo "$as_me: caught signal $ac_signal"
1372     echo "$as_me: exit $exit_status"
1373   } >&5
1374   rm -f core *.core &&
1375   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376     exit $exit_status
1377      ' 0
1378 for ac_signal in 1 2 13 15; do
1379   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 done
1381 ac_signal=0
1382
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 echo >confdefs.h
1387
1388 # Predefined preprocessor variables.
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 _ACEOF
1413
1414
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418   if test "x$prefix" != xNONE; then
1419     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420   else
1421     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422   fi
1423 fi
1424 for ac_site_file in $CONFIG_SITE; do
1425   if test -r "$ac_site_file"; then
1426     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428     sed 's/^/| /' "$ac_site_file" >&5
1429     . "$ac_site_file"
1430   fi
1431 done
1432
1433 if test -r "$cache_file"; then
1434   # Some versions of bash will fail to source /dev/null (special
1435   # files actually), so we avoid doing that.
1436   if test -f "$cache_file"; then
1437     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1439     case $cache_file in
1440       [\\/]* | ?:[\\/]* ) . $cache_file;;
1441       *)                      . ./$cache_file;;
1442     esac
1443   fi
1444 else
1445   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1447   >$cache_file
1448 fi
1449
1450 # Check that the precious variables saved in the cache have kept the same
1451 # value.
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456   eval ac_new_set=\$ac_env_${ac_var}_set
1457   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458   eval ac_new_val="\$ac_env_${ac_var}_value"
1459   case $ac_old_set,$ac_new_set in
1460     set,)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,set)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,);;
1469     *)
1470       if test "x$ac_old_val" != "x$ac_new_val"; then
1471         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474 echo "$as_me:   former value:  $ac_old_val" >&2;}
1475         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476 echo "$as_me:   current value: $ac_new_val" >&2;}
1477         ac_cache_corrupted=:
1478       fi;;
1479   esac
1480   # Pass precious variables to config.status.
1481   if test "$ac_new_set" = set; then
1482     case $ac_new_val in
1483     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485     *) ac_arg=$ac_var=$ac_new_val ;;
1486     esac
1487     case " $ac_configure_args " in
1488       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490     esac
1491   fi
1492 done
1493 if $ac_cache_corrupted; then
1494   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498    { (exit 1); exit 1; }; }
1499 fi
1500
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1535
1536
1537
1538
1539
1540
1541
1542 ac_aux_dir=
1543 for ac_dir in autoconf $srcdir/autoconf; do
1544   if test -f $ac_dir/install-sh; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/install-sh -c"
1547     break
1548   elif test -f $ac_dir/install.sh; then
1549     ac_aux_dir=$ac_dir
1550     ac_install_sh="$ac_aux_dir/install.sh -c"
1551     break
1552   elif test -f $ac_dir/shtool; then
1553     ac_aux_dir=$ac_dir
1554     ac_install_sh="$ac_aux_dir/shtool install -c"
1555     break
1556   fi
1557 done
1558 if test -z "$ac_aux_dir"; then
1559   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561    { (exit 1); exit 1; }; }
1562 fi
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567
1568 if test ${srcdir} != "." ; then
1569   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572    { (exit 1); exit 1; }; }
1573   fi
1574 fi
1575
1576 for i in `ls ${srcdir}/projects`
1577 do
1578   if test -d ${srcdir}/projects/${i} ; then
1579     case ${i} in
1580       "CVS") ;;
1581       "sample")
1582
1583 subdirs="$subdirs projects/sample"
1584     ;;
1585       "Stacker")
1586
1587 subdirs="$subdirs projects/Stacker"
1588    ;;
1589       "llvm-test")
1590
1591 subdirs="$subdirs projects/llvm-test"
1592  ;;
1593       "llvm-reopt")
1594
1595 subdirs="$subdirs projects/llvm-reopt"
1596 ;;
1597       "llvm-gcc")
1598
1599 subdirs="$subdirs projects/llvm-gcc"
1600   ;;
1601       "llvm-java")
1602
1603 subdirs="$subdirs projects/llvm-java"
1604  ;;
1605       "llvm-tv")
1606
1607 subdirs="$subdirs projects/llvm-tv"
1608    ;;
1609       "llvm-fefw")
1610
1611 subdirs="$subdirs projects/llvm-fefw"
1612  ;;
1613       "llvm-poolalloc")
1614
1615 subdirs="$subdirs projects/llvm-poolalloc"
1616  ;;
1617       *)
1618         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1619 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1620         ;;
1621     esac
1622   fi
1623 done
1624
1625
1626 # Make sure we can run config.sub.
1627 $ac_config_sub sun4 >/dev/null 2>&1 ||
1628   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1629 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1630    { (exit 1); exit 1; }; }
1631
1632 echo "$as_me:$LINENO: checking build system type" >&5
1633 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1634 if test "${ac_cv_build+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   ac_cv_build_alias=$build_alias
1638 test -z "$ac_cv_build_alias" &&
1639   ac_cv_build_alias=`$ac_config_guess`
1640 test -z "$ac_cv_build_alias" &&
1641   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1642 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1643    { (exit 1); exit 1; }; }
1644 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1645   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1646 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1647    { (exit 1); exit 1; }; }
1648
1649 fi
1650 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1651 echo "${ECHO_T}$ac_cv_build" >&6
1652 build=$ac_cv_build
1653 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656
1657
1658 echo "$as_me:$LINENO: checking host system type" >&5
1659 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1660 if test "${ac_cv_host+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   ac_cv_host_alias=$host_alias
1664 test -z "$ac_cv_host_alias" &&
1665   ac_cv_host_alias=$ac_cv_build_alias
1666 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1667   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1668 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1669    { (exit 1); exit 1; }; }
1670
1671 fi
1672 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1673 echo "${ECHO_T}$ac_cv_host" >&6
1674 host=$ac_cv_host
1675 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680 echo "$as_me:$LINENO: checking target system type" >&5
1681 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1682 if test "${ac_cv_target+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   ac_cv_target_alias=$target_alias
1686 test "x$ac_cv_target_alias" = "x" &&
1687   ac_cv_target_alias=$ac_cv_host_alias
1688 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1689   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1690 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1691    { (exit 1); exit 1; }; }
1692
1693 fi
1694 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1695 echo "${ECHO_T}$ac_cv_target" >&6
1696 target=$ac_cv_target
1697 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700
1701
1702 # The aliases save the names the user supplied, while $host etc.
1703 # will get canonicalized.
1704 test -n "$target_alias" &&
1705   test "$program_prefix$program_suffix$program_transform_name" = \
1706     NONENONEs,x,x, &&
1707   program_prefix=${target_alias}-
1708
1709 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1710 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1711 if test "${llvm_cv_os_type+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   case $build in
1715   *-*-aix*)
1716     llvm_cv_os_type="AIX"
1717     llvm_cv_platform_type="Unix" ;;
1718   *-*-cygwin*)
1719     llvm_cv_os_type="Cygwin"
1720     llvm_cv_platform_type="Unix" ;;
1721   *-*-darwin*)
1722     llvm_cv_os_type="Darwin"
1723     llvm_cv_platform_type="Unix" ;;
1724   *-*-freebsd*)
1725     llvm_cv_os_type="FreeBSD"
1726     llvm_cv_platform_type="Unix" ;;
1727   *-*-interix*)
1728     llvm_cv_os_type="Interix"
1729     llvm_cv_platform_type="Unix" ;;
1730   *-*-linux*)
1731     llvm_cv_os_type="Linux"
1732     llvm_cv_platform_type="Unix" ;;
1733   *-*-solaris*)
1734     llvm_cv_os_type="SunOS"
1735     llvm_cv_platform_type="Unix" ;;
1736   *-*-win32*)
1737     llvm_cv_os_type="Win32"
1738     llvm_cv_platform_type="Win32" ;;
1739   *-*-mingw*)
1740     llvm_cv_os_type="MingW"
1741     llvm_cv_platform_type="Win32" ;;
1742   *)
1743     llvm_cv_os_type="Unknown"
1744     llvm_cv_platform_type="Unknown" ;;
1745 esac
1746 fi
1747 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748 echo "${ECHO_T}$llvm_cv_os_type" >&6
1749
1750 if test "$llvm_cv_os_type" = "Unknown" ; then
1751   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1753    { (exit 1); exit 1; }; }
1754 fi
1755
1756 OS=$llvm_cv_os_type
1757
1758
1759 case $llvm_cv_platform_type in
1760   Unix)
1761
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_UNIX 1
1764 _ACEOF
1765
1766     LLVM_ON_UNIX=1
1767
1768     LLVM_ON_WIN32=0
1769
1770     ;;
1771   Win32)
1772
1773 cat >>confdefs.h <<\_ACEOF
1774 #define LLVM_ON_WIN32 1
1775 _ACEOF
1776
1777     LLVM_ON_UNIX=0
1778
1779     LLVM_ON_WIN32=1
1780
1781     ;;
1782 esac
1783
1784 case $target in
1785   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1786
1787   ;;
1788 esac
1789
1790 echo "$as_me:$LINENO: checking target architecture" >&5
1791 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1792 if test "${llvm_cv_target_arch+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   case $target in
1796   i?86-*)                 llvm_cv_target_arch="x86" ;;
1797   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1798   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1799   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1800   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1801   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1802   *)                      llvm_cv_target_arch="Unknown" ;;
1803 esac
1804 fi
1805 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1806 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1807
1808 if test "$llvm_cv_target_arch" = "Unknown" ; then
1809   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1810 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1811 fi
1812
1813 ARCH=$llvm_cv_target_arch
1814
1815
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 if test -n "$ac_tool_prefix"; then
1822   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   if test -n "$CC"; then
1830   ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835   IFS=$as_save_IFS
1836   test -z "$as_dir" && as_dir=.
1837   for ac_exec_ext in '' $ac_executable_extensions; do
1838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841     break 2
1842   fi
1843 done
1844 done
1845
1846 fi
1847 fi
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850   echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853   echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857 fi
1858 if test -z "$ac_cv_prog_CC"; then
1859   ac_ct_CC=$CC
1860   # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865   echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867   if test -n "$ac_ct_CC"; then
1868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873   IFS=$as_save_IFS
1874   test -z "$as_dir" && as_dir=.
1875   for ac_exec_ext in '' $ac_executable_extensions; do
1876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877     ac_cv_prog_ac_ct_CC="gcc"
1878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879     break 2
1880   fi
1881 done
1882 done
1883
1884 fi
1885 fi
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1890 else
1891   echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1893 fi
1894
1895   CC=$ac_ct_CC
1896 else
1897   CC="$ac_cv_prog_CC"
1898 fi
1899
1900 if test -z "$CC"; then
1901   if test -n "$ac_tool_prefix"; then
1902   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}cc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$CC"; then
1910   ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_CC="${ac_tool_prefix}cc"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926 fi
1927 fi
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930   echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933   echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 fi
1938 if test -z "$ac_cv_prog_CC"; then
1939   ac_ct_CC=$CC
1940   # Extract the first word of "cc", so it can be a program name with args.
1941 set dummy cc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945   echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947   if test -n "$ac_ct_CC"; then
1948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953   IFS=$as_save_IFS
1954   test -z "$as_dir" && as_dir=.
1955   for ac_exec_ext in '' $ac_executable_extensions; do
1956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957     ac_cv_prog_ac_ct_CC="cc"
1958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959     break 2
1960   fi
1961 done
1962 done
1963
1964 fi
1965 fi
1966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967 if test -n "$ac_ct_CC"; then
1968   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6
1970 else
1971   echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1973 fi
1974
1975   CC=$ac_ct_CC
1976 else
1977   CC="$ac_cv_prog_CC"
1978 fi
1979
1980 fi
1981 if test -z "$CC"; then
1982   # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$CC"; then
1990   ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992   ac_prog_rejected=no
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996   IFS=$as_save_IFS
1997   test -z "$as_dir" && as_dir=.
1998   for ac_exec_ext in '' $ac_executable_extensions; do
1999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001        ac_prog_rejected=yes
2002        continue
2003      fi
2004     ac_cv_prog_CC="cc"
2005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006     break 2
2007   fi
2008 done
2009 done
2010
2011 if test $ac_prog_rejected = yes; then
2012   # We found a bogon in the path, so make sure we never use it.
2013   set dummy $ac_cv_prog_CC
2014   shift
2015   if test $# != 0; then
2016     # We chose a different compiler from the bogus one.
2017     # However, it has the same basename, so the bogon will be chosen
2018     # first if we set CC to just the basename; use the full file name.
2019     shift
2020     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2021   fi
2022 fi
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034 fi
2035 if test -z "$CC"; then
2036   if test -n "$ac_tool_prefix"; then
2037   for ac_prog in cl
2038   do
2039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$CC"; then
2047   ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063 fi
2064 fi
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067   echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074     test -n "$CC" && break
2075   done
2076 fi
2077 if test -z "$CC"; then
2078   ac_ct_CC=$CC
2079   for ac_prog in cl
2080 do
2081   # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test -n "$ac_ct_CC"; then
2089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096   for ac_exec_ext in '' $ac_executable_extensions; do
2097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098     ac_cv_prog_ac_ct_CC="$ac_prog"
2099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100     break 2
2101   fi
2102 done
2103 done
2104
2105 fi
2106 fi
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112   echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2114 fi
2115
2116   test -n "$ac_ct_CC" && break
2117 done
2118
2119   CC=$ac_ct_CC
2120 fi
2121
2122 fi
2123
2124
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129    { (exit 1); exit 1; }; }
2130
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO:" \
2133      "checking for C compiler version" >&5
2134 ac_compiler=`set X $ac_compile; echo $2`
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2136   (eval $ac_compiler --version </dev/null >&5) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2141   (eval $ac_compiler -v </dev/null >&5) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2146   (eval $ac_compiler -V </dev/null >&5) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }
2150
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h.  */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h.  */
2157
2158 int
2159 main ()
2160 {
2161
2162   ;
2163   return 0;
2164 }
2165 _ACEOF
2166 ac_clean_files_save=$ac_clean_files
2167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2168 # Try to create an executable without -o first, disregard a.out.
2169 # It will help us diagnose broken compilers, and finding out an intuition
2170 # of exeext.
2171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2175   (eval $ac_link_default) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; then
2179   # Find the output, starting from the most likely.  This scheme is
2180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # resort.
2182
2183 # Be careful to initialize this variable, since it used to be cached.
2184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2185 ac_cv_exeext=
2186 # b.out is created by i960 compilers.
2187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2188 do
2189   test -f "$ac_file" || continue
2190   case $ac_file in
2191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2192         ;;
2193     conftest.$ac_ext )
2194         # This is the source file.
2195         ;;
2196     [ab].out )
2197         # We found the default executable, but exeext='' is most
2198         # certainly right.
2199         break;;
2200     *.* )
2201         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202         # FIXME: I believe we export ac_cv_exeext for Libtool,
2203         # but it would be cool to find out if it's true.  Does anybody
2204         # maintain Libtool? --akim.
2205         export ac_cv_exeext
2206         break;;
2207     * )
2208         break;;
2209   esac
2210 done
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&2;}
2219    { (exit 77); exit 77; }; }
2220 fi
2221
2222 ac_exeext=$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6
2225
2226 # Check the compiler produces executables we can run.  If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2231 # If not cross compiling, check that we can run a simple program.
2232 if test "$cross_compiling" != yes; then
2233   if { ac_try='./$ac_file'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239     cross_compiling=no
2240   else
2241     if test "$cross_compiling" = maybe; then
2242         cross_compiling=yes
2243     else
2244         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250    { (exit 1); exit 1; }; }
2251     fi
2252   fi
2253 fi
2254 echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6
2256
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check the compiler produces executables we can run.  If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6
2265
2266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2269   (eval $ac_link) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; then
2273   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2276 # `rm'.
2277 for ac_file in conftest.exe conftest conftest.*; do
2278   test -f "$ac_file" || continue
2279   case $ac_file in
2280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2281     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282           export ac_cv_exeext
2283           break;;
2284     * ) break;;
2285   esac
2286 done
2287 else
2288   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 rm -f conftest$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6
2298
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2304 if test "${ac_cv_objext+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313
2314 int
2315 main ()
2316 {
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; then
2328   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2331     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332        break;;
2333   esac
2334 done
2335 else
2336   echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347 fi
2348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6
2350 OBJEXT=$ac_cv_objext
2351 ac_objext=$OBJEXT
2352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367 #ifndef __GNUC__
2368        choke me
2369 #endif
2370
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377   (eval $ac_compile) 2>conftest.er1
2378   ac_status=$?
2379   grep -v '^ *+' conftest.er1 >conftest.err
2380   rm -f conftest.er1
2381   cat conftest.err >&5
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } &&
2384          { ac_try='test -z "$ac_c_werror_flag"
2385                          || test ! -s conftest.err'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; } &&
2391          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2397   ac_compiler_gnu=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 ac_compiler_gnu=no
2403 fi
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406
2407 fi
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 CFLAGS="-g"
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h.  */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h.  */
2425
2426 int
2427 main ()
2428 {
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } &&
2443          { ac_try='test -z "$ac_c_werror_flag"
2444                          || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_cv_prog_cc_g=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_cv_prog_cc_g=no
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 fi
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468   CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470   if test "$GCC" = yes; then
2471     CFLAGS="-g -O2"
2472   else
2473     CFLAGS="-g"
2474   fi
2475 else
2476   if test "$GCC" = yes; then
2477     CFLAGS="-O2"
2478   else
2479     CFLAGS=
2480   fi
2481 fi
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   ac_cv_prog_cc_stdc=no
2488 ac_save_CC=$CC
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495 #include <stdarg.h>
2496 #include <stdio.h>
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2503      char **p;
2504      int i;
2505 {
2506   return p[i];
2507 }
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2509 {
2510   char *s;
2511   va_list v;
2512   va_start (v,p);
2513   s = g (p, va_arg (v,int));
2514   va_end (v);
2515   return s;
2516 }
2517
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2519    function prototypes and stuff, but not '\xHH' hex character constants.
2520    These don't provoke an error unfortunately, instead are silently treated
2521    as 'x'.  The following induces an error, until -std1 is added to get
2522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2523    array size at least.  It's necessary to write '\x00'==0 to get something
2524    that's true only with -std1.  */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2526
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 int argc;
2532 char **argv;
2533 int
2534 main ()
2535 {
2536 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX                   -qlanglvl=ansi
2544 # Ultrix and OSF/1      -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2547 # SVR4                  -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 do
2550   CC="$ac_save_CC $ac_arg"
2551   rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag"
2561                          || test ! -s conftest.err'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; } &&
2567          { ac_try='test -s conftest.$ac_objext'
2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   ac_cv_prog_cc_stdc=$ac_arg
2574 break
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579 fi
2580 rm -f conftest.err conftest.$ac_objext
2581 done
2582 rm -f conftest.$ac_ext conftest.$ac_objext
2583 CC=$ac_save_CC
2584
2585 fi
2586
2587 case "x$ac_cv_prog_cc_stdc" in
2588   x|xno)
2589     echo "$as_me:$LINENO: result: none needed" >&5
2590 echo "${ECHO_T}none needed" >&6 ;;
2591   *)
2592     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2594     CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 esac
2596
2597 # Some people use a C++ compiler to compile C.  Since we use `exit',
2598 # in C++ we need to declare it.  In case someone uses the same compiler
2599 # for both compiling C and C++ we need to have the C++ compiler decide
2600 # the declaration of exit, since it's the most demanding environment.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #ifndef __cplusplus
2603   choke me
2604 #endif
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608   (eval $ac_compile) 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag"
2616                          || test ! -s conftest.err'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   for ac_declaration in \
2629    '' \
2630    'extern "C" void std::exit (int) throw (); using std::exit;' \
2631    'extern "C" void std::exit (int); using std::exit;' \
2632    'extern "C" void exit (int) throw ();' \
2633    'extern "C" void exit (int);' \
2634    'void exit (int);'
2635 do
2636   cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642 $ac_declaration
2643 #include <stdlib.h>
2644 int
2645 main ()
2646 {
2647 exit (42);
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654   (eval $ac_compile) 2>conftest.er1
2655   ac_status=$?
2656   grep -v '^ *+' conftest.er1 >conftest.err
2657   rm -f conftest.er1
2658   cat conftest.err >&5
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); } &&
2661          { ac_try='test -z "$ac_c_werror_flag"
2662                          || test ! -s conftest.err'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; } &&
2668          { ac_try='test -s conftest.$ac_objext'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; }; then
2674   :
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 continue
2680 fi
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688 $ac_declaration
2689 int
2690 main ()
2691 {
2692 exit (42);
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -z "$ac_c_werror_flag"
2707                          || test ! -s conftest.err'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; } &&
2713          { ac_try='test -s conftest.$ac_objext'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   break
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 fi
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 done
2727 rm -f conftest*
2728 if test -n "$ac_declaration"; then
2729   echo '#ifdef __cplusplus' >>confdefs.h
2730   echo $ac_declaration      >>confdefs.h
2731   echo '#endif'             >>confdefs.h
2732 fi
2733
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746
2747 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2748 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2749 if test "${ac_cv_c_bigendian+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   # See if sys/param.h defines the BYTE_ORDER macro.
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759 #include <sys/types.h>
2760 #include <sys/param.h>
2761
2762 int
2763 main ()
2764 {
2765 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2766  bogus endian macros
2767 #endif
2768
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775   (eval $ac_compile) 2>conftest.er1
2776   ac_status=$?
2777   grep -v '^ *+' conftest.er1 >conftest.err
2778   rm -f conftest.er1
2779   cat conftest.err >&5
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); } &&
2782          { ac_try='test -z "$ac_c_werror_flag"
2783                          || test ! -s conftest.err'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; } &&
2789          { ac_try='test -s conftest.$ac_objext'
2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791   (eval $ac_try) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; }; then
2795   # It does; now see whether it defined to BIG_ENDIAN or not.
2796 cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h.  */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h.  */
2802 #include <sys/types.h>
2803 #include <sys/param.h>
2804
2805 int
2806 main ()
2807 {
2808 #if BYTE_ORDER != BIG_ENDIAN
2809  not big endian
2810 #endif
2811
2812   ;
2813   return 0;
2814 }
2815 _ACEOF
2816 rm -f conftest.$ac_objext
2817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2818   (eval $ac_compile) 2>conftest.er1
2819   ac_status=$?
2820   grep -v '^ *+' conftest.er1 >conftest.err
2821   rm -f conftest.er1
2822   cat conftest.err >&5
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); } &&
2825          { ac_try='test -z "$ac_c_werror_flag"
2826                          || test ! -s conftest.err'
2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; } &&
2832          { ac_try='test -s conftest.$ac_objext'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; }; then
2838   ac_cv_c_bigendian=yes
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 ac_cv_c_bigendian=no
2844 fi
2845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2846 else
2847   echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 # It does not; compile a test program.
2851 if test "$cross_compiling" = yes; then
2852   # try to guess the endianness by grepping values into an object file
2853   ac_cv_c_bigendian=unknown
2854   cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2861 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2862 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2863 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2864 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2865 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2866 int
2867 main ()
2868 {
2869  _ascii (); _ebcdic ();
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876   (eval $ac_compile) 2>conftest.er1
2877   ac_status=$?
2878   grep -v '^ *+' conftest.er1 >conftest.err
2879   rm -f conftest.er1
2880   cat conftest.err >&5
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } &&
2883          { ac_try='test -z "$ac_c_werror_flag"
2884                          || test ! -s conftest.err'
2885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886   (eval $ac_try) 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; } &&
2890          { ac_try='test -s conftest.$ac_objext'
2891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892   (eval $ac_try) 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; }; then
2896   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2897   ac_cv_c_bigendian=yes
2898 fi
2899 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2900   if test "$ac_cv_c_bigendian" = unknown; then
2901     ac_cv_c_bigendian=no
2902   else
2903     # finding both strings is unlikely to happen, but who knows?
2904     ac_cv_c_bigendian=unknown
2905   fi
2906 fi
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 fi
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 else
2914   cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920 int
2921 main ()
2922 {
2923   /* Are we little or big endian?  From Harbison&Steele.  */
2924   union
2925   {
2926     long l;
2927     char c[sizeof (long)];
2928   } u;
2929   u.l = 1;
2930   exit (u.c[sizeof (long) - 1] == 1);
2931 }
2932 _ACEOF
2933 rm -f conftest$ac_exeext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935   (eval $ac_link) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; }; then
2944   ac_cv_c_bigendian=no
2945 else
2946   echo "$as_me: program exited with status $ac_status" >&5
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 ( exit $ac_status )
2951 ac_cv_c_bigendian=yes
2952 fi
2953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2954 fi
2955 fi
2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2957 fi
2958 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2959 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2960 case $ac_cv_c_bigendian in
2961   yes)
2962     ENDIAN=big
2963  ;;
2964   no)
2965     ENDIAN=little
2966  ;;
2967   *)
2968     { { echo "$as_me:$LINENO: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2970 echo "$as_me: error: unknown endianness
2971 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2972    { (exit 1); exit 1; }; } ;;
2973 esac
2974
2975
2976
2977 # Check whether --enable-optimized or --disable-optimized was given.
2978 if test "${enable_optimized+set}" = set; then
2979   enableval="$enable_optimized"
2980
2981 else
2982   enableval=no
2983 fi;
2984 if test ${enableval} = "no" ; then
2985   ENABLE_OPTIMIZED=
2986
2987 else
2988   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2989
2990 fi
2991
2992 # Check whether --enable-jit or --disable-jit was given.
2993 if test "${enable_jit+set}" = set; then
2994   enableval="$enable_jit"
2995
2996 else
2997   enableval=default
2998 fi;
2999 if test ${enableval} = "no"
3000 then
3001   JIT=
3002
3003 else
3004   case "$llvm_cv_target_arch" in
3005     x86)     JIT=TARGET_HAS_JIT=1
3006  ;;
3007     Sparc)   JIT=TARGET_HAS_JIT=1
3008  ;;
3009     PowerPC) JIT=TARGET_HAS_JIT=1
3010  ;;
3011     x86_64)  JIT=
3012  ;;
3013     Alpha)   JIT=
3014  ;;
3015     IA64)    JIT=
3016  ;;
3017     *)       JIT=
3018  ;;
3019   esac
3020 fi
3021
3022 # Check whether --enable-doxygen or --disable-doxygen was given.
3023 if test "${enable_doxygen+set}" = set; then
3024   enableval="$enable_doxygen"
3025
3026 else
3027   enableval=default
3028 fi;
3029 case "$enableval" in
3030   yes) ENABLE_DOXYGEN=1
3031  ;;
3032   no)  ENABLE_DOXYGEN=0
3033  ;;
3034   default) ENABLE_DOXYGEN=0
3035  ;;
3036   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3037 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3038    { (exit 1); exit 1; }; } ;;
3039 esac
3040
3041 TARGETS_TO_BUILD=""
3042 # Check whether --enable-target-this or --disable-target-this was given.
3043 if test "${enable_target_this+set}" = set; then
3044   enableval="$enable_target_this"
3045
3046 else
3047   enable_target_this=no
3048 fi;
3049 # Check whether --enable-target-x86 or --disable-target-x86 was given.
3050 if test "${enable_target_x86+set}" = set; then
3051   enableval="$enable_target_x86"
3052
3053 else
3054   enable_target_x86=yes
3055 fi;
3056 # Check whether --enable-target-x86-64 or --disable-target-x86-64 was given.
3057 if test "${enable_target_x86_64+set}" = set; then
3058   enableval="$enable_target_x86_64"
3059
3060 else
3061   enable_target_x86_64=yes
3062 fi;
3063 # Check whether --enable-target-sparc or --disable-target-sparc was given.
3064 if test "${enable_target_sparc+set}" = set; then
3065   enableval="$enable_target_sparc"
3066
3067 else
3068   enable_target_sparc=yes
3069 fi;
3070 # Check whether --enable-target-powerpc or --disable-target-powerpc was given.
3071 if test "${enable_target_powerpc+set}" = set; then
3072   enableval="$enable_target_powerpc"
3073
3074 else
3075   enable_target_powerpc=yes
3076 fi;
3077 # Check whether --enable-target-alpha or --disable-target-alpha was given.
3078 if test "${enable_target_alpha+set}" = set; then
3079   enableval="$enable_target_alpha"
3080
3081 else
3082   enable_target_alpha=yes
3083 fi;
3084 # Check whether --enable-]target-ia64] or --disable-]target-ia64] was given.
3085 if test "${enable_target_ia64]]+set}" = set; then
3086   enableval="$enable_target_ia64]]"
3087
3088 else
3089   enable_target_ia64=yes
3090 fi;
3091
3092 if test "$enable_target_this" = "yes" ; then
3093   case "$llvm_cv_target_arch" in
3094     x86)     TARGETS_TO_BUILD="X86" ;;
3095     x86_64)  TARGETS_TO_BUILD="X86" ;;
3096     Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3097     PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3098     Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3099     IA64)    TARGETS_TO_BUILD="IA64" ;;
3100     *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3101 echo "$as_me: error: Can not set target to build" >&2;}
3102    { (exit 1); exit 1; }; } ;;
3103   esac
3104 else
3105   if test "$enable_target_x86" = "yes" -o "$enable_target_x86_64" = "yes" ; then
3106     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD"
3107   fi
3108   if test "$enable_target_sparc" = "yes" ; then
3109     TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD"
3110   fi
3111   if test "$enable_target_powerpc" = "yes" ; then
3112     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD"
3113   fi
3114   if test "$enable_target_alpha" = "yes" ; then
3115     TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD"
3116   fi
3117   if test "$enable_target_ia64" = "yes" ; then
3118     TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD"
3119   fi
3120 fi
3121
3122 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3123
3124
3125
3126 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3127 if test "${with_llvmgccdir+set}" = set; then
3128   withval="$with_llvmgccdir"
3129
3130 else
3131   withval=default
3132 fi;
3133 case "$withval" in
3134   default) WITH_LLVMGCCDIR=default ;;
3135   /*)      WITH_LLVMGCCDIR=$withval ;;
3136   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3137 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3138    { (exit 1); exit 1; }; } ;;
3139 esac
3140
3141
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3149 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3150 # On Suns, sometimes $CPP names a directory.
3151 if test -n "$CPP" && test -d "$CPP"; then
3152   CPP=
3153 fi
3154 if test -z "$CPP"; then
3155   if test "${ac_cv_prog_CPP+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158       # Double quotes because CPP needs to be expanded
3159     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3160     do
3161       ac_preproc_ok=false
3162 for ac_c_preproc_warn_flag in '' yes
3163 do
3164   # Use a header file that comes with gcc, so configuring glibc
3165   # with a fresh cross-compiler works.
3166   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167   # <limits.h> exists even on freestanding compilers.
3168   # On the NeXT, cc -E runs the code through the compiler's parser,
3169   # not just through cpp. "Syntax error" is here to catch this case.
3170   cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176 #ifdef __STDC__
3177 # include <limits.h>
3178 #else
3179 # include <assert.h>
3180 #endif
3181                      Syntax error
3182 _ACEOF
3183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } >/dev/null; then
3191   if test -s conftest.err; then
3192     ac_cpp_err=$ac_c_preproc_warn_flag
3193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194   else
3195     ac_cpp_err=
3196   fi
3197 else
3198   ac_cpp_err=yes
3199 fi
3200 if test -z "$ac_cpp_err"; then
3201   :
3202 else
3203   echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206   # Broken: fails on valid input.
3207 continue
3208 fi
3209 rm -f conftest.err conftest.$ac_ext
3210
3211   # OK, works on sane cases.  Now check whether non-existent headers
3212   # can be detected and how.
3213   cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219 #include <ac_nonexistent.h>
3220 _ACEOF
3221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } >/dev/null; then
3229   if test -s conftest.err; then
3230     ac_cpp_err=$ac_c_preproc_warn_flag
3231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3232   else
3233     ac_cpp_err=
3234   fi
3235 else
3236   ac_cpp_err=yes
3237 fi
3238 if test -z "$ac_cpp_err"; then
3239   # Broken: success on invalid input.
3240 continue
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245   # Passes both tests.
3246 ac_preproc_ok=:
3247 break
3248 fi
3249 rm -f conftest.err conftest.$ac_ext
3250
3251 done
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3255   break
3256 fi
3257
3258     done
3259     ac_cv_prog_CPP=$CPP
3260
3261 fi
3262   CPP=$ac_cv_prog_CPP
3263 else
3264   ac_cv_prog_CPP=$CPP
3265 fi
3266 echo "$as_me:$LINENO: result: $CPP" >&5
3267 echo "${ECHO_T}$CPP" >&6
3268 ac_preproc_ok=false
3269 for ac_c_preproc_warn_flag in '' yes
3270 do
3271   # Use a header file that comes with gcc, so configuring glibc
3272   # with a fresh cross-compiler works.
3273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274   # <limits.h> exists even on freestanding compilers.
3275   # On the NeXT, cc -E runs the code through the compiler's parser,
3276   # not just through cpp. "Syntax error" is here to catch this case.
3277   cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283 #ifdef __STDC__
3284 # include <limits.h>
3285 #else
3286 # include <assert.h>
3287 #endif
3288                      Syntax error
3289 _ACEOF
3290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } >/dev/null; then
3298   if test -s conftest.err; then
3299     ac_cpp_err=$ac_c_preproc_warn_flag
3300     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301   else
3302     ac_cpp_err=
3303   fi
3304 else
3305   ac_cpp_err=yes
3306 fi
3307 if test -z "$ac_cpp_err"; then
3308   :
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313   # Broken: fails on valid input.
3314 continue
3315 fi
3316 rm -f conftest.err conftest.$ac_ext
3317
3318   # OK, works on sane cases.  Now check whether non-existent headers
3319   # can be detected and how.
3320   cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326 #include <ac_nonexistent.h>
3327 _ACEOF
3328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } >/dev/null; then
3336   if test -s conftest.err; then
3337     ac_cpp_err=$ac_c_preproc_warn_flag
3338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339   else
3340     ac_cpp_err=
3341   fi
3342 else
3343   ac_cpp_err=yes
3344 fi
3345 if test -z "$ac_cpp_err"; then
3346   # Broken: success on invalid input.
3347 continue
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352   # Passes both tests.
3353 ac_preproc_ok=:
3354 break
3355 fi
3356 rm -f conftest.err conftest.$ac_ext
3357
3358 done
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then
3362   :
3363 else
3364   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3365 See \`config.log' for more details." >&5
3366 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3367 See \`config.log' for more details." >&2;}
3368    { (exit 1); exit 1; }; }
3369 fi
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 if test -n "$ac_tool_prefix"; then
3383   for ac_prog in gcc
3384   do
3385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   if test -n "$CC"; then
3393   ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400   for ac_exec_ext in '' $ac_executable_extensions; do
3401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407 done
3408
3409 fi
3410 fi
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413   echo "$as_me:$LINENO: result: $CC" >&5
3414 echo "${ECHO_T}$CC" >&6
3415 else
3416   echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3418 fi
3419
3420     test -n "$CC" && break
3421   done
3422 fi
3423 if test -z "$CC"; then
3424   ac_ct_CC=$CC
3425   for ac_prog in gcc
3426 do
3427   # Extract the first word of "$ac_prog", so it can be a program name with args.
3428 set dummy $ac_prog; ac_word=$2
3429 echo "$as_me:$LINENO: checking for $ac_word" >&5
3430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3432   echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434   if test -n "$ac_ct_CC"; then
3435   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442   for ac_exec_ext in '' $ac_executable_extensions; do
3443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444     ac_cv_prog_ac_ct_CC="$ac_prog"
3445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446     break 2
3447   fi
3448 done
3449 done
3450
3451 fi
3452 fi
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3456 echo "${ECHO_T}$ac_ct_CC" >&6
3457 else
3458   echo "$as_me:$LINENO: result: no" >&5
3459 echo "${ECHO_T}no" >&6
3460 fi
3461
3462   test -n "$ac_ct_CC" && break
3463 done
3464
3465   CC=$ac_ct_CC
3466 fi
3467
3468
3469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3470 See \`config.log' for more details." >&5
3471 echo "$as_me: error: no acceptable C compiler found in \$PATH
3472 See \`config.log' for more details." >&2;}
3473    { (exit 1); exit 1; }; }
3474
3475 # Provide some information about the compiler.
3476 echo "$as_me:$LINENO:" \
3477      "checking for C compiler version" >&5
3478 ac_compiler=`set X $ac_compile; echo $2`
3479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3480   (eval $ac_compiler --version </dev/null >&5) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); }
3484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3485   (eval $ac_compiler -v </dev/null >&5) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }
3489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3490   (eval $ac_compiler -V </dev/null >&5) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }
3494
3495 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3496 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510 #ifndef __GNUC__
3511        choke me
3512 #endif
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520   (eval $ac_compile) 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } &&
3527          { ac_try='test -z "$ac_c_werror_flag"
3528                          || test ! -s conftest.err'
3529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530   (eval $ac_try) 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; } &&
3534          { ac_try='test -s conftest.$ac_objext'
3535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536   (eval $ac_try) 2>&5
3537   ac_status=$?
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); }; }; then
3540   ac_compiler_gnu=yes
3541 else
3542   echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 ac_compiler_gnu=no
3546 fi
3547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3549
3550 fi
3551 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3552 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3553 GCC=`test $ac_compiler_gnu = yes && echo yes`
3554 ac_test_CFLAGS=${CFLAGS+set}
3555 ac_save_CFLAGS=$CFLAGS
3556 CFLAGS="-g"
3557 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3558 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3559 if test "${ac_cv_prog_cc_g+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3568
3569 int
3570 main ()
3571 {
3572
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579   (eval $ac_compile) 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } &&
3586          { ac_try='test -z "$ac_c_werror_flag"
3587                          || test ! -s conftest.err'
3588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589   (eval $ac_try) 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); }; } &&
3593          { ac_try='test -s conftest.$ac_objext'
3594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595   (eval $ac_try) 2>&5
3596   ac_status=$?
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); }; }; then
3599   ac_cv_prog_cc_g=yes
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 ac_cv_prog_cc_g=no
3605 fi
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3610 if test "$ac_test_CFLAGS" = set; then
3611   CFLAGS=$ac_save_CFLAGS
3612 elif test $ac_cv_prog_cc_g = yes; then
3613   if test "$GCC" = yes; then
3614     CFLAGS="-g -O2"
3615   else
3616     CFLAGS="-g"
3617   fi
3618 else
3619   if test "$GCC" = yes; then
3620     CFLAGS="-O2"
3621   else
3622     CFLAGS=
3623   fi
3624 fi
3625 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3626 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3627 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   ac_cv_prog_cc_stdc=no
3631 ac_save_CC=$CC
3632 cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h.  */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h.  */
3638 #include <stdarg.h>
3639 #include <stdio.h>
3640 #include <sys/types.h>
3641 #include <sys/stat.h>
3642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3643 struct buf { int x; };
3644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645 static char *e (p, i)
3646      char **p;
3647      int i;
3648 {
3649   return p[i];
3650 }
3651 static char *f (char * (*g) (char **, int), char **p, ...)
3652 {
3653   char *s;
3654   va_list v;
3655   va_start (v,p);
3656   s = g (p, va_arg (v,int));
3657   va_end (v);
3658   return s;
3659 }
3660
3661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3662    function prototypes and stuff, but not '\xHH' hex character constants.
3663    These don't provoke an error unfortunately, instead are silently treated
3664    as 'x'.  The following induces an error, until -std1 is added to get
3665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3666    array size at least.  It's necessary to write '\x00'==0 to get something
3667    that's true only with -std1.  */
3668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3669
3670 int test (int i, double x);
3671 struct s1 {int (*f) (int a);};
3672 struct s2 {int (*f) (double a);};
3673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3674 int argc;
3675 char **argv;
3676 int
3677 main ()
3678 {
3679 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3680   ;
3681   return 0;
3682 }
3683 _ACEOF
3684 # Don't try gcc -ansi; that turns off useful extensions and
3685 # breaks some systems' header files.
3686 # AIX                   -qlanglvl=ansi
3687 # Ultrix and OSF/1      -std1
3688 # HP-UX 10.20 and later -Ae
3689 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3690 # SVR4                  -Xc -D__EXTENSIONS__
3691 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692 do
3693   CC="$ac_save_CC $ac_arg"
3694   rm -f conftest.$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696   (eval $ac_compile) 2>conftest.er1
3697   ac_status=$?
3698   grep -v '^ *+' conftest.er1 >conftest.err
3699   rm -f conftest.er1
3700   cat conftest.err >&5
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); } &&
3703          { ac_try='test -z "$ac_c_werror_flag"
3704                          || test ! -s conftest.err'
3705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706   (eval $ac_try) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); }; } &&
3710          { ac_try='test -s conftest.$ac_objext'
3711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712   (eval $ac_try) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; }; then
3716   ac_cv_prog_cc_stdc=$ac_arg
3717 break
3718 else
3719   echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 fi
3723 rm -f conftest.err conftest.$ac_objext
3724 done
3725 rm -f conftest.$ac_ext conftest.$ac_objext
3726 CC=$ac_save_CC
3727
3728 fi
3729
3730 case "x$ac_cv_prog_cc_stdc" in
3731   x|xno)
3732     echo "$as_me:$LINENO: result: none needed" >&5
3733 echo "${ECHO_T}none needed" >&6 ;;
3734   *)
3735     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3736 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3737     CC="$CC $ac_cv_prog_cc_stdc" ;;
3738 esac
3739
3740 # Some people use a C++ compiler to compile C.  Since we use `exit',
3741 # in C++ we need to declare it.  In case someone uses the same compiler
3742 # for both compiling C and C++ we need to have the C++ compiler decide
3743 # the declaration of exit, since it's the most demanding environment.
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #ifndef __cplusplus
3746   choke me
3747 #endif
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751   (eval $ac_compile) 2>conftest.er1
3752   ac_status=$?
3753   grep -v '^ *+' conftest.er1 >conftest.err
3754   rm -f conftest.er1
3755   cat conftest.err >&5
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); } &&
3758          { ac_try='test -z "$ac_c_werror_flag"
3759                          || test ! -s conftest.err'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; } &&
3765          { ac_try='test -s conftest.$ac_objext'
3766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767   (eval $ac_try) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); }; }; then
3771   for ac_declaration in \
3772    '' \
3773    'extern "C" void std::exit (int) throw (); using std::exit;' \
3774    'extern "C" void std::exit (int); using std::exit;' \
3775    'extern "C" void exit (int) throw ();' \
3776    'extern "C" void exit (int);' \
3777    'void exit (int);'
3778 do
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 $ac_declaration
3786 #include <stdlib.h>
3787 int
3788 main ()
3789 {
3790 exit (42);
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.$ac_objext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3797   (eval $ac_compile) 2>conftest.er1
3798   ac_status=$?
3799   grep -v '^ *+' conftest.er1 >conftest.err
3800   rm -f conftest.er1
3801   cat conftest.err >&5
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } &&
3804          { ac_try='test -z "$ac_c_werror_flag"
3805                          || test ! -s conftest.err'
3806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807   (eval $ac_try) 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); }; } &&
3811          { ac_try='test -s conftest.$ac_objext'
3812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813   (eval $ac_try) 2>&5
3814   ac_status=$?
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); }; }; then
3817   :
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 continue
3823 fi
3824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825   cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 $ac_declaration
3832 int
3833 main ()
3834 {
3835 exit (42);
3836   ;
3837   return 0;
3838 }
3839 _ACEOF
3840 rm -f conftest.$ac_objext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842   (eval $ac_compile) 2>conftest.er1
3843   ac_status=$?
3844   grep -v '^ *+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } &&
3849          { ac_try='test -z "$ac_c_werror_flag"
3850                          || test ! -s conftest.err'
3851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852   (eval $ac_try) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; } &&
3856          { ac_try='test -s conftest.$ac_objext'
3857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858   (eval $ac_try) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; }; then
3862   break
3863 else
3864   echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 fi
3868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3869 done
3870 rm -f conftest*
3871 if test -n "$ac_declaration"; then
3872   echo '#ifdef __cplusplus' >>confdefs.h
3873   echo $ac_declaration      >>confdefs.h
3874   echo '#endif'             >>confdefs.h
3875 fi
3876
3877 else
3878   echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 fi
3882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889 ac_ext=cc
3890 ac_cpp='$CXXCPP $CPPFLAGS'
3891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3894 if test -n "$ac_tool_prefix"; then
3895   for ac_prog in $CCC g++
3896   do
3897     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_CXX+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   if test -n "$CXX"; then
3905   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910   IFS=$as_save_IFS
3911   test -z "$as_dir" && as_dir=.
3912   for ac_exec_ext in '' $ac_executable_extensions; do
3913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919 done
3920
3921 fi
3922 fi
3923 CXX=$ac_cv_prog_CXX
3924 if test -n "$CXX"; then
3925   echo "$as_me:$LINENO: result: $CXX" >&5
3926 echo "${ECHO_T}$CXX" >&6
3927 else
3928   echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3930 fi
3931
3932     test -n "$CXX" && break
3933   done
3934 fi
3935 if test -z "$CXX"; then
3936   ac_ct_CXX=$CXX
3937   for ac_prog in $CCC g++
3938 do
3939   # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   if test -n "$ac_ct_CXX"; then
3947   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952   IFS=$as_save_IFS
3953   test -z "$as_dir" && as_dir=.
3954   for ac_exec_ext in '' $ac_executable_extensions; do
3955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956     ac_cv_prog_ac_ct_CXX="$ac_prog"
3957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961 done
3962
3963 fi
3964 fi
3965 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3966 if test -n "$ac_ct_CXX"; then
3967   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3968 echo "${ECHO_T}$ac_ct_CXX" >&6
3969 else
3970   echo "$as_me:$LINENO: result: no" >&5
3971 echo "${ECHO_T}no" >&6
3972 fi
3973
3974   test -n "$ac_ct_CXX" && break
3975 done
3976 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3977
3978   CXX=$ac_ct_CXX
3979 fi
3980
3981
3982 # Provide some information about the compiler.
3983 echo "$as_me:$LINENO:" \
3984      "checking for C++ compiler version" >&5
3985 ac_compiler=`set X $ac_compile; echo $2`
3986 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3987   (eval $ac_compiler --version </dev/null >&5) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }
3991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3992   (eval $ac_compiler -v </dev/null >&5) 2>&5
3993   ac_status=$?
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); }
3996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3997   (eval $ac_compiler -V </dev/null >&5) 2>&5
3998   ac_status=$?
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); }
4001
4002 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4003 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4004 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h.  */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h.  */
4013
4014 int
4015 main ()
4016 {
4017 #ifndef __GNUC__
4018        choke me
4019 #endif
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027   (eval $ac_compile) 2>conftest.er1
4028   ac_status=$?
4029   grep -v '^ *+' conftest.er1 >conftest.err
4030   rm -f conftest.er1
4031   cat conftest.err >&5
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); } &&
4034          { ac_try='test -z "$ac_cxx_werror_flag"
4035                          || test ! -s conftest.err'
4036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037   (eval $ac_try) 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); }; } &&
4041          { ac_try='test -s conftest.$ac_objext'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; }; then
4047   ac_compiler_gnu=yes
4048 else
4049   echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 ac_compiler_gnu=no
4053 fi
4054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4056
4057 fi
4058 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4059 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4060 GXX=`test $ac_compiler_gnu = yes && echo yes`
4061 ac_test_CXXFLAGS=${CXXFLAGS+set}
4062 ac_save_CXXFLAGS=$CXXFLAGS
4063 CXXFLAGS="-g"
4064 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4065 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4066 if test "${ac_cv_prog_cxx_g+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h.  */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h.  */
4075
4076 int
4077 main ()
4078 {
4079
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086   (eval $ac_compile) 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } &&
4093          { ac_try='test -z "$ac_cxx_werror_flag"
4094                          || test ! -s conftest.err'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; } &&
4100          { ac_try='test -s conftest.$ac_objext'
4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102   (eval $ac_try) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; }; then
4106   ac_cv_prog_cxx_g=yes
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 ac_cv_prog_cxx_g=no
4112 fi
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4116 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4117 if test "$ac_test_CXXFLAGS" = set; then
4118   CXXFLAGS=$ac_save_CXXFLAGS
4119 elif test $ac_cv_prog_cxx_g = yes; then
4120   if test "$GXX" = yes; then
4121     CXXFLAGS="-g -O2"
4122   else
4123     CXXFLAGS="-g"
4124   fi
4125 else
4126   if test "$GXX" = yes; then
4127     CXXFLAGS="-O2"
4128   else
4129     CXXFLAGS=
4130   fi
4131 fi
4132 for ac_declaration in \
4133    '' \
4134    'extern "C" void std::exit (int) throw (); using std::exit;' \
4135    'extern "C" void std::exit (int); using std::exit;' \
4136    'extern "C" void exit (int) throw ();' \
4137    'extern "C" void exit (int);' \
4138    'void exit (int);'
4139 do
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 $ac_declaration
4147 #include <stdlib.h>
4148 int
4149 main ()
4150 {
4151 exit (42);
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158   (eval $ac_compile) 2>conftest.er1
4159   ac_status=$?
4160   grep -v '^ *+' conftest.er1 >conftest.err
4161   rm -f conftest.er1
4162   cat conftest.err >&5
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } &&
4165          { ac_try='test -z "$ac_cxx_werror_flag"
4166                          || test ! -s conftest.err'
4167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168   (eval $ac_try) 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; } &&
4172          { ac_try='test -s conftest.$ac_objext'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   :
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 continue
4184 fi
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 $ac_declaration
4193 int
4194 main ()
4195 {
4196 exit (42);
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203   (eval $ac_compile) 2>conftest.er1
4204   ac_status=$?
4205   grep -v '^ *+' conftest.er1 >conftest.err
4206   rm -f conftest.er1
4207   cat conftest.err >&5
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); } &&
4210          { ac_try='test -z "$ac_cxx_werror_flag"
4211                          || test ! -s conftest.err'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; } &&
4217          { ac_try='test -s conftest.$ac_objext'
4218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219   (eval $ac_try) 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }; }; then
4223   break
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 fi
4229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4230 done
4231 rm -f conftest*
4232 if test -n "$ac_declaration"; then
4233   echo '#ifdef __cplusplus' >>confdefs.h
4234   echo $ac_declaration      >>confdefs.h
4235   echo '#endif'             >>confdefs.h
4236 fi
4237
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244 echo "$as_me:$LINENO: checking " >&5
4245 echo $ECHO_N "checking ... $ECHO_C" >&6
4246 if test "${ac_cv_has_flex+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   for ac_prog in flex lex
4250 do
4251   # Extract the first word of "$ac_prog", so it can be a program name with args.
4252 set dummy $ac_prog; ac_word=$2
4253 echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255 if test "${ac_cv_prog_LEX+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   if test -n "$LEX"; then
4259   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266   for ac_exec_ext in '' $ac_executable_extensions; do
4267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268     ac_cv_prog_LEX="$ac_prog"
4269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273 done
4274
4275 fi
4276 fi
4277 LEX=$ac_cv_prog_LEX
4278 if test -n "$LEX"; then
4279   echo "$as_me:$LINENO: result: $LEX" >&5
4280 echo "${ECHO_T}$LEX" >&6
4281 else
4282   echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6
4284 fi
4285
4286   test -n "$LEX" && break
4287 done
4288 test -n "$LEX" || LEX=":"
4289
4290 if test -z "$LEXLIB"
4291 then
4292   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4293 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4294 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   ac_check_lib_save_LIBS=$LIBS
4298 LIBS="-lfl  $LIBS"
4299 cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305
4306 /* Override any gcc2 internal prototype to avoid an error.  */
4307 #ifdef __cplusplus
4308 extern "C"
4309 #endif
4310 /* We use char because int might match the return type of a gcc2
4311    builtin and then its argument prototype would still apply.  */
4312 char yywrap ();
4313 int
4314 main ()
4315 {
4316 yywrap ();
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323   (eval $ac_link) 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } &&
4330          { ac_try='test -z "$ac_c_werror_flag"
4331                          || test ! -s conftest.err'
4332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333   (eval $ac_try) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; } &&
4337          { ac_try='test -s conftest$ac_exeext'
4338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339   (eval $ac_try) 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; }; then
4343   ac_cv_lib_fl_yywrap=yes
4344 else
4345   echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 ac_cv_lib_fl_yywrap=no
4349 fi
4350 rm -f conftest.err conftest.$ac_objext \
4351       conftest$ac_exeext conftest.$ac_ext
4352 LIBS=$ac_check_lib_save_LIBS
4353 fi
4354 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4355 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4356 if test $ac_cv_lib_fl_yywrap = yes; then
4357   LEXLIB="-lfl"
4358 else
4359   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4360 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4361 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   ac_check_lib_save_LIBS=$LIBS
4365 LIBS="-ll  $LIBS"
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372
4373 /* Override any gcc2 internal prototype to avoid an error.  */
4374 #ifdef __cplusplus
4375 extern "C"
4376 #endif
4377 /* We use char because int might match the return type of a gcc2
4378    builtin and then its argument prototype would still apply.  */
4379 char yywrap ();
4380 int
4381 main ()
4382 {
4383 yywrap ();
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest.$ac_objext conftest$ac_exeext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390   (eval $ac_link) 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } &&
4397          { ac_try='test -z "$ac_c_werror_flag"
4398                          || test ! -s conftest.err'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; } &&
4404          { ac_try='test -s conftest$ac_exeext'
4405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406   (eval $ac_try) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; }; then
4410   ac_cv_lib_l_yywrap=yes
4411 else
4412   echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4414
4415 ac_cv_lib_l_yywrap=no
4416 fi
4417 rm -f conftest.err conftest.$ac_objext \
4418       conftest$ac_exeext conftest.$ac_ext
4419 LIBS=$ac_check_lib_save_LIBS
4420 fi
4421 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4422 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4423 if test $ac_cv_lib_l_yywrap = yes; then
4424   LEXLIB="-ll"
4425 fi
4426
4427 fi
4428
4429 fi
4430
4431 if test "x$LEX" != "x:"; then
4432   echo "$as_me:$LINENO: checking lex output file root" >&5
4433 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4434 if test "${ac_cv_prog_lex_root+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   # The minimal lex program is just a single line: %%.  But some broken lexes
4438 # (Solaris, I think it was) want two %% lines, so accommodate them.
4439 cat >conftest.l <<_ACEOF
4440 %%
4441 %%
4442 _ACEOF
4443 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4444   (eval $LEX conftest.l) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }
4448 if test -f lex.yy.c; then
4449   ac_cv_prog_lex_root=lex.yy
4450 elif test -f lexyy.c; then
4451   ac_cv_prog_lex_root=lexyy
4452 else
4453   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4454 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4455    { (exit 1); exit 1; }; }
4456 fi
4457 fi
4458 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4459 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4460 rm -f conftest.l
4461 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4462
4463 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4464 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4465 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   # POSIX says lex can declare yytext either as a pointer or an array; the
4469 # default is implementation-dependent. Figure out which it is, since
4470 # not all implementations provide the %pointer and %array declarations.
4471 ac_cv_prog_lex_yytext_pointer=no
4472 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4473 ac_save_LIBS=$LIBS
4474 LIBS="$LIBS $LEXLIB"
4475 cat >conftest.$ac_ext <<_ACEOF
4476 `cat $LEX_OUTPUT_ROOT.c`
4477 _ACEOF
4478 rm -f conftest.$ac_objext conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480   (eval $ac_link) 2>conftest.er1
4481   ac_status=$?
4482   grep -v '^ *+' conftest.er1 >conftest.err
4483   rm -f conftest.er1
4484   cat conftest.err >&5
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } &&
4487          { ac_try='test -z "$ac_c_werror_flag"
4488                          || test ! -s conftest.err'
4489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490   (eval $ac_try) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; } &&
4494          { ac_try='test -s conftest$ac_exeext'
4495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496   (eval $ac_try) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }; }; then
4500   ac_cv_prog_lex_yytext_pointer=yes
4501 else
4502   echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505 fi
4506 rm -f conftest.err conftest.$ac_objext \
4507       conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_save_LIBS
4509 rm -f "${LEX_OUTPUT_ROOT}.c"
4510
4511 fi
4512 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4513 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4514 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4515
4516 cat >>confdefs.h <<\_ACEOF
4517 #define YYTEXT_POINTER 1
4518 _ACEOF
4519
4520 fi
4521
4522 fi
4523
4524 fi
4525 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4526 echo "${ECHO_T}$ac_cv_has_flex" >&6
4527 if test "$LEX" != "flex"; then
4528   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4529 echo "$as_me: error: flex not found but required" >&2;}
4530    { (exit 1); exit 1; }; }
4531 else
4532   FLEX=flex
4533
4534 fi
4535
4536 echo "$as_me:$LINENO: checking " >&5
4537 echo $ECHO_N "checking ... $ECHO_C" >&6
4538 if test "${llvm_cv_has_bison+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   for ac_prog in 'bison -y' byacc
4542 do
4543   # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_prog_YACC+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   if test -n "$YACC"; then
4551   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556   IFS=$as_save_IFS
4557   test -z "$as_dir" && as_dir=.
4558   for ac_exec_ext in '' $ac_executable_extensions; do
4559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560     ac_cv_prog_YACC="$ac_prog"
4561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562     break 2
4563   fi
4564 done
4565 done
4566
4567 fi
4568 fi
4569 YACC=$ac_cv_prog_YACC
4570 if test -n "$YACC"; then
4571   echo "$as_me:$LINENO: result: $YACC" >&5
4572 echo "${ECHO_T}$YACC" >&6
4573 else
4574   echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4576 fi
4577
4578   test -n "$YACC" && break
4579 done
4580 test -n "$YACC" || YACC="yacc"
4581
4582 fi
4583 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4584 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4585 if test "$YACC" != "bison -y"; then
4586   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4587 echo "$as_me: error: bison not found but required" >&2;}
4588    { (exit 1); exit 1; }; }
4589 else
4590   BISON=bison
4591
4592 fi
4593
4594 echo "$as_me:$LINENO: checking for GNU make" >&5
4595 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4596 if test "${llvm_cv_gnu_make_command+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   llvm_cv_gnu_make_command=''
4600  for a in "$MAKE" make gmake gnumake ; do
4601   if test -z "$a" ; then continue ; fi ;
4602   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4603   then
4604    llvm_cv_gnu_make_command=$a ;
4605    break;
4606   fi
4607  done
4608 fi
4609 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4610 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4611  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4612    ifGNUmake='' ;
4613  else
4614    ifGNUmake='#' ;
4615    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4616 echo "${ECHO_T}\"Not found\"" >&6;
4617  fi
4618
4619
4620 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4621 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4622 LN_S=$as_ln_s
4623 if test "$LN_S" = "ln -s"; then
4624   echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6
4626 else
4627   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4628 echo "${ECHO_T}no, using $LN_S" >&6
4629 fi
4630
4631 # Extract the first word of "cmp", so it can be a program name with args.
4632 set dummy cmp; ac_word=$2
4633 echo "$as_me:$LINENO: checking for $ac_word" >&5
4634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4635 if test "${ac_cv_path_CMP+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   case $CMP in
4639   [\\/]* | ?:[\\/]*)
4640   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4641   ;;
4642   *)
4643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648   for ac_exec_ext in '' $ac_executable_extensions; do
4649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655 done
4656
4657   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4658   ;;
4659 esac
4660 fi
4661 CMP=$ac_cv_path_CMP
4662
4663 if test -n "$CMP"; then
4664   echo "$as_me:$LINENO: result: $CMP" >&5
4665 echo "${ECHO_T}$CMP" >&6
4666 else
4667   echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4669 fi
4670
4671 # Extract the first word of "cp", so it can be a program name with args.
4672 set dummy cp; ac_word=$2
4673 echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675 if test "${ac_cv_path_CP+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   case $CP in
4679   [\\/]* | ?:[\\/]*)
4680   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4681   ;;
4682   *)
4683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696
4697   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4698   ;;
4699 esac
4700 fi
4701 CP=$ac_cv_path_CP
4702
4703 if test -n "$CP"; then
4704   echo "$as_me:$LINENO: result: $CP" >&5
4705 echo "${ECHO_T}$CP" >&6
4706 else
4707   echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6
4709 fi
4710
4711 # Extract the first word of "date", so it can be a program name with args.
4712 set dummy date; ac_word=$2
4713 echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4715 if test "${ac_cv_path_DATE+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   case $DATE in
4719   [\\/]* | ?:[\\/]*)
4720   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4721   ;;
4722   *)
4723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726   IFS=$as_save_IFS
4727   test -z "$as_dir" && as_dir=.
4728   for ac_exec_ext in '' $ac_executable_extensions; do
4729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732     break 2
4733   fi
4734 done
4735 done
4736
4737   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4738   ;;
4739 esac
4740 fi
4741 DATE=$ac_cv_path_DATE
4742
4743 if test -n "$DATE"; then
4744   echo "$as_me:$LINENO: result: $DATE" >&5
4745 echo "${ECHO_T}$DATE" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 # Extract the first word of "find", so it can be a program name with args.
4752 set dummy find; ac_word=$2
4753 echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4755 if test "${ac_cv_path_FIND+set}" = set; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   case $FIND in
4759   [\\/]* | ?:[\\/]*)
4760   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4761   ;;
4762   *)
4763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768   for ac_exec_ext in '' $ac_executable_extensions; do
4769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772     break 2
4773   fi
4774 done
4775 done
4776
4777   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4778   ;;
4779 esac
4780 fi
4781 FIND=$ac_cv_path_FIND
4782
4783 if test -n "$FIND"; then
4784   echo "$as_me:$LINENO: result: $FIND" >&5
4785 echo "${ECHO_T}$FIND" >&6
4786 else
4787   echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4789 fi
4790
4791 # Extract the first word of "grep", so it can be a program name with args.
4792 set dummy grep; ac_word=$2
4793 echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795 if test "${ac_cv_path_GREP+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798   case $GREP in
4799   [\\/]* | ?:[\\/]*)
4800   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4801   ;;
4802   *)
4803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806   IFS=$as_save_IFS
4807   test -z "$as_dir" && as_dir=.
4808   for ac_exec_ext in '' $ac_executable_extensions; do
4809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812     break 2
4813   fi
4814 done
4815 done
4816
4817   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4818   ;;
4819 esac
4820 fi
4821 GREP=$ac_cv_path_GREP
4822
4823 if test -n "$GREP"; then
4824   echo "$as_me:$LINENO: result: $GREP" >&5
4825 echo "${ECHO_T}$GREP" >&6
4826 else
4827   echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4829 fi
4830
4831 # Extract the first word of "mkdir", so it can be a program name with args.
4832 set dummy mkdir; ac_word=$2
4833 echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4835 if test "${ac_cv_path_MKDIR+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   case $MKDIR in
4839   [\\/]* | ?:[\\/]*)
4840   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4841   ;;
4842   *)
4843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848   for ac_exec_ext in '' $ac_executable_extensions; do
4849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852     break 2
4853   fi
4854 done
4855 done
4856
4857   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4858   ;;
4859 esac
4860 fi
4861 MKDIR=$ac_cv_path_MKDIR
4862
4863 if test -n "$MKDIR"; then
4864   echo "$as_me:$LINENO: result: $MKDIR" >&5
4865 echo "${ECHO_T}$MKDIR" >&6
4866 else
4867   echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4869 fi
4870
4871 # Extract the first word of "mv", so it can be a program name with args.
4872 set dummy mv; ac_word=$2
4873 echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 if test "${ac_cv_path_MV+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   case $MV in
4879   [\\/]* | ?:[\\/]*)
4880   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4881   ;;
4882   *)
4883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886   IFS=$as_save_IFS
4887   test -z "$as_dir" && as_dir=.
4888   for ac_exec_ext in '' $ac_executable_extensions; do
4889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892     break 2
4893   fi
4894 done
4895 done
4896
4897   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4898   ;;
4899 esac
4900 fi
4901 MV=$ac_cv_path_MV
4902
4903 if test -n "$MV"; then
4904   echo "$as_me:$LINENO: result: $MV" >&5
4905 echo "${ECHO_T}$MV" >&6
4906 else
4907   echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4909 fi
4910
4911 if test -n "$ac_tool_prefix"; then
4912   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4914 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916 if test "${ac_cv_prog_RANLIB+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919   if test -n "$RANLIB"; then
4920   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927   for ac_exec_ext in '' $ac_executable_extensions; do
4928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934 done
4935
4936 fi
4937 fi
4938 RANLIB=$ac_cv_prog_RANLIB
4939 if test -n "$RANLIB"; then
4940   echo "$as_me:$LINENO: result: $RANLIB" >&5
4941 echo "${ECHO_T}$RANLIB" >&6
4942 else
4943   echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6
4945 fi
4946
4947 fi
4948 if test -z "$ac_cv_prog_RANLIB"; then
4949   ac_ct_RANLIB=$RANLIB
4950   # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib; ac_word=$2
4952 echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   if test -n "$ac_ct_RANLIB"; then
4958   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965   for ac_exec_ext in '' $ac_executable_extensions; do
4966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967     ac_cv_prog_ac_ct_RANLIB="ranlib"
4968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972 done
4973
4974   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4975 fi
4976 fi
4977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978 if test -n "$ac_ct_RANLIB"; then
4979   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4980 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4981 else
4982   echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4984 fi
4985
4986   RANLIB=$ac_ct_RANLIB
4987 else
4988   RANLIB="$ac_cv_prog_RANLIB"
4989 fi
4990
4991 # Extract the first word of "rm", so it can be a program name with args.
4992 set dummy rm; ac_word=$2
4993 echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4995 if test "${ac_cv_path_RM+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   case $RM in
4999   [\\/]* | ?:[\\/]*)
5000   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5001   ;;
5002   *)
5003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008   for ac_exec_ext in '' $ac_executable_extensions; do
5009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012     break 2
5013   fi
5014 done
5015 done
5016
5017   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5018   ;;
5019 esac
5020 fi
5021 RM=$ac_cv_path_RM
5022
5023 if test -n "$RM"; then
5024   echo "$as_me:$LINENO: result: $RM" >&5
5025 echo "${ECHO_T}$RM" >&6
5026 else
5027   echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6
5029 fi
5030
5031 # Extract the first word of "sed", so it can be a program name with args.
5032 set dummy sed; ac_word=$2
5033 echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035 if test "${ac_cv_path_SED+set}" = set; then
5036   echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038   case $SED in
5039   [\\/]* | ?:[\\/]*)
5040   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041   ;;
5042   *)
5043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046   IFS=$as_save_IFS
5047   test -z "$as_dir" && as_dir=.
5048   for ac_exec_ext in '' $ac_executable_extensions; do
5049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055 done
5056
5057   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5058   ;;
5059 esac
5060 fi
5061 SED=$ac_cv_path_SED
5062
5063 if test -n "$SED"; then
5064   echo "$as_me:$LINENO: result: $SED" >&5
5065 echo "${ECHO_T}$SED" >&6
5066 else
5067   echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5069 fi
5070
5071 # Extract the first word of "tar", so it can be a program name with args.
5072 set dummy tar; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_path_TAR+set}" = set; then
5076   echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078   case $TAR in
5079   [\\/]* | ?:[\\/]*)
5080   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5081   ;;
5082   *)
5083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088   for ac_exec_ext in '' $ac_executable_extensions; do
5089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095 done
5096
5097   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5098   ;;
5099 esac
5100 fi
5101 TAR=$ac_cv_path_TAR
5102
5103 if test -n "$TAR"; then
5104   echo "$as_me:$LINENO: result: $TAR" >&5
5105 echo "${ECHO_T}$TAR" >&6
5106 else
5107   echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6
5109 fi
5110
5111
5112 # Find a good install program.  We prefer a C program (faster),
5113 # so one script is as good as another.  But avoid the broken or
5114 # incompatible versions:
5115 # SysV /etc/install, /usr/sbin/install
5116 # SunOS /usr/etc/install
5117 # IRIX /sbin/install
5118 # AIX /bin/install
5119 # AmigaOS /C/install, which installs bootblocks on floppy discs
5120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5123 # OS/2's system install, which has a completely different semantic
5124 # ./install, which can be erroneously created by make from ./install.sh.
5125 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5126 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5127 if test -z "$INSTALL"; then
5128 if test "${ac_cv_path_install+set}" = set; then
5129   echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134   IFS=$as_save_IFS
5135   test -z "$as_dir" && as_dir=.
5136   # Account for people who put trailing slashes in PATH elements.
5137 case $as_dir/ in
5138   ./ | .// | /cC/* | \
5139   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5140   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5141   /usr/ucb/* ) ;;
5142   *)
5143     # OSF1 and SCO ODT 3.0 have their own names for install.
5144     # Don't use installbsd from OSF since it installs stuff as root
5145     # by default.
5146     for ac_prog in ginstall scoinst install; do
5147       for ac_exec_ext in '' $ac_executable_extensions; do
5148         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5149           if test $ac_prog = install &&
5150             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5151             # AIX install.  It has an incompatible calling convention.
5152             :
5153           elif test $ac_prog = install &&
5154             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5155             # program-specific install script used by HP pwplus--don't use.
5156             :
5157           else
5158             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5159             break 3
5160           fi
5161         fi
5162       done
5163     done
5164     ;;
5165 esac
5166 done
5167
5168
5169 fi
5170   if test "${ac_cv_path_install+set}" = set; then
5171     INSTALL=$ac_cv_path_install
5172   else
5173     # As a last resort, use the slow shell script.  We don't cache a
5174     # path for INSTALL within a source directory, because that will
5175     # break other packages using the cache if that directory is
5176     # removed, or if the path is relative.
5177     INSTALL=$ac_install_sh
5178   fi
5179 fi
5180 echo "$as_me:$LINENO: result: $INSTALL" >&5
5181 echo "${ECHO_T}$INSTALL" >&6
5182
5183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5184 # It thinks the first close brace ends the variable substitution.
5185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5186
5187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5188
5189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5190
5191
5192 # Extract the first word of "bzip2", so it can be a program name with args.
5193 set dummy bzip2; ac_word=$2
5194 echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196 if test "${ac_cv_path_BZIP2+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   case $BZIP2 in
5200   [\\/]* | ?:[\\/]*)
5201   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5202   ;;
5203   *)
5204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209   for ac_exec_ext in '' $ac_executable_extensions; do
5210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216 done
5217
5218   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5219   ;;
5220 esac
5221 fi
5222 BZIP2=$ac_cv_path_BZIP2
5223
5224 if test -n "$BZIP2"; then
5225   echo "$as_me:$LINENO: result: $BZIP2" >&5
5226 echo "${ECHO_T}$BZIP2" >&6
5227 else
5228   echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5230 fi
5231
5232 # Extract the first word of "dot", so it can be a program name with args.
5233 set dummy dot; ac_word=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_path_DOT+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   case $DOT in
5240   [\\/]* | ?:[\\/]*)
5241   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5242   ;;
5243   *)
5244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249   for ac_exec_ext in '' $ac_executable_extensions; do
5250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253     break 2
5254   fi
5255 done
5256 done
5257
5258   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5259   ;;
5260 esac
5261 fi
5262 DOT=$ac_cv_path_DOT
5263
5264 if test -n "$DOT"; then
5265   echo "$as_me:$LINENO: result: $DOT" >&5
5266 echo "${ECHO_T}$DOT" >&6
5267 else
5268   echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5270 fi
5271
5272 # Extract the first word of "doxygen", so it can be a program name with args.
5273 set dummy doxygen; ac_word=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   case $DOXYGEN in
5280   [\\/]* | ?:[\\/]*)
5281   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5282   ;;
5283   *)
5284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289   for ac_exec_ext in '' $ac_executable_extensions; do
5290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296 done
5297
5298   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5299   ;;
5300 esac
5301 fi
5302 DOXYGEN=$ac_cv_path_DOXYGEN
5303
5304 if test -n "$DOXYGEN"; then
5305   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5306 echo "${ECHO_T}$DOXYGEN" >&6
5307 else
5308   echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5310 fi
5311
5312 # Extract the first word of "etags", so it can be a program name with args.
5313 set dummy etags; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_path_ETAGS+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   case $ETAGS in
5320   [\\/]* | ?:[\\/]*)
5321   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5322   ;;
5323   *)
5324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327   IFS=$as_save_IFS
5328   test -z "$as_dir" && as_dir=.
5329   for ac_exec_ext in '' $ac_executable_extensions; do
5330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333     break 2
5334   fi
5335 done
5336 done
5337
5338   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5339   ;;
5340 esac
5341 fi
5342 ETAGS=$ac_cv_path_ETAGS
5343
5344 if test -n "$ETAGS"; then
5345   echo "$as_me:$LINENO: result: $ETAGS" >&5
5346 echo "${ECHO_T}$ETAGS" >&6
5347 else
5348   echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5350 fi
5351
5352 # Extract the first word of "groff", so it can be a program name with args.
5353 set dummy groff; ac_word=$2
5354 echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5356 if test "${ac_cv_path_GROFF+set}" = set; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   case $GROFF in
5360   [\\/]* | ?:[\\/]*)
5361   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5362   ;;
5363   *)
5364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367   IFS=$as_save_IFS
5368   test -z "$as_dir" && as_dir=.
5369   for ac_exec_ext in '' $ac_executable_extensions; do
5370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373     break 2
5374   fi
5375 done
5376 done
5377
5378   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5379   ;;
5380 esac
5381 fi
5382 GROFF=$ac_cv_path_GROFF
5383
5384 if test -n "$GROFF"; then
5385   echo "$as_me:$LINENO: result: $GROFF" >&5
5386 echo "${ECHO_T}$GROFF" >&6
5387 else
5388   echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5390 fi
5391
5392 # Extract the first word of "gzip", so it can be a program name with args.
5393 set dummy gzip; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_path_GZIP+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   case $GZIP in
5400   [\\/]* | ?:[\\/]*)
5401   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5402   ;;
5403   *)
5404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409   for ac_exec_ext in '' $ac_executable_extensions; do
5410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416 done
5417
5418   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5419   ;;
5420 esac
5421 fi
5422 GZIP=$ac_cv_path_GZIP
5423
5424 if test -n "$GZIP"; then
5425   echo "$as_me:$LINENO: result: $GZIP" >&5
5426 echo "${ECHO_T}$GZIP" >&6
5427 else
5428   echo "$as_me:$LINENO: result: no" >&5
5429 echo "${ECHO_T}no" >&6
5430 fi
5431
5432 # Extract the first word of "pod2html", so it can be a program name with args.
5433 set dummy pod2html; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_path_POD2HTML+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   case $POD2HTML in
5440   [\\/]* | ?:[\\/]*)
5441   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5442   ;;
5443   *)
5444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449   for ac_exec_ext in '' $ac_executable_extensions; do
5450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456 done
5457
5458   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5459   ;;
5460 esac
5461 fi
5462 POD2HTML=$ac_cv_path_POD2HTML
5463
5464 if test -n "$POD2HTML"; then
5465   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5466 echo "${ECHO_T}$POD2HTML" >&6
5467 else
5468   echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6
5470 fi
5471
5472 # Extract the first word of "pod2man", so it can be a program name with args.
5473 set dummy pod2man; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_path_POD2MAN+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   case $POD2MAN in
5480   [\\/]* | ?:[\\/]*)
5481   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5482   ;;
5483   *)
5484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489   for ac_exec_ext in '' $ac_executable_extensions; do
5490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496 done
5497
5498   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5499   ;;
5500 esac
5501 fi
5502 POD2MAN=$ac_cv_path_POD2MAN
5503
5504 if test -n "$POD2MAN"; then
5505   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5506 echo "${ECHO_T}$POD2MAN" >&6
5507 else
5508   echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5510 fi
5511
5512 # Extract the first word of "runtest", so it can be a program name with args.
5513 set dummy runtest; ac_word=$2
5514 echo "$as_me:$LINENO: checking for $ac_word" >&5
5515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5516 if test "${ac_cv_path_RUNTEST+set}" = set; then
5517   echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519   case $RUNTEST in
5520   [\\/]* | ?:[\\/]*)
5521   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5522   ;;
5523   *)
5524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527   IFS=$as_save_IFS
5528   test -z "$as_dir" && as_dir=.
5529   for ac_exec_ext in '' $ac_executable_extensions; do
5530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533     break 2
5534   fi
5535 done
5536 done
5537
5538   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5539   ;;
5540 esac
5541 fi
5542 RUNTEST=$ac_cv_path_RUNTEST
5543
5544 if test -n "$RUNTEST"; then
5545   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5546 echo "${ECHO_T}$RUNTEST" >&6
5547 else
5548   echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5550 fi
5551
5552
5553 no_itcl=true
5554 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5555 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5556
5557 # Check whether --with-tclinclude or --without-tclinclude was given.
5558 if test "${with_tclinclude+set}" = set; then
5559   withval="$with_tclinclude"
5560   with_tclinclude=${withval}
5561 else
5562   with_tclinclude=''
5563 fi;
5564 if test "${ac_cv_path_tclsh+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567
5568 if test x"${with_tclinclude}" != x ; then
5569   if test -f ${with_tclinclude}/tclsh ; then
5570     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5571   elif test -f ${with_tclinclude}/src/tclsh ; then
5572     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5573   else
5574     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5575 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5576    { (exit 1); exit 1; }; }
5577   fi
5578 fi
5579
5580 if test x"${ac_cv_path_tclsh}" = x ; then
5581   echo "$as_me:$LINENO: result: none" >&5
5582 echo "${ECHO_T}none" >&6
5583   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
5584 do
5585   # Extract the first word of "$ac_prog", so it can be a program name with args.
5586 set dummy $ac_prog; ac_word=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_path_TCLSH+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   case $TCLSH in
5593   [\\/]* | ?:[\\/]*)
5594   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5595   ;;
5596   *)
5597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602   for ac_exec_ext in '' $ac_executable_extensions; do
5603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609 done
5610
5611   ;;
5612 esac
5613 fi
5614 TCLSH=$ac_cv_path_TCLSH
5615
5616 if test -n "$TCLSH"; then
5617   echo "$as_me:$LINENO: result: $TCLSH" >&5
5618 echo "${ECHO_T}$TCLSH" >&6
5619 else
5620   echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5622 fi
5623
5624   test -n "$TCLSH" && break
5625 done
5626
5627   if test x"${TCLSH}" = x ; then
5628     ac_cv_path_tclsh='';
5629   else
5630     ac_cv_path_tclsh="${TCLSH}";
5631   fi
5632 else
5633   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5634 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5635   TCLSH="${ac_cv_path_tclsh}"
5636
5637 fi
5638
5639 fi
5640
5641 # Extract the first word of "zip", so it can be a program name with args.
5642 set dummy zip; ac_word=$2
5643 echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645 if test "${ac_cv_path_ZIP+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   case $ZIP in
5649   [\\/]* | ?:[\\/]*)
5650   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5651   ;;
5652   *)
5653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656   IFS=$as_save_IFS
5657   test -z "$as_dir" && as_dir=.
5658   for ac_exec_ext in '' $ac_executable_extensions; do
5659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665 done
5666
5667   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5668   ;;
5669 esac
5670 fi
5671 ZIP=$ac_cv_path_ZIP
5672
5673 if test -n "$ZIP"; then
5674   echo "$as_me:$LINENO: result: $ZIP" >&5
5675 echo "${ECHO_T}$ZIP" >&6
5676 else
5677   echo "$as_me:$LINENO: result: no" >&5
5678 echo "${ECHO_T}no" >&6
5679 fi
5680
5681
5682 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5683 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5684 if test "${llvm_cv_link_use_r+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687    ac_ext=c
5688 ac_cpp='$CPP $CPPFLAGS'
5689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692
5693   oldcflags="$CFLAGS"
5694   CFLAGS="$CFLAGS -Wl,-R."
5695   cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701
5702 int
5703 main ()
5704 {
5705 int main() { return 0; }
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext conftest$ac_exeext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5712   (eval $ac_link) 2>conftest.er1
5713   ac_status=$?
5714   grep -v '^ *+' conftest.er1 >conftest.err
5715   rm -f conftest.er1
5716   cat conftest.err >&5
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); } &&
5719          { ac_try='test -z "$ac_c_werror_flag"
5720                          || test ! -s conftest.err'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; } &&
5726          { ac_try='test -s conftest$ac_exeext'
5727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728   (eval $ac_try) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; }; then
5732   llvm_cv_link_use_r=yes
5733 else
5734   echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 llvm_cv_link_use_r=no
5738 fi
5739 rm -f conftest.err conftest.$ac_objext \
5740       conftest$ac_exeext conftest.$ac_ext
5741   CFLAGS="$oldcflags"
5742   ac_ext=c
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748
5749 fi
5750 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5751 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5752 if test "$llvm_cv_link_use_r" = yes ; then
5753
5754 cat >>confdefs.h <<\_ACEOF
5755 #define HAVE_LINK_R 1
5756 _ACEOF
5757
5758   fi
5759
5760
5761
5762
5763 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5764 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5765 if test "${ac_cv_c_const+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h.  */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h.  */
5774
5775 int
5776 main ()
5777 {
5778 /* FIXME: Include the comments suggested by Paul. */
5779 #ifndef __cplusplus
5780   /* Ultrix mips cc rejects this.  */
5781   typedef int charset[2];
5782   const charset x;
5783   /* SunOS 4.1.1 cc rejects this.  */
5784   char const *const *ccp;
5785   char **p;
5786   /* NEC SVR4.0.2 mips cc rejects this.  */
5787   struct point {int x, y;};
5788   static struct point const zero = {0,0};
5789   /* AIX XL C 1.02.0.0 rejects this.
5790      It does not let you subtract one const X* pointer from another in
5791      an arm of an if-expression whose if-part is not a constant
5792      expression */
5793   const char *g = "string";
5794   ccp = &g + (g ? g-g : 0);
5795   /* HPUX 7.0 cc rejects these. */
5796   ++ccp;
5797   p = (char**) ccp;
5798   ccp = (char const *const *) p;
5799   { /* SCO 3.2v4 cc rejects this.  */
5800     char *t;
5801     char const *s = 0 ? (char *) 0 : (char const *) 0;
5802
5803     *t++ = 0;
5804   }
5805   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5806     int x[] = {25, 17};
5807     const int *foo = &x[0];
5808     ++foo;
5809   }
5810   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5811     typedef const int *iptr;
5812     iptr p = 0;
5813     ++p;
5814   }
5815   { /* AIX XL C 1.02.0.0 rejects this saying
5816        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5817     struct s { int j; const int *ap[3]; };
5818     struct s *b; b->j = 5;
5819   }
5820   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5821     const int foo = 10;
5822   }
5823 #endif
5824
5825   ;
5826   return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831   (eval $ac_compile) 2>conftest.er1
5832   ac_status=$?
5833   grep -v '^ *+' conftest.er1 >conftest.err
5834   rm -f conftest.er1
5835   cat conftest.err >&5
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); } &&
5838          { ac_try='test -z "$ac_c_werror_flag"
5839                          || test ! -s conftest.err'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; } &&
5845          { ac_try='test -s conftest.$ac_objext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_c_const=yes
5852 else
5853   echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ac_cv_c_const=no
5857 fi
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5861 echo "${ECHO_T}$ac_cv_c_const" >&6
5862 if test $ac_cv_c_const = no; then
5863
5864 cat >>confdefs.h <<\_ACEOF
5865 #define const
5866 _ACEOF
5867
5868 fi
5869
5870
5871 echo "$as_me:$LINENO: checking for egrep" >&5
5872 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5873 if test "${ac_cv_prog_egrep+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5877     then ac_cv_prog_egrep='grep -E'
5878     else ac_cv_prog_egrep='egrep'
5879     fi
5880 fi
5881 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5882 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5883  EGREP=$ac_cv_prog_egrep
5884
5885
5886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5888 if test "${ac_cv_header_stdc+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 #include <stdlib.h>
5898 #include <stdarg.h>
5899 #include <string.h>
5900 #include <float.h>
5901
5902 int
5903 main ()
5904 {
5905
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912   (eval $ac_compile) 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_c_werror_flag"
5920                          || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest.$ac_objext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_header_stdc=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_header_stdc=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940
5941 if test $ac_cv_header_stdc = yes; then
5942   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5943   cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h.  */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h.  */
5949 #include <string.h>
5950
5951 _ACEOF
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953   $EGREP "memchr" >/dev/null 2>&1; then
5954   :
5955 else
5956   ac_cv_header_stdc=no
5957 fi
5958 rm -f conftest*
5959
5960 fi
5961
5962 if test $ac_cv_header_stdc = yes; then
5963   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5964   cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970 #include <stdlib.h>
5971
5972 _ACEOF
5973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974   $EGREP "free" >/dev/null 2>&1; then
5975   :
5976 else
5977   ac_cv_header_stdc=no
5978 fi
5979 rm -f conftest*
5980
5981 fi
5982
5983 if test $ac_cv_header_stdc = yes; then
5984   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5985   if test "$cross_compiling" = yes; then
5986   :
5987 else
5988   cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h.  */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h.  */
5994 #include <ctype.h>
5995 #if ((' ' & 0x0FF) == 0x020)
5996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5998 #else
5999 # define ISLOWER(c) \
6000                    (('a' <= (c) && (c) <= 'i') \
6001                      || ('j' <= (c) && (c) <= 'r') \
6002                      || ('s' <= (c) && (c) <= 'z'))
6003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6004 #endif
6005
6006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6007 int
6008 main ()
6009 {
6010   int i;
6011   for (i = 0; i < 256; i++)
6012     if (XOR (islower (i), ISLOWER (i))
6013         || toupper (i) != TOUPPER (i))
6014       exit(2);
6015   exit (0);
6016 }
6017 _ACEOF
6018 rm -f conftest$ac_exeext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020   (eval $ac_link) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   :
6030 else
6031   echo "$as_me: program exited with status $ac_status" >&5
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 ( exit $ac_status )
6036 ac_cv_header_stdc=no
6037 fi
6038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6039 fi
6040 fi
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6043 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6044 if test $ac_cv_header_stdc = yes; then
6045
6046 cat >>confdefs.h <<\_ACEOF
6047 #define STDC_HEADERS 1
6048 _ACEOF
6049
6050 fi
6051
6052
6053
6054
6055
6056
6057 ac_header_dirent=no
6058 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6059   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6060 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6061 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063   echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065   cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h.  */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h.  */
6071 #include <sys/types.h>
6072 #include <$ac_hdr>
6073
6074 int
6075 main ()
6076 {
6077 if ((DIR *) 0)
6078 return 0;
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085   (eval $ac_compile) 2>conftest.er1
6086   ac_status=$?
6087   grep -v '^ *+' conftest.er1 >conftest.err
6088   rm -f conftest.er1
6089   cat conftest.err >&5
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -z "$ac_c_werror_flag"
6093                          || test ! -s conftest.err'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; } &&
6099          { ac_try='test -s conftest.$ac_objext'
6100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101   (eval $ac_try) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }; }; then
6105   eval "$as_ac_Header=yes"
6106 else
6107   echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 eval "$as_ac_Header=no"
6111 fi
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113 fi
6114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117   cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6119 _ACEOF
6120
6121 ac_header_dirent=$ac_hdr; break
6122 fi
6123
6124 done
6125 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6126 if test $ac_header_dirent = dirent.h; then
6127   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6128 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6129 if test "${ac_cv_search_opendir+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   ac_func_search_save_LIBS=$LIBS
6133 ac_cv_search_opendir=no
6134 cat >conftest.$ac_ext <<_ACEOF
6135 /* confdefs.h.  */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h.  */
6140
6141 /* Override any gcc2 internal prototype to avoid an error.  */
6142 #ifdef __cplusplus
6143 extern "C"
6144 #endif
6145 /* We use char because int might match the return type of a gcc2
6146    builtin and then its argument prototype would still apply.  */
6147 char opendir ();
6148 int
6149 main ()
6150 {
6151 opendir ();
6152   ;
6153   return 0;
6154 }
6155 _ACEOF
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6158   (eval $ac_link) 2>conftest.er1
6159   ac_status=$?
6160   grep -v '^ *+' conftest.er1 >conftest.err
6161   rm -f conftest.er1
6162   cat conftest.err >&5
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } &&
6165          { ac_try='test -z "$ac_c_werror_flag"
6166                          || test ! -s conftest.err'
6167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168   (eval $ac_try) 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; } &&
6172          { ac_try='test -s conftest$ac_exeext'
6173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174   (eval $ac_try) 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); }; }; then
6178   ac_cv_search_opendir="none required"
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 fi
6184 rm -f conftest.err conftest.$ac_objext \
6185       conftest$ac_exeext conftest.$ac_ext
6186 if test "$ac_cv_search_opendir" = no; then
6187   for ac_lib in dir; do
6188     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6189     cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195
6196 /* Override any gcc2 internal prototype to avoid an error.  */
6197 #ifdef __cplusplus
6198 extern "C"
6199 #endif
6200 /* We use char because int might match the return type of a gcc2
6201    builtin and then its argument prototype would still apply.  */
6202 char opendir ();
6203 int
6204 main ()
6205 {
6206 opendir ();
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6213   (eval $ac_link) 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } &&
6220          { ac_try='test -z "$ac_c_werror_flag"
6221                          || test ! -s conftest.err'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; } &&
6227          { ac_try='test -s conftest$ac_exeext'
6228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229   (eval $ac_try) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }; }; then
6233   ac_cv_search_opendir="-l$ac_lib"
6234 break
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 fi
6240 rm -f conftest.err conftest.$ac_objext \
6241       conftest$ac_exeext conftest.$ac_ext
6242   done
6243 fi
6244 LIBS=$ac_func_search_save_LIBS
6245 fi
6246 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6247 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6248 if test "$ac_cv_search_opendir" != no; then
6249   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6250
6251 fi
6252
6253 else
6254   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6255 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6256 if test "${ac_cv_search_opendir+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   ac_func_search_save_LIBS=$LIBS
6260 ac_cv_search_opendir=no
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h.  */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h.  */
6267
6268 /* Override any gcc2 internal prototype to avoid an error.  */
6269 #ifdef __cplusplus
6270 extern "C"
6271 #endif
6272 /* We use char because int might match the return type of a gcc2
6273    builtin and then its argument prototype would still apply.  */
6274 char opendir ();
6275 int
6276 main ()
6277 {
6278 opendir ();
6279   ;
6280   return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285   (eval $ac_link) 2>conftest.er1
6286   ac_status=$?
6287   grep -v '^ *+' conftest.er1 >conftest.err
6288   rm -f conftest.er1
6289   cat conftest.err >&5
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); } &&
6292          { ac_try='test -z "$ac_c_werror_flag"
6293                          || test ! -s conftest.err'
6294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295   (eval $ac_try) 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; } &&
6299          { ac_try='test -s conftest$ac_exeext'
6300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301   (eval $ac_try) 2>&5
6302   ac_status=$?
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); }; }; then
6305   ac_cv_search_opendir="none required"
6306 else
6307   echo "$as_me: failed program was:" >&5
6308 sed 's/^/| /' conftest.$ac_ext >&5
6309
6310 fi
6311 rm -f conftest.err conftest.$ac_objext \
6312       conftest$ac_exeext conftest.$ac_ext
6313 if test "$ac_cv_search_opendir" = no; then
6314   for ac_lib in x; do
6315     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6316     cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322
6323 /* Override any gcc2 internal prototype to avoid an error.  */
6324 #ifdef __cplusplus
6325 extern "C"
6326 #endif
6327 /* We use char because int might match the return type of a gcc2
6328    builtin and then its argument prototype would still apply.  */
6329 char opendir ();
6330 int
6331 main ()
6332 {
6333 opendir ();
6334   ;
6335   return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340   (eval $ac_link) 2>conftest.er1
6341   ac_status=$?
6342   grep -v '^ *+' conftest.er1 >conftest.err
6343   rm -f conftest.er1
6344   cat conftest.err >&5
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } &&
6347          { ac_try='test -z "$ac_c_werror_flag"
6348                          || test ! -s conftest.err'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; } &&
6354          { ac_try='test -s conftest$ac_exeext'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; }; then
6360   ac_cv_search_opendir="-l$ac_lib"
6361 break
6362 else
6363   echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 fi
6367 rm -f conftest.err conftest.$ac_objext \
6368       conftest$ac_exeext conftest.$ac_ext
6369   done
6370 fi
6371 LIBS=$ac_func_search_save_LIBS
6372 fi
6373 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6374 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6375 if test "$ac_cv_search_opendir" != no; then
6376   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6377
6378 fi
6379
6380 fi
6381
6382 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6393                   inttypes.h stdint.h unistd.h
6394 do
6395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h.  */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h.  */
6407 $ac_includes_default
6408
6409 #include <$ac_header>
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413   (eval $ac_compile) 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -z "$ac_c_werror_flag"
6421                          || test ! -s conftest.err'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; } &&
6427          { ac_try='test -s conftest.$ac_objext'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; }; then
6433   eval "$as_ac_Header=yes"
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 eval "$as_ac_Header=no"
6439 fi
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 fi
6442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6445   cat >>confdefs.h <<_ACEOF
6446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6447 _ACEOF
6448
6449 fi
6450
6451 done
6452
6453
6454
6455 for ac_header in dlfcn.h
6456 do
6457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459   echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 fi
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466 else
6467   # Is the header compilable?
6468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h.  */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h.  */
6476 $ac_includes_default
6477 #include <$ac_header>
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481   (eval $ac_compile) 2>conftest.er1
6482   ac_status=$?
6483   grep -v '^ *+' conftest.er1 >conftest.err
6484   rm -f conftest.er1
6485   cat conftest.err >&5
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); } &&
6488          { ac_try='test -z "$ac_c_werror_flag"
6489                          || test ! -s conftest.err'
6490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491   (eval $ac_try) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; } &&
6495          { ac_try='test -s conftest.$ac_objext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   ac_header_compiler=yes
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 ac_header_compiler=no
6507 fi
6508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6510 echo "${ECHO_T}$ac_header_compiler" >&6
6511
6512 # Is the header present?
6513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521 #include <$ac_header>
6522 _ACEOF
6523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6525   ac_status=$?
6526   grep -v '^ *+' conftest.er1 >conftest.err
6527   rm -f conftest.er1
6528   cat conftest.err >&5
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); } >/dev/null; then
6531   if test -s conftest.err; then
6532     ac_cpp_err=$ac_c_preproc_warn_flag
6533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6534   else
6535     ac_cpp_err=
6536   fi
6537 else
6538   ac_cpp_err=yes
6539 fi
6540 if test -z "$ac_cpp_err"; then
6541   ac_header_preproc=yes
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546   ac_header_preproc=no
6547 fi
6548 rm -f conftest.err conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6550 echo "${ECHO_T}$ac_header_preproc" >&6
6551
6552 # So?  What about this header?
6553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6554   yes:no: )
6555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6559     ac_header_preproc=yes
6560     ;;
6561   no:yes:* )
6562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6574     (
6575       cat <<\_ASBOX
6576 ## ----------------------------------- ##
6577 ## Report this to llvmbugs@cs.uiuc.edu ##
6578 ## ----------------------------------- ##
6579 _ASBOX
6580     ) |
6581       sed "s/^/$as_me: WARNING:     /" >&2
6582     ;;
6583 esac
6584 echo "$as_me:$LINENO: checking for $ac_header" >&5
6585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   eval "$as_ac_Header=\$ac_header_preproc"
6590 fi
6591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593
6594 fi
6595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6596   cat >>confdefs.h <<_ACEOF
6597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6598 _ACEOF
6599
6600 fi
6601
6602 done
6603
6604 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6605 if test "${enable_ltdl_install+set}" = set; then
6606   enableval="$enable_ltdl_install"
6607
6608 fi;
6609
6610
6611
6612 if test x"${enable_ltdl_install-no}" != xno; then
6613   INSTALL_LTDL_TRUE=
6614   INSTALL_LTDL_FALSE='#'
6615 else
6616   INSTALL_LTDL_TRUE='#'
6617   INSTALL_LTDL_FALSE=
6618 fi
6619
6620
6621
6622 if test x"${enable_ltdl_convenience-no}" != xno; then
6623   CONVENIENCE_LTDL_TRUE=
6624   CONVENIENCE_LTDL_FALSE='#'
6625 else
6626   CONVENIENCE_LTDL_TRUE='#'
6627   CONVENIENCE_LTDL_FALSE=
6628 fi
6629
6630
6631 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6632 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6633 library_names_spec=
6634 libname_spec='lib$name'
6635 soname_spec=
6636 shrext_cmds=".so"
6637 postinstall_cmds=
6638 postuninstall_cmds=
6639 finish_cmds=
6640 finish_eval=
6641 shlibpath_var=
6642 shlibpath_overrides_runpath=unknown
6643 version_type=none
6644 dynamic_linker="$host_os ld.so"
6645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6646 if test "$GCC" = yes; then
6647   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6648   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6649     # if the path contains ";" then we assume it to be the separator
6650     # otherwise default to the standard path separator (i.e. ":") - it is
6651     # assumed that no part of a normal pathname contains ";" but that should
6652     # okay in the real world where ";" in dirpaths is itself problematic.
6653     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6654   else
6655     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6656   fi
6657 else
6658   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6659 fi
6660 need_lib_prefix=unknown
6661 hardcode_into_libs=no
6662
6663 # when you set need_version to no, make sure it does not cause -set_version
6664 # flags to be left without arguments
6665 need_version=unknown
6666
6667 case $host_os in
6668 aix3*)
6669   version_type=linux
6670   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6671   shlibpath_var=LIBPATH
6672
6673   # AIX 3 has no versioning support, so we append a major version to the name.
6674   soname_spec='${libname}${release}${shared_ext}$major'
6675   ;;
6676
6677 aix4* | aix5*)
6678   version_type=linux
6679   need_lib_prefix=no
6680   need_version=no
6681   hardcode_into_libs=yes
6682   if test "$host_cpu" = ia64; then
6683     # AIX 5 supports IA64
6684     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6685     shlibpath_var=LD_LIBRARY_PATH
6686   else
6687     # With GCC up to 2.95.x, collect2 would create an import file
6688     # for dependence libraries.  The import file would start with
6689     # the line `#! .'.  This would cause the generated library to
6690     # depend on `.', always an invalid library.  This was fixed in
6691     # development snapshots of GCC prior to 3.0.
6692     case $host_os in
6693       aix4 | aix4.[01] | aix4.[01].*)
6694       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6695            echo ' yes '
6696            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6697         :
6698       else
6699         can_build_shared=no
6700       fi
6701       ;;
6702     esac
6703     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6704     # soname into executable. Probably we can add versioning support to
6705     # collect2, so additional links can be useful in future.
6706     if test "$aix_use_runtimelinking" = yes; then
6707       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6708       # instead of lib<name>.a to let people know that these are not
6709       # typical AIX shared libraries.
6710       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6711     else
6712       # We preserve .a as extension for shared libraries through AIX4.2
6713       # and later when we are not doing run time linking.
6714       library_names_spec='${libname}${release}.a $libname.a'
6715       soname_spec='${libname}${release}${shared_ext}$major'
6716     fi
6717     shlibpath_var=LIBPATH
6718   fi
6719   ;;
6720
6721 amigaos*)
6722   library_names_spec='$libname.ixlibrary $libname.a'
6723   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6724   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'
6725   ;;
6726
6727 beos*)
6728   library_names_spec='${libname}${shared_ext}'
6729   dynamic_linker="$host_os ld.so"
6730   shlibpath_var=LIBRARY_PATH
6731   ;;
6732
6733 bsdi[45]*)
6734   version_type=linux
6735   need_version=no
6736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6737   soname_spec='${libname}${release}${shared_ext}$major'
6738   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6739   shlibpath_var=LD_LIBRARY_PATH
6740   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6741   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6742   # the default ld.so.conf also contains /usr/contrib/lib and
6743   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6744   # libtool to hard-code these into programs
6745   ;;
6746
6747 cygwin* | mingw* | pw32*)
6748   version_type=windows
6749   shrext_cmds=".dll"
6750   need_version=no
6751   need_lib_prefix=no
6752
6753   case $GCC,$host_os in
6754   yes,cygwin* | yes,mingw* | yes,pw32*)
6755     library_names_spec='$libname.dll.a'
6756     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6757     postinstall_cmds='base_file=`basename \${file}`~
6758       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6759       dldir=$destdir/`dirname \$dlpath`~
6760       test -d \$dldir || mkdir -p \$dldir~
6761       $install_prog $dir/$dlname \$dldir/$dlname'
6762     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6763       dlpath=$dir/\$dldll~
6764        $rm \$dlpath'
6765     shlibpath_overrides_runpath=yes
6766
6767     case $host_os in
6768     cygwin*)
6769       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6770       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6771       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6772       ;;
6773     mingw*)
6774       # MinGW DLLs use traditional 'lib' prefix
6775       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6776       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6777       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6778         # It is most probably a Windows format PATH printed by
6779         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6780         # path with ; separators, and with drive letters. We can handle the
6781         # drive letters (cygwin fileutils understands them), so leave them,
6782         # especially as we might pass files found there to a mingw objdump,
6783         # which wouldn't understand a cygwinified path. Ahh.
6784         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6785       else
6786         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6787       fi
6788       ;;
6789     pw32*)
6790       # pw32 DLLs use 'pw' prefix rather than 'lib'
6791       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6792       ;;
6793     esac
6794     ;;
6795
6796   *)
6797     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6798     ;;
6799   esac
6800   dynamic_linker='Win32 ld.exe'
6801   # FIXME: first we should search . and the directory the executable is in
6802   shlibpath_var=PATH
6803   ;;
6804
6805 darwin* | rhapsody*)
6806   dynamic_linker="$host_os dyld"
6807   version_type=darwin
6808   need_lib_prefix=no
6809   need_version=no
6810   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6811   soname_spec='${libname}${release}${major}$shared_ext'
6812   shlibpath_overrides_runpath=yes
6813   shlibpath_var=DYLD_LIBRARY_PATH
6814   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6815   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6816   if test "$GCC" = yes; then
6817     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"`
6818   else
6819     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6820   fi
6821   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6822   ;;
6823
6824 dgux*)
6825   version_type=linux
6826   need_lib_prefix=no
6827   need_version=no
6828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6829   soname_spec='${libname}${release}${shared_ext}$major'
6830   shlibpath_var=LD_LIBRARY_PATH
6831   ;;
6832
6833 freebsd1*)
6834   dynamic_linker=no
6835   ;;
6836
6837 kfreebsd*-gnu)
6838   version_type=linux
6839   need_lib_prefix=no
6840   need_version=no
6841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6842   soname_spec='${libname}${release}${shared_ext}$major'
6843   shlibpath_var=LD_LIBRARY_PATH
6844   shlibpath_overrides_runpath=no
6845   hardcode_into_libs=yes
6846   dynamic_linker='GNU ld.so'
6847   ;;
6848
6849 freebsd*)
6850   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6851   version_type=freebsd-$objformat
6852   case $version_type in
6853     freebsd-elf*)
6854       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6855       need_version=no
6856       need_lib_prefix=no
6857       ;;
6858     freebsd-*)
6859       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6860       need_version=yes
6861       ;;
6862   esac
6863   shlibpath_var=LD_LIBRARY_PATH
6864   case $host_os in
6865   freebsd2*)
6866     shlibpath_overrides_runpath=yes
6867     ;;
6868   freebsd3.01* | freebsdelf3.01*)
6869     shlibpath_overrides_runpath=yes
6870     hardcode_into_libs=yes
6871     ;;
6872   *) # from 3.2 on
6873     shlibpath_overrides_runpath=no
6874     hardcode_into_libs=yes
6875     ;;
6876   esac
6877   ;;
6878
6879 gnu*)
6880   version_type=linux
6881   need_lib_prefix=no
6882   need_version=no
6883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6884   soname_spec='${libname}${release}${shared_ext}$major'
6885   shlibpath_var=LD_LIBRARY_PATH
6886   hardcode_into_libs=yes
6887   ;;
6888
6889 hpux9* | hpux10* | hpux11*)
6890   # Give a soname corresponding to the major version so that dld.sl refuses to
6891   # link against other versions.
6892   version_type=sunos
6893   need_lib_prefix=no
6894   need_version=no
6895   case "$host_cpu" in
6896   ia64*)
6897     shrext_cmds='.so'
6898     hardcode_into_libs=yes
6899     dynamic_linker="$host_os dld.so"
6900     shlibpath_var=LD_LIBRARY_PATH
6901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6903     soname_spec='${libname}${release}${shared_ext}$major'
6904     if test "X$HPUX_IA64_MODE" = X32; then
6905       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6906     else
6907       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6908     fi
6909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6910     ;;
6911    hppa*64*)
6912      shrext_cmds='.sl'
6913      hardcode_into_libs=yes
6914      dynamic_linker="$host_os dld.sl"
6915      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6916      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6920      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6921      ;;
6922    *)
6923     shrext_cmds='.sl'
6924     dynamic_linker="$host_os dld.sl"
6925     shlibpath_var=SHLIB_PATH
6926     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6928     soname_spec='${libname}${release}${shared_ext}$major'
6929     ;;
6930   esac
6931   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6932   postinstall_cmds='chmod 555 $lib'
6933   ;;
6934
6935 irix5* | irix6* | nonstopux*)
6936   case $host_os in
6937     nonstopux*) version_type=nonstopux ;;
6938     *)
6939         if test "$lt_cv_prog_gnu_ld" = yes; then
6940                 version_type=linux
6941         else
6942                 version_type=irix
6943         fi ;;
6944   esac
6945   need_lib_prefix=no
6946   need_version=no
6947   soname_spec='${libname}${release}${shared_ext}$major'
6948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6949   case $host_os in
6950   irix5* | nonstopux*)
6951     libsuff= shlibsuff=
6952     ;;
6953   *)
6954     case $LD in # libtool.m4 will add one of these switches to LD
6955     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6956       libsuff= shlibsuff= libmagic=32-bit;;
6957     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6958       libsuff=32 shlibsuff=N32 libmagic=N32;;
6959     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6960       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6961     *) libsuff= shlibsuff= libmagic=never-match;;
6962     esac
6963     ;;
6964   esac
6965   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6966   shlibpath_overrides_runpath=no
6967   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6968   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6969   hardcode_into_libs=yes
6970   ;;
6971
6972 # No shared lib support for Linux oldld, aout, or coff.
6973 linux*oldld* | linux*aout* | linux*coff*)
6974   dynamic_linker=no
6975   ;;
6976
6977 # This must be Linux ELF.
6978 linux*)
6979   version_type=linux
6980   need_lib_prefix=no
6981   need_version=no
6982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983   soname_spec='${libname}${release}${shared_ext}$major'
6984   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6985   shlibpath_var=LD_LIBRARY_PATH
6986   shlibpath_overrides_runpath=no
6987   # This implies no fast_install, which is unacceptable.
6988   # Some rework will be needed to allow for fast_install
6989   # before this can be enabled.
6990   hardcode_into_libs=yes
6991
6992   # Append ld.so.conf contents to the search path
6993   if test -f /etc/ld.so.conf; then
6994     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6995     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6996   fi
6997
6998   # We used to test for /lib/ld.so.1 and disable shared libraries on
6999   # powerpc, because MkLinux only supported shared libraries with the
7000   # GNU dynamic linker.  Since this was broken with cross compilers,
7001   # most powerpc-linux boxes support dynamic linking these days and
7002   # people can always --disable-shared, the test was removed, and we
7003   # assume the GNU/Linux dynamic linker is in use.
7004   dynamic_linker='GNU/Linux ld.so'
7005   ;;
7006
7007 knetbsd*-gnu)
7008   version_type=linux
7009   need_lib_prefix=no
7010   need_version=no
7011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7012   soname_spec='${libname}${release}${shared_ext}$major'
7013   shlibpath_var=LD_LIBRARY_PATH
7014   shlibpath_overrides_runpath=no
7015   hardcode_into_libs=yes
7016   dynamic_linker='GNU ld.so'
7017   ;;
7018
7019 netbsd*)
7020   version_type=sunos
7021   need_lib_prefix=no
7022   need_version=no
7023   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7025     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7026     dynamic_linker='NetBSD (a.out) ld.so'
7027   else
7028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7029     soname_spec='${libname}${release}${shared_ext}$major'
7030     dynamic_linker='NetBSD ld.elf_so'
7031   fi
7032   shlibpath_var=LD_LIBRARY_PATH
7033   shlibpath_overrides_runpath=yes
7034   hardcode_into_libs=yes
7035   ;;
7036
7037 newsos6)
7038   version_type=linux
7039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7040   shlibpath_var=LD_LIBRARY_PATH
7041   shlibpath_overrides_runpath=yes
7042   ;;
7043
7044 nto-qnx*)
7045   version_type=linux
7046   need_lib_prefix=no
7047   need_version=no
7048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7049   soname_spec='${libname}${release}${shared_ext}$major'
7050   shlibpath_var=LD_LIBRARY_PATH
7051   shlibpath_overrides_runpath=yes
7052   ;;
7053
7054 openbsd*)
7055   version_type=sunos
7056   need_lib_prefix=no
7057   need_version=no
7058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7059   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7060   shlibpath_var=LD_LIBRARY_PATH
7061   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7062     case $host_os in
7063       openbsd2.[89] | openbsd2.[89].*)
7064         shlibpath_overrides_runpath=no
7065         ;;
7066       *)
7067         shlibpath_overrides_runpath=yes
7068         ;;
7069       esac
7070   else
7071     shlibpath_overrides_runpath=yes
7072   fi
7073   ;;
7074
7075 os2*)
7076   libname_spec='$name'
7077   shrext_cmds=".dll"
7078   need_lib_prefix=no
7079   library_names_spec='$libname${shared_ext} $libname.a'
7080   dynamic_linker='OS/2 ld.exe'
7081   shlibpath_var=LIBPATH
7082   ;;
7083
7084 osf3* | osf4* | osf5*)
7085   version_type=osf
7086   need_lib_prefix=no
7087   need_version=no
7088   soname_spec='${libname}${release}${shared_ext}$major'
7089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7090   shlibpath_var=LD_LIBRARY_PATH
7091   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7092   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7093   ;;
7094
7095 sco3.2v5*)
7096   version_type=osf
7097   soname_spec='${libname}${release}${shared_ext}$major'
7098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7099   shlibpath_var=LD_LIBRARY_PATH
7100   ;;
7101
7102 solaris*)
7103   version_type=linux
7104   need_lib_prefix=no
7105   need_version=no
7106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7107   soname_spec='${libname}${release}${shared_ext}$major'
7108   shlibpath_var=LD_LIBRARY_PATH
7109   shlibpath_overrides_runpath=yes
7110   hardcode_into_libs=yes
7111   # ldd complains unless libraries are executable
7112   postinstall_cmds='chmod +x $lib'
7113   ;;
7114
7115 sunos4*)
7116   version_type=sunos
7117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7118   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7119   shlibpath_var=LD_LIBRARY_PATH
7120   shlibpath_overrides_runpath=yes
7121   if test "$with_gnu_ld" = yes; then
7122     need_lib_prefix=no
7123   fi
7124   need_version=yes
7125   ;;
7126
7127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7128   version_type=linux
7129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7130   soname_spec='${libname}${release}${shared_ext}$major'
7131   shlibpath_var=LD_LIBRARY_PATH
7132   case $host_vendor in
7133     sni)
7134       shlibpath_overrides_runpath=no
7135       need_lib_prefix=no
7136       export_dynamic_flag_spec='${wl}-Blargedynsym'
7137       runpath_var=LD_RUN_PATH
7138       ;;
7139     siemens)
7140       need_lib_prefix=no
7141       ;;
7142     motorola)
7143       need_lib_prefix=no
7144       need_version=no
7145       shlibpath_overrides_runpath=no
7146       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7147       ;;
7148   esac
7149   ;;
7150
7151 sysv4*MP*)
7152   if test -d /usr/nec ;then
7153     version_type=linux
7154     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7155     soname_spec='$libname${shared_ext}.$major'
7156     shlibpath_var=LD_LIBRARY_PATH
7157   fi
7158   ;;
7159
7160 uts4*)
7161   version_type=linux
7162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7163   soname_spec='${libname}${release}${shared_ext}$major'
7164   shlibpath_var=LD_LIBRARY_PATH
7165   ;;
7166
7167 *)
7168   dynamic_linker=no
7169   ;;
7170 esac
7171 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7172 echo "${ECHO_T}$dynamic_linker" >&6
7173 test "$dynamic_linker" = no && can_build_shared=no
7174
7175
7176 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7177 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7178 if test "${libltdl_cv_shlibext+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181
7182 module=yes
7183 eval libltdl_cv_shlibext=$shrext_cmds
7184
7185 fi
7186 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7187 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7188 if test -n "$libltdl_cv_shlibext"; then
7189
7190 cat >>confdefs.h <<_ACEOF
7191 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7192 _ACEOF
7193
7194 fi
7195
7196
7197 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7198 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7199 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7200   echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202   libltdl_cv_shlibpath_var="$shlibpath_var"
7203 fi
7204 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7205 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7206 if test -n "$libltdl_cv_shlibpath_var"; then
7207
7208 cat >>confdefs.h <<_ACEOF
7209 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7210 _ACEOF
7211
7212 fi
7213
7214
7215 echo "$as_me:$LINENO: checking for the default library search path" >&5
7216 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7217 if test "${libltdl_cv_sys_search_path+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7221 fi
7222 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7223 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7224 if test -n "$libltdl_cv_sys_search_path"; then
7225   sys_search_path=
7226   for dir in $libltdl_cv_sys_search_path; do
7227     if test -z "$sys_search_path"; then
7228       sys_search_path="$dir"
7229     else
7230       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7231     fi
7232   done
7233
7234 cat >>confdefs.h <<_ACEOF
7235 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7236 _ACEOF
7237
7238 fi
7239
7240 echo "$as_me:$LINENO: checking for objdir" >&5
7241 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7242 if test "${libltdl_cv_objdir+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   libltdl_cv_objdir="$objdir"
7246   if test -n "$objdir"; then
7247     :
7248   else
7249     rm -f .libs 2>/dev/null
7250     mkdir .libs 2>/dev/null
7251     if test -d .libs; then
7252       libltdl_cv_objdir=.libs
7253     else
7254       # MS-DOS does not allow filenames that begin with a dot.
7255       libltdl_cv_objdir=_libs
7256     fi
7257   rmdir .libs 2>/dev/null
7258   fi
7259
7260 fi
7261 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7262 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7263
7264 cat >>confdefs.h <<_ACEOF
7265 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7266 _ACEOF
7267
7268
7269 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7270 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7271 if test "${lt_cv_path_NM+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   if test -n "$NM"; then
7275   # Let the user override the test.
7276   lt_cv_path_NM="$NM"
7277 else
7278   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7279   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7280     IFS="$lt_save_ifs"
7281     test -z "$ac_dir" && ac_dir=.
7282     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7283     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7284       # Check to see if the nm accepts a BSD-compat flag.
7285       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7286       #   nm: unknown option "B" ignored
7287       # Tru64's nm complains that /dev/null is an invalid object file
7288       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7289       */dev/null* | *'Invalid file or object type'*)
7290         lt_cv_path_NM="$tmp_nm -B"
7291         break
7292         ;;
7293       *)
7294         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7295         */dev/null*)
7296           lt_cv_path_NM="$tmp_nm -p"
7297           break
7298           ;;
7299         *)
7300           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7301           continue # so that we can try to find one that supports BSD flags
7302           ;;
7303         esac
7304       esac
7305     fi
7306   done
7307   IFS="$lt_save_ifs"
7308   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7309 fi
7310 fi
7311 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7312 echo "${ECHO_T}$lt_cv_path_NM" >&6
7313 NM="$lt_cv_path_NM"
7314
7315
7316
7317
7318
7319 # Check for command to grab the raw symbol name followed by C symbol from nm.
7320 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7321 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7322 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325
7326 # These are sane defaults that work on at least a few old systems.
7327 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7328
7329 # Character class describing NM global symbol codes.
7330 symcode='[BCDEGRST]'
7331
7332 # Regexp to match symbols that can be accessed directly from C.
7333 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7334
7335 # Transform the above into a raw symbol and a C symbol.
7336 symxfrm='\1 \2\3 \3'
7337
7338 # Transform an extracted symbol line into a proper C declaration
7339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7340
7341 # Transform an extracted symbol line into symbol name and symbol address
7342 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'"
7343
7344 # Define system-specific variables.
7345 case $host_os in
7346 aix*)
7347   symcode='[BCDT]'
7348   ;;
7349 cygwin* | mingw* | pw32*)
7350   symcode='[ABCDGISTW]'
7351   ;;
7352 hpux*) # Its linker distinguishes data from code symbols
7353   if test "$host_cpu" = ia64; then
7354     symcode='[ABCDEGRST]'
7355   fi
7356   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7357   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'"
7358   ;;
7359 linux*)
7360   if test "$host_cpu" = ia64; then
7361     symcode='[ABCDGIRSTW]'
7362     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7363     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'"
7364   fi
7365   ;;
7366 irix* | nonstopux*)
7367   symcode='[BCDEGRST]'
7368   ;;
7369 osf*)
7370   symcode='[BCDEGQRST]'
7371   ;;
7372 solaris* | sysv5*)
7373   symcode='[BDRT]'
7374   ;;
7375 sysv4)
7376   symcode='[DFNSTU]'
7377   ;;
7378 esac
7379
7380 # Handle CRLF in mingw tool chain
7381 opt_cr=
7382 case $build_os in
7383 mingw*)
7384   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7385   ;;
7386 esac
7387
7388 # If we're using GNU nm, then use its standard symbol codes.
7389 case `$NM -V 2>&1` in
7390 *GNU* | *'with BFD'*)
7391   symcode='[ABCDGIRSTW]' ;;
7392 esac
7393
7394 # Try without a prefix undercore, then with it.
7395 for ac_symprfx in "" "_"; do
7396
7397   # Write the raw and C identifiers.
7398   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7399
7400   # Check to see that the pipe works correctly.
7401   pipe_works=no
7402
7403   rm -f conftest*
7404   cat > conftest.$ac_ext <<EOF
7405 #ifdef __cplusplus
7406 extern "C" {
7407 #endif
7408 char nm_test_var;
7409 void nm_test_func(){}
7410 #ifdef __cplusplus
7411 }
7412 #endif
7413 int main(){nm_test_var='a';nm_test_func();return(0);}
7414 EOF
7415
7416   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417   (eval $ac_compile) 2>&5
7418   ac_status=$?
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); }; then
7421     # Now try to grab the symbols.
7422     nlist=conftest.nm
7423     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7424   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7425   ac_status=$?
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } && test -s "$nlist"; then
7428       # Try sorting and uniquifying the output.
7429       if sort "$nlist" | uniq > "$nlist"T; then
7430         mv -f "$nlist"T "$nlist"
7431       else
7432         rm -f "$nlist"T
7433       fi
7434
7435       # Make sure that we snagged all the symbols we need.
7436       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7437         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7438           cat <<EOF > conftest.$ac_ext
7439 #ifdef __cplusplus
7440 extern "C" {
7441 #endif
7442
7443 EOF
7444           # Now generate the symbol file.
7445           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7446
7447           cat <<EOF >> conftest.$ac_ext
7448 #if defined (__STDC__) && __STDC__
7449 # define lt_ptr_t void *
7450 #else
7451 # define lt_ptr_t char *
7452 # define const
7453 #endif
7454
7455 /* The mapping between symbol names and symbols. */
7456 const struct {
7457   const char *name;
7458   lt_ptr_t address;
7459 }
7460 lt_preloaded_symbols[] =
7461 {
7462 EOF
7463           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7464           cat <<\EOF >> conftest.$ac_ext
7465   {0, (lt_ptr_t) 0}
7466 };
7467
7468 #ifdef __cplusplus
7469 }
7470 #endif
7471 EOF
7472           # Now try linking the two files.
7473           mv conftest.$ac_objext conftstm.$ac_objext
7474           lt_save_LIBS="$LIBS"
7475           lt_save_CFLAGS="$CFLAGS"
7476           LIBS="conftstm.$ac_objext"
7477           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7478           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479   (eval $ac_link) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7483             pipe_works=yes
7484           fi
7485           LIBS="$lt_save_LIBS"
7486           CFLAGS="$lt_save_CFLAGS"
7487         else
7488           echo "cannot find nm_test_func in $nlist" >&5
7489         fi
7490       else
7491         echo "cannot find nm_test_var in $nlist" >&5
7492       fi
7493     else
7494       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7495     fi
7496   else
7497     echo "$progname: failed program was:" >&5
7498     cat conftest.$ac_ext >&5
7499   fi
7500   rm -f conftest* conftst*
7501
7502   # Do not use the global_symbol_pipe unless it works.
7503   if test "$pipe_works" = yes; then
7504     break
7505   else
7506     lt_cv_sys_global_symbol_pipe=
7507   fi
7508 done
7509
7510 fi
7511
7512 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7513   lt_cv_sys_global_symbol_to_cdecl=
7514 fi
7515 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7516   echo "$as_me:$LINENO: result: failed" >&5
7517 echo "${ECHO_T}failed" >&6
7518 else
7519   echo "$as_me:$LINENO: result: ok" >&5
7520 echo "${ECHO_T}ok" >&6
7521 fi
7522
7523
7524 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7525 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7526 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7530     libltdl_cv_preloaded_symbols=yes
7531   else
7532     libltdl_cv_preloaded_symbols=no
7533   fi
7534
7535 fi
7536 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7537 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7538 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7539
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_PRELOADED_SYMBOLS 1
7542 _ACEOF
7543
7544 fi
7545
7546 LIBADD_DL=
7547
7548 ac_ext=c
7549 ac_cpp='$CPP $CPPFLAGS'
7550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553
7554
7555 echo "$as_me:$LINENO: checking for shl_load" >&5
7556 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7557 if test "${ac_cv_func_shl_load+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h.  */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h.  */
7566 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7568 #define shl_load innocuous_shl_load
7569
7570 /* System header to define __stub macros and hopefully few prototypes,
7571     which can conflict with char shl_load (); below.
7572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7573     <limits.h> exists even on freestanding compilers.  */
7574
7575 #ifdef __STDC__
7576 # include <limits.h>
7577 #else
7578 # include <assert.h>
7579 #endif
7580
7581 #undef shl_load
7582
7583 /* Override any gcc2 internal prototype to avoid an error.  */
7584 #ifdef __cplusplus
7585 extern "C"
7586 {
7587 #endif
7588 /* We use char because int might match the return type of a gcc2
7589    builtin and then its argument prototype would still apply.  */
7590 char shl_load ();
7591 /* The GNU C library defines this for functions which it implements
7592     to always fail with ENOSYS.  Some functions are actually named
7593     something starting with __ and the normal name is an alias.  */
7594 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7595 choke me
7596 #else
7597 char (*f) () = shl_load;
7598 #endif
7599 #ifdef __cplusplus
7600 }
7601 #endif
7602
7603 int
7604 main ()
7605 {
7606 return f != shl_load;
7607   ;
7608   return 0;
7609 }
7610 _ACEOF
7611 rm -f conftest.$ac_objext conftest$ac_exeext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613   (eval $ac_link) 2>conftest.er1
7614   ac_status=$?
7615   grep -v '^ *+' conftest.er1 >conftest.err
7616   rm -f conftest.er1
7617   cat conftest.err >&5
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } &&
7620          { ac_try='test -z "$ac_c_werror_flag"
7621                          || test ! -s conftest.err'
7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623   (eval $ac_try) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; } &&
7627          { ac_try='test -s conftest$ac_exeext'
7628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629   (eval $ac_try) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; }; then
7633   ac_cv_func_shl_load=yes
7634 else
7635   echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_cv_func_shl_load=no
7639 fi
7640 rm -f conftest.err conftest.$ac_objext \
7641       conftest$ac_exeext conftest.$ac_ext
7642 fi
7643 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7644 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7645 if test $ac_cv_func_shl_load = yes; then
7646
7647 cat >>confdefs.h <<\_ACEOF
7648 #define HAVE_SHL_LOAD 1
7649 _ACEOF
7650
7651 else
7652   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7653 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7654 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   ac_check_lib_save_LIBS=$LIBS
7658 LIBS="-ldld  $LIBS"
7659 cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h.  */
7661 _ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h.  */
7665
7666 /* Override any gcc2 internal prototype to avoid an error.  */
7667 #ifdef __cplusplus
7668 extern "C"
7669 #endif
7670 /* We use char because int might match the return type of a gcc2
7671    builtin and then its argument prototype would still apply.  */
7672 char shl_load ();
7673 int
7674 main ()
7675 {
7676 shl_load ();
7677   ;
7678   return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683   (eval $ac_link) 2>conftest.er1
7684   ac_status=$?
7685   grep -v '^ *+' conftest.er1 >conftest.err
7686   rm -f conftest.er1
7687   cat conftest.err >&5
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); } &&
7690          { ac_try='test -z "$ac_c_werror_flag"
7691                          || test ! -s conftest.err'
7692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693   (eval $ac_try) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; } &&
7697          { ac_try='test -s conftest$ac_exeext'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; }; then
7703   ac_cv_lib_dld_shl_load=yes
7704 else
7705   echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 ac_cv_lib_dld_shl_load=no
7709 fi
7710 rm -f conftest.err conftest.$ac_objext \
7711       conftest$ac_exeext conftest.$ac_ext
7712 LIBS=$ac_check_lib_save_LIBS
7713 fi
7714 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7715 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7716 if test $ac_cv_lib_dld_shl_load = yes; then
7717
7718 cat >>confdefs.h <<\_ACEOF
7719 #define HAVE_SHL_LOAD 1
7720 _ACEOF
7721
7722         LIBADD_DL="$LIBADD_DL -ldld"
7723 else
7724   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7725 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7726 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7727   echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729   ac_check_lib_save_LIBS=$LIBS
7730 LIBS="-ldl  $LIBS"
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737
7738 /* Override any gcc2 internal prototype to avoid an error.  */
7739 #ifdef __cplusplus
7740 extern "C"
7741 #endif
7742 /* We use char because int might match the return type of a gcc2
7743    builtin and then its argument prototype would still apply.  */
7744 char dlopen ();
7745 int
7746 main ()
7747 {
7748 dlopen ();
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext conftest$ac_exeext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755   (eval $ac_link) 2>conftest.er1
7756   ac_status=$?
7757   grep -v '^ *+' conftest.er1 >conftest.err
7758   rm -f conftest.er1
7759   cat conftest.err >&5
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); } &&
7762          { ac_try='test -z "$ac_c_werror_flag"
7763                          || test ! -s conftest.err'
7764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765   (eval $ac_try) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }; } &&
7769          { ac_try='test -s conftest$ac_exeext'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; }; then
7775   ac_cv_lib_dl_dlopen=yes
7776 else
7777   echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7779
7780 ac_cv_lib_dl_dlopen=no
7781 fi
7782 rm -f conftest.err conftest.$ac_objext \
7783       conftest$ac_exeext conftest.$ac_ext
7784 LIBS=$ac_check_lib_save_LIBS
7785 fi
7786 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7787 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7788 if test $ac_cv_lib_dl_dlopen = yes; then
7789
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_LIBDL 1
7792 _ACEOF
7793
7794                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7795 else
7796   cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h.  */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h.  */
7802 #if HAVE_DLFCN_H
7803 #  include <dlfcn.h>
7804 #endif
7805
7806 int
7807 main ()
7808 {
7809 dlopen(0, 0);
7810   ;
7811   return 0;
7812 }
7813 _ACEOF
7814 rm -f conftest.$ac_objext conftest$ac_exeext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7816   (eval $ac_link) 2>conftest.er1
7817   ac_status=$?
7818   grep -v '^ *+' conftest.er1 >conftest.err
7819   rm -f conftest.er1
7820   cat conftest.err >&5
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); } &&
7823          { ac_try='test -z "$ac_c_werror_flag"
7824                          || test ! -s conftest.err'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; } &&
7830          { ac_try='test -s conftest$ac_exeext'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836
7837 cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_LIBDL 1
7839 _ACEOF
7840  libltdl_cv_func_dlopen="yes"
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7846 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   ac_check_lib_save_LIBS=$LIBS
7851 LIBS="-lsvld  $LIBS"
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858
7859 /* Override any gcc2 internal prototype to avoid an error.  */
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 /* We use char because int might match the return type of a gcc2
7864    builtin and then its argument prototype would still apply.  */
7865 char dlopen ();
7866 int
7867 main ()
7868 {
7869 dlopen ();
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876   (eval $ac_link) 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -z "$ac_c_werror_flag"
7884                          || test ! -s conftest.err'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; } &&
7890          { ac_try='test -s conftest$ac_exeext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   ac_cv_lib_svld_dlopen=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 ac_cv_lib_svld_dlopen=no
7902 fi
7903 rm -f conftest.err conftest.$ac_objext \
7904       conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7906 fi
7907 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7909 if test $ac_cv_lib_svld_dlopen = yes; then
7910
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_LIBDL 1
7913 _ACEOF
7914
7915                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7916 else
7917   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7918 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7919 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922   ac_check_lib_save_LIBS=$LIBS
7923 LIBS="-ldld  $LIBS"
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930
7931 /* Override any gcc2 internal prototype to avoid an error.  */
7932 #ifdef __cplusplus
7933 extern "C"
7934 #endif
7935 /* We use char because int might match the return type of a gcc2
7936    builtin and then its argument prototype would still apply.  */
7937 char dld_link ();
7938 int
7939 main ()
7940 {
7941 dld_link ();
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948   (eval $ac_link) 2>conftest.er1
7949   ac_status=$?
7950   grep -v '^ *+' conftest.er1 >conftest.err
7951   rm -f conftest.er1
7952   cat conftest.err >&5
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } &&
7955          { ac_try='test -z "$ac_c_werror_flag"
7956                          || test ! -s conftest.err'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; } &&
7962          { ac_try='test -s conftest$ac_exeext'
7963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964   (eval $ac_try) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; }; then
7968   ac_cv_lib_dld_dld_link=yes
7969 else
7970   echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973 ac_cv_lib_dld_dld_link=no
7974 fi
7975 rm -f conftest.err conftest.$ac_objext \
7976       conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7978 fi
7979 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7980 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7981 if test $ac_cv_lib_dld_dld_link = yes; then
7982
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_DLD 1
7985 _ACEOF
7986
7987                 LIBADD_DL="$LIBADD_DL -ldld"
7988 else
7989   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7990 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7991 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8002 #define _dyld_func_lookup innocuous__dyld_func_lookup
8003
8004 /* System header to define __stub macros and hopefully few prototypes,
8005     which can conflict with char _dyld_func_lookup (); below.
8006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8007     <limits.h> exists even on freestanding compilers.  */
8008
8009 #ifdef __STDC__
8010 # include <limits.h>
8011 #else
8012 # include <assert.h>
8013 #endif
8014
8015 #undef _dyld_func_lookup
8016
8017 /* Override any gcc2 internal prototype to avoid an error.  */
8018 #ifdef __cplusplus
8019 extern "C"
8020 {
8021 #endif
8022 /* We use char because int might match the return type of a gcc2
8023    builtin and then its argument prototype would still apply.  */
8024 char _dyld_func_lookup ();
8025 /* The GNU C library defines this for functions which it implements
8026     to always fail with ENOSYS.  Some functions are actually named
8027     something starting with __ and the normal name is an alias.  */
8028 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8029 choke me
8030 #else
8031 char (*f) () = _dyld_func_lookup;
8032 #endif
8033 #ifdef __cplusplus
8034 }
8035 #endif
8036
8037 int
8038 main ()
8039 {
8040 return f != _dyld_func_lookup;
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047   (eval $ac_link) 2>conftest.er1
8048   ac_status=$?
8049   grep -v '^ *+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } &&
8054          { ac_try='test -z "$ac_c_werror_flag"
8055                          || test ! -s conftest.err'
8056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057   (eval $ac_try) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; } &&
8061          { ac_try='test -s conftest$ac_exeext'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; }; then
8067   ac_cv_func__dyld_func_lookup=yes
8068 else
8069   echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 ac_cv_func__dyld_func_lookup=no
8073 fi
8074 rm -f conftest.err conftest.$ac_objext \
8075       conftest$ac_exeext conftest.$ac_ext
8076 fi
8077 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8078 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8079 if test $ac_cv_func__dyld_func_lookup = yes; then
8080
8081 cat >>confdefs.h <<\_ACEOF
8082 #define HAVE_DYLD 1
8083 _ACEOF
8084
8085 fi
8086
8087
8088 fi
8089
8090
8091 fi
8092
8093
8094 fi
8095 rm -f conftest.err conftest.$ac_objext \
8096       conftest$ac_exeext conftest.$ac_ext
8097
8098 fi
8099
8100
8101 fi
8102
8103
8104 fi
8105
8106
8107 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8108 then
8109   lt_save_LIBS="$LIBS"
8110   LIBS="$LIBS $LIBADD_DL"
8111
8112 for ac_func in dlerror
8113 do
8114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8115 echo "$as_me:$LINENO: checking for $ac_func" >&5
8116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8117 if eval "test \"\${$as_ac_var+set}\" = set"; then
8118   echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120   cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8128 #define $ac_func innocuous_$ac_func
8129
8130 /* System header to define __stub macros and hopefully few prototypes,
8131     which can conflict with char $ac_func (); below.
8132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8133     <limits.h> exists even on freestanding compilers.  */
8134
8135 #ifdef __STDC__
8136 # include <limits.h>
8137 #else
8138 # include <assert.h>
8139 #endif
8140
8141 #undef $ac_func
8142
8143 /* Override any gcc2 internal prototype to avoid an error.  */
8144 #ifdef __cplusplus
8145 extern "C"
8146 {
8147 #endif
8148 /* We use char because int might match the return type of a gcc2
8149    builtin and then its argument prototype would still apply.  */
8150 char $ac_func ();
8151 /* The GNU C library defines this for functions which it implements
8152     to always fail with ENOSYS.  Some functions are actually named
8153     something starting with __ and the normal name is an alias.  */
8154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8155 choke me
8156 #else
8157 char (*f) () = $ac_func;
8158 #endif
8159 #ifdef __cplusplus
8160 }
8161 #endif
8162
8163 int
8164 main ()
8165 {
8166 return f != $ac_func;
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173   (eval $ac_link) 2>conftest.er1
8174   ac_status=$?
8175   grep -v '^ *+' conftest.er1 >conftest.err
8176   rm -f conftest.er1
8177   cat conftest.err >&5
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } &&
8180          { ac_try='test -z "$ac_c_werror_flag"
8181                          || test ! -s conftest.err'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; } &&
8187          { ac_try='test -s conftest$ac_exeext'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; }; then
8193   eval "$as_ac_var=yes"
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 eval "$as_ac_var=no"
8199 fi
8200 rm -f conftest.err conftest.$ac_objext \
8201       conftest$ac_exeext conftest.$ac_ext
8202 fi
8203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8205 if test `eval echo '${'$as_ac_var'}'` = yes; then
8206   cat >>confdefs.h <<_ACEOF
8207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8208 _ACEOF
8209
8210 fi
8211 done
8212
8213   LIBS="$lt_save_LIBS"
8214 fi
8215 ac_ext=c
8216 ac_cpp='$CPP $CPPFLAGS'
8217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220
8221
8222
8223 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8224 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8225 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   ac_cv_sys_symbol_underscore=no
8229   cat > conftest.$ac_ext <<EOF
8230 void nm_test_func(){}
8231 int main(){nm_test_func;return 0;}
8232 EOF
8233   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234   (eval $ac_compile) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; then
8238     # Now try to grab the symbols.
8239     ac_nlist=conftest.nm
8240     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8241   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } && test -s "$ac_nlist"; then
8245       # See whether the symbols have a leading underscore.
8246       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8247         ac_cv_sys_symbol_underscore=yes
8248       else
8249         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8250           :
8251         else
8252           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8253         fi
8254       fi
8255     else
8256       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8257     fi
8258   else
8259     echo "configure: failed program was:" >&5
8260     cat conftest.c >&5
8261   fi
8262   rm -rf conftest*
8263
8264 fi
8265 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8266 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8267
8268
8269 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8270   if test x"$libltdl_cv_func_dlopen" = xyes ||
8271      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8272         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8273 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8274 if test "${libltdl_cv_need_uscore+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   libltdl_cv_need_uscore=unknown
8278           save_LIBS="$LIBS"
8279           LIBS="$LIBS $LIBADD_DL"
8280           if test "$cross_compiling" = yes; then :
8281   libltdl_cv_need_uscore=cross
8282 else
8283   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8284   lt_status=$lt_dlunknown
8285   cat > conftest.$ac_ext <<EOF
8286 #line 8286 "configure"
8287 #include "confdefs.h"
8288
8289 #if HAVE_DLFCN_H
8290 #include <dlfcn.h>
8291 #endif
8292
8293 #include <stdio.h>
8294
8295 #ifdef RTLD_GLOBAL
8296 #  define LT_DLGLOBAL           RTLD_GLOBAL
8297 #else
8298 #  ifdef DL_GLOBAL
8299 #    define LT_DLGLOBAL         DL_GLOBAL
8300 #  else
8301 #    define LT_DLGLOBAL         0
8302 #  endif
8303 #endif
8304
8305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8306    find out it does not work in some platform. */
8307 #ifndef LT_DLLAZY_OR_NOW
8308 #  ifdef RTLD_LAZY
8309 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8310 #  else
8311 #    ifdef DL_LAZY
8312 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8313 #    else
8314 #      ifdef RTLD_NOW
8315 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8316 #      else
8317 #        ifdef DL_NOW
8318 #          define LT_DLLAZY_OR_NOW      DL_NOW
8319 #        else
8320 #          define LT_DLLAZY_OR_NOW      0
8321 #        endif
8322 #      endif
8323 #    endif
8324 #  endif
8325 #endif
8326
8327 #ifdef __cplusplus
8328 extern "C" void exit (int);
8329 #endif
8330
8331 void fnord() { int i=42;}
8332 int main ()
8333 {
8334   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8335   int status = $lt_dlunknown;
8336
8337   if (self)
8338     {
8339       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8340       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8341       /* dlclose (self); */
8342     }
8343
8344     exit (status);
8345 }
8346 EOF
8347   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348   (eval $ac_link) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8352     (./conftest; exit; ) 2>/dev/null
8353     lt_status=$?
8354     case x$lt_status in
8355       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8356       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8357       x$lt_unknown|x*)  ;;
8358     esac
8359   else :
8360     # compilation failed
8361
8362   fi
8363 fi
8364 rm -fr conftest*
8365
8366           LIBS="$save_LIBS"
8367
8368 fi
8369 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8370 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8371   fi
8372 fi
8373
8374 if test x"$libltdl_cv_need_uscore" = xyes; then
8375
8376 cat >>confdefs.h <<\_ACEOF
8377 #define NEED_USCORE 1
8378 _ACEOF
8379
8380 fi
8381
8382
8383 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8384 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8385 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   # PORTME does your system automatically load deplibs for dlopen?
8389   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8390   # For now, we just catch OSes we know something about -- in the
8391   # future, we'll try test this programmatically.
8392   libltdl_cv_sys_dlopen_deplibs=unknown
8393   case "$host_os" in
8394   aix3*|aix4.1.*|aix4.2.*)
8395     # Unknown whether this is true for these versions of AIX, but
8396     # we want this `case' here to explicitly catch those versions.
8397     libltdl_cv_sys_dlopen_deplibs=unknown
8398     ;;
8399   aix[45]*)
8400     libltdl_cv_sys_dlopen_deplibs=yes
8401     ;;
8402   darwin*)
8403     # Assuming the user has installed a libdl from somewhere, this is true
8404     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8405     libltdl_cv_sys_dlopen_deplibs=yes
8406     ;;
8407   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8408     # GNU and its variants, using gnu ld.so (Glibc)
8409     libltdl_cv_sys_dlopen_deplibs=yes
8410     ;;
8411   hpux10*|hpux11*)
8412     libltdl_cv_sys_dlopen_deplibs=yes
8413     ;;
8414   irix[12345]*|irix6.[01]*)
8415     # Catch all versions of IRIX before 6.2, and indicate that we don't
8416     # know how it worked for any of those versions.
8417     libltdl_cv_sys_dlopen_deplibs=unknown
8418     ;;
8419   irix*)
8420     # The case above catches anything before 6.2, and it's known that
8421     # at 6.2 and later dlopen does load deplibs.
8422     libltdl_cv_sys_dlopen_deplibs=yes
8423     ;;
8424   netbsd*)
8425     libltdl_cv_sys_dlopen_deplibs=yes
8426     ;;
8427   openbsd*)
8428     libltdl_cv_sys_dlopen_deplibs=yes
8429     ;;
8430   osf[1234]*)
8431     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8432     # it did *not* use an RPATH in a shared library to find objects the
8433     # library depends on, so we explictly say `no'.
8434     libltdl_cv_sys_dlopen_deplibs=no
8435     ;;
8436   osf5.0|osf5.0a|osf5.1)
8437     # dlopen *does* load deplibs and with the right loader patch applied
8438     # it even uses RPATH in a shared library to search for shared objects
8439     # that the library depends on, but there's no easy way to know if that
8440     # patch is installed.  Since this is the case, all we can really
8441     # say is unknown -- it depends on the patch being installed.  If
8442     # it is, this changes to `yes'.  Without it, it would be `no'.
8443     libltdl_cv_sys_dlopen_deplibs=unknown
8444     ;;
8445   osf*)
8446     # the two cases above should catch all versions of osf <= 5.1.  Read
8447     # the comments above for what we know about them.
8448     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8449     # is used to find them so we can finally say `yes'.
8450     libltdl_cv_sys_dlopen_deplibs=yes
8451     ;;
8452   solaris*)
8453     libltdl_cv_sys_dlopen_deplibs=yes
8454     ;;
8455   esac
8456
8457 fi
8458 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8459 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8460 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8461
8462 cat >>confdefs.h <<\_ACEOF
8463 #define LTDL_DLOPEN_DEPLIBS 1
8464 _ACEOF
8465
8466 fi
8467
8468
8469 for ac_header in argz.h
8470 do
8471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8473   echo "$as_me:$LINENO: checking for $ac_header" >&5
8474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8476   echo $ECHO_N "(cached) $ECHO_C" >&6
8477 fi
8478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8480 else
8481   # Is the header compilable?
8482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490 $ac_includes_default
8491 #include <$ac_header>
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495   (eval $ac_compile) 2>conftest.er1
8496   ac_status=$?
8497   grep -v '^ *+' conftest.er1 >conftest.err
8498   rm -f conftest.er1
8499   cat conftest.err >&5
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } &&
8502          { ac_try='test -z "$ac_c_werror_flag"
8503                          || test ! -s conftest.err'
8504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505   (eval $ac_try) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; } &&
8509          { ac_try='test -s conftest.$ac_objext'
8510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511   (eval $ac_try) 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   ac_header_compiler=yes
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 ac_header_compiler=no
8521 fi
8522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524 echo "${ECHO_T}$ac_header_compiler" >&6
8525
8526 # Is the header present?
8527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535 #include <$ac_header>
8536 _ACEOF
8537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8539   ac_status=$?
8540   grep -v '^ *+' conftest.er1 >conftest.err
8541   rm -f conftest.er1
8542   cat conftest.err >&5
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } >/dev/null; then
8545   if test -s conftest.err; then
8546     ac_cpp_err=$ac_c_preproc_warn_flag
8547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8548   else
8549     ac_cpp_err=
8550   fi
8551 else
8552   ac_cpp_err=yes
8553 fi
8554 if test -z "$ac_cpp_err"; then
8555   ac_header_preproc=yes
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560   ac_header_preproc=no
8561 fi
8562 rm -f conftest.err conftest.$ac_ext
8563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8564 echo "${ECHO_T}$ac_header_preproc" >&6
8565
8566 # So?  What about this header?
8567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8568   yes:no: )
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8573     ac_header_preproc=yes
8574     ;;
8575   no:yes:* )
8576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8578     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8579 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8583 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8588     (
8589       cat <<\_ASBOX
8590 ## ----------------------------------- ##
8591 ## Report this to llvmbugs@cs.uiuc.edu ##
8592 ## ----------------------------------- ##
8593 _ASBOX
8594     ) |
8595       sed "s/^/$as_me: WARNING:     /" >&2
8596     ;;
8597 esac
8598 echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   eval "$as_ac_Header=\$ac_header_preproc"
8604 fi
8605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8607
8608 fi
8609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610   cat >>confdefs.h <<_ACEOF
8611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8612 _ACEOF
8613
8614 fi
8615
8616 done
8617
8618
8619 echo "$as_me:$LINENO: checking for error_t" >&5
8620 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8621 if test "${ac_cv_type_error_t+set}" = set; then
8622   echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624   cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630 #if HAVE_ARGZ_H
8631 #  include <argz.h>
8632 #endif
8633
8634 int
8635 main ()
8636 {
8637 if ((error_t *) 0)
8638   return 0;
8639 if (sizeof (error_t))
8640   return 0;
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647   (eval $ac_compile) 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -z "$ac_c_werror_flag"
8655                          || test ! -s conftest.err'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; } &&
8661          { ac_try='test -s conftest.$ac_objext'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   ac_cv_type_error_t=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_cv_type_error_t=no
8673 fi
8674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8677 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8678 if test $ac_cv_type_error_t = yes; then
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define HAVE_ERROR_T 1
8682 _ACEOF
8683
8684
8685 else
8686
8687 cat >>confdefs.h <<\_ACEOF
8688 #define error_t int
8689 _ACEOF
8690
8691 fi
8692
8693
8694
8695
8696
8697
8698
8699 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8700 do
8701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702 echo "$as_me:$LINENO: checking for $ac_func" >&5
8703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8704 if eval "test \"\${$as_ac_var+set}\" = set"; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h.  */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h.  */
8713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8715 #define $ac_func innocuous_$ac_func
8716
8717 /* System header to define __stub macros and hopefully few prototypes,
8718     which can conflict with char $ac_func (); below.
8719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720     <limits.h> exists even on freestanding compilers.  */
8721
8722 #ifdef __STDC__
8723 # include <limits.h>
8724 #else
8725 # include <assert.h>
8726 #endif
8727
8728 #undef $ac_func
8729
8730 /* Override any gcc2 internal prototype to avoid an error.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 {
8734 #endif
8735 /* We use char because int might match the return type of a gcc2
8736    builtin and then its argument prototype would still apply.  */
8737 char $ac_func ();
8738 /* The GNU C library defines this for functions which it implements
8739     to always fail with ENOSYS.  Some functions are actually named
8740     something starting with __ and the normal name is an alias.  */
8741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8742 choke me
8743 #else
8744 char (*f) () = $ac_func;
8745 #endif
8746 #ifdef __cplusplus
8747 }
8748 #endif
8749
8750 int
8751 main ()
8752 {
8753 return f != $ac_func;
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 eval "$as_ac_var=no"
8786 fi
8787 rm -f conftest.err conftest.$ac_objext \
8788       conftest$ac_exeext conftest.$ac_ext
8789 fi
8790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8792 if test `eval echo '${'$as_ac_var'}'` = yes; then
8793   cat >>confdefs.h <<_ACEOF
8794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8795 _ACEOF
8796
8797 fi
8798 done
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8828                   stdio.h unistd.h
8829 do
8830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8832   echo "$as_me:$LINENO: checking for $ac_header" >&5
8833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8835   echo $ECHO_N "(cached) $ECHO_C" >&6
8836 fi
8837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8839 else
8840   # Is the header compilable?
8841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h.  */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h.  */
8849 $ac_includes_default
8850 #include <$ac_header>
8851 _ACEOF
8852 rm -f conftest.$ac_objext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854   (eval $ac_compile) 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } &&
8861          { ac_try='test -z "$ac_c_werror_flag"
8862                          || test ! -s conftest.err'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; } &&
8868          { ac_try='test -s conftest.$ac_objext'
8869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870   (eval $ac_try) 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; }; then
8874   ac_header_compiler=yes
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 ac_header_compiler=no
8880 fi
8881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8883 echo "${ECHO_T}$ac_header_compiler" >&6
8884
8885 # Is the header present?
8886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8888 cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h.  */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h.  */
8894 #include <$ac_header>
8895 _ACEOF
8896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8898   ac_status=$?
8899   grep -v '^ *+' conftest.er1 >conftest.err
8900   rm -f conftest.er1
8901   cat conftest.err >&5
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } >/dev/null; then
8904   if test -s conftest.err; then
8905     ac_cpp_err=$ac_c_preproc_warn_flag
8906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8907   else
8908     ac_cpp_err=
8909   fi
8910 else
8911   ac_cpp_err=yes
8912 fi
8913 if test -z "$ac_cpp_err"; then
8914   ac_header_preproc=yes
8915 else
8916   echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919   ac_header_preproc=no
8920 fi
8921 rm -f conftest.err conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8923 echo "${ECHO_T}$ac_header_preproc" >&6
8924
8925 # So?  What about this header?
8926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8927   yes:no: )
8928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8932     ac_header_preproc=yes
8933     ;;
8934   no:yes:* )
8935     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8937     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8938 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8939     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8941     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8942 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8945     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8947     (
8948       cat <<\_ASBOX
8949 ## ----------------------------------- ##
8950 ## Report this to llvmbugs@cs.uiuc.edu ##
8951 ## ----------------------------------- ##
8952 _ASBOX
8953     ) |
8954       sed "s/^/$as_me: WARNING:     /" >&2
8955     ;;
8956 esac
8957 echo "$as_me:$LINENO: checking for $ac_header" >&5
8958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962   eval "$as_ac_Header=\$ac_header_preproc"
8963 fi
8964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8966
8967 fi
8968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8969   cat >>confdefs.h <<_ACEOF
8970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8971 _ACEOF
8972
8973 fi
8974
8975 done
8976
8977
8978
8979
8980
8981 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8982 do
8983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8985   echo "$as_me:$LINENO: checking for $ac_header" >&5
8986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 fi
8990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8992 else
8993   # Is the header compilable?
8994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002 $ac_includes_default
9003 #include <$ac_header>
9004 _ACEOF
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007   (eval $ac_compile) 2>conftest.er1
9008   ac_status=$?
9009   grep -v '^ *+' conftest.er1 >conftest.err
9010   rm -f conftest.er1
9011   cat conftest.err >&5
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); } &&
9014          { ac_try='test -z "$ac_c_werror_flag"
9015                          || test ! -s conftest.err'
9016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017   (eval $ac_try) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); }; } &&
9021          { ac_try='test -s conftest.$ac_objext'
9022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023   (eval $ac_try) 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); }; }; then
9027   ac_header_compiler=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032 ac_header_compiler=no
9033 fi
9034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9036 echo "${ECHO_T}$ac_header_compiler" >&6
9037
9038 # Is the header present?
9039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h.  */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h.  */
9047 #include <$ac_header>
9048 _ACEOF
9049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9051   ac_status=$?
9052   grep -v '^ *+' conftest.er1 >conftest.err
9053   rm -f conftest.er1
9054   cat conftest.err >&5
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } >/dev/null; then
9057   if test -s conftest.err; then
9058     ac_cpp_err=$ac_c_preproc_warn_flag
9059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9060   else
9061     ac_cpp_err=
9062   fi
9063 else
9064   ac_cpp_err=yes
9065 fi
9066 if test -z "$ac_cpp_err"; then
9067   ac_header_preproc=yes
9068 else
9069   echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072   ac_header_preproc=no
9073 fi
9074 rm -f conftest.err conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9076 echo "${ECHO_T}$ac_header_preproc" >&6
9077
9078 # So?  What about this header?
9079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9080   yes:no: )
9081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9085     ac_header_preproc=yes
9086     ;;
9087   no:yes:* )
9088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9100     (
9101       cat <<\_ASBOX
9102 ## ----------------------------------- ##
9103 ## Report this to llvmbugs@cs.uiuc.edu ##
9104 ## ----------------------------------- ##
9105 _ASBOX
9106     ) |
9107       sed "s/^/$as_me: WARNING:     /" >&2
9108     ;;
9109 esac
9110 echo "$as_me:$LINENO: checking for $ac_header" >&5
9111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   eval "$as_ac_Header=\$ac_header_preproc"
9116 fi
9117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119
9120 fi
9121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9122   cat >>confdefs.h <<_ACEOF
9123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9124 _ACEOF
9125
9126 fi
9127
9128 done
9129
9130
9131
9132 for ac_header in string.h strings.h
9133 do
9134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9136   echo "$as_me:$LINENO: checking for $ac_header" >&5
9137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9139   echo $ECHO_N "(cached) $ECHO_C" >&6
9140 fi
9141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9143 else
9144   # Is the header compilable?
9145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h.  */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h.  */
9153 $ac_includes_default
9154 #include <$ac_header>
9155 _ACEOF
9156 rm -f conftest.$ac_objext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9158   (eval $ac_compile) 2>conftest.er1
9159   ac_status=$?
9160   grep -v '^ *+' conftest.er1 >conftest.err
9161   rm -f conftest.er1
9162   cat conftest.err >&5
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); } &&
9165          { ac_try='test -z "$ac_c_werror_flag"
9166                          || test ! -s conftest.err'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; } &&
9172          { ac_try='test -s conftest.$ac_objext'
9173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174   (eval $ac_try) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); }; }; then
9178   ac_header_compiler=yes
9179 else
9180   echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_header_compiler=no
9184 fi
9185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9187 echo "${ECHO_T}$ac_header_compiler" >&6
9188
9189 # Is the header present?
9190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 #include <$ac_header>
9199 _ACEOF
9200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } >/dev/null; then
9208   if test -s conftest.err; then
9209     ac_cpp_err=$ac_c_preproc_warn_flag
9210     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9211   else
9212     ac_cpp_err=
9213   fi
9214 else
9215   ac_cpp_err=yes
9216 fi
9217 if test -z "$ac_cpp_err"; then
9218   ac_header_preproc=yes
9219 else
9220   echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223   ac_header_preproc=no
9224 fi
9225 rm -f conftest.err conftest.$ac_ext
9226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9227 echo "${ECHO_T}$ac_header_preproc" >&6
9228
9229 # So?  What about this header?
9230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9231   yes:no: )
9232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9236     ac_header_preproc=yes
9237     ;;
9238   no:yes:* )
9239     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9241     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9242 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9243     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9245     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9246 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9249     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9251     (
9252       cat <<\_ASBOX
9253 ## ----------------------------------- ##
9254 ## Report this to llvmbugs@cs.uiuc.edu ##
9255 ## ----------------------------------- ##
9256 _ASBOX
9257     ) |
9258       sed "s/^/$as_me: WARNING:     /" >&2
9259     ;;
9260 esac
9261 echo "$as_me:$LINENO: checking for $ac_header" >&5
9262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9264   echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266   eval "$as_ac_Header=\$ac_header_preproc"
9267 fi
9268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9270
9271 fi
9272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9273   cat >>confdefs.h <<_ACEOF
9274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9275 _ACEOF
9276  break
9277 fi
9278
9279 done
9280
9281
9282
9283
9284 for ac_func in strchr index
9285 do
9286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9287 echo "$as_me:$LINENO: checking for $ac_func" >&5
9288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9289 if eval "test \"\${$as_ac_var+set}\" = set"; then
9290   echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292   cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h.  */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h.  */
9298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9300 #define $ac_func innocuous_$ac_func
9301
9302 /* System header to define __stub macros and hopefully few prototypes,
9303     which can conflict with char $ac_func (); below.
9304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9305     <limits.h> exists even on freestanding compilers.  */
9306
9307 #ifdef __STDC__
9308 # include <limits.h>
9309 #else
9310 # include <assert.h>
9311 #endif
9312
9313 #undef $ac_func
9314
9315 /* Override any gcc2 internal prototype to avoid an error.  */
9316 #ifdef __cplusplus
9317 extern "C"
9318 {
9319 #endif
9320 /* We use char because int might match the return type of a gcc2
9321    builtin and then its argument prototype would still apply.  */
9322 char $ac_func ();
9323 /* The GNU C library defines this for functions which it implements
9324     to always fail with ENOSYS.  Some functions are actually named
9325     something starting with __ and the normal name is an alias.  */
9326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9327 choke me
9328 #else
9329 char (*f) () = $ac_func;
9330 #endif
9331 #ifdef __cplusplus
9332 }
9333 #endif
9334
9335 int
9336 main ()
9337 {
9338 return f != $ac_func;
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345   (eval $ac_link) 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } &&
9352          { ac_try='test -z "$ac_c_werror_flag"
9353                          || test ! -s conftest.err'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; } &&
9359          { ac_try='test -s conftest$ac_exeext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365   eval "$as_ac_var=yes"
9366 else
9367   echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370 eval "$as_ac_var=no"
9371 fi
9372 rm -f conftest.err conftest.$ac_objext \
9373       conftest$ac_exeext conftest.$ac_ext
9374 fi
9375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9377 if test `eval echo '${'$as_ac_var'}'` = yes; then
9378   cat >>confdefs.h <<_ACEOF
9379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9380 _ACEOF
9381  break
9382 fi
9383 done
9384
9385
9386
9387 for ac_func in strrchr rindex
9388 do
9389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 echo "$as_me:$LINENO: checking for $ac_func" >&5
9391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9392 if eval "test \"\${$as_ac_var+set}\" = set"; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9403 #define $ac_func innocuous_$ac_func
9404
9405 /* System header to define __stub macros and hopefully few prototypes,
9406     which can conflict with char $ac_func (); below.
9407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9408     <limits.h> exists even on freestanding compilers.  */
9409
9410 #ifdef __STDC__
9411 # include <limits.h>
9412 #else
9413 # include <assert.h>
9414 #endif
9415
9416 #undef $ac_func
9417
9418 /* Override any gcc2 internal prototype to avoid an error.  */
9419 #ifdef __cplusplus
9420 extern "C"
9421 {
9422 #endif
9423 /* We use char because int might match the return type of a gcc2
9424    builtin and then its argument prototype would still apply.  */
9425 char $ac_func ();
9426 /* The GNU C library defines this for functions which it implements
9427     to always fail with ENOSYS.  Some functions are actually named
9428     something starting with __ and the normal name is an alias.  */
9429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9430 choke me
9431 #else
9432 char (*f) () = $ac_func;
9433 #endif
9434 #ifdef __cplusplus
9435 }
9436 #endif
9437
9438 int
9439 main ()
9440 {
9441 return f != $ac_func;
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448   (eval $ac_link) 2>conftest.er1
9449   ac_status=$?
9450   grep -v '^ *+' conftest.er1 >conftest.err
9451   rm -f conftest.er1
9452   cat conftest.err >&5
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); } &&
9455          { ac_try='test -z "$ac_c_werror_flag"
9456                          || test ! -s conftest.err'
9457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458   (eval $ac_try) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); }; } &&
9462          { ac_try='test -s conftest$ac_exeext'
9463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464   (eval $ac_try) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; }; then
9468   eval "$as_ac_var=yes"
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 eval "$as_ac_var=no"
9474 fi
9475 rm -f conftest.err conftest.$ac_objext \
9476       conftest$ac_exeext conftest.$ac_ext
9477 fi
9478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9480 if test `eval echo '${'$as_ac_var'}'` = yes; then
9481   cat >>confdefs.h <<_ACEOF
9482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9483 _ACEOF
9484  break
9485 fi
9486 done
9487
9488
9489
9490 for ac_func in memcpy bcopy
9491 do
9492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9493 echo "$as_me:$LINENO: checking for $ac_func" >&5
9494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9495 if eval "test \"\${$as_ac_var+set}\" = set"; then
9496   echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498   cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h.  */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h.  */
9504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9506 #define $ac_func innocuous_$ac_func
9507
9508 /* System header to define __stub macros and hopefully few prototypes,
9509     which can conflict with char $ac_func (); below.
9510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511     <limits.h> exists even on freestanding compilers.  */
9512
9513 #ifdef __STDC__
9514 # include <limits.h>
9515 #else
9516 # include <assert.h>
9517 #endif
9518
9519 #undef $ac_func
9520
9521 /* Override any gcc2 internal prototype to avoid an error.  */
9522 #ifdef __cplusplus
9523 extern "C"
9524 {
9525 #endif
9526 /* We use char because int might match the return type of a gcc2
9527    builtin and then its argument prototype would still apply.  */
9528 char $ac_func ();
9529 /* The GNU C library defines this for functions which it implements
9530     to always fail with ENOSYS.  Some functions are actually named
9531     something starting with __ and the normal name is an alias.  */
9532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9533 choke me
9534 #else
9535 char (*f) () = $ac_func;
9536 #endif
9537 #ifdef __cplusplus
9538 }
9539 #endif
9540
9541 int
9542 main ()
9543 {
9544 return f != $ac_func;
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551   (eval $ac_link) 2>conftest.er1
9552   ac_status=$?
9553   grep -v '^ *+' conftest.er1 >conftest.err
9554   rm -f conftest.er1
9555   cat conftest.err >&5
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); } &&
9558          { ac_try='test -z "$ac_c_werror_flag"
9559                          || test ! -s conftest.err'
9560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561   (eval $ac_try) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); }; } &&
9565          { ac_try='test -s conftest$ac_exeext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   eval "$as_ac_var=yes"
9572 else
9573   echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9575
9576 eval "$as_ac_var=no"
9577 fi
9578 rm -f conftest.err conftest.$ac_objext \
9579       conftest$ac_exeext conftest.$ac_ext
9580 fi
9581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9583 if test `eval echo '${'$as_ac_var'}'` = yes; then
9584   cat >>confdefs.h <<_ACEOF
9585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9586 _ACEOF
9587  break
9588 fi
9589 done
9590
9591
9592
9593 for ac_func in memmove strcmp
9594 do
9595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596 echo "$as_me:$LINENO: checking for $ac_func" >&5
9597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9598 if eval "test \"\${$as_ac_var+set}\" = set"; then
9599   echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9609 #define $ac_func innocuous_$ac_func
9610
9611 /* System header to define __stub macros and hopefully few prototypes,
9612     which can conflict with char $ac_func (); below.
9613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614     <limits.h> exists even on freestanding compilers.  */
9615
9616 #ifdef __STDC__
9617 # include <limits.h>
9618 #else
9619 # include <assert.h>
9620 #endif
9621
9622 #undef $ac_func
9623
9624 /* Override any gcc2 internal prototype to avoid an error.  */
9625 #ifdef __cplusplus
9626 extern "C"
9627 {
9628 #endif
9629 /* We use char because int might match the return type of a gcc2
9630    builtin and then its argument prototype would still apply.  */
9631 char $ac_func ();
9632 /* The GNU C library defines this for functions which it implements
9633     to always fail with ENOSYS.  Some functions are actually named
9634     something starting with __ and the normal name is an alias.  */
9635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9636 choke me
9637 #else
9638 char (*f) () = $ac_func;
9639 #endif
9640 #ifdef __cplusplus
9641 }
9642 #endif
9643
9644 int
9645 main ()
9646 {
9647 return f != $ac_func;
9648   ;
9649   return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654   (eval $ac_link) 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } &&
9661          { ac_try='test -z "$ac_c_werror_flag"
9662                          || test ! -s conftest.err'
9663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664   (eval $ac_try) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670   (eval $ac_try) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; }; then
9674   eval "$as_ac_var=yes"
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 eval "$as_ac_var=no"
9680 fi
9681 rm -f conftest.err conftest.$ac_objext \
9682       conftest$ac_exeext conftest.$ac_ext
9683 fi
9684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9686 if test `eval echo '${'$as_ac_var'}'` = yes; then
9687   cat >>confdefs.h <<_ACEOF
9688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9689 _ACEOF
9690
9691 fi
9692 done
9693
9694
9695
9696
9697 for ac_func in closedir opendir readdir
9698 do
9699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9700 echo "$as_me:$LINENO: checking for $ac_func" >&5
9701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9702 if eval "test \"\${$as_ac_var+set}\" = set"; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h.  */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h.  */
9711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9713 #define $ac_func innocuous_$ac_func
9714
9715 /* System header to define __stub macros and hopefully few prototypes,
9716     which can conflict with char $ac_func (); below.
9717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718     <limits.h> exists even on freestanding compilers.  */
9719
9720 #ifdef __STDC__
9721 # include <limits.h>
9722 #else
9723 # include <assert.h>
9724 #endif
9725
9726 #undef $ac_func
9727
9728 /* Override any gcc2 internal prototype to avoid an error.  */
9729 #ifdef __cplusplus
9730 extern "C"
9731 {
9732 #endif
9733 /* We use char because int might match the return type of a gcc2
9734    builtin and then its argument prototype would still apply.  */
9735 char $ac_func ();
9736 /* The GNU C library defines this for functions which it implements
9737     to always fail with ENOSYS.  Some functions are actually named
9738     something starting with __ and the normal name is an alias.  */
9739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9740 choke me
9741 #else
9742 char (*f) () = $ac_func;
9743 #endif
9744 #ifdef __cplusplus
9745 }
9746 #endif
9747
9748 int
9749 main ()
9750 {
9751 return f != $ac_func;
9752   ;
9753   return 0;
9754 }
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758   (eval $ac_link) 2>conftest.er1
9759   ac_status=$?
9760   grep -v '^ *+' conftest.er1 >conftest.err
9761   rm -f conftest.er1
9762   cat conftest.err >&5
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); } &&
9765          { ac_try='test -z "$ac_c_werror_flag"
9766                          || test ! -s conftest.err'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; } &&
9772          { ac_try='test -s conftest$ac_exeext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   eval "$as_ac_var=yes"
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 eval "$as_ac_var=no"
9784 fi
9785 rm -f conftest.err conftest.$ac_objext \
9786       conftest$ac_exeext conftest.$ac_ext
9787 fi
9788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9790 if test `eval echo '${'$as_ac_var'}'` = yes; then
9791   cat >>confdefs.h <<_ACEOF
9792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9793 _ACEOF
9794
9795 fi
9796 done
9797
9798
9799 # Check whether --enable-shared or --disable-shared was given.
9800 if test "${enable_shared+set}" = set; then
9801   enableval="$enable_shared"
9802   p=${PACKAGE-default}
9803     case $enableval in
9804     yes) enable_shared=yes ;;
9805     no) enable_shared=no ;;
9806     *)
9807       enable_shared=no
9808       # Look at the argument we got.  We use all the common list separators.
9809       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9810       for pkg in $enableval; do
9811         IFS="$lt_save_ifs"
9812         if test "X$pkg" = "X$p"; then
9813           enable_shared=yes
9814         fi
9815       done
9816       IFS="$lt_save_ifs"
9817       ;;
9818     esac
9819 else
9820   enable_shared=yes
9821 fi;
9822
9823 # Check whether --enable-static or --disable-static was given.
9824 if test "${enable_static+set}" = set; then
9825   enableval="$enable_static"
9826   p=${PACKAGE-default}
9827     case $enableval in
9828     yes) enable_static=yes ;;
9829     no) enable_static=no ;;
9830     *)
9831      enable_static=no
9832       # Look at the argument we got.  We use all the common list separators.
9833       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9834       for pkg in $enableval; do
9835         IFS="$lt_save_ifs"
9836         if test "X$pkg" = "X$p"; then
9837           enable_static=yes
9838         fi
9839       done
9840       IFS="$lt_save_ifs"
9841       ;;
9842     esac
9843 else
9844   enable_static=yes
9845 fi;
9846
9847 # Check whether --enable-fast-install or --disable-fast-install was given.
9848 if test "${enable_fast_install+set}" = set; then
9849   enableval="$enable_fast_install"
9850   p=${PACKAGE-default}
9851     case $enableval in
9852     yes) enable_fast_install=yes ;;
9853     no) enable_fast_install=no ;;
9854     *)
9855       enable_fast_install=no
9856       # Look at the argument we got.  We use all the common list separators.
9857       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9858       for pkg in $enableval; do
9859         IFS="$lt_save_ifs"
9860         if test "X$pkg" = "X$p"; then
9861           enable_fast_install=yes
9862         fi
9863       done
9864       IFS="$lt_save_ifs"
9865       ;;
9866     esac
9867 else
9868   enable_fast_install=yes
9869 fi;
9870
9871 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9872 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9873 if test "${lt_cv_path_SED+set}" = set; then
9874   echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876   # Loop through the user's path and test for sed and gsed.
9877 # Then use that list of sed's as ones to test for truncation.
9878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879 for as_dir in $PATH
9880 do
9881   IFS=$as_save_IFS
9882   test -z "$as_dir" && as_dir=.
9883   for lt_ac_prog in sed gsed; do
9884     for ac_exec_ext in '' $ac_executable_extensions; do
9885       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9886         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9887       fi
9888     done
9889   done
9890 done
9891 lt_ac_max=0
9892 lt_ac_count=0
9893 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9894 # along with /bin/sed that truncates output.
9895 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9896   test ! -f $lt_ac_sed && break
9897   cat /dev/null > conftest.in
9898   lt_ac_count=0
9899   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9900   # Check for GNU sed and select it if it is found.
9901   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9902     lt_cv_path_SED=$lt_ac_sed
9903     break
9904   fi
9905   while true; do
9906     cat conftest.in conftest.in >conftest.tmp
9907     mv conftest.tmp conftest.in
9908     cp conftest.in conftest.nl
9909     echo >>conftest.nl
9910     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9911     cmp -s conftest.out conftest.nl || break
9912     # 10000 chars as input seems more than enough
9913     test $lt_ac_count -gt 10 && break
9914     lt_ac_count=`expr $lt_ac_count + 1`
9915     if test $lt_ac_count -gt $lt_ac_max; then
9916       lt_ac_max=$lt_ac_count
9917       lt_cv_path_SED=$lt_ac_sed
9918     fi
9919   done
9920 done
9921
9922 fi
9923
9924 SED=$lt_cv_path_SED
9925 echo "$as_me:$LINENO: result: $SED" >&5
9926 echo "${ECHO_T}$SED" >&6
9927
9928
9929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9930 if test "${with_gnu_ld+set}" = set; then
9931   withval="$with_gnu_ld"
9932   test "$withval" = no || with_gnu_ld=yes
9933 else
9934   with_gnu_ld=no
9935 fi;
9936 ac_prog=ld
9937 if test "$GCC" = yes; then
9938   # Check if gcc -print-prog-name=ld gives a path.
9939   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9940 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9941   case $host in
9942   *-*-mingw*)
9943     # gcc leaves a trailing carriage return which upsets mingw
9944     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9945   *)
9946     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9947   esac
9948   case $ac_prog in
9949     # Accept absolute paths.
9950     [\\/]* | ?:[\\/]*)
9951       re_direlt='/[^/][^/]*/\.\./'
9952       # Canonicalize the pathname of ld
9953       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9954       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9955         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9956       done
9957       test -z "$LD" && LD="$ac_prog"
9958       ;;
9959   "")
9960     # If it fails, then pretend we aren't using GCC.
9961     ac_prog=ld
9962     ;;
9963   *)
9964     # If it is relative, then search for the first ld in PATH.
9965     with_gnu_ld=unknown
9966     ;;
9967   esac
9968 elif test "$with_gnu_ld" = yes; then
9969   echo "$as_me:$LINENO: checking for GNU ld" >&5
9970 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9971 else
9972   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9973 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9974 fi
9975 if test "${lt_cv_path_LD+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   if test -z "$LD"; then
9979   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9980   for ac_dir in $PATH; do
9981     IFS="$lt_save_ifs"
9982     test -z "$ac_dir" && ac_dir=.
9983     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9984       lt_cv_path_LD="$ac_dir/$ac_prog"
9985       # Check to see if the program is GNU ld.  I'd rather use --version,
9986       # but apparently some GNU ld's only accept -v.
9987       # Break only if it was the GNU/non-GNU ld that we prefer.
9988       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9989       *GNU* | *'with BFD'*)
9990         test "$with_gnu_ld" != no && break
9991         ;;
9992       *)
9993         test "$with_gnu_ld" != yes && break
9994         ;;
9995       esac
9996     fi
9997   done
9998   IFS="$lt_save_ifs"
9999 else
10000   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10001 fi
10002 fi
10003
10004 LD="$lt_cv_path_LD"
10005 if test -n "$LD"; then
10006   echo "$as_me:$LINENO: result: $LD" >&5
10007 echo "${ECHO_T}$LD" >&6
10008 else
10009   echo "$as_me:$LINENO: result: no" >&5
10010 echo "${ECHO_T}no" >&6
10011 fi
10012 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10013 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10014    { (exit 1); exit 1; }; }
10015 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10016 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10017 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10021 case `$LD -v 2>&1 </dev/null` in
10022 *GNU* | *'with BFD'*)
10023   lt_cv_prog_gnu_ld=yes
10024   ;;
10025 *)
10026   lt_cv_prog_gnu_ld=no
10027   ;;
10028 esac
10029 fi
10030 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10031 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10032 with_gnu_ld=$lt_cv_prog_gnu_ld
10033
10034
10035 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10036 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10037 if test "${lt_cv_ld_reload_flag+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   lt_cv_ld_reload_flag='-r'
10041 fi
10042 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10043 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10044 reload_flag=$lt_cv_ld_reload_flag
10045 case $reload_flag in
10046 "" | " "*) ;;
10047 *) reload_flag=" $reload_flag" ;;
10048 esac
10049 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10050 case $host_os in
10051   darwin*)
10052     if test "$GCC" = yes; then
10053       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10054     else
10055       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10056     fi
10057     ;;
10058 esac
10059
10060 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10061 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10062 if test "${lt_cv_deplibs_check_method+set}" = set; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065   lt_cv_file_magic_cmd='$MAGIC_CMD'
10066 lt_cv_file_magic_test_file=
10067 lt_cv_deplibs_check_method='unknown'
10068 # Need to set the preceding variable on all platforms that support
10069 # interlibrary dependencies.
10070 # 'none' -- dependencies not supported.
10071 # `unknown' -- same as none, but documents that we really don't know.
10072 # 'pass_all' -- all dependencies passed with no checks.
10073 # 'test_compile' -- check by making test program.
10074 # 'file_magic [[regex]]' -- check by looking for files in library path
10075 # which responds to the $file_magic_cmd with a given extended regex.
10076 # If you have `file' or equivalent on your system and you're not sure
10077 # whether `pass_all' will *always* work, you probably want this one.
10078
10079 case $host_os in
10080 aix4* | aix5*)
10081   lt_cv_deplibs_check_method=pass_all
10082   ;;
10083
10084 beos*)
10085   lt_cv_deplibs_check_method=pass_all
10086   ;;
10087
10088 bsdi[45]*)
10089   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10090   lt_cv_file_magic_cmd='/usr/bin/file -L'
10091   lt_cv_file_magic_test_file=/shlib/libc.so
10092   ;;
10093
10094 cygwin*)
10095   # func_win32_libid is a shell function defined in ltmain.sh
10096   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10097   lt_cv_file_magic_cmd='func_win32_libid'
10098   ;;
10099
10100 mingw* | pw32*)
10101   # Base MSYS/MinGW do not provide the 'file' command needed by
10102   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10103   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10104   lt_cv_file_magic_cmd='$OBJDUMP -f'
10105   ;;
10106
10107 darwin* | rhapsody*)
10108   lt_cv_deplibs_check_method=pass_all
10109   ;;
10110
10111 freebsd* | kfreebsd*-gnu)
10112   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10113     case $host_cpu in
10114     i*86 )
10115       # Not sure whether the presence of OpenBSD here was a mistake.
10116       # Let's accept both of them until this is cleared up.
10117       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10118       lt_cv_file_magic_cmd=/usr/bin/file
10119       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10120       ;;
10121     esac
10122   else
10123     lt_cv_deplibs_check_method=pass_all
10124   fi
10125   ;;
10126
10127 gnu*)
10128   lt_cv_deplibs_check_method=pass_all
10129   ;;
10130
10131 hpux10.20* | hpux11*)
10132   lt_cv_file_magic_cmd=/usr/bin/file
10133   case "$host_cpu" in
10134   ia64*)
10135     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10136     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10137     ;;
10138   hppa*64*)
10139     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]'
10140     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10141     ;;
10142   *)
10143     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10144     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10145     ;;
10146   esac
10147   ;;
10148
10149 irix5* | irix6* | nonstopux*)
10150   case $LD in
10151   *-32|*"-32 ") libmagic=32-bit;;
10152   *-n32|*"-n32 ") libmagic=N32;;
10153   *-64|*"-64 ") libmagic=64-bit;;
10154   *) libmagic=never-match;;
10155   esac
10156   lt_cv_deplibs_check_method=pass_all
10157   ;;
10158
10159 # This must be Linux ELF.
10160 linux*)
10161   lt_cv_deplibs_check_method=pass_all
10162   ;;
10163
10164 netbsd*)
10165   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10166     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10167   else
10168     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10169   fi
10170   ;;
10171
10172 newos6*)
10173   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10174   lt_cv_file_magic_cmd=/usr/bin/file
10175   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10176   ;;
10177
10178 nto-qnx*)
10179   lt_cv_deplibs_check_method=unknown
10180   ;;
10181
10182 openbsd*)
10183   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10184     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10185   else
10186     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10187   fi
10188   ;;
10189
10190 osf3* | osf4* | osf5*)
10191   lt_cv_deplibs_check_method=pass_all
10192   ;;
10193
10194 sco3.2v5*)
10195   lt_cv_deplibs_check_method=pass_all
10196   ;;
10197
10198 solaris*)
10199   lt_cv_deplibs_check_method=pass_all
10200   ;;
10201
10202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10203   case $host_vendor in
10204   motorola)
10205     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]'
10206     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10207     ;;
10208   ncr)
10209     lt_cv_deplibs_check_method=pass_all
10210     ;;
10211   sequent)
10212     lt_cv_file_magic_cmd='/bin/file'
10213     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10214     ;;
10215   sni)
10216     lt_cv_file_magic_cmd='/bin/file'
10217     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10218     lt_cv_file_magic_test_file=/lib/libc.so
10219     ;;
10220   siemens)
10221     lt_cv_deplibs_check_method=pass_all
10222     ;;
10223   esac
10224   ;;
10225
10226 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10227   lt_cv_deplibs_check_method=pass_all
10228   ;;
10229 esac
10230
10231 fi
10232 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10233 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10234 file_magic_cmd=$lt_cv_file_magic_cmd
10235 deplibs_check_method=$lt_cv_deplibs_check_method
10236 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10237
10238
10239
10240 # If no C compiler was specified, use CC.
10241 LTCC=${LTCC-"$CC"}
10242
10243 # Allow CC to be a program name with arguments.
10244 compiler=$CC
10245
10246 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10247 if test "${enable_libtool_lock+set}" = set; then
10248   enableval="$enable_libtool_lock"
10249
10250 fi;
10251 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10252
10253 # Some flags need to be propagated to the compiler or linker for good
10254 # libtool support.
10255 case $host in
10256 ia64-*-hpux*)
10257   # Find out which ABI we are using.
10258   echo 'int i;' > conftest.$ac_ext
10259   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260   (eval $ac_compile) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; then
10264     case `/usr/bin/file conftest.$ac_objext` in
10265     *ELF-32*)
10266       HPUX_IA64_MODE="32"
10267       ;;
10268     *ELF-64*)
10269       HPUX_IA64_MODE="64"
10270       ;;
10271     esac
10272   fi
10273   rm -rf conftest*
10274   ;;
10275 *-*-irix6*)
10276   # Find out which ABI we are using.
10277   echo '#line 10277 "configure"' > conftest.$ac_ext
10278   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279   (eval $ac_compile) 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); }; then
10283    if test "$lt_cv_prog_gnu_ld" = yes; then
10284     case `/usr/bin/file conftest.$ac_objext` in
10285     *32-bit*)
10286       LD="${LD-ld} -melf32bsmip"
10287       ;;
10288     *N32*)
10289       LD="${LD-ld} -melf32bmipn32"
10290       ;;
10291     *64-bit*)
10292       LD="${LD-ld} -melf64bmip"
10293       ;;
10294     esac
10295    else
10296     case `/usr/bin/file conftest.$ac_objext` in
10297     *32-bit*)
10298       LD="${LD-ld} -32"
10299       ;;
10300     *N32*)
10301       LD="${LD-ld} -n32"
10302       ;;
10303     *64-bit*)
10304       LD="${LD-ld} -64"
10305       ;;
10306     esac
10307    fi
10308   fi
10309   rm -rf conftest*
10310   ;;
10311
10312 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10313   # Find out which ABI we are using.
10314   echo 'int i;' > conftest.$ac_ext
10315   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316   (eval $ac_compile) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; then
10320     case "`/usr/bin/file conftest.o`" in
10321     *32-bit*)
10322       case $host in
10323         x86_64-*linux*)
10324           LD="${LD-ld} -m elf_i386"
10325           ;;
10326         ppc64-*linux*|powerpc64-*linux*)
10327           LD="${LD-ld} -m elf32ppclinux"
10328           ;;
10329         s390x-*linux*)
10330           LD="${LD-ld} -m elf_s390"
10331           ;;
10332         sparc64-*linux*)
10333           LD="${LD-ld} -m elf32_sparc"
10334           ;;
10335       esac
10336       ;;
10337     *64-bit*)
10338       case $host in
10339         x86_64-*linux*)
10340           LD="${LD-ld} -m elf_x86_64"
10341           ;;
10342         ppc*-*linux*|powerpc*-*linux*)
10343           LD="${LD-ld} -m elf64ppc"
10344           ;;
10345         s390*-*linux*)
10346           LD="${LD-ld} -m elf64_s390"
10347           ;;
10348         sparc*-*linux*)
10349           LD="${LD-ld} -m elf64_sparc"
10350           ;;
10351       esac
10352       ;;
10353     esac
10354   fi
10355   rm -rf conftest*
10356   ;;
10357
10358 *-*-sco3.2v5*)
10359   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10360   SAVE_CFLAGS="$CFLAGS"
10361   CFLAGS="$CFLAGS -belf"
10362   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10363 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10364 if test "${lt_cv_cc_needs_belf+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   ac_ext=c
10368 ac_cpp='$CPP $CPPFLAGS'
10369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10372
10373      cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383   (eval $ac_link) 2>conftest.er1
10384   ac_status=$?
10385   grep -v '^ *+' conftest.er1 >conftest.err
10386   rm -f conftest.er1
10387   cat conftest.err >&5
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); } &&
10390          { ac_try='test -z "$ac_c_werror_flag"
10391                          || test ! -s conftest.err'
10392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393   (eval $ac_try) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); }; } &&
10397          { ac_try='test -s conftest$ac_exeext'
10398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399   (eval $ac_try) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; }; then
10403   lt_cv_cc_needs_belf=yes
10404 else
10405   echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 lt_cv_cc_needs_belf=no
10409 fi
10410 rm -f conftest.err conftest.$ac_objext \
10411       conftest$ac_exeext conftest.$ac_ext
10412      ac_ext=c
10413 ac_cpp='$CPP $CPPFLAGS'
10414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10417
10418 fi
10419 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10420 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10421   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10422     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10423     CFLAGS="$SAVE_CFLAGS"
10424   fi
10425   ;;
10426
10427 esac
10428
10429 need_locks="$enable_libtool_lock"
10430
10431
10432
10433
10434 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10435     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10436     (test "X$CXX" != "Xg++"))) ; then
10437   ac_ext=cc
10438 ac_cpp='$CXXCPP $CPPFLAGS'
10439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10442 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10443 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10444 if test -z "$CXXCPP"; then
10445   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10446   echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448       # Double quotes because CXXCPP needs to be expanded
10449     for CXXCPP in "$CXX -E" "/lib/cpp"
10450     do
10451       ac_preproc_ok=false
10452 for ac_cxx_preproc_warn_flag in '' yes
10453 do
10454   # Use a header file that comes with gcc, so configuring glibc
10455   # with a fresh cross-compiler works.
10456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10457   # <limits.h> exists even on freestanding compilers.
10458   # On the NeXT, cc -E runs the code through the compiler's parser,
10459   # not just through cpp. "Syntax error" is here to catch this case.
10460   cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466 #ifdef __STDC__
10467 # include <limits.h>
10468 #else
10469 # include <assert.h>
10470 #endif
10471                      Syntax error
10472 _ACEOF
10473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10475   ac_status=$?
10476   grep -v '^ *+' conftest.er1 >conftest.err
10477   rm -f conftest.er1
10478   cat conftest.err >&5
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); } >/dev/null; then
10481   if test -s conftest.err; then
10482     ac_cpp_err=$ac_cxx_preproc_warn_flag
10483     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10484   else
10485     ac_cpp_err=
10486   fi
10487 else
10488   ac_cpp_err=yes
10489 fi
10490 if test -z "$ac_cpp_err"; then
10491   :
10492 else
10493   echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496   # Broken: fails on valid input.
10497 continue
10498 fi
10499 rm -f conftest.err conftest.$ac_ext
10500
10501   # OK, works on sane cases.  Now check whether non-existent headers
10502   # can be detected and how.
10503   cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 #include <ac_nonexistent.h>
10510 _ACEOF
10511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10513   ac_status=$?
10514   grep -v '^ *+' conftest.er1 >conftest.err
10515   rm -f conftest.er1
10516   cat conftest.err >&5
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); } >/dev/null; then
10519   if test -s conftest.err; then
10520     ac_cpp_err=$ac_cxx_preproc_warn_flag
10521     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10522   else
10523     ac_cpp_err=
10524   fi
10525 else
10526   ac_cpp_err=yes
10527 fi
10528 if test -z "$ac_cpp_err"; then
10529   # Broken: success on invalid input.
10530 continue
10531 else
10532   echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535   # Passes both tests.
10536 ac_preproc_ok=:
10537 break
10538 fi
10539 rm -f conftest.err conftest.$ac_ext
10540
10541 done
10542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10543 rm -f conftest.err conftest.$ac_ext
10544 if $ac_preproc_ok; then
10545   break
10546 fi
10547
10548     done
10549     ac_cv_prog_CXXCPP=$CXXCPP
10550
10551 fi
10552   CXXCPP=$ac_cv_prog_CXXCPP
10553 else
10554   ac_cv_prog_CXXCPP=$CXXCPP
10555 fi
10556 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10557 echo "${ECHO_T}$CXXCPP" >&6
10558 ac_preproc_ok=false
10559 for ac_cxx_preproc_warn_flag in '' yes
10560 do
10561   # Use a header file that comes with gcc, so configuring glibc
10562   # with a fresh cross-compiler works.
10563   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10564   # <limits.h> exists even on freestanding compilers.
10565   # On the NeXT, cc -E runs the code through the compiler's parser,
10566   # not just through cpp. "Syntax error" is here to catch this case.
10567   cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h.  */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h.  */
10573 #ifdef __STDC__
10574 # include <limits.h>
10575 #else
10576 # include <assert.h>
10577 #endif
10578                      Syntax error
10579 _ACEOF
10580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } >/dev/null; then
10588   if test -s conftest.err; then
10589     ac_cpp_err=$ac_cxx_preproc_warn_flag
10590     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10591   else
10592     ac_cpp_err=
10593   fi
10594 else
10595   ac_cpp_err=yes
10596 fi
10597 if test -z "$ac_cpp_err"; then
10598   :
10599 else
10600   echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603   # Broken: fails on valid input.
10604 continue
10605 fi
10606 rm -f conftest.err conftest.$ac_ext
10607
10608   # OK, works on sane cases.  Now check whether non-existent headers
10609   # can be detected and how.
10610   cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h.  */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h.  */
10616 #include <ac_nonexistent.h>
10617 _ACEOF
10618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10620   ac_status=$?
10621   grep -v '^ *+' conftest.er1 >conftest.err
10622   rm -f conftest.er1
10623   cat conftest.err >&5
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } >/dev/null; then
10626   if test -s conftest.err; then
10627     ac_cpp_err=$ac_cxx_preproc_warn_flag
10628     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10629   else
10630     ac_cpp_err=
10631   fi
10632 else
10633   ac_cpp_err=yes
10634 fi
10635 if test -z "$ac_cpp_err"; then
10636   # Broken: success on invalid input.
10637 continue
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642   # Passes both tests.
10643 ac_preproc_ok=:
10644 break
10645 fi
10646 rm -f conftest.err conftest.$ac_ext
10647
10648 done
10649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10650 rm -f conftest.err conftest.$ac_ext
10651 if $ac_preproc_ok; then
10652   :
10653 else
10654   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10655 See \`config.log' for more details." >&5
10656 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10657 See \`config.log' for more details." >&2;}
10658    { (exit 1); exit 1; }; }
10659 fi
10660
10661 ac_ext=cc
10662 ac_cpp='$CXXCPP $CPPFLAGS'
10663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10666
10667 fi
10668
10669
10670 ac_ext=f
10671 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10672 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10673 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10674 if test -n "$ac_tool_prefix"; then
10675   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10676   do
10677     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10679 echo "$as_me:$LINENO: checking for $ac_word" >&5
10680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10681 if test "${ac_cv_prog_F77+set}" = set; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684   if test -n "$F77"; then
10685   ac_cv_prog_F77="$F77" # Let the user override the test.
10686 else
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10689 do
10690   IFS=$as_save_IFS
10691   test -z "$as_dir" && as_dir=.
10692   for ac_exec_ext in '' $ac_executable_extensions; do
10693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10696     break 2
10697   fi
10698 done
10699 done
10700
10701 fi
10702 fi
10703 F77=$ac_cv_prog_F77
10704 if test -n "$F77"; then
10705   echo "$as_me:$LINENO: result: $F77" >&5
10706 echo "${ECHO_T}$F77" >&6
10707 else
10708   echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6
10710 fi
10711
10712     test -n "$F77" && break
10713   done
10714 fi
10715 if test -z "$F77"; then
10716   ac_ct_F77=$F77
10717   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10718 do
10719   # Extract the first word of "$ac_prog", so it can be a program name with args.
10720 set dummy $ac_prog; ac_word=$2
10721 echo "$as_me:$LINENO: checking for $ac_word" >&5
10722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10723 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   if test -n "$ac_ct_F77"; then
10727   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10728 else
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10731 do
10732   IFS=$as_save_IFS
10733   test -z "$as_dir" && as_dir=.
10734   for ac_exec_ext in '' $ac_executable_extensions; do
10735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736     ac_cv_prog_ac_ct_F77="$ac_prog"
10737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738     break 2
10739   fi
10740 done
10741 done
10742
10743 fi
10744 fi
10745 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10746 if test -n "$ac_ct_F77"; then
10747   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10748 echo "${ECHO_T}$ac_ct_F77" >&6
10749 else
10750   echo "$as_me:$LINENO: result: no" >&5
10751 echo "${ECHO_T}no" >&6
10752 fi
10753
10754   test -n "$ac_ct_F77" && break
10755 done
10756
10757   F77=$ac_ct_F77
10758 fi
10759
10760
10761 # Provide some information about the compiler.
10762 echo "$as_me:10762:" \
10763      "checking for Fortran 77 compiler version" >&5
10764 ac_compiler=`set X $ac_compile; echo $2`
10765 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10766   (eval $ac_compiler --version </dev/null >&5) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }
10770 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10771   (eval $ac_compiler -v </dev/null >&5) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }
10775 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10776   (eval $ac_compiler -V </dev/null >&5) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }
10780 rm -f a.out
10781
10782 # If we don't use `.F' as extension, the preprocessor is not run on the
10783 # input file.  (Note that this only needs to work for GNU compilers.)
10784 ac_save_ext=$ac_ext
10785 ac_ext=F
10786 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10787 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10788 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   cat >conftest.$ac_ext <<_ACEOF
10792       program main
10793 #ifndef __GNUC__
10794        choke me
10795 #endif
10796
10797       end
10798 _ACEOF
10799 rm -f conftest.$ac_objext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10801   (eval $ac_compile) 2>conftest.er1
10802   ac_status=$?
10803   grep -v '^ *+' conftest.er1 >conftest.err
10804   rm -f conftest.er1
10805   cat conftest.err >&5
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); } &&
10808          { ac_try='test -z "$ac_f77_werror_flag"
10809                          || test ! -s conftest.err'
10810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811   (eval $ac_try) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; } &&
10815          { ac_try='test -s conftest.$ac_objext'
10816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817   (eval $ac_try) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; }; then
10821   ac_compiler_gnu=yes
10822 else
10823   echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10825
10826 ac_compiler_gnu=no
10827 fi
10828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10829 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10830
10831 fi
10832 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10833 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10834 ac_ext=$ac_save_ext
10835 ac_test_FFLAGS=${FFLAGS+set}
10836 ac_save_FFLAGS=$FFLAGS
10837 FFLAGS=
10838 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10839 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10840 if test "${ac_cv_prog_f77_g+set}" = set; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   FFLAGS=-g
10844 cat >conftest.$ac_ext <<_ACEOF
10845       program main
10846
10847       end
10848 _ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10851   (eval $ac_compile) 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -z "$ac_f77_werror_flag"
10859                          || test ! -s conftest.err'
10860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861   (eval $ac_try) 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; } &&
10865          { ac_try='test -s conftest.$ac_objext'
10866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867   (eval $ac_try) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   ac_cv_prog_f77_g=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_cv_prog_f77_g=no
10877 fi
10878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10879
10880 fi
10881 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10882 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10883 if test "$ac_test_FFLAGS" = set; then
10884   FFLAGS=$ac_save_FFLAGS
10885 elif test $ac_cv_prog_f77_g = yes; then
10886   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10887     FFLAGS="-g -O2"
10888   else
10889     FFLAGS="-g"
10890   fi
10891 else
10892   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10893     FFLAGS="-O2"
10894   else
10895     FFLAGS=
10896   fi
10897 fi
10898
10899 G77=`test $ac_compiler_gnu = yes && echo yes`
10900 ac_ext=c
10901 ac_cpp='$CPP $CPPFLAGS'
10902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10905
10906
10907
10908 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10909
10910 # find the maximum length of command line arguments
10911 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10912 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10913 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916     i=0
10917   teststring="ABCD"
10918
10919   case $build_os in
10920   msdosdjgpp*)
10921     # On DJGPP, this test can blow up pretty badly due to problems in libc
10922     # (any single argument exceeding 2000 bytes causes a buffer overrun
10923     # during glob expansion).  Even if it were fixed, the result of this
10924     # check would be larger than it should be.
10925     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10926     ;;
10927
10928   gnu*)
10929     # Under GNU Hurd, this test is not required because there is
10930     # no limit to the length of command line arguments.
10931     # Libtool will interpret -1 as no limit whatsoever
10932     lt_cv_sys_max_cmd_len=-1;
10933     ;;
10934
10935   cygwin* | mingw*)
10936     # On Win9x/ME, this test blows up -- it succeeds, but takes
10937     # about 5 minutes as the teststring grows exponentially.
10938     # Worse, since 9x/ME are not pre-emptively multitasking,
10939     # you end up with a "frozen" computer, even though with patience
10940     # the test eventually succeeds (with a max line length of 256k).
10941     # Instead, let's just punt: use the minimum linelength reported by
10942     # all of the supported platforms: 8192 (on NT/2K/XP).
10943     lt_cv_sys_max_cmd_len=8192;
10944     ;;
10945
10946   amigaos*)
10947     # On AmigaOS with pdksh, this test takes hours, literally.
10948     # So we just punt and use a minimum line length of 8192.
10949     lt_cv_sys_max_cmd_len=8192;
10950     ;;
10951
10952   netbsd* | freebsd* | openbsd* | darwin* )
10953     # This has been around since 386BSD, at least.  Likely further.
10954     if test -x /sbin/sysctl; then
10955       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10956     elif test -x /usr/sbin/sysctl; then
10957       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10958     else
10959       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10960     fi
10961     # And add a safety zone
10962     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10963     ;;
10964
10965  *)
10966     # If test is not a shell built-in, we'll probably end up computing a
10967     # maximum length that is only half of the actual maximum length, but
10968     # we can't tell.
10969     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10970     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10971                = "XX$teststring") >/dev/null 2>&1 &&
10972             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10973             lt_cv_sys_max_cmd_len=$new_result &&
10974             test $i != 17 # 1/2 MB should be enough
10975     do
10976       i=`expr $i + 1`
10977       teststring=$teststring$teststring
10978     done
10979     teststring=
10980     # Add a significant safety factor because C++ compilers can tack on massive
10981     # amounts of additional arguments before passing them to the linker.
10982     # It appears as though 1/2 is a usable value.
10983     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10984     ;;
10985   esac
10986
10987 fi
10988
10989 if test -n $lt_cv_sys_max_cmd_len ; then
10990   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10991 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10992 else
10993   echo "$as_me:$LINENO: result: none" >&5
10994 echo "${ECHO_T}none" >&6
10995 fi
10996
10997
10998
10999
11000 # Check for command to grab the raw symbol name followed by C symbol from nm.
11001 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11002 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11003 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006
11007 # These are sane defaults that work on at least a few old systems.
11008 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11009
11010 # Character class describing NM global symbol codes.
11011 symcode='[BCDEGRST]'
11012
11013 # Regexp to match symbols that can be accessed directly from C.
11014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11015
11016 # Transform the above into a raw symbol and a C symbol.
11017 symxfrm='\1 \2\3 \3'
11018
11019 # Transform an extracted symbol line into a proper C declaration
11020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11021
11022 # Transform an extracted symbol line into symbol name and symbol address
11023 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'"
11024
11025 # Define system-specific variables.
11026 case $host_os in
11027 aix*)
11028   symcode='[BCDT]'
11029   ;;
11030 cygwin* | mingw* | pw32*)
11031   symcode='[ABCDGISTW]'
11032   ;;
11033 hpux*) # Its linker distinguishes data from code symbols
11034   if test "$host_cpu" = ia64; then
11035     symcode='[ABCDEGRST]'
11036   fi
11037   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11038   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'"
11039   ;;
11040 linux*)
11041   if test "$host_cpu" = ia64; then
11042     symcode='[ABCDGIRSTW]'
11043     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11044     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'"
11045   fi
11046   ;;
11047 irix* | nonstopux*)
11048   symcode='[BCDEGRST]'
11049   ;;
11050 osf*)
11051   symcode='[BCDEGQRST]'
11052   ;;
11053 solaris* | sysv5*)
11054   symcode='[BDRT]'
11055   ;;
11056 sysv4)
11057   symcode='[DFNSTU]'
11058   ;;
11059 esac
11060
11061 # Handle CRLF in mingw tool chain
11062 opt_cr=
11063 case $build_os in
11064 mingw*)
11065   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11066   ;;
11067 esac
11068
11069 # If we're using GNU nm, then use its standard symbol codes.
11070 case `$NM -V 2>&1` in
11071 *GNU* | *'with BFD'*)
11072   symcode='[ABCDGIRSTW]' ;;
11073 esac
11074
11075 # Try without a prefix undercore, then with it.
11076 for ac_symprfx in "" "_"; do
11077
11078   # Write the raw and C identifiers.
11079   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11080
11081   # Check to see that the pipe works correctly.
11082   pipe_works=no
11083
11084   rm -f conftest*
11085   cat > conftest.$ac_ext <<EOF
11086 #ifdef __cplusplus
11087 extern "C" {
11088 #endif
11089 char nm_test_var;
11090 void nm_test_func(){}
11091 #ifdef __cplusplus
11092 }
11093 #endif
11094 int main(){nm_test_var='a';nm_test_func();return(0);}
11095 EOF
11096
11097   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098   (eval $ac_compile) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; then
11102     # Now try to grab the symbols.
11103     nlist=conftest.nm
11104     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11105   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } && test -s "$nlist"; then
11109       # Try sorting and uniquifying the output.
11110       if sort "$nlist" | uniq > "$nlist"T; then
11111         mv -f "$nlist"T "$nlist"
11112       else
11113         rm -f "$nlist"T
11114       fi
11115
11116       # Make sure that we snagged all the symbols we need.
11117       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11118         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11119           cat <<EOF > conftest.$ac_ext
11120 #ifdef __cplusplus
11121 extern "C" {
11122 #endif
11123
11124 EOF
11125           # Now generate the symbol file.
11126           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11127
11128           cat <<EOF >> conftest.$ac_ext
11129 #if defined (__STDC__) && __STDC__
11130 # define lt_ptr_t void *
11131 #else
11132 # define lt_ptr_t char *
11133 # define const
11134 #endif
11135
11136 /* The mapping between symbol names and symbols. */
11137 const struct {
11138   const char *name;
11139   lt_ptr_t address;
11140 }
11141 lt_preloaded_symbols[] =
11142 {
11143 EOF
11144           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11145           cat <<\EOF >> conftest.$ac_ext
11146   {0, (lt_ptr_t) 0}
11147 };
11148
11149 #ifdef __cplusplus
11150 }
11151 #endif
11152 EOF
11153           # Now try linking the two files.
11154           mv conftest.$ac_objext conftstm.$ac_objext
11155           lt_save_LIBS="$LIBS"
11156           lt_save_CFLAGS="$CFLAGS"
11157           LIBS="conftstm.$ac_objext"
11158           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11159           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160   (eval $ac_link) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11164             pipe_works=yes
11165           fi
11166           LIBS="$lt_save_LIBS"
11167           CFLAGS="$lt_save_CFLAGS"
11168         else
11169           echo "cannot find nm_test_func in $nlist" >&5
11170         fi
11171       else
11172         echo "cannot find nm_test_var in $nlist" >&5
11173       fi
11174     else
11175       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11176     fi
11177   else
11178     echo "$progname: failed program was:" >&5
11179     cat conftest.$ac_ext >&5
11180   fi
11181   rm -f conftest* conftst*
11182
11183   # Do not use the global_symbol_pipe unless it works.
11184   if test "$pipe_works" = yes; then
11185     break
11186   else
11187     lt_cv_sys_global_symbol_pipe=
11188   fi
11189 done
11190
11191 fi
11192
11193 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11194   lt_cv_sys_global_symbol_to_cdecl=
11195 fi
11196 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11197   echo "$as_me:$LINENO: result: failed" >&5
11198 echo "${ECHO_T}failed" >&6
11199 else
11200   echo "$as_me:$LINENO: result: ok" >&5
11201 echo "${ECHO_T}ok" >&6
11202 fi
11203
11204 echo "$as_me:$LINENO: checking for objdir" >&5
11205 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11206 if test "${lt_cv_objdir+set}" = set; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209   rm -f .libs 2>/dev/null
11210 mkdir .libs 2>/dev/null
11211 if test -d .libs; then
11212   lt_cv_objdir=.libs
11213 else
11214   # MS-DOS does not allow filenames that begin with a dot.
11215   lt_cv_objdir=_libs
11216 fi
11217 rmdir .libs 2>/dev/null
11218 fi
11219 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11220 echo "${ECHO_T}$lt_cv_objdir" >&6
11221 objdir=$lt_cv_objdir
11222
11223
11224
11225
11226
11227 case $host_os in
11228 aix3*)
11229   # AIX sometimes has problems with the GCC collect2 program.  For some
11230   # reason, if we set the COLLECT_NAMES environment variable, the problems
11231   # vanish in a puff of smoke.
11232   if test "X${COLLECT_NAMES+set}" != Xset; then
11233     COLLECT_NAMES=
11234     export COLLECT_NAMES
11235   fi
11236   ;;
11237 esac
11238
11239 # Sed substitution that helps us do robust quoting.  It backslashifies
11240 # metacharacters that are still active within double-quoted strings.
11241 Xsed='sed -e s/^X//'
11242 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11243
11244 # Same as above, but do not quote variable references.
11245 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11246
11247 # Sed substitution to delay expansion of an escaped shell variable in a
11248 # double_quote_subst'ed string.
11249 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11250
11251 # Sed substitution to avoid accidental globbing in evaled expressions
11252 no_glob_subst='s/\*/\\\*/g'
11253
11254 # Constants:
11255 rm="rm -f"
11256
11257 # Global variables:
11258 default_ofile=mklib
11259 can_build_shared=yes
11260
11261 # All known linkers require a `.a' archive for static linking (except M$VC,
11262 # which needs '.lib').
11263 libext=a
11264 ltmain="$ac_aux_dir/ltmain.sh"
11265 ofile="$default_ofile"
11266 with_gnu_ld="$lt_cv_prog_gnu_ld"
11267
11268 if test -n "$ac_tool_prefix"; then
11269   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11270 set dummy ${ac_tool_prefix}ar; ac_word=$2
11271 echo "$as_me:$LINENO: checking for $ac_word" >&5
11272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11273 if test "${ac_cv_prog_AR+set}" = set; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   if test -n "$AR"; then
11277   ac_cv_prog_AR="$AR" # Let the user override the test.
11278 else
11279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280 for as_dir in $PATH
11281 do
11282   IFS=$as_save_IFS
11283   test -z "$as_dir" && as_dir=.
11284   for ac_exec_ext in '' $ac_executable_extensions; do
11285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286     ac_cv_prog_AR="${ac_tool_prefix}ar"
11287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11288     break 2
11289   fi
11290 done
11291 done
11292
11293 fi
11294 fi
11295 AR=$ac_cv_prog_AR
11296 if test -n "$AR"; then
11297   echo "$as_me:$LINENO: result: $AR" >&5
11298 echo "${ECHO_T}$AR" >&6
11299 else
11300   echo "$as_me:$LINENO: result: no" >&5
11301 echo "${ECHO_T}no" >&6
11302 fi
11303
11304 fi
11305 if test -z "$ac_cv_prog_AR"; then
11306   ac_ct_AR=$AR
11307   # Extract the first word of "ar", so it can be a program name with args.
11308 set dummy ar; ac_word=$2
11309 echo "$as_me:$LINENO: checking for $ac_word" >&5
11310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11311 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   if test -n "$ac_ct_AR"; then
11315   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11316 else
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $PATH
11319 do
11320   IFS=$as_save_IFS
11321   test -z "$as_dir" && as_dir=.
11322   for ac_exec_ext in '' $ac_executable_extensions; do
11323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324     ac_cv_prog_ac_ct_AR="ar"
11325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11326     break 2
11327   fi
11328 done
11329 done
11330
11331   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11332 fi
11333 fi
11334 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11335 if test -n "$ac_ct_AR"; then
11336   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11337 echo "${ECHO_T}$ac_ct_AR" >&6
11338 else
11339   echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6
11341 fi
11342
11343   AR=$ac_ct_AR
11344 else
11345   AR="$ac_cv_prog_AR"
11346 fi
11347
11348 if test -n "$ac_tool_prefix"; then
11349   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11351 echo "$as_me:$LINENO: checking for $ac_word" >&5
11352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11353 if test "${ac_cv_prog_RANLIB+set}" = set; then
11354   echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356   if test -n "$RANLIB"; then
11357   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11358 else
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11361 do
11362   IFS=$as_save_IFS
11363   test -z "$as_dir" && as_dir=.
11364   for ac_exec_ext in '' $ac_executable_extensions; do
11365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368     break 2
11369   fi
11370 done
11371 done
11372
11373 fi
11374 fi
11375 RANLIB=$ac_cv_prog_RANLIB
11376 if test -n "$RANLIB"; then
11377   echo "$as_me:$LINENO: result: $RANLIB" >&5
11378 echo "${ECHO_T}$RANLIB" >&6
11379 else
11380   echo "$as_me:$LINENO: result: no" >&5
11381 echo "${ECHO_T}no" >&6
11382 fi
11383
11384 fi
11385 if test -z "$ac_cv_prog_RANLIB"; then
11386   ac_ct_RANLIB=$RANLIB
11387   # Extract the first word of "ranlib", so it can be a program name with args.
11388 set dummy ranlib; ac_word=$2
11389 echo "$as_me:$LINENO: checking for $ac_word" >&5
11390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   if test -n "$ac_ct_RANLIB"; then
11395   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11396 else
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11399 do
11400   IFS=$as_save_IFS
11401   test -z "$as_dir" && as_dir=.
11402   for ac_exec_ext in '' $ac_executable_extensions; do
11403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404     ac_cv_prog_ac_ct_RANLIB="ranlib"
11405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406     break 2
11407   fi
11408 done
11409 done
11410
11411   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11412 fi
11413 fi
11414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11415 if test -n "$ac_ct_RANLIB"; then
11416   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11418 else
11419   echo "$as_me:$LINENO: result: no" >&5
11420 echo "${ECHO_T}no" >&6
11421 fi
11422
11423   RANLIB=$ac_ct_RANLIB
11424 else
11425   RANLIB="$ac_cv_prog_RANLIB"
11426 fi
11427
11428 if test -n "$ac_tool_prefix"; then
11429   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11430 set dummy ${ac_tool_prefix}strip; ac_word=$2
11431 echo "$as_me:$LINENO: checking for $ac_word" >&5
11432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433 if test "${ac_cv_prog_STRIP+set}" = set; then
11434   echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436   if test -n "$STRIP"; then
11437   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11438 else
11439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in $PATH
11441 do
11442   IFS=$as_save_IFS
11443   test -z "$as_dir" && as_dir=.
11444   for ac_exec_ext in '' $ac_executable_extensions; do
11445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448     break 2
11449   fi
11450 done
11451 done
11452
11453 fi
11454 fi
11455 STRIP=$ac_cv_prog_STRIP
11456 if test -n "$STRIP"; then
11457   echo "$as_me:$LINENO: result: $STRIP" >&5
11458 echo "${ECHO_T}$STRIP" >&6
11459 else
11460   echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11462 fi
11463
11464 fi
11465 if test -z "$ac_cv_prog_STRIP"; then
11466   ac_ct_STRIP=$STRIP
11467   # Extract the first word of "strip", so it can be a program name with args.
11468 set dummy strip; ac_word=$2
11469 echo "$as_me:$LINENO: checking for $ac_word" >&5
11470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11471 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474   if test -n "$ac_ct_STRIP"; then
11475   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11476 else
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in $PATH
11479 do
11480   IFS=$as_save_IFS
11481   test -z "$as_dir" && as_dir=.
11482   for ac_exec_ext in '' $ac_executable_extensions; do
11483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11484     ac_cv_prog_ac_ct_STRIP="strip"
11485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11486     break 2
11487   fi
11488 done
11489 done
11490
11491   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11492 fi
11493 fi
11494 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11495 if test -n "$ac_ct_STRIP"; then
11496   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11497 echo "${ECHO_T}$ac_ct_STRIP" >&6
11498 else
11499   echo "$as_me:$LINENO: result: no" >&5
11500 echo "${ECHO_T}no" >&6
11501 fi
11502
11503   STRIP=$ac_ct_STRIP
11504 else
11505   STRIP="$ac_cv_prog_STRIP"
11506 fi
11507
11508
11509 old_CC="$CC"
11510 old_CFLAGS="$CFLAGS"
11511
11512 # Set sane defaults for various variables
11513 test -z "$AR" && AR=ar
11514 test -z "$AR_FLAGS" && AR_FLAGS=cru
11515 test -z "$AS" && AS=as
11516 test -z "$CC" && CC=cc
11517 test -z "$LTCC" && LTCC=$CC
11518 test -z "$DLLTOOL" && DLLTOOL=dlltool
11519 test -z "$LD" && LD=ld
11520 test -z "$LN_S" && LN_S="ln -s"
11521 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11522 test -z "$NM" && NM=nm
11523 test -z "$SED" && SED=sed
11524 test -z "$OBJDUMP" && OBJDUMP=objdump
11525 test -z "$RANLIB" && RANLIB=:
11526 test -z "$STRIP" && STRIP=:
11527 test -z "$ac_objext" && ac_objext=o
11528
11529 # Determine commands to create old-style static archives.
11530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11531 old_postinstall_cmds='chmod 644 $oldlib'
11532 old_postuninstall_cmds=
11533
11534 if test -n "$RANLIB"; then
11535   case $host_os in
11536   openbsd*)
11537     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11538     ;;
11539   *)
11540     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11541     ;;
11542   esac
11543   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11544 fi
11545
11546 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11547
11548 # Only perform the check for file, if the check method requires it
11549 case $deplibs_check_method in
11550 file_magic*)
11551   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11552     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11553 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11555   echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557   case $MAGIC_CMD in
11558 [\\/*] |  ?:[\\/]*)
11559   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11560   ;;
11561 *)
11562   lt_save_MAGIC_CMD="$MAGIC_CMD"
11563   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11564   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11565   for ac_dir in $ac_dummy; do
11566     IFS="$lt_save_ifs"
11567     test -z "$ac_dir" && ac_dir=.
11568     if test -f $ac_dir/${ac_tool_prefix}file; then
11569       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11570       if test -n "$file_magic_test_file"; then
11571         case $deplibs_check_method in
11572         "file_magic "*)
11573           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11574           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11575           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11576             $EGREP "$file_magic_regex" > /dev/null; then
11577             :
11578           else
11579             cat <<EOF 1>&2
11580
11581 *** Warning: the command libtool uses to detect shared libraries,
11582 *** $file_magic_cmd, produces output that libtool cannot recognize.
11583 *** The result is that libtool may fail to recognize shared libraries
11584 *** as such.  This will affect the creation of libtool libraries that
11585 *** depend on shared libraries, but programs linked with such libtool
11586 *** libraries will work regardless of this problem.  Nevertheless, you
11587 *** may want to report the problem to your system manager and/or to
11588 *** bug-libtool@gnu.org
11589
11590 EOF
11591           fi ;;
11592         esac
11593       fi
11594       break
11595     fi
11596   done
11597   IFS="$lt_save_ifs"
11598   MAGIC_CMD="$lt_save_MAGIC_CMD"
11599   ;;
11600 esac
11601 fi
11602
11603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11604 if test -n "$MAGIC_CMD"; then
11605   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11606 echo "${ECHO_T}$MAGIC_CMD" >&6
11607 else
11608   echo "$as_me:$LINENO: result: no" >&5
11609 echo "${ECHO_T}no" >&6
11610 fi
11611
11612 if test -z "$lt_cv_path_MAGIC_CMD"; then
11613   if test -n "$ac_tool_prefix"; then
11614     echo "$as_me:$LINENO: checking for file" >&5
11615 echo $ECHO_N "checking for file... $ECHO_C" >&6
11616 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11617   echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619   case $MAGIC_CMD in
11620 [\\/*] |  ?:[\\/]*)
11621   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11622   ;;
11623 *)
11624   lt_save_MAGIC_CMD="$MAGIC_CMD"
11625   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11626   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11627   for ac_dir in $ac_dummy; do
11628     IFS="$lt_save_ifs"
11629     test -z "$ac_dir" && ac_dir=.
11630     if test -f $ac_dir/file; then
11631       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11632       if test -n "$file_magic_test_file"; then
11633         case $deplibs_check_method in
11634         "file_magic "*)
11635           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11636           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11637           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11638             $EGREP "$file_magic_regex" > /dev/null; then
11639             :
11640           else
11641             cat <<EOF 1>&2
11642
11643 *** Warning: the command libtool uses to detect shared libraries,
11644 *** $file_magic_cmd, produces output that libtool cannot recognize.
11645 *** The result is that libtool may fail to recognize shared libraries
11646 *** as such.  This will affect the creation of libtool libraries that
11647 *** depend on shared libraries, but programs linked with such libtool
11648 *** libraries will work regardless of this problem.  Nevertheless, you
11649 *** may want to report the problem to your system manager and/or to
11650 *** bug-libtool@gnu.org
11651
11652 EOF
11653           fi ;;
11654         esac
11655       fi
11656       break
11657     fi
11658   done
11659   IFS="$lt_save_ifs"
11660   MAGIC_CMD="$lt_save_MAGIC_CMD"
11661   ;;
11662 esac
11663 fi
11664
11665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11666 if test -n "$MAGIC_CMD"; then
11667   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11668 echo "${ECHO_T}$MAGIC_CMD" >&6
11669 else
11670   echo "$as_me:$LINENO: result: no" >&5
11671 echo "${ECHO_T}no" >&6
11672 fi
11673
11674   else
11675     MAGIC_CMD=:
11676   fi
11677 fi
11678
11679   fi
11680   ;;
11681 esac
11682
11683 enable_dlopen=yes
11684 enable_win32_dll=no
11685
11686 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11687 if test "${enable_libtool_lock+set}" = set; then
11688   enableval="$enable_libtool_lock"
11689
11690 fi;
11691 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11692
11693
11694 # Check whether --with-pic or --without-pic was given.
11695 if test "${with_pic+set}" = set; then
11696   withval="$with_pic"
11697   pic_mode="$withval"
11698 else
11699   pic_mode=default
11700 fi;
11701 test -z "$pic_mode" && pic_mode=default
11702
11703 # Use C for the default configuration in the libtool script
11704 tagname=
11705 lt_save_CC="$CC"
11706 ac_ext=c
11707 ac_cpp='$CPP $CPPFLAGS'
11708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11711
11712
11713 # Source file extension for C test sources.
11714 ac_ext=c
11715
11716 # Object file extension for compiled C test sources.
11717 objext=o
11718 objext=$objext
11719
11720 # Code to be used in simple compile tests
11721 lt_simple_compile_test_code="int some_variable = 0;\n"
11722
11723 # Code to be used in simple link tests
11724 lt_simple_link_test_code='int main(){return(0);}\n'
11725
11726
11727 # If no C compiler was specified, use CC.
11728 LTCC=${LTCC-"$CC"}
11729
11730 # Allow CC to be a program name with arguments.
11731 compiler=$CC
11732
11733
11734 #
11735 # Check for any special shared library compilation flags.
11736 #
11737 lt_prog_cc_shlib=
11738 if test "$GCC" = no; then
11739   case $host_os in
11740   sco3.2v5*)
11741     lt_prog_cc_shlib='-belf'
11742     ;;
11743   esac
11744 fi
11745 if test -n "$lt_prog_cc_shlib"; then
11746   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11747 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11748   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11749   else
11750     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11751 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11752     lt_cv_prog_cc_can_build_shared=no
11753   fi
11754 fi
11755
11756
11757 #
11758 # Check to make sure the static flag actually works.
11759 #
11760 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11761 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11762 if test "${lt_prog_compiler_static_works+set}" = set; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   lt_prog_compiler_static_works=no
11766    save_LDFLAGS="$LDFLAGS"
11767    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11768    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11769    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11770      # The compiler can only warn and ignore the option if not recognized
11771      # So say no if there are warnings
11772      if test -s conftest.err; then
11773        # Append any errors to the config.log.
11774        cat conftest.err 1>&5
11775      else
11776        lt_prog_compiler_static_works=yes
11777      fi
11778    fi
11779    $rm conftest*
11780    LDFLAGS="$save_LDFLAGS"
11781
11782 fi
11783 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11784 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11785
11786 if test x"$lt_prog_compiler_static_works" = xyes; then
11787     :
11788 else
11789     lt_prog_compiler_static=
11790 fi
11791
11792
11793
11794
11795 lt_prog_compiler_no_builtin_flag=
11796
11797 if test "$GCC" = yes; then
11798   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11799
11800
11801 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11802 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11803 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806   lt_cv_prog_compiler_rtti_exceptions=no
11807   ac_outfile=conftest.$ac_objext
11808    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11809    lt_compiler_flag="-fno-rtti -fno-exceptions"
11810    # Insert the option either (1) after the last *FLAGS variable, or
11811    # (2) before a word containing "conftest.", or (3) at the end.
11812    # Note that $ac_compile itself does not contain backslashes and begins
11813    # with a dollar sign (not a hyphen), so the echo should work correctly.
11814    # The option is referenced via a variable to avoid confusing sed.
11815    lt_compile=`echo "$ac_compile" | $SED \
11816    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11817    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11818    -e 's:$: $lt_compiler_flag:'`
11819    (eval echo "\"\$as_me:11819: $lt_compile\"" >&5)
11820    (eval "$lt_compile" 2>conftest.err)
11821    ac_status=$?
11822    cat conftest.err >&5
11823    echo "$as_me:11823: \$? = $ac_status" >&5
11824    if (exit $ac_status) && test -s "$ac_outfile"; then
11825      # The compiler can only warn and ignore the option if not recognized
11826      # So say no if there are warnings
11827      if test ! -s conftest.err; then
11828        lt_cv_prog_compiler_rtti_exceptions=yes
11829      fi
11830    fi
11831    $rm conftest*
11832
11833 fi
11834 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11835 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11836
11837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11838     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11839 else
11840     :
11841 fi
11842
11843 fi
11844
11845 lt_prog_compiler_wl=
11846 lt_prog_compiler_pic=
11847 lt_prog_compiler_static=
11848
11849 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11850 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11851
11852   if test "$GCC" = yes; then
11853     lt_prog_compiler_wl='-Wl,'
11854     lt_prog_compiler_static='-static'
11855
11856     case $host_os in
11857       aix*)
11858       # All AIX code is PIC.
11859       if test "$host_cpu" = ia64; then
11860         # AIX 5 now supports IA64 processor
11861         lt_prog_compiler_static='-Bstatic'
11862       fi
11863       ;;
11864
11865     amigaos*)
11866       # FIXME: we need at least 68020 code to build shared libraries, but
11867       # adding the `-m68020' flag to GCC prevents building anything better,
11868       # like `-m68040'.
11869       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11870       ;;
11871
11872     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11873       # PIC is the default for these OSes.
11874       ;;
11875
11876     mingw* | pw32* | os2*)
11877       # This hack is so that the source file can tell whether it is being
11878       # built for inclusion in a dll (and should export symbols for example).
11879       lt_prog_compiler_pic='-DDLL_EXPORT'
11880       ;;
11881
11882     darwin* | rhapsody*)
11883       # PIC is the default on this platform
11884       # Common symbols not allowed in MH_DYLIB files
11885       lt_prog_compiler_pic='-fno-common'
11886       ;;
11887
11888     msdosdjgpp*)
11889       # Just because we use GCC doesn't mean we suddenly get shared libraries
11890       # on systems that don't support them.
11891       lt_prog_compiler_can_build_shared=no
11892       enable_shared=no
11893       ;;
11894
11895     sysv4*MP*)
11896       if test -d /usr/nec; then
11897         lt_prog_compiler_pic=-Kconform_pic
11898       fi
11899       ;;
11900
11901     hpux*)
11902       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11903       # not for PA HP-UX.
11904       case "$host_cpu" in
11905       hppa*64*|ia64*)
11906         # +Z the default
11907         ;;
11908       *)
11909         lt_prog_compiler_pic='-fPIC'
11910         ;;
11911       esac
11912       ;;
11913
11914     *)
11915       lt_prog_compiler_pic='-fPIC'
11916       ;;
11917     esac
11918   else
11919     # PORTME Check for flag to pass linker flags through the system compiler.
11920     case $host_os in
11921     aix*)
11922       lt_prog_compiler_wl='-Wl,'
11923       if test "$host_cpu" = ia64; then
11924         # AIX 5 now supports IA64 processor
11925         lt_prog_compiler_static='-Bstatic'
11926       else
11927         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11928       fi
11929       ;;
11930       darwin*)
11931         # PIC is the default on this platform
11932         # Common symbols not allowed in MH_DYLIB files
11933        case "$cc_basename" in
11934          xlc*)
11935          lt_prog_compiler_pic='-qnocommon'
11936          lt_prog_compiler_wl='-Wl,'
11937          ;;
11938        esac
11939        ;;
11940
11941     mingw* | pw32* | os2*)
11942       # This hack is so that the source file can tell whether it is being
11943       # built for inclusion in a dll (and should export symbols for example).
11944       lt_prog_compiler_pic='-DDLL_EXPORT'
11945       ;;
11946
11947     hpux9* | hpux10* | hpux11*)
11948       lt_prog_compiler_wl='-Wl,'
11949       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11950       # not for PA HP-UX.
11951       case "$host_cpu" in
11952       hppa*64*|ia64*)
11953         # +Z the default
11954         ;;
11955       *)
11956         lt_prog_compiler_pic='+Z'
11957         ;;
11958       esac
11959       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11960       lt_prog_compiler_static='${wl}-a ${wl}archive'
11961       ;;
11962
11963     irix5* | irix6* | nonstopux*)
11964       lt_prog_compiler_wl='-Wl,'
11965       # PIC (with -KPIC) is the default.
11966       lt_prog_compiler_static='-non_shared'
11967       ;;
11968
11969     newsos6)
11970       lt_prog_compiler_pic='-KPIC'
11971       lt_prog_compiler_static='-Bstatic'
11972       ;;
11973
11974     linux*)
11975       case $CC in
11976       icc* | ecc*)
11977         lt_prog_compiler_wl='-Wl,'
11978         lt_prog_compiler_pic='-KPIC'
11979         lt_prog_compiler_static='-static'
11980         ;;
11981       ccc*)
11982         lt_prog_compiler_wl='-Wl,'
11983         # All Alpha code is PIC.
11984         lt_prog_compiler_static='-non_shared'
11985         ;;
11986       esac
11987       ;;
11988
11989     osf3* | osf4* | osf5*)
11990       lt_prog_compiler_wl='-Wl,'
11991       # All OSF/1 code is PIC.
11992       lt_prog_compiler_static='-non_shared'
11993       ;;
11994
11995     sco3.2v5*)
11996       lt_prog_compiler_pic='-Kpic'
11997       lt_prog_compiler_static='-dn'
11998       ;;
11999
12000     solaris*)
12001       lt_prog_compiler_wl='-Wl,'
12002       lt_prog_compiler_pic='-KPIC'
12003       lt_prog_compiler_static='-Bstatic'
12004       ;;
12005
12006     sunos4*)
12007       lt_prog_compiler_wl='-Qoption ld '
12008       lt_prog_compiler_pic='-PIC'
12009       lt_prog_compiler_static='-Bstatic'
12010       ;;
12011
12012     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12013       lt_prog_compiler_wl='-Wl,'
12014       lt_prog_compiler_pic='-KPIC'
12015       lt_prog_compiler_static='-Bstatic'
12016       ;;
12017
12018     sysv4*MP*)
12019       if test -d /usr/nec ;then
12020         lt_prog_compiler_pic='-Kconform_pic'
12021         lt_prog_compiler_static='-Bstatic'
12022       fi
12023       ;;
12024
12025     uts4*)
12026       lt_prog_compiler_pic='-pic'
12027       lt_prog_compiler_static='-Bstatic'
12028       ;;
12029
12030     *)
12031       lt_prog_compiler_can_build_shared=no
12032       ;;
12033     esac
12034   fi
12035
12036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12037 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12038
12039 #
12040 # Check to make sure the PIC flag actually works.
12041 #
12042 if test -n "$lt_prog_compiler_pic"; then
12043
12044 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12045 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12046 if test "${lt_prog_compiler_pic_works+set}" = set; then
12047   echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049   lt_prog_compiler_pic_works=no
12050   ac_outfile=conftest.$ac_objext
12051    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12052    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12053    # Insert the option either (1) after the last *FLAGS variable, or
12054    # (2) before a word containing "conftest.", or (3) at the end.
12055    # Note that $ac_compile itself does not contain backslashes and begins
12056    # with a dollar sign (not a hyphen), so the echo should work correctly.
12057    # The option is referenced via a variable to avoid confusing sed.
12058    lt_compile=`echo "$ac_compile" | $SED \
12059    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12061    -e 's:$: $lt_compiler_flag:'`
12062    (eval echo "\"\$as_me:12062: $lt_compile\"" >&5)
12063    (eval "$lt_compile" 2>conftest.err)
12064    ac_status=$?
12065    cat conftest.err >&5
12066    echo "$as_me:12066: \$? = $ac_status" >&5
12067    if (exit $ac_status) && test -s "$ac_outfile"; then
12068      # The compiler can only warn and ignore the option if not recognized
12069      # So say no if there are warnings
12070      if test ! -s conftest.err; then
12071        lt_prog_compiler_pic_works=yes
12072      fi
12073    fi
12074    $rm conftest*
12075
12076 fi
12077 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12078 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12079
12080 if test x"$lt_prog_compiler_pic_works" = xyes; then
12081     case $lt_prog_compiler_pic in
12082      "" | " "*) ;;
12083      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12084      esac
12085 else
12086     lt_prog_compiler_pic=
12087      lt_prog_compiler_can_build_shared=no
12088 fi
12089
12090 fi
12091 case "$host_os" in
12092   # For platforms which do not support PIC, -DPIC is meaningless:
12093   *djgpp*)
12094     lt_prog_compiler_pic=
12095     ;;
12096   *)
12097     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12098     ;;
12099 esac
12100
12101 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12103 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12104   echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106   lt_cv_prog_compiler_c_o=no
12107    $rm -r conftest 2>/dev/null
12108    mkdir conftest
12109    cd conftest
12110    mkdir out
12111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12112
12113    lt_compiler_flag="-o out/conftest2.$ac_objext"
12114    # Insert the option either (1) after the last *FLAGS variable, or
12115    # (2) before a word containing "conftest.", or (3) at the end.
12116    # Note that $ac_compile itself does not contain backslashes and begins
12117    # with a dollar sign (not a hyphen), so the echo should work correctly.
12118    lt_compile=`echo "$ac_compile" | $SED \
12119    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12121    -e 's:$: $lt_compiler_flag:'`
12122    (eval echo "\"\$as_me:12122: $lt_compile\"" >&5)
12123    (eval "$lt_compile" 2>out/conftest.err)
12124    ac_status=$?
12125    cat out/conftest.err >&5
12126    echo "$as_me:12126: \$? = $ac_status" >&5
12127    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12128    then
12129      # The compiler can only warn and ignore the option if not recognized
12130      # So say no if there are warnings
12131      if test ! -s out/conftest.err; then
12132        lt_cv_prog_compiler_c_o=yes
12133      fi
12134    fi
12135    chmod u+w .
12136    $rm conftest*
12137    # SGI C++ compiler will create directory out/ii_files/ for
12138    # template instantiation
12139    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12140    $rm out/* && rmdir out
12141    cd ..
12142    rmdir conftest
12143    $rm conftest*
12144
12145 fi
12146 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12148
12149
12150 hard_links="nottested"
12151 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12152   # do not overwrite the value of need_locks provided by the user
12153   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12154 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12155   hard_links=yes
12156   $rm conftest*
12157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12158   touch conftest.a
12159   ln conftest.a conftest.b 2>&5 || hard_links=no
12160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12161   echo "$as_me:$LINENO: result: $hard_links" >&5
12162 echo "${ECHO_T}$hard_links" >&6
12163   if test "$hard_links" = no; then
12164     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12165 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12166     need_locks=warn
12167   fi
12168 else
12169   need_locks=no
12170 fi
12171
12172 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12173 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12174
12175   runpath_var=
12176   allow_undefined_flag=
12177   enable_shared_with_static_runtimes=no
12178   archive_cmds=
12179   archive_expsym_cmds=
12180   old_archive_From_new_cmds=
12181   old_archive_from_expsyms_cmds=
12182   export_dynamic_flag_spec=
12183   whole_archive_flag_spec=
12184   thread_safe_flag_spec=
12185   hardcode_libdir_flag_spec=
12186   hardcode_libdir_flag_spec_ld=
12187   hardcode_libdir_separator=
12188   hardcode_direct=no
12189   hardcode_minus_L=no
12190   hardcode_shlibpath_var=unsupported
12191   link_all_deplibs=unknown
12192   hardcode_automatic=no
12193   module_cmds=
12194   module_expsym_cmds=
12195   always_export_symbols=no
12196   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12197   # include_expsyms should be a list of space-separated symbols to be *always*
12198   # included in the symbol list
12199   include_expsyms=
12200   # exclude_expsyms can be an extended regexp of symbols to exclude
12201   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12202   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12203   # as well as any symbol that contains `d'.
12204   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12205   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12206   # platforms (ab)use it in PIC code, but their linkers get confused if
12207   # the symbol is explicitly referenced.  Since portable code cannot
12208   # rely on this symbol name, it's probably fine to never include it in
12209   # preloaded symbol tables.
12210   extract_expsyms_cmds=
12211
12212   case $host_os in
12213   cygwin* | mingw* | pw32*)
12214     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12215     # When not using gcc, we currently assume that we are using
12216     # Microsoft Visual C++.
12217     if test "$GCC" != yes; then
12218       with_gnu_ld=no
12219     fi
12220     ;;
12221   openbsd*)
12222     with_gnu_ld=no
12223     ;;
12224   esac
12225
12226   ld_shlibs=yes
12227   if test "$with_gnu_ld" = yes; then
12228     # If archive_cmds runs LD, not CC, wlarc should be empty
12229     wlarc='${wl}'
12230
12231     # See if GNU ld supports shared libraries.
12232     case $host_os in
12233     aix3* | aix4* | aix5*)
12234       # On AIX/PPC, the GNU linker is very broken
12235       if test "$host_cpu" != ia64; then
12236         ld_shlibs=no
12237         cat <<EOF 1>&2
12238
12239 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12240 *** to be unable to reliably create shared libraries on AIX.
12241 *** Therefore, libtool is disabling shared libraries support.  If you
12242 *** really care for shared libraries, you may want to modify your PATH
12243 *** so that a non-GNU linker is found, and then restart.
12244
12245 EOF
12246       fi
12247       ;;
12248
12249     amigaos*)
12250       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)'
12251       hardcode_libdir_flag_spec='-L$libdir'
12252       hardcode_minus_L=yes
12253
12254       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12255       # that the semantics of dynamic libraries on AmigaOS, at least up
12256       # to version 4, is to share data among multiple programs linked
12257       # with the same dynamic library.  Since this doesn't match the
12258       # behavior of shared libraries on other platforms, we can't use
12259       # them.
12260       ld_shlibs=no
12261       ;;
12262
12263     beos*)
12264       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12265         allow_undefined_flag=unsupported
12266         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12267         # support --undefined.  This deserves some investigation.  FIXME
12268         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12269       else
12270         ld_shlibs=no
12271       fi
12272       ;;
12273
12274     cygwin* | mingw* | pw32*)
12275       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12276       # as there is no search path for DLLs.
12277       hardcode_libdir_flag_spec='-L$libdir'
12278       allow_undefined_flag=unsupported
12279       always_export_symbols=no
12280       enable_shared_with_static_runtimes=yes
12281       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12282
12283       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12284         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12285         # If the export-symbols file already is a .def file (1st line
12286         # is EXPORTS), use it as is; otherwise, prepend...
12287         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12288           cp $export_symbols $output_objdir/$soname.def;
12289         else
12290           echo EXPORTS > $output_objdir/$soname.def;
12291           cat $export_symbols >> $output_objdir/$soname.def;
12292         fi~
12293         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12294       else
12295         ld_shlibs=no
12296       fi
12297       ;;
12298
12299     netbsd*)
12300       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12301         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12302         wlarc=
12303       else
12304         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12305         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12306       fi
12307       ;;
12308
12309     solaris* | sysv5*)
12310       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12311         ld_shlibs=no
12312         cat <<EOF 1>&2
12313
12314 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12315 *** create shared libraries on Solaris systems.  Therefore, libtool
12316 *** is disabling shared libraries support.  We urge you to upgrade GNU
12317 *** binutils to release 2.9.1 or newer.  Another option is to modify
12318 *** your PATH or compiler configuration so that the native linker is
12319 *** used, and then restart.
12320
12321 EOF
12322       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12323         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12325       else
12326         ld_shlibs=no
12327       fi
12328       ;;
12329
12330     sunos4*)
12331       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12332       wlarc=
12333       hardcode_direct=yes
12334       hardcode_shlibpath_var=no
12335       ;;
12336
12337   linux*)
12338     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12339         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340         archive_cmds="$tmp_archive_cmds"
12341       supports_anon_versioning=no
12342       case `$LD -v 2>/dev/null` in
12343         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12344         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12345         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12346         *\ 2.11.*) ;; # other 2.11 versions
12347         *) supports_anon_versioning=yes ;;
12348       esac
12349       if test $supports_anon_versioning = yes; then
12350         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12352 $echo "local: *; };" >> $output_objdir/$libname.ver~
12353         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12354       else
12355         archive_expsym_cmds="$tmp_archive_cmds"
12356       fi
12357     else
12358       ld_shlibs=no
12359     fi
12360     ;;
12361
12362     *)
12363       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12364         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12365         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12366       else
12367         ld_shlibs=no
12368       fi
12369       ;;
12370     esac
12371
12372     if test "$ld_shlibs" = yes; then
12373       runpath_var=LD_RUN_PATH
12374       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12375       export_dynamic_flag_spec='${wl}--export-dynamic'
12376       # ancient GNU ld didn't support --whole-archive et. al.
12377       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12378         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12379       else
12380         whole_archive_flag_spec=
12381       fi
12382     fi
12383   else
12384     # PORTME fill in a description of your system's linker (not GNU ld)
12385     case $host_os in
12386     aix3*)
12387       allow_undefined_flag=unsupported
12388       always_export_symbols=yes
12389       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'
12390       # Note: this linker hardcodes the directories in LIBPATH if there
12391       # are no directories specified by -L.
12392       hardcode_minus_L=yes
12393       if test "$GCC" = yes && test -z "$link_static_flag"; then
12394         # Neither direct hardcoding nor static linking is supported with a
12395         # broken collect2.
12396         hardcode_direct=unsupported
12397       fi
12398       ;;
12399
12400     aix4* | aix5*)
12401       if test "$host_cpu" = ia64; then
12402         # On IA64, the linker does run time linking by default, so we don't
12403         # have to do anything special.
12404         aix_use_runtimelinking=no
12405         exp_sym_flag='-Bexport'
12406         no_entry_flag=""
12407       else
12408         # If we're using GNU nm, then we don't want the "-C" option.
12409         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12410         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12411           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'
12412         else
12413           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'
12414         fi
12415         aix_use_runtimelinking=no
12416
12417         # Test if we are trying to use run time linking or normal
12418         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12419         # need to do runtime linking.
12420         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12421           for ld_flag in $LDFLAGS; do
12422           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12423             aix_use_runtimelinking=yes
12424             break
12425           fi
12426           done
12427         esac
12428
12429         exp_sym_flag='-bexport'
12430         no_entry_flag='-bnoentry'
12431       fi
12432
12433       # When large executables or shared objects are built, AIX ld can
12434       # have problems creating the table of contents.  If linking a library
12435       # or program results in "error TOC overflow" add -mminimal-toc to
12436       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12437       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12438
12439       archive_cmds=''
12440       hardcode_direct=yes
12441       hardcode_libdir_separator=':'
12442       link_all_deplibs=yes
12443
12444       if test "$GCC" = yes; then
12445         case $host_os in aix4.012|aix4.012.*)
12446         # We only want to do this on AIX 4.2 and lower, the check
12447         # below for broken collect2 doesn't work under 4.3+
12448           collect2name=`${CC} -print-prog-name=collect2`
12449           if test -f "$collect2name" && \
12450            strings "$collect2name" | grep resolve_lib_name >/dev/null
12451           then
12452           # We have reworked collect2
12453           hardcode_direct=yes
12454           else
12455           # We have old collect2
12456           hardcode_direct=unsupported
12457           # It fails to find uninstalled libraries when the uninstalled
12458           # path is not listed in the libpath.  Setting hardcode_minus_L
12459           # to unsupported forces relinking
12460           hardcode_minus_L=yes
12461           hardcode_libdir_flag_spec='-L$libdir'
12462           hardcode_libdir_separator=
12463           fi
12464         esac
12465         shared_flag='-shared'
12466       else
12467         # not using gcc
12468         if test "$host_cpu" = ia64; then
12469         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12470         # chokes on -Wl,-G. The following line is correct:
12471           shared_flag='-G'
12472         else
12473         if test "$aix_use_runtimelinking" = yes; then
12474             shared_flag='${wl}-G'
12475           else
12476             shared_flag='${wl}-bM:SRE'
12477         fi
12478         fi
12479       fi
12480
12481       # It seems that -bexpall does not export symbols beginning with
12482       # underscore (_), so it is better to generate a list of symbols to export.
12483       always_export_symbols=yes
12484       if test "$aix_use_runtimelinking" = yes; then
12485         # Warning - without using the other runtime loading flags (-brtl),
12486         # -berok will link without error, but may produce a broken library.
12487         allow_undefined_flag='-berok'
12488        # Determine the default libpath from the value encoded in an empty executable.
12489        cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495
12496 int
12497 main ()
12498 {
12499
12500   ;
12501   return 0;
12502 }
12503 _ACEOF
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12506   (eval $ac_link) 2>conftest.er1
12507   ac_status=$?
12508   grep -v '^ *+' conftest.er1 >conftest.err
12509   rm -f conftest.er1
12510   cat conftest.err >&5
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); } &&
12513          { ac_try='test -z "$ac_c_werror_flag"
12514                          || test ! -s conftest.err'
12515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516   (eval $ac_try) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); }; } &&
12520          { ac_try='test -s conftest$ac_exeext'
12521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522   (eval $ac_try) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; }; then
12526
12527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12528 }'`
12529 # Check for a 64-bit object if we didn't find anything.
12530 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; }
12531 }'`; fi
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 fi
12537 rm -f conftest.err conftest.$ac_objext \
12538       conftest$ac_exeext conftest.$ac_ext
12539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12540
12541        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12542         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"
12543        else
12544         if test "$host_cpu" = ia64; then
12545           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12546           allow_undefined_flag="-z nodefs"
12547           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"
12548         else
12549          # Determine the default libpath from the value encoded in an empty executable.
12550          cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h.  */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h.  */
12556
12557 int
12558 main ()
12559 {
12560
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567   (eval $ac_link) 2>conftest.er1
12568   ac_status=$?
12569   grep -v '^ *+' conftest.er1 >conftest.err
12570   rm -f conftest.er1
12571   cat conftest.err >&5
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); } &&
12574          { ac_try='test -z "$ac_c_werror_flag"
12575                          || test ! -s conftest.err'
12576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577   (eval $ac_try) 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); }; } &&
12581          { ac_try='test -s conftest$ac_exeext'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; }; then
12587
12588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12589 }'`
12590 # Check for a 64-bit object if we didn't find anything.
12591 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; }
12592 }'`; fi
12593 else
12594   echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597 fi
12598 rm -f conftest.err conftest.$ac_objext \
12599       conftest$ac_exeext conftest.$ac_ext
12600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12601
12602          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12603           # Warning - without using the other run time loading flags,
12604           # -berok will link without error, but may produce a broken library.
12605           no_undefined_flag=' ${wl}-bernotok'
12606           allow_undefined_flag=' ${wl}-berok'
12607           # -bexpall does not export symbols beginning with underscore (_)
12608           always_export_symbols=yes
12609           # Exported symbols can be pulled into shared objects from archives
12610           whole_archive_flag_spec=' '
12611           archive_cmds_need_lc=yes
12612           # This is similar to how AIX traditionally builds it's shared libraries.
12613           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'
12614         fi
12615       fi
12616       ;;
12617
12618     amigaos*)
12619       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)'
12620       hardcode_libdir_flag_spec='-L$libdir'
12621       hardcode_minus_L=yes
12622       # see comment about different semantics on the GNU ld section
12623       ld_shlibs=no
12624       ;;
12625
12626     bsdi[45]*)
12627       export_dynamic_flag_spec=-rdynamic
12628       ;;
12629
12630     cygwin* | mingw* | pw32*)
12631       # When not using gcc, we currently assume that we are using
12632       # Microsoft Visual C++.
12633       # hardcode_libdir_flag_spec is actually meaningless, as there is
12634       # no search path for DLLs.
12635       hardcode_libdir_flag_spec=' '
12636       allow_undefined_flag=unsupported
12637       # Tell ltmain to make .lib files, not .a files.
12638       libext=lib
12639       # Tell ltmain to make .dll files, not .so files.
12640       shrext_cmds=".dll"
12641       # FIXME: Setting linknames here is a bad hack.
12642       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12643       # The linker will automatically build a .lib file if we build a DLL.
12644       old_archive_From_new_cmds='true'
12645       # FIXME: Should let the user specify the lib program.
12646       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12647       fix_srcfile_path='`cygpath -w "$srcfile"`'
12648       enable_shared_with_static_runtimes=yes
12649       ;;
12650
12651     darwin* | rhapsody*)
12652       case "$host_os" in
12653         rhapsody* | darwin1.[012])
12654          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12655          ;;
12656        *) # Darwin 1.3 on
12657          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12658            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12659          else
12660            case ${MACOSX_DEPLOYMENT_TARGET} in
12661              10.[012])
12662                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12663                ;;
12664              10.*)
12665                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12666                ;;
12667            esac
12668          fi
12669          ;;
12670       esac
12671       archive_cmds_need_lc=no
12672       hardcode_direct=no
12673       hardcode_automatic=yes
12674       hardcode_shlibpath_var=unsupported
12675       whole_archive_flag_spec=''
12676       link_all_deplibs=yes
12677     if test "$GCC" = yes ; then
12678         output_verbose_link_cmd='echo'
12679         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12680       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12681       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12682       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}'
12683       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}'
12684     else
12685       case "$cc_basename" in
12686         xlc*)
12687          output_verbose_link_cmd='echo'
12688          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12689          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12690           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12691          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}'
12692           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}'
12693           ;;
12694        *)
12695          ld_shlibs=no
12696           ;;
12697       esac
12698     fi
12699       ;;
12700
12701     dgux*)
12702       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12703       hardcode_libdir_flag_spec='-L$libdir'
12704       hardcode_shlibpath_var=no
12705       ;;
12706
12707     freebsd1*)
12708       ld_shlibs=no
12709       ;;
12710
12711     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12712     # support.  Future versions do this automatically, but an explicit c++rt0.o
12713     # does not break anything, and helps significantly (at the cost of a little
12714     # extra space).
12715     freebsd2.2*)
12716       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12717       hardcode_libdir_flag_spec='-R$libdir'
12718       hardcode_direct=yes
12719       hardcode_shlibpath_var=no
12720       ;;
12721
12722     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12723     freebsd2*)
12724       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12725       hardcode_direct=yes
12726       hardcode_minus_L=yes
12727       hardcode_shlibpath_var=no
12728       ;;
12729
12730     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12731     freebsd* | kfreebsd*-gnu)
12732       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12733       hardcode_libdir_flag_spec='-R$libdir'
12734       hardcode_direct=yes
12735       hardcode_shlibpath_var=no
12736       ;;
12737
12738     hpux9*)
12739       if test "$GCC" = yes; then
12740         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'
12741       else
12742         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'
12743       fi
12744       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12745       hardcode_libdir_separator=:
12746       hardcode_direct=yes
12747
12748       # hardcode_minus_L: Not really in the search PATH,
12749       # but as the default location of the library.
12750       hardcode_minus_L=yes
12751       export_dynamic_flag_spec='${wl}-E'
12752       ;;
12753
12754     hpux10* | hpux11*)
12755       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12756         case "$host_cpu" in
12757         hppa*64*|ia64*)
12758           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12759           ;;
12760         *)
12761           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12762           ;;
12763         esac
12764       else
12765         case "$host_cpu" in
12766         hppa*64*|ia64*)
12767           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12768           ;;
12769         *)
12770           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12771           ;;
12772         esac
12773       fi
12774       if test "$with_gnu_ld" = no; then
12775         case "$host_cpu" in
12776         hppa*64*)
12777           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12778           hardcode_libdir_flag_spec_ld='+b $libdir'
12779           hardcode_libdir_separator=:
12780           hardcode_direct=no
12781           hardcode_shlibpath_var=no
12782           ;;
12783         ia64*)
12784           hardcode_libdir_flag_spec='-L$libdir'
12785           hardcode_direct=no
12786           hardcode_shlibpath_var=no
12787
12788           # hardcode_minus_L: Not really in the search PATH,
12789           # but as the default location of the library.
12790           hardcode_minus_L=yes
12791           ;;
12792         *)
12793           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12794           hardcode_libdir_separator=:
12795           hardcode_direct=yes
12796           export_dynamic_flag_spec='${wl}-E'
12797
12798           # hardcode_minus_L: Not really in the search PATH,
12799           # but as the default location of the library.
12800           hardcode_minus_L=yes
12801           ;;
12802         esac
12803       fi
12804       ;;
12805
12806     irix5* | irix6* | nonstopux*)
12807       if test "$GCC" = yes; then
12808         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'
12809       else
12810         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'
12811         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12812       fi
12813       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12814       hardcode_libdir_separator=:
12815       link_all_deplibs=yes
12816       ;;
12817
12818     netbsd*)
12819       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12820         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12821       else
12822         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12823       fi
12824       hardcode_libdir_flag_spec='-R$libdir'
12825       hardcode_direct=yes
12826       hardcode_shlibpath_var=no
12827       ;;
12828
12829     newsos6)
12830       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12831       hardcode_direct=yes
12832       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12833       hardcode_libdir_separator=:
12834       hardcode_shlibpath_var=no
12835       ;;
12836
12837     openbsd*)
12838       hardcode_direct=yes
12839       hardcode_shlibpath_var=no
12840       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12841         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12842         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12843         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12844         export_dynamic_flag_spec='${wl}-E'
12845       else
12846        case $host_os in
12847          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12848            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12849            hardcode_libdir_flag_spec='-R$libdir'
12850            ;;
12851          *)
12852            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12853            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12854            ;;
12855        esac
12856       fi
12857       ;;
12858
12859     os2*)
12860       hardcode_libdir_flag_spec='-L$libdir'
12861       hardcode_minus_L=yes
12862       allow_undefined_flag=unsupported
12863       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'
12864       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12865       ;;
12866
12867     osf3*)
12868       if test "$GCC" = yes; then
12869         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12870         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'
12871       else
12872         allow_undefined_flag=' -expect_unresolved \*'
12873         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'
12874       fi
12875       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12876       hardcode_libdir_separator=:
12877       ;;
12878
12879     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12880       if test "$GCC" = yes; then
12881         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12882         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'
12883         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12884       else
12885         allow_undefined_flag=' -expect_unresolved \*'
12886         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'
12887         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12888         $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'
12889
12890         # Both c and cxx compiler support -rpath directly
12891         hardcode_libdir_flag_spec='-rpath $libdir'
12892       fi
12893       hardcode_libdir_separator=:
12894       ;;
12895
12896     sco3.2v5*)
12897       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12898       hardcode_shlibpath_var=no
12899       export_dynamic_flag_spec='${wl}-Bexport'
12900       runpath_var=LD_RUN_PATH
12901       hardcode_runpath_var=yes
12902       ;;
12903
12904     solaris*)
12905       no_undefined_flag=' -z text'
12906       if test "$GCC" = yes; then
12907         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12908         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12909           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12910       else
12911         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12913         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12914       fi
12915       hardcode_libdir_flag_spec='-R$libdir'
12916       hardcode_shlibpath_var=no
12917       case $host_os in
12918       solaris2.[0-5] | solaris2.[0-5].*) ;;
12919       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12920         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12921       esac
12922       link_all_deplibs=yes
12923       ;;
12924
12925     sunos4*)
12926       if test "x$host_vendor" = xsequent; then
12927         # Use $CC to link under sequent, because it throws in some extra .o
12928         # files that make .init and .fini sections work.
12929         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12930       else
12931         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12932       fi
12933       hardcode_libdir_flag_spec='-L$libdir'
12934       hardcode_direct=yes
12935       hardcode_minus_L=yes
12936       hardcode_shlibpath_var=no
12937       ;;
12938
12939     sysv4)
12940       case $host_vendor in
12941         sni)
12942           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12943           hardcode_direct=yes # is this really true???
12944         ;;
12945         siemens)
12946           ## LD is ld it makes a PLAMLIB
12947           ## CC just makes a GrossModule.
12948           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12949           reload_cmds='$CC -r -o $output$reload_objs'
12950           hardcode_direct=no
12951         ;;
12952         motorola)
12953           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12955         ;;
12956       esac
12957       runpath_var='LD_RUN_PATH'
12958       hardcode_shlibpath_var=no
12959       ;;
12960
12961     sysv4.3*)
12962       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963       hardcode_shlibpath_var=no
12964       export_dynamic_flag_spec='-Bexport'
12965       ;;
12966
12967     sysv4*MP*)
12968       if test -d /usr/nec; then
12969         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970         hardcode_shlibpath_var=no
12971         runpath_var=LD_RUN_PATH
12972         hardcode_runpath_var=yes
12973         ld_shlibs=yes
12974       fi
12975       ;;
12976
12977     sysv4.2uw2*)
12978       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12979       hardcode_direct=yes
12980       hardcode_minus_L=no
12981       hardcode_shlibpath_var=no
12982       hardcode_runpath_var=yes
12983       runpath_var=LD_RUN_PATH
12984       ;;
12985
12986    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12987       no_undefined_flag='${wl}-z ${wl}text'
12988       if test "$GCC" = yes; then
12989         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990       else
12991         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12992       fi
12993       runpath_var='LD_RUN_PATH'
12994       hardcode_shlibpath_var=no
12995       ;;
12996
12997     sysv5*)
12998       no_undefined_flag=' -z text'
12999       # $CC -shared without GNU ld will not create a library from C++
13000       # object files and a static libstdc++, better avoid it by now
13001       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13002       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13004       hardcode_libdir_flag_spec=
13005       hardcode_shlibpath_var=no
13006       runpath_var='LD_RUN_PATH'
13007       ;;
13008
13009     uts4*)
13010       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13011       hardcode_libdir_flag_spec='-L$libdir'
13012       hardcode_shlibpath_var=no
13013       ;;
13014
13015     *)
13016       ld_shlibs=no
13017       ;;
13018     esac
13019   fi
13020
13021 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13022 echo "${ECHO_T}$ld_shlibs" >&6
13023 test "$ld_shlibs" = no && can_build_shared=no
13024
13025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13026 if test "$GCC" = yes; then
13027   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13028 fi
13029
13030 #
13031 # Do we need to explicitly link libc?
13032 #
13033 case "x$archive_cmds_need_lc" in
13034 x|xyes)
13035   # Assume -lc should be added
13036   archive_cmds_need_lc=yes
13037
13038   if test "$enable_shared" = yes && test "$GCC" = yes; then
13039     case $archive_cmds in
13040     *'~'*)
13041       # FIXME: we may have to deal with multi-command sequences.
13042       ;;
13043     '$CC '*)
13044       # Test whether the compiler implicitly links with -lc since on some
13045       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13046       # to ld, don't add -lc before -lgcc.
13047       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13048 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13049       $rm conftest*
13050       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13051
13052       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053   (eval $ac_compile) 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); } 2>conftest.err; then
13057         soname=conftest
13058         lib=conftest
13059         libobjs=conftest.$ac_objext
13060         deplibs=
13061         wl=$lt_prog_compiler_wl
13062         compiler_flags=-v
13063         linker_flags=-v
13064         verstring=
13065         output_objdir=.
13066         libname=conftest
13067         lt_save_allow_undefined_flag=$allow_undefined_flag
13068         allow_undefined_flag=
13069         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13070   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }
13074         then
13075           archive_cmds_need_lc=no
13076         else
13077           archive_cmds_need_lc=yes
13078         fi
13079         allow_undefined_flag=$lt_save_allow_undefined_flag
13080       else
13081         cat conftest.err 1>&5
13082       fi
13083       $rm conftest*
13084       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13085 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13086       ;;
13087     esac
13088   fi
13089   ;;
13090 esac
13091
13092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13094 library_names_spec=
13095 libname_spec='lib$name'
13096 soname_spec=
13097 shrext_cmds=".so"
13098 postinstall_cmds=
13099 postuninstall_cmds=
13100 finish_cmds=
13101 finish_eval=
13102 shlibpath_var=
13103 shlibpath_overrides_runpath=unknown
13104 version_type=none
13105 dynamic_linker="$host_os ld.so"
13106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13107 if test "$GCC" = yes; then
13108   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13109   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13110     # if the path contains ";" then we assume it to be the separator
13111     # otherwise default to the standard path separator (i.e. ":") - it is
13112     # assumed that no part of a normal pathname contains ";" but that should
13113     # okay in the real world where ";" in dirpaths is itself problematic.
13114     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13115   else
13116     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13117   fi
13118 else
13119   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13120 fi
13121 need_lib_prefix=unknown
13122 hardcode_into_libs=no
13123
13124 # when you set need_version to no, make sure it does not cause -set_version
13125 # flags to be left without arguments
13126 need_version=unknown
13127
13128 case $host_os in
13129 aix3*)
13130   version_type=linux
13131   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13132   shlibpath_var=LIBPATH
13133
13134   # AIX 3 has no versioning support, so we append a major version to the name.
13135   soname_spec='${libname}${release}${shared_ext}$major'
13136   ;;
13137
13138 aix4* | aix5*)
13139   version_type=linux
13140   need_lib_prefix=no
13141   need_version=no
13142   hardcode_into_libs=yes
13143   if test "$host_cpu" = ia64; then
13144     # AIX 5 supports IA64
13145     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13146     shlibpath_var=LD_LIBRARY_PATH
13147   else
13148     # With GCC up to 2.95.x, collect2 would create an import file
13149     # for dependence libraries.  The import file would start with
13150     # the line `#! .'.  This would cause the generated library to
13151     # depend on `.', always an invalid library.  This was fixed in
13152     # development snapshots of GCC prior to 3.0.
13153     case $host_os in
13154       aix4 | aix4.[01] | aix4.[01].*)
13155       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13156            echo ' yes '
13157            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13158         :
13159       else
13160         can_build_shared=no
13161       fi
13162       ;;
13163     esac
13164     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13165     # soname into executable. Probably we can add versioning support to
13166     # collect2, so additional links can be useful in future.
13167     if test "$aix_use_runtimelinking" = yes; then
13168       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13169       # instead of lib<name>.a to let people know that these are not
13170       # typical AIX shared libraries.
13171       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172     else
13173       # We preserve .a as extension for shared libraries through AIX4.2
13174       # and later when we are not doing run time linking.
13175       library_names_spec='${libname}${release}.a $libname.a'
13176       soname_spec='${libname}${release}${shared_ext}$major'
13177     fi
13178     shlibpath_var=LIBPATH
13179   fi
13180   ;;
13181
13182 amigaos*)
13183   library_names_spec='$libname.ixlibrary $libname.a'
13184   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13185   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'
13186   ;;
13187
13188 beos*)
13189   library_names_spec='${libname}${shared_ext}'
13190   dynamic_linker="$host_os ld.so"
13191   shlibpath_var=LIBRARY_PATH
13192   ;;
13193
13194 bsdi[45]*)
13195   version_type=linux
13196   need_version=no
13197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198   soname_spec='${libname}${release}${shared_ext}$major'
13199   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13200   shlibpath_var=LD_LIBRARY_PATH
13201   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13202   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13203   # the default ld.so.conf also contains /usr/contrib/lib and
13204   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13205   # libtool to hard-code these into programs
13206   ;;
13207
13208 cygwin* | mingw* | pw32*)
13209   version_type=windows
13210   shrext_cmds=".dll"
13211   need_version=no
13212   need_lib_prefix=no
13213
13214   case $GCC,$host_os in
13215   yes,cygwin* | yes,mingw* | yes,pw32*)
13216     library_names_spec='$libname.dll.a'
13217     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13218     postinstall_cmds='base_file=`basename \${file}`~
13219       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13220       dldir=$destdir/`dirname \$dlpath`~
13221       test -d \$dldir || mkdir -p \$dldir~
13222       $install_prog $dir/$dlname \$dldir/$dlname'
13223     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13224       dlpath=$dir/\$dldll~
13225        $rm \$dlpath'
13226     shlibpath_overrides_runpath=yes
13227
13228     case $host_os in
13229     cygwin*)
13230       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13231       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13232       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13233       ;;
13234     mingw*)
13235       # MinGW DLLs use traditional 'lib' prefix
13236       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13237       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13238       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13239         # It is most probably a Windows format PATH printed by
13240         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13241         # path with ; separators, and with drive letters. We can handle the
13242         # drive letters (cygwin fileutils understands them), so leave them,
13243         # especially as we might pass files found there to a mingw objdump,
13244         # which wouldn't understand a cygwinified path. Ahh.
13245         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13246       else
13247         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13248       fi
13249       ;;
13250     pw32*)
13251       # pw32 DLLs use 'pw' prefix rather than 'lib'
13252       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13253       ;;
13254     esac
13255     ;;
13256
13257   *)
13258     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13259     ;;
13260   esac
13261   dynamic_linker='Win32 ld.exe'
13262   # FIXME: first we should search . and the directory the executable is in
13263   shlibpath_var=PATH
13264   ;;
13265
13266 darwin* | rhapsody*)
13267   dynamic_linker="$host_os dyld"
13268   version_type=darwin
13269   need_lib_prefix=no
13270   need_version=no
13271   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13272   soname_spec='${libname}${release}${major}$shared_ext'
13273   shlibpath_overrides_runpath=yes
13274   shlibpath_var=DYLD_LIBRARY_PATH
13275   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13276   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13277   if test "$GCC" = yes; then
13278     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"`
13279   else
13280     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13281   fi
13282   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13283   ;;
13284
13285 dgux*)
13286   version_type=linux
13287   need_lib_prefix=no
13288   need_version=no
13289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13290   soname_spec='${libname}${release}${shared_ext}$major'
13291   shlibpath_var=LD_LIBRARY_PATH
13292   ;;
13293
13294 freebsd1*)
13295   dynamic_linker=no
13296   ;;
13297
13298 kfreebsd*-gnu)
13299   version_type=linux
13300   need_lib_prefix=no
13301   need_version=no
13302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13303   soname_spec='${libname}${release}${shared_ext}$major'
13304   shlibpath_var=LD_LIBRARY_PATH
13305   shlibpath_overrides_runpath=no
13306   hardcode_into_libs=yes
13307   dynamic_linker='GNU ld.so'
13308   ;;
13309
13310 freebsd*)
13311   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13312   version_type=freebsd-$objformat
13313   case $version_type in
13314     freebsd-elf*)
13315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13316       need_version=no
13317       need_lib_prefix=no
13318       ;;
13319     freebsd-*)
13320       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13321       need_version=yes
13322       ;;
13323   esac
13324   shlibpath_var=LD_LIBRARY_PATH
13325   case $host_os in
13326   freebsd2*)
13327     shlibpath_overrides_runpath=yes
13328     ;;
13329   freebsd3.01* | freebsdelf3.01*)
13330     shlibpath_overrides_runpath=yes
13331     hardcode_into_libs=yes
13332     ;;
13333   *) # from 3.2 on
13334     shlibpath_overrides_runpath=no
13335     hardcode_into_libs=yes
13336     ;;
13337   esac
13338   ;;
13339
13340 gnu*)
13341   version_type=linux
13342   need_lib_prefix=no
13343   need_version=no
13344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13345   soname_spec='${libname}${release}${shared_ext}$major'
13346   shlibpath_var=LD_LIBRARY_PATH
13347   hardcode_into_libs=yes
13348   ;;
13349
13350 hpux9* | hpux10* | hpux11*)
13351   # Give a soname corresponding to the major version so that dld.sl refuses to
13352   # link against other versions.
13353   version_type=sunos
13354   need_lib_prefix=no
13355   need_version=no
13356   case "$host_cpu" in
13357   ia64*)
13358     shrext_cmds='.so'
13359     hardcode_into_libs=yes
13360     dynamic_linker="$host_os dld.so"
13361     shlibpath_var=LD_LIBRARY_PATH
13362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13364     soname_spec='${libname}${release}${shared_ext}$major'
13365     if test "X$HPUX_IA64_MODE" = X32; then
13366       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13367     else
13368       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13369     fi
13370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13371     ;;
13372    hppa*64*)
13373      shrext_cmds='.sl'
13374      hardcode_into_libs=yes
13375      dynamic_linker="$host_os dld.sl"
13376      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13377      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13381      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13382      ;;
13383    *)
13384     shrext_cmds='.sl'
13385     dynamic_linker="$host_os dld.sl"
13386     shlibpath_var=SHLIB_PATH
13387     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389     soname_spec='${libname}${release}${shared_ext}$major'
13390     ;;
13391   esac
13392   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13393   postinstall_cmds='chmod 555 $lib'
13394   ;;
13395
13396 irix5* | irix6* | nonstopux*)
13397   case $host_os in
13398     nonstopux*) version_type=nonstopux ;;
13399     *)
13400         if test "$lt_cv_prog_gnu_ld" = yes; then
13401                 version_type=linux
13402         else
13403                 version_type=irix
13404         fi ;;
13405   esac
13406   need_lib_prefix=no
13407   need_version=no
13408   soname_spec='${libname}${release}${shared_ext}$major'
13409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13410   case $host_os in
13411   irix5* | nonstopux*)
13412     libsuff= shlibsuff=
13413     ;;
13414   *)
13415     case $LD in # libtool.m4 will add one of these switches to LD
13416     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13417       libsuff= shlibsuff= libmagic=32-bit;;
13418     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13419       libsuff=32 shlibsuff=N32 libmagic=N32;;
13420     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13421       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13422     *) libsuff= shlibsuff= libmagic=never-match;;
13423     esac
13424     ;;
13425   esac
13426   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13427   shlibpath_overrides_runpath=no
13428   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13429   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13430   hardcode_into_libs=yes
13431   ;;
13432
13433 # No shared lib support for Linux oldld, aout, or coff.
13434 linux*oldld* | linux*aout* | linux*coff*)
13435   dynamic_linker=no
13436   ;;
13437
13438 # This must be Linux ELF.
13439 linux*)
13440   version_type=linux
13441   need_lib_prefix=no
13442   need_version=no
13443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444   soname_spec='${libname}${release}${shared_ext}$major'
13445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13446   shlibpath_var=LD_LIBRARY_PATH
13447   shlibpath_overrides_runpath=no
13448   # This implies no fast_install, which is unacceptable.
13449   # Some rework will be needed to allow for fast_install
13450   # before this can be enabled.
13451   hardcode_into_libs=yes
13452
13453   # Append ld.so.conf contents to the search path
13454   if test -f /etc/ld.so.conf; then
13455     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13456     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13457   fi
13458
13459   # We used to test for /lib/ld.so.1 and disable shared libraries on
13460   # powerpc, because MkLinux only supported shared libraries with the
13461   # GNU dynamic linker.  Since this was broken with cross compilers,
13462   # most powerpc-linux boxes support dynamic linking these days and
13463   # people can always --disable-shared, the test was removed, and we
13464   # assume the GNU/Linux dynamic linker is in use.
13465   dynamic_linker='GNU/Linux ld.so'
13466   ;;
13467
13468 knetbsd*-gnu)
13469   version_type=linux
13470   need_lib_prefix=no
13471   need_version=no
13472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13473   soname_spec='${libname}${release}${shared_ext}$major'
13474   shlibpath_var=LD_LIBRARY_PATH
13475   shlibpath_overrides_runpath=no
13476   hardcode_into_libs=yes
13477   dynamic_linker='GNU ld.so'
13478   ;;
13479
13480 netbsd*)
13481   version_type=sunos
13482   need_lib_prefix=no
13483   need_version=no
13484   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13486     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13487     dynamic_linker='NetBSD (a.out) ld.so'
13488   else
13489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13490     soname_spec='${libname}${release}${shared_ext}$major'
13491     dynamic_linker='NetBSD ld.elf_so'
13492   fi
13493   shlibpath_var=LD_LIBRARY_PATH
13494   shlibpath_overrides_runpath=yes
13495   hardcode_into_libs=yes
13496   ;;
13497
13498 newsos6)
13499   version_type=linux
13500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501   shlibpath_var=LD_LIBRARY_PATH
13502   shlibpath_overrides_runpath=yes
13503   ;;
13504
13505 nto-qnx*)
13506   version_type=linux
13507   need_lib_prefix=no
13508   need_version=no
13509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510   soname_spec='${libname}${release}${shared_ext}$major'
13511   shlibpath_var=LD_LIBRARY_PATH
13512   shlibpath_overrides_runpath=yes
13513   ;;
13514
13515 openbsd*)
13516   version_type=sunos
13517   need_lib_prefix=no
13518   need_version=no
13519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13520   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13521   shlibpath_var=LD_LIBRARY_PATH
13522   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13523     case $host_os in
13524       openbsd2.[89] | openbsd2.[89].*)
13525         shlibpath_overrides_runpath=no
13526         ;;
13527       *)
13528         shlibpath_overrides_runpath=yes
13529         ;;
13530       esac
13531   else
13532     shlibpath_overrides_runpath=yes
13533   fi
13534   ;;
13535
13536 os2*)
13537   libname_spec='$name'
13538   shrext_cmds=".dll"
13539   need_lib_prefix=no
13540   library_names_spec='$libname${shared_ext} $libname.a'
13541   dynamic_linker='OS/2 ld.exe'
13542   shlibpath_var=LIBPATH
13543   ;;
13544
13545 osf3* | osf4* | osf5*)
13546   version_type=osf
13547   need_lib_prefix=no
13548   need_version=no
13549   soname_spec='${libname}${release}${shared_ext}$major'
13550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551   shlibpath_var=LD_LIBRARY_PATH
13552   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13553   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13554   ;;
13555
13556 sco3.2v5*)
13557   version_type=osf
13558   soname_spec='${libname}${release}${shared_ext}$major'
13559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560   shlibpath_var=LD_LIBRARY_PATH
13561   ;;
13562
13563 solaris*)
13564   version_type=linux
13565   need_lib_prefix=no
13566   need_version=no
13567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568   soname_spec='${libname}${release}${shared_ext}$major'
13569   shlibpath_var=LD_LIBRARY_PATH
13570   shlibpath_overrides_runpath=yes
13571   hardcode_into_libs=yes
13572   # ldd complains unless libraries are executable
13573   postinstall_cmds='chmod +x $lib'
13574   ;;
13575
13576 sunos4*)
13577   version_type=sunos
13578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13579   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13580   shlibpath_var=LD_LIBRARY_PATH
13581   shlibpath_overrides_runpath=yes
13582   if test "$with_gnu_ld" = yes; then
13583     need_lib_prefix=no
13584   fi
13585   need_version=yes
13586   ;;
13587
13588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13589   version_type=linux
13590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591   soname_spec='${libname}${release}${shared_ext}$major'
13592   shlibpath_var=LD_LIBRARY_PATH
13593   case $host_vendor in
13594     sni)
13595       shlibpath_overrides_runpath=no
13596       need_lib_prefix=no
13597       export_dynamic_flag_spec='${wl}-Blargedynsym'
13598       runpath_var=LD_RUN_PATH
13599       ;;
13600     siemens)
13601       need_lib_prefix=no
13602       ;;
13603     motorola)
13604       need_lib_prefix=no
13605       need_version=no
13606       shlibpath_overrides_runpath=no
13607       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13608       ;;
13609   esac
13610   ;;
13611
13612 sysv4*MP*)
13613   if test -d /usr/nec ;then
13614     version_type=linux
13615     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13616     soname_spec='$libname${shared_ext}.$major'
13617     shlibpath_var=LD_LIBRARY_PATH
13618   fi
13619   ;;
13620
13621 uts4*)
13622   version_type=linux
13623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624   soname_spec='${libname}${release}${shared_ext}$major'
13625   shlibpath_var=LD_LIBRARY_PATH
13626   ;;
13627
13628 *)
13629   dynamic_linker=no
13630   ;;
13631 esac
13632 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13633 echo "${ECHO_T}$dynamic_linker" >&6
13634 test "$dynamic_linker" = no && can_build_shared=no
13635
13636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13638 hardcode_action=
13639 if test -n "$hardcode_libdir_flag_spec" || \
13640    test -n "$runpath_var" || \
13641    test "X$hardcode_automatic" = "Xyes" ; then
13642
13643   # We can hardcode non-existant directories.
13644   if test "$hardcode_direct" != no &&
13645      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13646      # have to relink, otherwise we might link with an installed library
13647      # when we should be linking with a yet-to-be-installed one
13648      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13649      test "$hardcode_minus_L" != no; then
13650     # Linking always hardcodes the temporary library directory.
13651     hardcode_action=relink
13652   else
13653     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13654     hardcode_action=immediate
13655   fi
13656 else
13657   # We cannot hardcode anything, or else we can only hardcode existing
13658   # directories.
13659   hardcode_action=unsupported
13660 fi
13661 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13662 echo "${ECHO_T}$hardcode_action" >&6
13663
13664 if test "$hardcode_action" = relink; then
13665   # Fast installation is not supported
13666   enable_fast_install=no
13667 elif test "$shlibpath_overrides_runpath" = yes ||
13668      test "$enable_shared" = no; then
13669   # Fast installation is not necessary
13670   enable_fast_install=needless
13671 fi
13672
13673 striplib=
13674 old_striplib=
13675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13678   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13679   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13680   echo "$as_me:$LINENO: result: yes" >&5
13681 echo "${ECHO_T}yes" >&6
13682 else
13683 # FIXME - insert some real tests, host_os isn't really good enough
13684   case $host_os in
13685    darwin*)
13686        if test -n "$STRIP" ; then
13687          striplib="$STRIP -x"
13688          echo "$as_me:$LINENO: result: yes" >&5
13689 echo "${ECHO_T}yes" >&6
13690        else
13691   echo "$as_me:$LINENO: result: no" >&5
13692 echo "${ECHO_T}no" >&6
13693 fi
13694        ;;
13695    *)
13696   echo "$as_me:$LINENO: result: no" >&5
13697 echo "${ECHO_T}no" >&6
13698     ;;
13699   esac
13700 fi
13701
13702 if test "x$enable_dlopen" != xyes; then
13703   enable_dlopen=unknown
13704   enable_dlopen_self=unknown
13705   enable_dlopen_self_static=unknown
13706 else
13707   lt_cv_dlopen=no
13708   lt_cv_dlopen_libs=
13709
13710   case $host_os in
13711   beos*)
13712     lt_cv_dlopen="load_add_on"
13713     lt_cv_dlopen_libs=
13714     lt_cv_dlopen_self=yes
13715     ;;
13716
13717   mingw* | pw32*)
13718     lt_cv_dlopen="LoadLibrary"
13719     lt_cv_dlopen_libs=
13720    ;;
13721
13722   cygwin*)
13723     lt_cv_dlopen="dlopen"
13724     lt_cv_dlopen_libs=
13725    ;;
13726
13727   darwin*)
13728   # if libdl is installed we need to link against it
13729     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   ac_check_lib_save_LIBS=$LIBS
13735 LIBS="-ldl  $LIBS"
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742
13743 /* Override any gcc2 internal prototype to avoid an error.  */
13744 #ifdef __cplusplus
13745 extern "C"
13746 #endif
13747 /* We use char because int might match the return type of a gcc2
13748    builtin and then its argument prototype would still apply.  */
13749 char dlopen ();
13750 int
13751 main ()
13752 {
13753 dlopen ();
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 rm -f conftest.$ac_objext conftest$ac_exeext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13760   (eval $ac_link) 2>conftest.er1
13761   ac_status=$?
13762   grep -v '^ *+' conftest.er1 >conftest.err
13763   rm -f conftest.er1
13764   cat conftest.err >&5
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); } &&
13767          { ac_try='test -z "$ac_c_werror_flag"
13768                          || test ! -s conftest.err'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; } &&
13774          { ac_try='test -s conftest$ac_exeext'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   ac_cv_lib_dl_dlopen=yes
13781 else
13782   echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785 ac_cv_lib_dl_dlopen=no
13786 fi
13787 rm -f conftest.err conftest.$ac_objext \
13788       conftest$ac_exeext conftest.$ac_ext
13789 LIBS=$ac_check_lib_save_LIBS
13790 fi
13791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13793 if test $ac_cv_lib_dl_dlopen = yes; then
13794   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13795 else
13796
13797     lt_cv_dlopen="dyld"
13798     lt_cv_dlopen_libs=
13799     lt_cv_dlopen_self=yes
13800
13801 fi
13802
13803    ;;
13804
13805   *)
13806     echo "$as_me:$LINENO: checking for shl_load" >&5
13807 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13808 if test "${ac_cv_func_shl_load+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811   cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13819 #define shl_load innocuous_shl_load
13820
13821 /* System header to define __stub macros and hopefully few prototypes,
13822     which can conflict with char shl_load (); below.
13823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13824     <limits.h> exists even on freestanding compilers.  */
13825
13826 #ifdef __STDC__
13827 # include <limits.h>
13828 #else
13829 # include <assert.h>
13830 #endif
13831
13832 #undef shl_load
13833
13834 /* Override any gcc2 internal prototype to avoid an error.  */
13835 #ifdef __cplusplus
13836 extern "C"
13837 {
13838 #endif
13839 /* We use char because int might match the return type of a gcc2
13840    builtin and then its argument prototype would still apply.  */
13841 char shl_load ();
13842 /* The GNU C library defines this for functions which it implements
13843     to always fail with ENOSYS.  Some functions are actually named
13844     something starting with __ and the normal name is an alias.  */
13845 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13846 choke me
13847 #else
13848 char (*f) () = shl_load;
13849 #endif
13850 #ifdef __cplusplus
13851 }
13852 #endif
13853
13854 int
13855 main ()
13856 {
13857 return f != shl_load;
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 rm -f conftest.$ac_objext conftest$ac_exeext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13864   (eval $ac_link) 2>conftest.er1
13865   ac_status=$?
13866   grep -v '^ *+' conftest.er1 >conftest.err
13867   rm -f conftest.er1
13868   cat conftest.err >&5
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); } &&
13871          { ac_try='test -z "$ac_c_werror_flag"
13872                          || test ! -s conftest.err'
13873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874   (eval $ac_try) 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); }; } &&
13878          { ac_try='test -s conftest$ac_exeext'
13879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880   (eval $ac_try) 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); }; }; then
13884   ac_cv_func_shl_load=yes
13885 else
13886   echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889 ac_cv_func_shl_load=no
13890 fi
13891 rm -f conftest.err conftest.$ac_objext \
13892       conftest$ac_exeext conftest.$ac_ext
13893 fi
13894 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13896 if test $ac_cv_func_shl_load = yes; then
13897   lt_cv_dlopen="shl_load"
13898 else
13899   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-ldld  $LIBS"
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912
13913 /* Override any gcc2 internal prototype to avoid an error.  */
13914 #ifdef __cplusplus
13915 extern "C"
13916 #endif
13917 /* We use char because int might match the return type of a gcc2
13918    builtin and then its argument prototype would still apply.  */
13919 char shl_load ();
13920 int
13921 main ()
13922 {
13923 shl_load ();
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_lib_dld_shl_load=yes
13951 else
13952   echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 ac_cv_lib_dld_shl_load=no
13956 fi
13957 rm -f conftest.err conftest.$ac_objext \
13958       conftest$ac_exeext conftest.$ac_ext
13959 LIBS=$ac_check_lib_save_LIBS
13960 fi
13961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13963 if test $ac_cv_lib_dld_shl_load = yes; then
13964   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13965 else
13966   echo "$as_me:$LINENO: checking for dlopen" >&5
13967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13968 if test "${ac_cv_func_dlopen+set}" = set; then
13969   echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971   cat >conftest.$ac_ext <<_ACEOF
13972 /* confdefs.h.  */
13973 _ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h.  */
13977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13979 #define dlopen innocuous_dlopen
13980
13981 /* System header to define __stub macros and hopefully few prototypes,
13982     which can conflict with char dlopen (); below.
13983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13984     <limits.h> exists even on freestanding compilers.  */
13985
13986 #ifdef __STDC__
13987 # include <limits.h>
13988 #else
13989 # include <assert.h>
13990 #endif
13991
13992 #undef dlopen
13993
13994 /* Override any gcc2 internal prototype to avoid an error.  */
13995 #ifdef __cplusplus
13996 extern "C"
13997 {
13998 #endif
13999 /* We use char because int might match the return type of a gcc2
14000    builtin and then its argument prototype would still apply.  */
14001 char dlopen ();
14002 /* The GNU C library defines this for functions which it implements
14003     to always fail with ENOSYS.  Some functions are actually named
14004     something starting with __ and the normal name is an alias.  */
14005 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14006 choke me
14007 #else
14008 char (*f) () = dlopen;
14009 #endif
14010 #ifdef __cplusplus
14011 }
14012 #endif
14013
14014 int
14015 main ()
14016 {
14017 return f != dlopen;
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024   (eval $ac_link) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest$ac_exeext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_cv_func_dlopen=yes
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_cv_func_dlopen=no
14050 fi
14051 rm -f conftest.err conftest.$ac_objext \
14052       conftest$ac_exeext conftest.$ac_ext
14053 fi
14054 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14055 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14056 if test $ac_cv_func_dlopen = yes; then
14057   lt_cv_dlopen="dlopen"
14058 else
14059   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14062   echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064   ac_check_lib_save_LIBS=$LIBS
14065 LIBS="-ldl  $LIBS"
14066 cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h.  */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h.  */
14072
14073 /* Override any gcc2 internal prototype to avoid an error.  */
14074 #ifdef __cplusplus
14075 extern "C"
14076 #endif
14077 /* We use char because int might match the return type of a gcc2
14078    builtin and then its argument prototype would still apply.  */
14079 char dlopen ();
14080 int
14081 main ()
14082 {
14083 dlopen ();
14084   ;
14085   return 0;
14086 }
14087 _ACEOF
14088 rm -f conftest.$ac_objext conftest$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090   (eval $ac_link) 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -z "$ac_c_werror_flag"
14098                          || test ! -s conftest.err'
14099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100   (eval $ac_try) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; } &&
14104          { ac_try='test -s conftest$ac_exeext'
14105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106   (eval $ac_try) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; }; then
14110   ac_cv_lib_dl_dlopen=yes
14111 else
14112   echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 ac_cv_lib_dl_dlopen=no
14116 fi
14117 rm -f conftest.err conftest.$ac_objext \
14118       conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14120 fi
14121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14123 if test $ac_cv_lib_dl_dlopen = yes; then
14124   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14125 else
14126   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-lsvld  $LIBS"
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h.  */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h.  */
14139
14140 /* Override any gcc2 internal prototype to avoid an error.  */
14141 #ifdef __cplusplus
14142 extern "C"
14143 #endif
14144 /* We use char because int might match the return type of a gcc2
14145    builtin and then its argument prototype would still apply.  */
14146 char dlopen ();
14147 int
14148 main ()
14149 {
14150 dlopen ();
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157   (eval $ac_link) 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } &&
14164          { ac_try='test -z "$ac_c_werror_flag"
14165                          || test ! -s conftest.err'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; } &&
14171          { ac_try='test -s conftest$ac_exeext'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; }; then
14177   ac_cv_lib_svld_dlopen=yes
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_cv_lib_svld_dlopen=no
14183 fi
14184 rm -f conftest.err conftest.$ac_objext \
14185       conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14187 fi
14188 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14190 if test $ac_cv_lib_svld_dlopen = yes; then
14191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14192 else
14193   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198   ac_check_lib_save_LIBS=$LIBS
14199 LIBS="-ldld  $LIBS"
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h.  */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h.  */
14206
14207 /* Override any gcc2 internal prototype to avoid an error.  */
14208 #ifdef __cplusplus
14209 extern "C"
14210 #endif
14211 /* We use char because int might match the return type of a gcc2
14212    builtin and then its argument prototype would still apply.  */
14213 char dld_link ();
14214 int
14215 main ()
14216 {
14217 dld_link ();
14218   ;
14219   return 0;
14220 }
14221 _ACEOF
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14224   (eval $ac_link) 2>conftest.er1
14225   ac_status=$?
14226   grep -v '^ *+' conftest.er1 >conftest.err
14227   rm -f conftest.er1
14228   cat conftest.err >&5
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } &&
14231          { ac_try='test -z "$ac_c_werror_flag"
14232                          || test ! -s conftest.err'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; } &&
14238          { ac_try='test -s conftest$ac_exeext'
14239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240   (eval $ac_try) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; }; then
14244   ac_cv_lib_dld_dld_link=yes
14245 else
14246   echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249 ac_cv_lib_dld_dld_link=no
14250 fi
14251 rm -f conftest.err conftest.$ac_objext \
14252       conftest$ac_exeext conftest.$ac_ext
14253 LIBS=$ac_check_lib_save_LIBS
14254 fi
14255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14257 if test $ac_cv_lib_dld_dld_link = yes; then
14258   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14259 fi
14260
14261
14262 fi
14263
14264
14265 fi
14266
14267
14268 fi
14269
14270
14271 fi
14272
14273
14274 fi
14275
14276     ;;
14277   esac
14278
14279   if test "x$lt_cv_dlopen" != xno; then
14280     enable_dlopen=yes
14281   else
14282     enable_dlopen=no
14283   fi
14284
14285   case $lt_cv_dlopen in
14286   dlopen)
14287     save_CPPFLAGS="$CPPFLAGS"
14288     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14289
14290     save_LDFLAGS="$LDFLAGS"
14291     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14292
14293     save_LIBS="$LIBS"
14294     LIBS="$lt_cv_dlopen_libs $LIBS"
14295
14296     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14297 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14298 if test "${lt_cv_dlopen_self+set}" = set; then
14299   echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301           if test "$cross_compiling" = yes; then :
14302   lt_cv_dlopen_self=cross
14303 else
14304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14305   lt_status=$lt_dlunknown
14306   cat > conftest.$ac_ext <<EOF
14307 #line 14307 "configure"
14308 #include "confdefs.h"
14309
14310 #if HAVE_DLFCN_H
14311 #include <dlfcn.h>
14312 #endif
14313
14314 #include <stdio.h>
14315
14316 #ifdef RTLD_GLOBAL
14317 #  define LT_DLGLOBAL           RTLD_GLOBAL
14318 #else
14319 #  ifdef DL_GLOBAL
14320 #    define LT_DLGLOBAL         DL_GLOBAL
14321 #  else
14322 #    define LT_DLGLOBAL         0
14323 #  endif
14324 #endif
14325
14326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14327    find out it does not work in some platform. */
14328 #ifndef LT_DLLAZY_OR_NOW
14329 #  ifdef RTLD_LAZY
14330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14331 #  else
14332 #    ifdef DL_LAZY
14333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14334 #    else
14335 #      ifdef RTLD_NOW
14336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14337 #      else
14338 #        ifdef DL_NOW
14339 #          define LT_DLLAZY_OR_NOW      DL_NOW
14340 #        else
14341 #          define LT_DLLAZY_OR_NOW      0
14342 #        endif
14343 #      endif
14344 #    endif
14345 #  endif
14346 #endif
14347
14348 #ifdef __cplusplus
14349 extern "C" void exit (int);
14350 #endif
14351
14352 void fnord() { int i=42;}
14353 int main ()
14354 {
14355   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14356   int status = $lt_dlunknown;
14357
14358   if (self)
14359     {
14360       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14361       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14362       /* dlclose (self); */
14363     }
14364
14365     exit (status);
14366 }
14367 EOF
14368   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14369   (eval $ac_link) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14373     (./conftest; exit; ) 2>/dev/null
14374     lt_status=$?
14375     case x$lt_status in
14376       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14377       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14378       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14379     esac
14380   else :
14381     # compilation failed
14382     lt_cv_dlopen_self=no
14383   fi
14384 fi
14385 rm -fr conftest*
14386
14387
14388 fi
14389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14390 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14391
14392     if test "x$lt_cv_dlopen_self" = xyes; then
14393       LDFLAGS="$LDFLAGS $link_static_flag"
14394       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14395 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14396 if test "${lt_cv_dlopen_self_static+set}" = set; then
14397   echo $ECHO_N "(cached) $ECHO_C" >&6
14398 else
14399           if test "$cross_compiling" = yes; then :
14400   lt_cv_dlopen_self_static=cross
14401 else
14402   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14403   lt_status=$lt_dlunknown
14404   cat > conftest.$ac_ext <<EOF
14405 #line 14405 "configure"
14406 #include "confdefs.h"
14407
14408 #if HAVE_DLFCN_H
14409 #include <dlfcn.h>
14410 #endif
14411
14412 #include <stdio.h>
14413
14414 #ifdef RTLD_GLOBAL
14415 #  define LT_DLGLOBAL           RTLD_GLOBAL
14416 #else
14417 #  ifdef DL_GLOBAL
14418 #    define LT_DLGLOBAL         DL_GLOBAL
14419 #  else
14420 #    define LT_DLGLOBAL         0
14421 #  endif
14422 #endif
14423
14424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14425    find out it does not work in some platform. */
14426 #ifndef LT_DLLAZY_OR_NOW
14427 #  ifdef RTLD_LAZY
14428 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14429 #  else
14430 #    ifdef DL_LAZY
14431 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14432 #    else
14433 #      ifdef RTLD_NOW
14434 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14435 #      else
14436 #        ifdef DL_NOW
14437 #          define LT_DLLAZY_OR_NOW      DL_NOW
14438 #        else
14439 #          define LT_DLLAZY_OR_NOW      0
14440 #        endif
14441 #      endif
14442 #    endif
14443 #  endif
14444 #endif
14445
14446 #ifdef __cplusplus
14447 extern "C" void exit (int);
14448 #endif
14449
14450 void fnord() { int i=42;}
14451 int main ()
14452 {
14453   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14454   int status = $lt_dlunknown;
14455
14456   if (self)
14457     {
14458       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14459       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14460       /* dlclose (self); */
14461     }
14462
14463     exit (status);
14464 }
14465 EOF
14466   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467   (eval $ac_link) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14471     (./conftest; exit; ) 2>/dev/null
14472     lt_status=$?
14473     case x$lt_status in
14474       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14475       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14476       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14477     esac
14478   else :
14479     # compilation failed
14480     lt_cv_dlopen_self_static=no
14481   fi
14482 fi
14483 rm -fr conftest*
14484
14485
14486 fi
14487 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14488 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14489     fi
14490
14491     CPPFLAGS="$save_CPPFLAGS"
14492     LDFLAGS="$save_LDFLAGS"
14493     LIBS="$save_LIBS"
14494     ;;
14495   esac
14496
14497   case $lt_cv_dlopen_self in
14498   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14499   *) enable_dlopen_self=unknown ;;
14500   esac
14501
14502   case $lt_cv_dlopen_self_static in
14503   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14504   *) enable_dlopen_self_static=unknown ;;
14505   esac
14506 fi
14507
14508
14509 # Report which librarie types wil actually be built
14510 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14511 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14512 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14513 echo "${ECHO_T}$can_build_shared" >&6
14514
14515 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14516 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14517 test "$can_build_shared" = "no" && enable_shared=no
14518
14519 # On AIX, shared libraries and static libraries use the same namespace, and
14520 # are all built from PIC.
14521 case "$host_os" in
14522 aix3*)
14523   test "$enable_shared" = yes && enable_static=no
14524   if test -n "$RANLIB"; then
14525     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14526     postinstall_cmds='$RANLIB $lib'
14527   fi
14528   ;;
14529
14530 aix4* | aix5*)
14531   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14532     test "$enable_shared" = yes && enable_static=no
14533   fi
14534     ;;
14535 esac
14536 echo "$as_me:$LINENO: result: $enable_shared" >&5
14537 echo "${ECHO_T}$enable_shared" >&6
14538
14539 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14540 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14541 # Make sure either enable_shared or enable_static is yes.
14542 test "$enable_shared" = yes || enable_static=yes
14543 echo "$as_me:$LINENO: result: $enable_static" >&5
14544 echo "${ECHO_T}$enable_static" >&6
14545
14546 # The else clause should only fire when bootstrapping the
14547 # libtool distribution, otherwise you forgot to ship ltmain.sh
14548 # with your package, and you will get complaints that there are
14549 # no rules to generate ltmain.sh.
14550 if test -f "$ltmain"; then
14551   # See if we are running on zsh, and set the options which allow our commands through
14552   # without removal of \ escapes.
14553   if test -n "${ZSH_VERSION+set}" ; then
14554     setopt NO_GLOB_SUBST
14555   fi
14556   # Now quote all the things that may contain metacharacters while being
14557   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14558   # variables and quote the copies for generation of the libtool script.
14559   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14560     SED SHELL STRIP \
14561     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14562     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14563     deplibs_check_method reload_flag reload_cmds need_locks \
14564     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14565     lt_cv_sys_global_symbol_to_c_name_address \
14566     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14567     old_postinstall_cmds old_postuninstall_cmds \
14568     compiler \
14569     CC \
14570     LD \
14571     lt_prog_compiler_wl \
14572     lt_prog_compiler_pic \
14573     lt_prog_compiler_static \
14574     lt_prog_compiler_no_builtin_flag \
14575     export_dynamic_flag_spec \
14576     thread_safe_flag_spec \
14577     whole_archive_flag_spec \
14578     enable_shared_with_static_runtimes \
14579     old_archive_cmds \
14580     old_archive_from_new_cmds \
14581     predep_objects \
14582     postdep_objects \
14583     predeps \
14584     postdeps \
14585     compiler_lib_search_path \
14586     archive_cmds \
14587     archive_expsym_cmds \
14588     postinstall_cmds \
14589     postuninstall_cmds \
14590     old_archive_from_expsyms_cmds \
14591     allow_undefined_flag \
14592     no_undefined_flag \
14593     export_symbols_cmds \
14594     hardcode_libdir_flag_spec \
14595     hardcode_libdir_flag_spec_ld \
14596     hardcode_libdir_separator \
14597     hardcode_automatic \
14598     module_cmds \
14599     module_expsym_cmds \
14600     lt_cv_prog_compiler_c_o \
14601     exclude_expsyms \
14602     include_expsyms; do
14603
14604     case $var in
14605     old_archive_cmds | \
14606     old_archive_from_new_cmds | \
14607     archive_cmds | \
14608     archive_expsym_cmds | \
14609     module_cmds | \
14610     module_expsym_cmds | \
14611     old_archive_from_expsyms_cmds | \
14612     export_symbols_cmds | \
14613     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14614     postinstall_cmds | postuninstall_cmds | \
14615     old_postinstall_cmds | old_postuninstall_cmds | \
14616     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14617       # Double-quote double-evaled strings.
14618       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14619       ;;
14620     *)
14621       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14622       ;;
14623     esac
14624   done
14625
14626   case $lt_echo in
14627   *'\$0 --fallback-echo"')
14628     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14629     ;;
14630   esac
14631
14632 cfgfile="${ofile}T"
14633   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14634   $rm -f "$cfgfile"
14635   { echo "$as_me:$LINENO: creating $ofile" >&5
14636 echo "$as_me: creating $ofile" >&6;}
14637
14638   cat <<__EOF__ >> "$cfgfile"
14639 #! $SHELL
14640
14641 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14642 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14643 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14644 #
14645 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14646 # Free Software Foundation, Inc.
14647 #
14648 # This file is part of GNU Libtool:
14649 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14650 #
14651 # This program is free software; you can redistribute it and/or modify
14652 # it under the terms of the GNU General Public License as published by
14653 # the Free Software Foundation; either version 2 of the License, or
14654 # (at your option) any later version.
14655 #
14656 # This program is distributed in the hope that it will be useful, but
14657 # WITHOUT ANY WARRANTY; without even the implied warranty of
14658 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14659 # General Public License for more details.
14660 #
14661 # You should have received a copy of the GNU General Public License
14662 # along with this program; if not, write to the Free Software
14663 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14664 #
14665 # As a special exception to the GNU General Public License, if you
14666 # distribute this file as part of a program that contains a
14667 # configuration script generated by Autoconf, you may include it under
14668 # the same distribution terms that you use for the rest of that program.
14669
14670 # A sed program that does not truncate output.
14671 SED=$lt_SED
14672
14673 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14674 Xsed="$SED -e s/^X//"
14675
14676 # The HP-UX ksh and POSIX shell print the target directory to stdout
14677 # if CDPATH is set.
14678 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14679
14680 # The names of the tagged configurations supported by this script.
14681 available_tags=
14682
14683 # ### BEGIN LIBTOOL CONFIG
14684
14685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14686
14687 # Shell to use when invoking shell scripts.
14688 SHELL=$lt_SHELL
14689
14690 # Whether or not to build shared libraries.
14691 build_libtool_libs=$enable_shared
14692
14693 # Whether or not to build static libraries.
14694 build_old_libs=$enable_static
14695
14696 # Whether or not to add -lc for building shared libraries.
14697 build_libtool_need_lc=$archive_cmds_need_lc
14698
14699 # Whether or not to disallow shared libs when runtime libs are static
14700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14701
14702 # Whether or not to optimize for fast installation.
14703 fast_install=$enable_fast_install
14704
14705 # The host system.
14706 host_alias=$host_alias
14707 host=$host
14708
14709 # An echo program that does not interpret backslashes.
14710 echo=$lt_echo
14711
14712 # The archiver.
14713 AR=$lt_AR
14714 AR_FLAGS=$lt_AR_FLAGS
14715
14716 # A C compiler.
14717 LTCC=$lt_LTCC
14718
14719 # A language-specific compiler.
14720 CC=$lt_compiler
14721
14722 # Is the compiler the GNU C compiler?
14723 with_gcc=$GCC
14724
14725 # An ERE matcher.
14726 EGREP=$lt_EGREP
14727
14728 # The linker used to build libraries.
14729 LD=$lt_LD
14730
14731 # Whether we need hard or soft links.
14732 LN_S=$lt_LN_S
14733
14734 # A BSD-compatible nm program.
14735 NM=$lt_NM
14736
14737 # A symbol stripping program
14738 STRIP=$lt_STRIP
14739
14740 # Used to examine libraries when file_magic_cmd begins "file"
14741 MAGIC_CMD=$MAGIC_CMD
14742
14743 # Used on cygwin: DLL creation program.
14744 DLLTOOL="$DLLTOOL"
14745
14746 # Used on cygwin: object dumper.
14747 OBJDUMP="$OBJDUMP"
14748
14749 # Used on cygwin: assembler.
14750 AS="$AS"
14751
14752 # The name of the directory that contains temporary libtool files.
14753 objdir=$objdir
14754
14755 # How to create reloadable object files.
14756 reload_flag=$lt_reload_flag
14757 reload_cmds=$lt_reload_cmds
14758
14759 # How to pass a linker flag through the compiler.
14760 wl=$lt_lt_prog_compiler_wl
14761
14762 # Object file suffix (normally "o").
14763 objext="$ac_objext"
14764
14765 # Old archive suffix (normally "a").
14766 libext="$libext"
14767
14768 # Shared library suffix (normally ".so").
14769 shrext_cmds='$shrext_cmds'
14770
14771 # Executable file suffix (normally "").
14772 exeext="$exeext"
14773
14774 # Additional compiler flags for building library objects.
14775 pic_flag=$lt_lt_prog_compiler_pic
14776 pic_mode=$pic_mode
14777
14778 # What is the maximum length of a command?
14779 max_cmd_len=$lt_cv_sys_max_cmd_len
14780
14781 # Does compiler simultaneously support -c and -o options?
14782 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14783
14784 # Must we lock files when doing compilation ?
14785 need_locks=$lt_need_locks
14786
14787 # Do we need the lib prefix for modules?
14788 need_lib_prefix=$need_lib_prefix
14789
14790 # Do we need a version for libraries?
14791 need_version=$need_version
14792
14793 # Whether dlopen is supported.
14794 dlopen_support=$enable_dlopen
14795
14796 # Whether dlopen of programs is supported.
14797 dlopen_self=$enable_dlopen_self
14798
14799 # Whether dlopen of statically linked programs is supported.
14800 dlopen_self_static=$enable_dlopen_self_static
14801
14802 # Compiler flag to prevent dynamic linking.
14803 link_static_flag=$lt_lt_prog_compiler_static
14804
14805 # Compiler flag to turn off builtin functions.
14806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14807
14808 # Compiler flag to allow reflexive dlopens.
14809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14810
14811 # Compiler flag to generate shared objects directly from archives.
14812 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14813
14814 # Compiler flag to generate thread-safe objects.
14815 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14816
14817 # Library versioning type.
14818 version_type=$version_type
14819
14820 # Format of library name prefix.
14821 libname_spec=$lt_libname_spec
14822
14823 # List of archive names.  First name is the real one, the rest are links.
14824 # The last name is the one that the linker finds with -lNAME.
14825 library_names_spec=$lt_library_names_spec
14826
14827 # The coded name of the library, if different from the real name.
14828 soname_spec=$lt_soname_spec
14829
14830 # Commands used to build and install an old-style archive.
14831 RANLIB=$lt_RANLIB
14832 old_archive_cmds=$lt_old_archive_cmds
14833 old_postinstall_cmds=$lt_old_postinstall_cmds
14834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14835
14836 # Create an old-style archive from a shared archive.
14837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14838
14839 # Create a temporary old-style archive to link instead of a shared archive.
14840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14841
14842 # Commands used to build and install a shared archive.
14843 archive_cmds=$lt_archive_cmds
14844 archive_expsym_cmds=$lt_archive_expsym_cmds
14845 postinstall_cmds=$lt_postinstall_cmds
14846 postuninstall_cmds=$lt_postuninstall_cmds
14847
14848 # Commands used to build a loadable module (assumed same as above if empty)
14849 module_cmds=$lt_module_cmds
14850 module_expsym_cmds=$lt_module_expsym_cmds
14851
14852 # Commands to strip libraries.
14853 old_striplib=$lt_old_striplib
14854 striplib=$lt_striplib
14855
14856 # Dependencies to place before the objects being linked to create a
14857 # shared library.
14858 predep_objects=$lt_predep_objects
14859
14860 # Dependencies to place after the objects being linked to create a
14861 # shared library.
14862 postdep_objects=$lt_postdep_objects
14863
14864 # Dependencies to place before the objects being linked to create a
14865 # shared library.
14866 predeps=$lt_predeps
14867
14868 # Dependencies to place after the objects being linked to create a
14869 # shared library.
14870 postdeps=$lt_postdeps
14871
14872 # The library search path used internally by the compiler when linking
14873 # a shared library.
14874 compiler_lib_search_path=$lt_compiler_lib_search_path
14875
14876 # Method to check whether dependent libraries are shared objects.
14877 deplibs_check_method=$lt_deplibs_check_method
14878
14879 # Command to use when deplibs_check_method == file_magic.
14880 file_magic_cmd=$lt_file_magic_cmd
14881
14882 # Flag that allows shared libraries with undefined symbols to be built.
14883 allow_undefined_flag=$lt_allow_undefined_flag
14884
14885 # Flag that forces no undefined symbols.
14886 no_undefined_flag=$lt_no_undefined_flag
14887
14888 # Commands used to finish a libtool library installation in a directory.
14889 finish_cmds=$lt_finish_cmds
14890
14891 # Same as above, but a single script fragment to be evaled but not shown.
14892 finish_eval=$lt_finish_eval
14893
14894 # Take the output of nm and produce a listing of raw symbols and C names.
14895 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14896
14897 # Transform the output of nm in a proper C declaration
14898 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14899
14900 # Transform the output of nm in a C name address pair
14901 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14902
14903 # This is the shared library runtime path variable.
14904 runpath_var=$runpath_var
14905
14906 # This is the shared library path variable.
14907 shlibpath_var=$shlibpath_var
14908
14909 # Is shlibpath searched before the hard-coded library search path?
14910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14911
14912 # How to hardcode a shared library path into an executable.
14913 hardcode_action=$hardcode_action
14914
14915 # Whether we should hardcode library paths into libraries.
14916 hardcode_into_libs=$hardcode_into_libs
14917
14918 # Flag to hardcode \$libdir into a binary during linking.
14919 # This must work even if \$libdir does not exist.
14920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14921
14922 # If ld is used when linking, flag to hardcode \$libdir into
14923 # a binary during linking. This must work even if \$libdir does
14924 # not exist.
14925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14926
14927 # Whether we need a single -rpath flag with a separated argument.
14928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14929
14930 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14931 # resulting binary.
14932 hardcode_direct=$hardcode_direct
14933
14934 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14935 # resulting binary.
14936 hardcode_minus_L=$hardcode_minus_L
14937
14938 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14939 # the resulting binary.
14940 hardcode_shlibpath_var=$hardcode_shlibpath_var
14941
14942 # Set to yes if building a shared library automatically hardcodes DIR into the library
14943 # and all subsequent libraries and executables linked against it.
14944 hardcode_automatic=$hardcode_automatic
14945
14946 # Variables whose values should be saved in libtool wrapper scripts and
14947 # restored at relink time.
14948 variables_saved_for_relink="$variables_saved_for_relink"
14949
14950 # Whether libtool must link a program against all its dependency libraries.
14951 link_all_deplibs=$link_all_deplibs
14952
14953 # Compile-time system search path for libraries
14954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14955
14956 # Run-time system search path for libraries
14957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14958
14959 # Fix the shell variable \$srcfile for the compiler.
14960 fix_srcfile_path="$fix_srcfile_path"
14961
14962 # Set to yes if exported symbols are required.
14963 always_export_symbols=$always_export_symbols
14964
14965 # The commands to list exported symbols.
14966 export_symbols_cmds=$lt_export_symbols_cmds
14967
14968 # The commands to extract the exported symbol list from a shared archive.
14969 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14970
14971 # Symbols that should not be listed in the preloaded symbols.
14972 exclude_expsyms=$lt_exclude_expsyms
14973
14974 # Symbols that must always be exported.
14975 include_expsyms=$lt_include_expsyms
14976
14977 # ### END LIBTOOL CONFIG
14978
14979 __EOF__
14980
14981
14982   case $host_os in
14983   aix3*)
14984     cat <<\EOF >> "$cfgfile"
14985
14986 # AIX sometimes has problems with the GCC collect2 program.  For some
14987 # reason, if we set the COLLECT_NAMES environment variable, the problems
14988 # vanish in a puff of smoke.
14989 if test "X${COLLECT_NAMES+set}" != Xset; then
14990   COLLECT_NAMES=
14991   export COLLECT_NAMES
14992 fi
14993 EOF
14994     ;;
14995   esac
14996
14997   # We use sed instead of cat because bash on DJGPP gets confused if
14998   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14999   # text mode, it properly converts lines to CR/LF.  This bash problem
15000   # is reportedly fixed, but why not run on old versions too?
15001   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15002
15003   mv -f "$cfgfile" "$ofile" || \
15004     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15005   chmod +x "$ofile"
15006
15007 else
15008   # If there is no Makefile yet, we rely on a make rule to execute
15009   # `config.status --recheck' to rerun these tests and create the
15010   # libtool script then.
15011   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15012   if test -f "$ltmain_in"; then
15013     test -f Makefile && make "$ltmain"
15014   fi
15015 fi
15016
15017
15018 ac_ext=c
15019 ac_cpp='$CPP $CPPFLAGS'
15020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15023
15024 CC="$lt_save_CC"
15025
15026
15027 # Check whether --with-tags or --without-tags was given.
15028 if test "${with_tags+set}" = set; then
15029   withval="$with_tags"
15030   tagnames="$withval"
15031 fi;
15032
15033 if test -f "$ltmain" && test -n "$tagnames"; then
15034   if test ! -f "${ofile}"; then
15035     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15036 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15037   fi
15038
15039   if test -z "$LTCC"; then
15040     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15041     if test -z "$LTCC"; then
15042       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15043 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15044     else
15045       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15046 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15047     fi
15048   fi
15049
15050   # Extract list of available tagged configurations in $ofile.
15051   # Note that this assumes the entire list is on one line.
15052   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15053
15054   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15055   for tagname in $tagnames; do
15056     IFS="$lt_save_ifs"
15057     # Check whether tagname contains only valid characters
15058     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15059     "") ;;
15060     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15061 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15062    { (exit 1); exit 1; }; }
15063         ;;
15064     esac
15065
15066     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15067     then
15068       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15069 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15070    { (exit 1); exit 1; }; }
15071     fi
15072
15073     # Update the list of available tags.
15074     if test -n "$tagname"; then
15075       echo appending configuration tag "$tagname" to $ofile
15076
15077       case $tagname in
15078       CXX)
15079         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15080             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15081             (test "X$CXX" != "Xg++"))) ; then
15082           ac_ext=cc
15083 ac_cpp='$CXXCPP $CPPFLAGS'
15084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15087
15088
15089
15090
15091 archive_cmds_need_lc_CXX=no
15092 allow_undefined_flag_CXX=
15093 always_export_symbols_CXX=no
15094 archive_expsym_cmds_CXX=
15095 export_dynamic_flag_spec_CXX=
15096 hardcode_direct_CXX=no
15097 hardcode_libdir_flag_spec_CXX=
15098 hardcode_libdir_flag_spec_ld_CXX=
15099 hardcode_libdir_separator_CXX=
15100 hardcode_minus_L_CXX=no
15101 hardcode_automatic_CXX=no
15102 module_cmds_CXX=
15103 module_expsym_cmds_CXX=
15104 link_all_deplibs_CXX=unknown
15105 old_archive_cmds_CXX=$old_archive_cmds
15106 no_undefined_flag_CXX=
15107 whole_archive_flag_spec_CXX=
15108 enable_shared_with_static_runtimes_CXX=no
15109
15110 # Dependencies to place before and after the object being linked:
15111 predep_objects_CXX=
15112 postdep_objects_CXX=
15113 predeps_CXX=
15114 postdeps_CXX=
15115 compiler_lib_search_path_CXX=
15116
15117 # Source file extension for C++ test sources.
15118 ac_ext=cc
15119
15120 # Object file extension for compiled C++ test sources.
15121 objext=o
15122 objext_CXX=$objext
15123
15124 # Code to be used in simple compile tests
15125 lt_simple_compile_test_code="int some_variable = 0;\n"
15126
15127 # Code to be used in simple link tests
15128 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15129
15130 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15131
15132 # If no C compiler was specified, use CC.
15133 LTCC=${LTCC-"$CC"}
15134
15135 # Allow CC to be a program name with arguments.
15136 compiler=$CC
15137
15138
15139 # Allow CC to be a program name with arguments.
15140 lt_save_CC=$CC
15141 lt_save_LD=$LD
15142 lt_save_GCC=$GCC
15143 GCC=$GXX
15144 lt_save_with_gnu_ld=$with_gnu_ld
15145 lt_save_path_LD=$lt_cv_path_LD
15146 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15147   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15148 else
15149   unset lt_cv_prog_gnu_ld
15150 fi
15151 if test -n "${lt_cv_path_LDCXX+set}"; then
15152   lt_cv_path_LD=$lt_cv_path_LDCXX
15153 else
15154   unset lt_cv_path_LD
15155 fi
15156 test -z "${LDCXX+set}" || LD=$LDCXX
15157 CC=${CXX-"c++"}
15158 compiler=$CC
15159 compiler_CXX=$CC
15160 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15161
15162 # We don't want -fno-exception wen compiling C++ code, so set the
15163 # no_builtin_flag separately
15164 if test "$GXX" = yes; then
15165   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15166 else
15167   lt_prog_compiler_no_builtin_flag_CXX=
15168 fi
15169
15170 if test "$GXX" = yes; then
15171   # Set up default GNU C++ configuration
15172
15173
15174 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15175 if test "${with_gnu_ld+set}" = set; then
15176   withval="$with_gnu_ld"
15177   test "$withval" = no || with_gnu_ld=yes
15178 else
15179   with_gnu_ld=no
15180 fi;
15181 ac_prog=ld
15182 if test "$GCC" = yes; then
15183   # Check if gcc -print-prog-name=ld gives a path.
15184   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15185 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15186   case $host in
15187   *-*-mingw*)
15188     # gcc leaves a trailing carriage return which upsets mingw
15189     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15190   *)
15191     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15192   esac
15193   case $ac_prog in
15194     # Accept absolute paths.
15195     [\\/]* | ?:[\\/]*)
15196       re_direlt='/[^/][^/]*/\.\./'
15197       # Canonicalize the pathname of ld
15198       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15199       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15200         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15201       done
15202       test -z "$LD" && LD="$ac_prog"
15203       ;;
15204   "")
15205     # If it fails, then pretend we aren't using GCC.
15206     ac_prog=ld
15207     ;;
15208   *)
15209     # If it is relative, then search for the first ld in PATH.
15210     with_gnu_ld=unknown
15211     ;;
15212   esac
15213 elif test "$with_gnu_ld" = yes; then
15214   echo "$as_me:$LINENO: checking for GNU ld" >&5
15215 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15216 else
15217   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15218 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15219 fi
15220 if test "${lt_cv_path_LD+set}" = set; then
15221   echo $ECHO_N "(cached) $ECHO_C" >&6
15222 else
15223   if test -z "$LD"; then
15224   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15225   for ac_dir in $PATH; do
15226     IFS="$lt_save_ifs"
15227     test -z "$ac_dir" && ac_dir=.
15228     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15229       lt_cv_path_LD="$ac_dir/$ac_prog"
15230       # Check to see if the program is GNU ld.  I'd rather use --version,
15231       # but apparently some GNU ld's only accept -v.
15232       # Break only if it was the GNU/non-GNU ld that we prefer.
15233       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15234       *GNU* | *'with BFD'*)
15235         test "$with_gnu_ld" != no && break
15236         ;;
15237       *)
15238         test "$with_gnu_ld" != yes && break
15239         ;;
15240       esac
15241     fi
15242   done
15243   IFS="$lt_save_ifs"
15244 else
15245   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15246 fi
15247 fi
15248
15249 LD="$lt_cv_path_LD"
15250 if test -n "$LD"; then
15251   echo "$as_me:$LINENO: result: $LD" >&5
15252 echo "${ECHO_T}$LD" >&6
15253 else
15254   echo "$as_me:$LINENO: result: no" >&5
15255 echo "${ECHO_T}no" >&6
15256 fi
15257 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15258 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15259    { (exit 1); exit 1; }; }
15260 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15261 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15262 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15263   echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15266 case `$LD -v 2>&1 </dev/null` in
15267 *GNU* | *'with BFD'*)
15268   lt_cv_prog_gnu_ld=yes
15269   ;;
15270 *)
15271   lt_cv_prog_gnu_ld=no
15272   ;;
15273 esac
15274 fi
15275 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15276 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15277 with_gnu_ld=$lt_cv_prog_gnu_ld
15278
15279
15280
15281   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15282   # archiving commands below assume that GNU ld is being used.
15283   if test "$with_gnu_ld" = yes; then
15284     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285     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'
15286
15287     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15288     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15289
15290     # If archive_cmds runs LD, not CC, wlarc should be empty
15291     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15292     #     investigate it a little bit more. (MM)
15293     wlarc='${wl}'
15294
15295     # ancient GNU ld didn't support --whole-archive et. al.
15296     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15297         grep 'no-whole-archive' > /dev/null; then
15298       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15299     else
15300       whole_archive_flag_spec_CXX=
15301     fi
15302   else
15303     with_gnu_ld=no
15304     wlarc=
15305
15306     # A generic and very simple default shared library creation
15307     # command for GNU C++ for the case where it uses the native
15308     # linker, instead of GNU ld.  If possible, this setting should
15309     # overridden to take advantage of the native linker features on
15310     # the platform it is being used on.
15311     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15312   fi
15313
15314   # Commands to make compiler produce verbose output that lists
15315   # what "hidden" libraries, object files and flags are used when
15316   # linking a shared library.
15317   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15318
15319 else
15320   GXX=no
15321   with_gnu_ld=no
15322   wlarc=
15323 fi
15324
15325 # PORTME: fill in a description of your system's C++ link characteristics
15326 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15327 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15328 ld_shlibs_CXX=yes
15329 case $host_os in
15330   aix3*)
15331     # FIXME: insert proper C++ library support
15332     ld_shlibs_CXX=no
15333     ;;
15334   aix4* | aix5*)
15335     if test "$host_cpu" = ia64; then
15336       # On IA64, the linker does run time linking by default, so we don't
15337       # have to do anything special.
15338       aix_use_runtimelinking=no
15339       exp_sym_flag='-Bexport'
15340       no_entry_flag=""
15341     else
15342       aix_use_runtimelinking=no
15343
15344       # Test if we are trying to use run time linking or normal
15345       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15346       # need to do runtime linking.
15347       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15348         for ld_flag in $LDFLAGS; do
15349           case $ld_flag in
15350           *-brtl*)
15351             aix_use_runtimelinking=yes
15352             break
15353             ;;
15354           esac
15355         done
15356       esac
15357
15358       exp_sym_flag='-bexport'
15359       no_entry_flag='-bnoentry'
15360     fi
15361
15362     # When large executables or shared objects are built, AIX ld can
15363     # have problems creating the table of contents.  If linking a library
15364     # or program results in "error TOC overflow" add -mminimal-toc to
15365     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15366     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15367
15368     archive_cmds_CXX=''
15369     hardcode_direct_CXX=yes
15370     hardcode_libdir_separator_CXX=':'
15371     link_all_deplibs_CXX=yes
15372
15373     if test "$GXX" = yes; then
15374       case $host_os in aix4.012|aix4.012.*)
15375       # We only want to do this on AIX 4.2 and lower, the check
15376       # below for broken collect2 doesn't work under 4.3+
15377         collect2name=`${CC} -print-prog-name=collect2`
15378         if test -f "$collect2name" && \
15379            strings "$collect2name" | grep resolve_lib_name >/dev/null
15380         then
15381           # We have reworked collect2
15382           hardcode_direct_CXX=yes
15383         else
15384           # We have old collect2
15385           hardcode_direct_CXX=unsupported
15386           # It fails to find uninstalled libraries when the uninstalled
15387           # path is not listed in the libpath.  Setting hardcode_minus_L
15388           # to unsupported forces relinking
15389           hardcode_minus_L_CXX=yes
15390           hardcode_libdir_flag_spec_CXX='-L$libdir'
15391           hardcode_libdir_separator_CXX=
15392         fi
15393       esac
15394       shared_flag='-shared'
15395     else
15396       # not using gcc
15397       if test "$host_cpu" = ia64; then
15398         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15399         # chokes on -Wl,-G. The following line is correct:
15400         shared_flag='-G'
15401       else
15402         if test "$aix_use_runtimelinking" = yes; then
15403           shared_flag='${wl}-G'
15404         else
15405           shared_flag='${wl}-bM:SRE'
15406         fi
15407       fi
15408     fi
15409
15410     # It seems that -bexpall does not export symbols beginning with
15411     # underscore (_), so it is better to generate a list of symbols to export.
15412     always_export_symbols_CXX=yes
15413     if test "$aix_use_runtimelinking" = yes; then
15414       # Warning - without using the other runtime loading flags (-brtl),
15415       # -berok will link without error, but may produce a broken library.
15416       allow_undefined_flag_CXX='-berok'
15417       # Determine the default libpath from the value encoded in an empty executable.
15418       cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h.  */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h.  */
15424
15425 int
15426 main ()
15427 {
15428
15429   ;
15430   return 0;
15431 }
15432 _ACEOF
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15435   (eval $ac_link) 2>conftest.er1
15436   ac_status=$?
15437   grep -v '^ *+' conftest.er1 >conftest.err
15438   rm -f conftest.er1
15439   cat conftest.err >&5
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); } &&
15442          { ac_try='test -z "$ac_cxx_werror_flag"
15443                          || test ! -s conftest.err'
15444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445   (eval $ac_try) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); }; } &&
15449          { ac_try='test -s conftest$ac_exeext'
15450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451   (eval $ac_try) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; }; then
15455
15456 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15457 }'`
15458 # Check for a 64-bit object if we didn't find anything.
15459 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; }
15460 }'`; fi
15461 else
15462   echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 fi
15466 rm -f conftest.err conftest.$ac_objext \
15467       conftest$ac_exeext conftest.$ac_ext
15468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15469
15470       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15471
15472       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"
15473      else
15474       if test "$host_cpu" = ia64; then
15475         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15476         allow_undefined_flag_CXX="-z nodefs"
15477         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"
15478       else
15479         # Determine the default libpath from the value encoded in an empty executable.
15480         cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h.  */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h.  */
15486
15487 int
15488 main ()
15489 {
15490
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15497   (eval $ac_link) 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } &&
15504          { ac_try='test -z "$ac_cxx_werror_flag"
15505                          || test ! -s conftest.err'
15506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507   (eval $ac_try) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; } &&
15511          { ac_try='test -s conftest$ac_exeext'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517
15518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15519 }'`
15520 # Check for a 64-bit object if we didn't find anything.
15521 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; }
15522 }'`; fi
15523 else
15524   echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 fi
15528 rm -f conftest.err conftest.$ac_objext \
15529       conftest$ac_exeext conftest.$ac_ext
15530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15531
15532         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15533         # Warning - without using the other run time loading flags,
15534         # -berok will link without error, but may produce a broken library.
15535         no_undefined_flag_CXX=' ${wl}-bernotok'
15536         allow_undefined_flag_CXX=' ${wl}-berok'
15537         # -bexpall does not export symbols beginning with underscore (_)
15538         always_export_symbols_CXX=yes
15539         # Exported symbols can be pulled into shared objects from archives
15540         whole_archive_flag_spec_CXX=' '
15541         archive_cmds_need_lc_CXX=yes
15542         # This is similar to how AIX traditionally builds it's shared libraries.
15543         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'
15544       fi
15545     fi
15546     ;;
15547   chorus*)
15548     case $cc_basename in
15549       *)
15550         # FIXME: insert proper C++ library support
15551         ld_shlibs_CXX=no
15552         ;;
15553     esac
15554     ;;
15555
15556
15557   cygwin* | mingw* | pw32*)
15558     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15559     # as there is no search path for DLLs.
15560     hardcode_libdir_flag_spec_CXX='-L$libdir'
15561     allow_undefined_flag_CXX=unsupported
15562     always_export_symbols_CXX=no
15563     enable_shared_with_static_runtimes_CXX=yes
15564
15565     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15566       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'
15567       # If the export-symbols file already is a .def file (1st line
15568       # is EXPORTS), use it as is; otherwise, prepend...
15569       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15570         cp $export_symbols $output_objdir/$soname.def;
15571       else
15572         echo EXPORTS > $output_objdir/$soname.def;
15573         cat $export_symbols >> $output_objdir/$soname.def;
15574       fi~
15575       $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'
15576     else
15577       ld_shlibs_CXX=no
15578     fi
15579   ;;
15580       darwin* | rhapsody*)
15581         case "$host_os" in
15582         rhapsody* | darwin1.[012])
15583          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15584          ;;
15585        *) # Darwin 1.3 on
15586          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15587            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15588          else
15589            case ${MACOSX_DEPLOYMENT_TARGET} in
15590              10.[012])
15591                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15592                ;;
15593              10.*)
15594                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15595                ;;
15596            esac
15597          fi
15598          ;;
15599         esac
15600       archive_cmds_need_lc_CXX=no
15601       hardcode_direct_CXX=no
15602       hardcode_automatic_CXX=yes
15603       hardcode_shlibpath_var_CXX=unsupported
15604       whole_archive_flag_spec_CXX=''
15605       link_all_deplibs_CXX=yes
15606
15607     if test "$GXX" = yes ; then
15608       lt_int_apple_cc_single_mod=no
15609       output_verbose_link_cmd='echo'
15610       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15611        lt_int_apple_cc_single_mod=yes
15612       fi
15613       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15614        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15615       else
15616           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'
15617         fi
15618         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15619         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15620           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15621             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}'
15622           else
15623             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}'
15624           fi
15625             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}'
15626       else
15627       case "$cc_basename" in
15628         xlc*)
15629          output_verbose_link_cmd='echo'
15630           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'
15631           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15632           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15633           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}'
15634           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}'
15635           ;;
15636        *)
15637          ld_shlibs_CXX=no
15638           ;;
15639       esac
15640       fi
15641         ;;
15642
15643   dgux*)
15644     case $cc_basename in
15645       ec++)
15646         # FIXME: insert proper C++ library support
15647         ld_shlibs_CXX=no
15648         ;;
15649       ghcx)
15650         # Green Hills C++ Compiler
15651         # FIXME: insert proper C++ library support
15652         ld_shlibs_CXX=no
15653         ;;
15654       *)
15655         # FIXME: insert proper C++ library support
15656         ld_shlibs_CXX=no
15657         ;;
15658     esac
15659     ;;
15660   freebsd12*)
15661     # C++ shared libraries reported to be fairly broken before switch to ELF
15662     ld_shlibs_CXX=no
15663     ;;
15664   freebsd-elf*)
15665     archive_cmds_need_lc_CXX=no
15666     ;;
15667   freebsd* | kfreebsd*-gnu)
15668     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15669     # conventions
15670     ld_shlibs_CXX=yes
15671     ;;
15672   gnu*)
15673     ;;
15674   hpux9*)
15675     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15676     hardcode_libdir_separator_CXX=:
15677     export_dynamic_flag_spec_CXX='${wl}-E'
15678     hardcode_direct_CXX=yes
15679     hardcode_minus_L_CXX=yes # Not in the search PATH,
15680                                 # but as the default
15681                                 # location of the library.
15682
15683     case $cc_basename in
15684     CC)
15685       # FIXME: insert proper C++ library support
15686       ld_shlibs_CXX=no
15687       ;;
15688     aCC)
15689       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'
15690       # Commands to make compiler produce verbose output that lists
15691       # what "hidden" libraries, object files and flags are used when
15692       # linking a shared library.
15693       #
15694       # There doesn't appear to be a way to prevent this compiler from
15695       # explicitly linking system object files so we need to strip them
15696       # from the output so that they don't get included in the library
15697       # dependencies.
15698       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'
15699       ;;
15700     *)
15701       if test "$GXX" = yes; then
15702         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'
15703       else
15704         # FIXME: insert proper C++ library support
15705         ld_shlibs_CXX=no
15706       fi
15707       ;;
15708     esac
15709     ;;
15710   hpux10*|hpux11*)
15711     if test $with_gnu_ld = no; then
15712       case "$host_cpu" in
15713       hppa*64*)
15714         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15715         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15716         hardcode_libdir_separator_CXX=:
15717         ;;
15718       ia64*)
15719         hardcode_libdir_flag_spec_CXX='-L$libdir'
15720         ;;
15721       *)
15722         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15723         hardcode_libdir_separator_CXX=:
15724         export_dynamic_flag_spec_CXX='${wl}-E'
15725         ;;
15726       esac
15727     fi
15728     case "$host_cpu" in
15729     hppa*64*)
15730       hardcode_direct_CXX=no
15731       hardcode_shlibpath_var_CXX=no
15732       ;;
15733     ia64*)
15734       hardcode_direct_CXX=no
15735       hardcode_shlibpath_var_CXX=no
15736       hardcode_minus_L_CXX=yes # Not in the search PATH,
15737                                               # but as the default
15738                                               # location of the library.
15739       ;;
15740     *)
15741       hardcode_direct_CXX=yes
15742       hardcode_minus_L_CXX=yes # Not in the search PATH,
15743                                               # but as the default
15744                                               # location of the library.
15745       ;;
15746     esac
15747
15748     case $cc_basename in
15749       CC)
15750         # FIXME: insert proper C++ library support
15751         ld_shlibs_CXX=no
15752         ;;
15753       aCC)
15754         case "$host_cpu" in
15755         hppa*64*|ia64*)
15756           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15757           ;;
15758         *)
15759           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15760           ;;
15761         esac
15762         # Commands to make compiler produce verbose output that lists
15763         # what "hidden" libraries, object files and flags are used when
15764         # linking a shared library.
15765         #
15766         # There doesn't appear to be a way to prevent this compiler from
15767         # explicitly linking system object files so we need to strip them
15768         # from the output so that they don't get included in the library
15769         # dependencies.
15770         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'
15771         ;;
15772       *)
15773         if test "$GXX" = yes; then
15774           if test $with_gnu_ld = no; then
15775             case "$host_cpu" in
15776             ia64*|hppa*64*)
15777               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15778               ;;
15779             *)
15780               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'
15781               ;;
15782             esac
15783           fi
15784         else
15785           # FIXME: insert proper C++ library support
15786           ld_shlibs_CXX=no
15787         fi
15788         ;;
15789     esac
15790     ;;
15791   irix5* | irix6*)
15792     case $cc_basename in
15793       CC)
15794         # SGI C++
15795         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'
15796
15797         # Archives containing C++ object files must be created using
15798         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15799         # necessary to make sure instantiated templates are included
15800         # in the archive.
15801         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15802         ;;
15803       *)
15804         if test "$GXX" = yes; then
15805           if test "$with_gnu_ld" = no; then
15806             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'
15807           else
15808             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'
15809           fi
15810         fi
15811         link_all_deplibs_CXX=yes
15812         ;;
15813     esac
15814     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15815     hardcode_libdir_separator_CXX=:
15816     ;;
15817   linux*)
15818     case $cc_basename in
15819       KCC)
15820         # Kuck and Associates, Inc. (KAI) C++ Compiler
15821
15822         # KCC will only create a shared library if the output file
15823         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15824         # to its proper name (with version) after linking.
15825         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'
15826         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'
15827         # Commands to make compiler produce verbose output that lists
15828         # what "hidden" libraries, object files and flags are used when
15829         # linking a shared library.
15830         #
15831         # There doesn't appear to be a way to prevent this compiler from
15832         # explicitly linking system object files so we need to strip them
15833         # from the output so that they don't get included in the library
15834         # dependencies.
15835         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'
15836
15837         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15838         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15839
15840         # Archives containing C++ object files must be created using
15841         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15842         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15843         ;;
15844       icpc)
15845         # Intel C++
15846         with_gnu_ld=yes
15847         # version 8.0 and above of icpc choke on multiply defined symbols
15848         # if we add $predep_objects and $postdep_objects, however 7.1 and
15849         # earlier do not add the objects themselves.
15850         case `$CC -V 2>&1` in
15851         *"Version 7."*)
15852           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853           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'
15854           ;;
15855         *)  # Version 8.0 or newer
15856           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15857         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15858           ;;
15859         esac
15860         archive_cmds_need_lc_CXX=no
15861         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15862         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15863         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15864         ;;
15865       cxx)
15866         # Compaq C++
15867         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15868         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'
15869
15870         runpath_var=LD_RUN_PATH
15871         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15872         hardcode_libdir_separator_CXX=:
15873
15874         # Commands to make compiler produce verbose output that lists
15875         # what "hidden" libraries, object files and flags are used when
15876         # linking a shared library.
15877         #
15878         # There doesn't appear to be a way to prevent this compiler from
15879         # explicitly linking system object files so we need to strip them
15880         # from the output so that they don't get included in the library
15881         # dependencies.
15882         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'
15883         ;;
15884     esac
15885     ;;
15886   lynxos*)
15887     # FIXME: insert proper C++ library support
15888     ld_shlibs_CXX=no
15889     ;;
15890   m88k*)
15891     # FIXME: insert proper C++ library support
15892     ld_shlibs_CXX=no
15893     ;;
15894   mvs*)
15895     case $cc_basename in
15896       cxx)
15897         # FIXME: insert proper C++ library support
15898         ld_shlibs_CXX=no
15899         ;;
15900       *)
15901         # FIXME: insert proper C++ library support
15902         ld_shlibs_CXX=no
15903         ;;
15904     esac
15905     ;;
15906   netbsd*)
15907     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15908       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15909       wlarc=
15910       hardcode_libdir_flag_spec_CXX='-R$libdir'
15911       hardcode_direct_CXX=yes
15912       hardcode_shlibpath_var_CXX=no
15913     fi
15914     # Workaround some broken pre-1.5 toolchains
15915     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15916     ;;
15917   openbsd2*)
15918     # C++ shared libraries are fairly broken
15919     ld_shlibs_CXX=no
15920     ;;
15921   openbsd*)
15922     hardcode_direct_CXX=yes
15923     hardcode_shlibpath_var_CXX=no
15924     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15925     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15926     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15927       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15928       export_dynamic_flag_spec_CXX='${wl}-E'
15929       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15930     fi
15931     output_verbose_link_cmd='echo'
15932     ;;
15933   osf3*)
15934     case $cc_basename in
15935       KCC)
15936         # Kuck and Associates, Inc. (KAI) C++ Compiler
15937
15938         # KCC will only create a shared library if the output file
15939         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15940         # to its proper name (with version) after linking.
15941         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'
15942
15943         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15944         hardcode_libdir_separator_CXX=:
15945
15946         # Archives containing C++ object files must be created using
15947         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15948         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15949
15950         ;;
15951       RCC)
15952         # Rational C++ 2.4.1
15953         # FIXME: insert proper C++ library support
15954         ld_shlibs_CXX=no
15955         ;;
15956       cxx)
15957         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15958         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'
15959
15960         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15961         hardcode_libdir_separator_CXX=:
15962
15963         # Commands to make compiler produce verbose output that lists
15964         # what "hidden" libraries, object files and flags are used when
15965         # linking a shared library.
15966         #
15967         # There doesn't appear to be a way to prevent this compiler from
15968         # explicitly linking system object files so we need to strip them
15969         # from the output so that they don't get included in the library
15970         # dependencies.
15971         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15972         ;;
15973       *)
15974         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15975           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15976           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15977
15978           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15979           hardcode_libdir_separator_CXX=:
15980
15981           # Commands to make compiler produce verbose output that lists
15982           # what "hidden" libraries, object files and flags are used when
15983           # linking a shared library.
15984           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15985
15986         else
15987           # FIXME: insert proper C++ library support
15988           ld_shlibs_CXX=no
15989         fi
15990         ;;
15991     esac
15992     ;;
15993   osf4* | osf5*)
15994     case $cc_basename in
15995       KCC)
15996         # Kuck and Associates, Inc. (KAI) C++ Compiler
15997
15998         # KCC will only create a shared library if the output file
15999         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16000         # to its proper name (with version) after linking.
16001         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'
16002
16003         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16004         hardcode_libdir_separator_CXX=:
16005
16006         # Archives containing C++ object files must be created using
16007         # the KAI C++ compiler.
16008         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16009         ;;
16010       RCC)
16011         # Rational C++ 2.4.1
16012         # FIXME: insert proper C++ library support
16013         ld_shlibs_CXX=no
16014         ;;
16015       cxx)
16016         allow_undefined_flag_CXX=' -expect_unresolved \*'
16017         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'
16018         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16019           echo "-hidden">> $lib.exp~
16020           $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~
16021           $rm $lib.exp'
16022
16023         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16024         hardcode_libdir_separator_CXX=:
16025
16026         # Commands to make compiler produce verbose output that lists
16027         # what "hidden" libraries, object files and flags are used when
16028         # linking a shared library.
16029         #
16030         # There doesn't appear to be a way to prevent this compiler from
16031         # explicitly linking system object files so we need to strip them
16032         # from the output so that they don't get included in the library
16033         # dependencies.
16034         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'
16035         ;;
16036       *)
16037         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16038           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16039          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'
16040
16041           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16042           hardcode_libdir_separator_CXX=:
16043
16044           # Commands to make compiler produce verbose output that lists
16045           # what "hidden" libraries, object files and flags are used when
16046           # linking a shared library.
16047           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16048
16049         else
16050           # FIXME: insert proper C++ library support
16051           ld_shlibs_CXX=no
16052         fi
16053         ;;
16054     esac
16055     ;;
16056   psos*)
16057     # FIXME: insert proper C++ library support
16058     ld_shlibs_CXX=no
16059     ;;
16060   sco*)
16061     archive_cmds_need_lc_CXX=no
16062     case $cc_basename in
16063       CC)
16064         # FIXME: insert proper C++ library support
16065         ld_shlibs_CXX=no
16066         ;;
16067       *)
16068         # FIXME: insert proper C++ library support
16069         ld_shlibs_CXX=no
16070         ;;
16071     esac
16072     ;;
16073   sunos4*)
16074     case $cc_basename in
16075       CC)
16076         # Sun C++ 4.x
16077         # FIXME: insert proper C++ library support
16078         ld_shlibs_CXX=no
16079         ;;
16080       lcc)
16081         # Lucid
16082         # FIXME: insert proper C++ library support
16083         ld_shlibs_CXX=no
16084         ;;
16085       *)
16086         # FIXME: insert proper C++ library support
16087         ld_shlibs_CXX=no
16088         ;;
16089     esac
16090     ;;
16091   solaris*)
16092     case $cc_basename in
16093       CC)
16094         # Sun C++ 4.2, 5.x and Centerline C++
16095         no_undefined_flag_CXX=' -zdefs'
16096         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16097         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16098         $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'
16099
16100         hardcode_libdir_flag_spec_CXX='-R$libdir'
16101         hardcode_shlibpath_var_CXX=no
16102         case $host_os in
16103           solaris2.0-5 | solaris2.0-5.*) ;;
16104           *)
16105             # The C++ compiler is used as linker so we must use $wl
16106             # flag to pass the commands to the underlying system
16107             # linker.
16108             # Supported since Solaris 2.6 (maybe 2.5.1?)
16109             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16110             ;;
16111         esac
16112         link_all_deplibs_CXX=yes
16113
16114         # Commands to make compiler produce verbose output that lists
16115         # what "hidden" libraries, object files and flags are used when
16116         # linking a shared library.
16117         #
16118         # There doesn't appear to be a way to prevent this compiler from
16119         # explicitly linking system object files so we need to strip them
16120         # from the output so that they don't get included in the library
16121         # dependencies.
16122         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'
16123
16124         # Archives containing C++ object files must be created using
16125         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16126         # necessary to make sure instantiated templates are included
16127         # in the archive.
16128         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16129         ;;
16130       gcx)
16131         # Green Hills C++ Compiler
16132         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16133
16134         # The C++ compiler must be used to create the archive.
16135         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16136         ;;
16137       *)
16138         # GNU C++ compiler with Solaris linker
16139         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16140           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16141           if $CC --version | grep -v '^2\.7' > /dev/null; then
16142             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16143             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16145
16146             # Commands to make compiler produce verbose output that lists
16147             # what "hidden" libraries, object files and flags are used when
16148             # linking a shared library.
16149             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16150           else
16151             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16152             # platform.
16153             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16154             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16155                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16156
16157             # Commands to make compiler produce verbose output that lists
16158             # what "hidden" libraries, object files and flags are used when
16159             # linking a shared library.
16160             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16161           fi
16162
16163           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16164         fi
16165         ;;
16166     esac
16167     ;;
16168   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16169     archive_cmds_need_lc_CXX=no
16170     ;;
16171   tandem*)
16172     case $cc_basename in
16173       NCC)
16174         # NonStop-UX NCC 3.20
16175         # FIXME: insert proper C++ library support
16176         ld_shlibs_CXX=no
16177         ;;
16178       *)
16179         # FIXME: insert proper C++ library support
16180         ld_shlibs_CXX=no
16181         ;;
16182     esac
16183     ;;
16184   vxworks*)
16185     # FIXME: insert proper C++ library support
16186     ld_shlibs_CXX=no
16187     ;;
16188   *)
16189     # FIXME: insert proper C++ library support
16190     ld_shlibs_CXX=no
16191     ;;
16192 esac
16193 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16194 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16195 test "$ld_shlibs_CXX" = no && can_build_shared=no
16196
16197 GCC_CXX="$GXX"
16198 LD_CXX="$LD"
16199
16200
16201 cat > conftest.$ac_ext <<EOF
16202 class Foo
16203 {
16204 public:
16205   Foo (void) { a = 0; }
16206 private:
16207   int a;
16208 };
16209 EOF
16210
16211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16212   (eval $ac_compile) 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }; then
16216   # Parse the compiler output and extract the necessary
16217   # objects, libraries and library flags.
16218
16219   # Sentinel used to keep track of whether or not we are before
16220   # the conftest object file.
16221   pre_test_object_deps_done=no
16222
16223   # The `*' in the case matches for architectures that use `case' in
16224   # $output_verbose_cmd can trigger glob expansion during the loop
16225   # eval without this substitution.
16226   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16227
16228   for p in `eval $output_verbose_link_cmd`; do
16229     case $p in
16230
16231     -L* | -R* | -l*)
16232        # Some compilers place space between "-{L,R}" and the path.
16233        # Remove the space.
16234        if test $p = "-L" \
16235           || test $p = "-R"; then
16236          prev=$p
16237          continue
16238        else
16239          prev=
16240        fi
16241
16242        if test "$pre_test_object_deps_done" = no; then
16243          case $p in
16244          -L* | -R*)
16245            # Internal compiler library paths should come after those
16246            # provided the user.  The postdeps already come after the
16247            # user supplied libs so there is no need to process them.
16248            if test -z "$compiler_lib_search_path_CXX"; then
16249              compiler_lib_search_path_CXX="${prev}${p}"
16250            else
16251              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16252            fi
16253            ;;
16254          # The "-l" case would never come before the object being
16255          # linked, so don't bother handling this case.
16256          esac
16257        else
16258          if test -z "$postdeps_CXX"; then
16259            postdeps_CXX="${prev}${p}"
16260          else
16261            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16262          fi
16263        fi
16264        ;;
16265
16266     *.$objext)
16267        # This assumes that the test object file only shows up
16268        # once in the compiler output.
16269        if test "$p" = "conftest.$objext"; then
16270          pre_test_object_deps_done=yes
16271          continue
16272        fi
16273
16274        if test "$pre_test_object_deps_done" = no; then
16275          if test -z "$predep_objects_CXX"; then
16276            predep_objects_CXX="$p"
16277          else
16278            predep_objects_CXX="$predep_objects_CXX $p"
16279          fi
16280        else
16281          if test -z "$postdep_objects_CXX"; then
16282            postdep_objects_CXX="$p"
16283          else
16284            postdep_objects_CXX="$postdep_objects_CXX $p"
16285          fi
16286        fi
16287        ;;
16288
16289     *) ;; # Ignore the rest.
16290
16291     esac
16292   done
16293
16294   # Clean up.
16295   rm -f a.out a.exe
16296 else
16297   echo "libtool.m4: error: problem compiling CXX test program"
16298 fi
16299
16300 $rm -f confest.$objext
16301
16302 case " $postdeps_CXX " in
16303 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16304 esac
16305
16306 lt_prog_compiler_wl_CXX=
16307 lt_prog_compiler_pic_CXX=
16308 lt_prog_compiler_static_CXX=
16309
16310 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16311 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16312
16313   # C++ specific cases for pic, static, wl, etc.
16314   if test "$GXX" = yes; then
16315     lt_prog_compiler_wl_CXX='-Wl,'
16316     lt_prog_compiler_static_CXX='-static'
16317
16318     case $host_os in
16319     aix*)
16320       # All AIX code is PIC.
16321       if test "$host_cpu" = ia64; then
16322         # AIX 5 now supports IA64 processor
16323         lt_prog_compiler_static_CXX='-Bstatic'
16324       fi
16325       ;;
16326     amigaos*)
16327       # FIXME: we need at least 68020 code to build shared libraries, but
16328       # adding the `-m68020' flag to GCC prevents building anything better,
16329       # like `-m68040'.
16330       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16331       ;;
16332     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16333       # PIC is the default for these OSes.
16334       ;;
16335     mingw* | os2* | pw32*)
16336       # This hack is so that the source file can tell whether it is being
16337       # built for inclusion in a dll (and should export symbols for example).
16338       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16339       ;;
16340     darwin* | rhapsody*)
16341       # PIC is the default on this platform
16342       # Common symbols not allowed in MH_DYLIB files
16343       lt_prog_compiler_pic_CXX='-fno-common'
16344       ;;
16345     *djgpp*)
16346       # DJGPP does not support shared libraries at all
16347       lt_prog_compiler_pic_CXX=
16348       ;;
16349     sysv4*MP*)
16350       if test -d /usr/nec; then
16351         lt_prog_compiler_pic_CXX=-Kconform_pic
16352       fi
16353       ;;
16354     hpux*)
16355       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16356       # not for PA HP-UX.
16357       case "$host_cpu" in
16358       hppa*64*|ia64*)
16359         ;;
16360       *)
16361         lt_prog_compiler_pic_CXX='-fPIC'
16362         ;;
16363       esac
16364       ;;
16365     *)
16366       lt_prog_compiler_pic_CXX='-fPIC'
16367       ;;
16368     esac
16369   else
16370     case $host_os in
16371       aix4* | aix5*)
16372         # All AIX code is PIC.
16373         if test "$host_cpu" = ia64; then
16374           # AIX 5 now supports IA64 processor
16375           lt_prog_compiler_static_CXX='-Bstatic'
16376         else
16377           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16378         fi
16379         ;;
16380       chorus*)
16381         case $cc_basename in
16382         cxch68)
16383           # Green Hills C++ Compiler
16384           # _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"
16385           ;;
16386         esac
16387         ;;
16388        darwin*)
16389          # PIC is the default on this platform
16390          # Common symbols not allowed in MH_DYLIB files
16391          case "$cc_basename" in
16392            xlc*)
16393            lt_prog_compiler_pic_CXX='-qnocommon'
16394            lt_prog_compiler_wl_CXX='-Wl,'
16395            ;;
16396          esac
16397        ;;
16398       dgux*)
16399         case $cc_basename in
16400           ec++)
16401             lt_prog_compiler_pic_CXX='-KPIC'
16402             ;;
16403           ghcx)
16404             # Green Hills C++ Compiler
16405             lt_prog_compiler_pic_CXX='-pic'
16406             ;;
16407           *)
16408             ;;
16409         esac
16410         ;;
16411       freebsd* | kfreebsd*-gnu)
16412         # FreeBSD uses GNU C++
16413         ;;
16414       hpux9* | hpux10* | hpux11*)
16415         case $cc_basename in
16416           CC)
16417             lt_prog_compiler_wl_CXX='-Wl,'
16418             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16419             if test "$host_cpu" != ia64; then
16420               lt_prog_compiler_pic_CXX='+Z'
16421             fi
16422             ;;
16423           aCC)
16424             lt_prog_compiler_wl_CXX='-Wl,'
16425             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16426             case "$host_cpu" in
16427             hppa*64*|ia64*)
16428               # +Z the default
16429               ;;
16430             *)
16431               lt_prog_compiler_pic_CXX='+Z'
16432               ;;
16433             esac
16434             ;;
16435           *)
16436             ;;
16437         esac
16438         ;;
16439       irix5* | irix6* | nonstopux*)
16440         case $cc_basename in
16441           CC)
16442             lt_prog_compiler_wl_CXX='-Wl,'
16443             lt_prog_compiler_static_CXX='-non_shared'
16444             # CC pic flag -KPIC is the default.
16445             ;;
16446           *)
16447             ;;
16448         esac
16449         ;;
16450       linux*)
16451         case $cc_basename in
16452           KCC)
16453             # KAI C++ Compiler
16454             lt_prog_compiler_wl_CXX='--backend -Wl,'
16455             lt_prog_compiler_pic_CXX='-fPIC'
16456             ;;
16457           icpc)
16458             # Intel C++
16459             lt_prog_compiler_wl_CXX='-Wl,'
16460             lt_prog_compiler_pic_CXX='-KPIC'
16461             lt_prog_compiler_static_CXX='-static'
16462             ;;
16463           cxx)
16464             # Compaq C++
16465             # Make sure the PIC flag is empty.  It appears that all Alpha
16466             # Linux and Compaq Tru64 Unix objects are PIC.
16467             lt_prog_compiler_pic_CXX=
16468             lt_prog_compiler_static_CXX='-non_shared'
16469             ;;
16470           *)
16471             ;;
16472         esac
16473         ;;
16474       lynxos*)
16475         ;;
16476       m88k*)
16477         ;;
16478       mvs*)
16479         case $cc_basename in
16480           cxx)
16481             lt_prog_compiler_pic_CXX='-W c,exportall'
16482             ;;
16483           *)
16484             ;;
16485         esac
16486         ;;
16487       netbsd*)
16488         ;;
16489       osf3* | osf4* | osf5*)
16490         case $cc_basename in
16491           KCC)
16492             lt_prog_compiler_wl_CXX='--backend -Wl,'
16493             ;;
16494           RCC)
16495             # Rational C++ 2.4.1
16496             lt_prog_compiler_pic_CXX='-pic'
16497             ;;
16498           cxx)
16499             # Digital/Compaq C++
16500             lt_prog_compiler_wl_CXX='-Wl,'
16501             # Make sure the PIC flag is empty.  It appears that all Alpha
16502             # Linux and Compaq Tru64 Unix objects are PIC.
16503             lt_prog_compiler_pic_CXX=
16504             lt_prog_compiler_static_CXX='-non_shared'
16505             ;;
16506           *)
16507             ;;
16508         esac
16509         ;;
16510       psos*)
16511         ;;
16512       sco*)
16513         case $cc_basename in
16514           CC)
16515             lt_prog_compiler_pic_CXX='-fPIC'
16516             ;;
16517           *)
16518             ;;
16519         esac
16520         ;;
16521       solaris*)
16522         case $cc_basename in
16523           CC)
16524             # Sun C++ 4.2, 5.x and Centerline C++
16525             lt_prog_compiler_pic_CXX='-KPIC'
16526             lt_prog_compiler_static_CXX='-Bstatic'
16527             lt_prog_compiler_wl_CXX='-Qoption ld '
16528             ;;
16529           gcx)
16530             # Green Hills C++ Compiler
16531             lt_prog_compiler_pic_CXX='-PIC'
16532             ;;
16533           *)
16534             ;;
16535         esac
16536         ;;
16537       sunos4*)
16538         case $cc_basename in
16539           CC)
16540             # Sun C++ 4.x
16541             lt_prog_compiler_pic_CXX='-pic'
16542             lt_prog_compiler_static_CXX='-Bstatic'
16543             ;;
16544           lcc)
16545             # Lucid
16546             lt_prog_compiler_pic_CXX='-pic'
16547             ;;
16548           *)
16549             ;;
16550         esac
16551         ;;
16552       tandem*)
16553         case $cc_basename in
16554           NCC)
16555             # NonStop-UX NCC 3.20
16556             lt_prog_compiler_pic_CXX='-KPIC'
16557             ;;
16558           *)
16559             ;;
16560         esac
16561         ;;
16562       unixware*)
16563         ;;
16564       vxworks*)
16565         ;;
16566       *)
16567         lt_prog_compiler_can_build_shared_CXX=no
16568         ;;
16569     esac
16570   fi
16571
16572 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16573 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16574
16575 #
16576 # Check to make sure the PIC flag actually works.
16577 #
16578 if test -n "$lt_prog_compiler_pic_CXX"; then
16579
16580 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16581 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16582 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   lt_prog_compiler_pic_works_CXX=no
16586   ac_outfile=conftest.$ac_objext
16587    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16588    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16589    # Insert the option either (1) after the last *FLAGS variable, or
16590    # (2) before a word containing "conftest.", or (3) at the end.
16591    # Note that $ac_compile itself does not contain backslashes and begins
16592    # with a dollar sign (not a hyphen), so the echo should work correctly.
16593    # The option is referenced via a variable to avoid confusing sed.
16594    lt_compile=`echo "$ac_compile" | $SED \
16595    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16596    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16597    -e 's:$: $lt_compiler_flag:'`
16598    (eval echo "\"\$as_me:16598: $lt_compile\"" >&5)
16599    (eval "$lt_compile" 2>conftest.err)
16600    ac_status=$?
16601    cat conftest.err >&5
16602    echo "$as_me:16602: \$? = $ac_status" >&5
16603    if (exit $ac_status) && test -s "$ac_outfile"; then
16604      # The compiler can only warn and ignore the option if not recognized
16605      # So say no if there are warnings
16606      if test ! -s conftest.err; then
16607        lt_prog_compiler_pic_works_CXX=yes
16608      fi
16609    fi
16610    $rm conftest*
16611
16612 fi
16613 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16614 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16615
16616 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16617     case $lt_prog_compiler_pic_CXX in
16618      "" | " "*) ;;
16619      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16620      esac
16621 else
16622     lt_prog_compiler_pic_CXX=
16623      lt_prog_compiler_can_build_shared_CXX=no
16624 fi
16625
16626 fi
16627 case "$host_os" in
16628   # For platforms which do not support PIC, -DPIC is meaningless:
16629   *djgpp*)
16630     lt_prog_compiler_pic_CXX=
16631     ;;
16632   *)
16633     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16634     ;;
16635 esac
16636
16637 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16638 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16639 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   lt_cv_prog_compiler_c_o_CXX=no
16643    $rm -r conftest 2>/dev/null
16644    mkdir conftest
16645    cd conftest
16646    mkdir out
16647    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16648
16649    lt_compiler_flag="-o out/conftest2.$ac_objext"
16650    # Insert the option either (1) after the last *FLAGS variable, or
16651    # (2) before a word containing "conftest.", or (3) at the end.
16652    # Note that $ac_compile itself does not contain backslashes and begins
16653    # with a dollar sign (not a hyphen), so the echo should work correctly.
16654    lt_compile=`echo "$ac_compile" | $SED \
16655    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16657    -e 's:$: $lt_compiler_flag:'`
16658    (eval echo "\"\$as_me:16658: $lt_compile\"" >&5)
16659    (eval "$lt_compile" 2>out/conftest.err)
16660    ac_status=$?
16661    cat out/conftest.err >&5
16662    echo "$as_me:16662: \$? = $ac_status" >&5
16663    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16664    then
16665      # The compiler can only warn and ignore the option if not recognized
16666      # So say no if there are warnings
16667      if test ! -s out/conftest.err; then
16668        lt_cv_prog_compiler_c_o_CXX=yes
16669      fi
16670    fi
16671    chmod u+w .
16672    $rm conftest*
16673    # SGI C++ compiler will create directory out/ii_files/ for
16674    # template instantiation
16675    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16676    $rm out/* && rmdir out
16677    cd ..
16678    rmdir conftest
16679    $rm conftest*
16680
16681 fi
16682 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16683 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16684
16685
16686 hard_links="nottested"
16687 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16688   # do not overwrite the value of need_locks provided by the user
16689   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16690 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16691   hard_links=yes
16692   $rm conftest*
16693   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16694   touch conftest.a
16695   ln conftest.a conftest.b 2>&5 || hard_links=no
16696   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16697   echo "$as_me:$LINENO: result: $hard_links" >&5
16698 echo "${ECHO_T}$hard_links" >&6
16699   if test "$hard_links" = no; then
16700     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16701 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16702     need_locks=warn
16703   fi
16704 else
16705   need_locks=no
16706 fi
16707
16708 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16709 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16710
16711   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16712   case $host_os in
16713   aix4* | aix5*)
16714     # If we're using GNU nm, then we don't want the "-C" option.
16715     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16716     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16717       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'
16718     else
16719       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'
16720     fi
16721     ;;
16722   pw32*)
16723     export_symbols_cmds_CXX="$ltdll_cmds"
16724   ;;
16725   cygwin* | mingw*)
16726     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16727   ;;
16728   *)
16729     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16730   ;;
16731   esac
16732
16733 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16734 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16735 test "$ld_shlibs_CXX" = no && can_build_shared=no
16736
16737 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16738 if test "$GCC" = yes; then
16739   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16740 fi
16741
16742 #
16743 # Do we need to explicitly link libc?
16744 #
16745 case "x$archive_cmds_need_lc_CXX" in
16746 x|xyes)
16747   # Assume -lc should be added
16748   archive_cmds_need_lc_CXX=yes
16749
16750   if test "$enable_shared" = yes && test "$GCC" = yes; then
16751     case $archive_cmds_CXX in
16752     *'~'*)
16753       # FIXME: we may have to deal with multi-command sequences.
16754       ;;
16755     '$CC '*)
16756       # Test whether the compiler implicitly links with -lc since on some
16757       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16758       # to ld, don't add -lc before -lgcc.
16759       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16760 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16761       $rm conftest*
16762       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16763
16764       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765   (eval $ac_compile) 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } 2>conftest.err; then
16769         soname=conftest
16770         lib=conftest
16771         libobjs=conftest.$ac_objext
16772         deplibs=
16773         wl=$lt_prog_compiler_wl_CXX
16774         compiler_flags=-v
16775         linker_flags=-v
16776         verstring=
16777         output_objdir=.
16778         libname=conftest
16779         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16780         allow_undefined_flag_CXX=
16781         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16782   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); }
16786         then
16787           archive_cmds_need_lc_CXX=no
16788         else
16789           archive_cmds_need_lc_CXX=yes
16790         fi
16791         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16792       else
16793         cat conftest.err 1>&5
16794       fi
16795       $rm conftest*
16796       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16797 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16798       ;;
16799     esac
16800   fi
16801   ;;
16802 esac
16803
16804 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16805 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16806 library_names_spec=
16807 libname_spec='lib$name'
16808 soname_spec=
16809 shrext_cmds=".so"
16810 postinstall_cmds=
16811 postuninstall_cmds=
16812 finish_cmds=
16813 finish_eval=
16814 shlibpath_var=
16815 shlibpath_overrides_runpath=unknown
16816 version_type=none
16817 dynamic_linker="$host_os ld.so"
16818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16819 if test "$GCC" = yes; then
16820   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16821   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16822     # if the path contains ";" then we assume it to be the separator
16823     # otherwise default to the standard path separator (i.e. ":") - it is
16824     # assumed that no part of a normal pathname contains ";" but that should
16825     # okay in the real world where ";" in dirpaths is itself problematic.
16826     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16827   else
16828     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16829   fi
16830 else
16831   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16832 fi
16833 need_lib_prefix=unknown
16834 hardcode_into_libs=no
16835
16836 # when you set need_version to no, make sure it does not cause -set_version
16837 # flags to be left without arguments
16838 need_version=unknown
16839
16840 case $host_os in
16841 aix3*)
16842   version_type=linux
16843   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16844   shlibpath_var=LIBPATH
16845
16846   # AIX 3 has no versioning support, so we append a major version to the name.
16847   soname_spec='${libname}${release}${shared_ext}$major'
16848   ;;
16849
16850 aix4* | aix5*)
16851   version_type=linux
16852   need_lib_prefix=no
16853   need_version=no
16854   hardcode_into_libs=yes
16855   if test "$host_cpu" = ia64; then
16856     # AIX 5 supports IA64
16857     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16858     shlibpath_var=LD_LIBRARY_PATH
16859   else
16860     # With GCC up to 2.95.x, collect2 would create an import file
16861     # for dependence libraries.  The import file would start with
16862     # the line `#! .'.  This would cause the generated library to
16863     # depend on `.', always an invalid library.  This was fixed in
16864     # development snapshots of GCC prior to 3.0.
16865     case $host_os in
16866       aix4 | aix4.[01] | aix4.[01].*)
16867       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16868            echo ' yes '
16869            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16870         :
16871       else
16872         can_build_shared=no
16873       fi
16874       ;;
16875     esac
16876     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16877     # soname into executable. Probably we can add versioning support to
16878     # collect2, so additional links can be useful in future.
16879     if test "$aix_use_runtimelinking" = yes; then
16880       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16881       # instead of lib<name>.a to let people know that these are not
16882       # typical AIX shared libraries.
16883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884     else
16885       # We preserve .a as extension for shared libraries through AIX4.2
16886       # and later when we are not doing run time linking.
16887       library_names_spec='${libname}${release}.a $libname.a'
16888       soname_spec='${libname}${release}${shared_ext}$major'
16889     fi
16890     shlibpath_var=LIBPATH
16891   fi
16892   ;;
16893
16894 amigaos*)
16895   library_names_spec='$libname.ixlibrary $libname.a'
16896   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16897   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'
16898   ;;
16899
16900 beos*)
16901   library_names_spec='${libname}${shared_ext}'
16902   dynamic_linker="$host_os ld.so"
16903   shlibpath_var=LIBRARY_PATH
16904   ;;
16905
16906 bsdi[45]*)
16907   version_type=linux
16908   need_version=no
16909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910   soname_spec='${libname}${release}${shared_ext}$major'
16911   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16912   shlibpath_var=LD_LIBRARY_PATH
16913   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16914   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16915   # the default ld.so.conf also contains /usr/contrib/lib and
16916   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16917   # libtool to hard-code these into programs
16918   ;;
16919
16920 cygwin* | mingw* | pw32*)
16921   version_type=windows
16922   shrext_cmds=".dll"
16923   need_version=no
16924   need_lib_prefix=no
16925
16926   case $GCC,$host_os in
16927   yes,cygwin* | yes,mingw* | yes,pw32*)
16928     library_names_spec='$libname.dll.a'
16929     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16930     postinstall_cmds='base_file=`basename \${file}`~
16931       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16932       dldir=$destdir/`dirname \$dlpath`~
16933       test -d \$dldir || mkdir -p \$dldir~
16934       $install_prog $dir/$dlname \$dldir/$dlname'
16935     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16936       dlpath=$dir/\$dldll~
16937        $rm \$dlpath'
16938     shlibpath_overrides_runpath=yes
16939
16940     case $host_os in
16941     cygwin*)
16942       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16943       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16944       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16945       ;;
16946     mingw*)
16947       # MinGW DLLs use traditional 'lib' prefix
16948       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16949       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16950       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16951         # It is most probably a Windows format PATH printed by
16952         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16953         # path with ; separators, and with drive letters. We can handle the
16954         # drive letters (cygwin fileutils understands them), so leave them,
16955         # especially as we might pass files found there to a mingw objdump,
16956         # which wouldn't understand a cygwinified path. Ahh.
16957         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16958       else
16959         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16960       fi
16961       ;;
16962     pw32*)
16963       # pw32 DLLs use 'pw' prefix rather than 'lib'
16964       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16965       ;;
16966     esac
16967     ;;
16968
16969   *)
16970     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16971     ;;
16972   esac
16973   dynamic_linker='Win32 ld.exe'
16974   # FIXME: first we should search . and the directory the executable is in
16975   shlibpath_var=PATH
16976   ;;
16977
16978 darwin* | rhapsody*)
16979   dynamic_linker="$host_os dyld"
16980   version_type=darwin
16981   need_lib_prefix=no
16982   need_version=no
16983   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16984   soname_spec='${libname}${release}${major}$shared_ext'
16985   shlibpath_overrides_runpath=yes
16986   shlibpath_var=DYLD_LIBRARY_PATH
16987   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16988   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16989   if test "$GCC" = yes; then
16990     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"`
16991   else
16992     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16993   fi
16994   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16995   ;;
16996
16997 dgux*)
16998   version_type=linux
16999   need_lib_prefix=no
17000   need_version=no
17001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17002   soname_spec='${libname}${release}${shared_ext}$major'
17003   shlibpath_var=LD_LIBRARY_PATH
17004   ;;
17005
17006 freebsd1*)
17007   dynamic_linker=no
17008   ;;
17009
17010 kfreebsd*-gnu)
17011   version_type=linux
17012   need_lib_prefix=no
17013   need_version=no
17014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17015   soname_spec='${libname}${release}${shared_ext}$major'
17016   shlibpath_var=LD_LIBRARY_PATH
17017   shlibpath_overrides_runpath=no
17018   hardcode_into_libs=yes
17019   dynamic_linker='GNU ld.so'
17020   ;;
17021
17022 freebsd*)
17023   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17024   version_type=freebsd-$objformat
17025   case $version_type in
17026     freebsd-elf*)
17027       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17028       need_version=no
17029       need_lib_prefix=no
17030       ;;
17031     freebsd-*)
17032       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17033       need_version=yes
17034       ;;
17035   esac
17036   shlibpath_var=LD_LIBRARY_PATH
17037   case $host_os in
17038   freebsd2*)
17039     shlibpath_overrides_runpath=yes
17040     ;;
17041   freebsd3.01* | freebsdelf3.01*)
17042     shlibpath_overrides_runpath=yes
17043     hardcode_into_libs=yes
17044     ;;
17045   *) # from 3.2 on
17046     shlibpath_overrides_runpath=no
17047     hardcode_into_libs=yes
17048     ;;
17049   esac
17050   ;;
17051
17052 gnu*)
17053   version_type=linux
17054   need_lib_prefix=no
17055   need_version=no
17056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17057   soname_spec='${libname}${release}${shared_ext}$major'
17058   shlibpath_var=LD_LIBRARY_PATH
17059   hardcode_into_libs=yes
17060   ;;
17061
17062 hpux9* | hpux10* | hpux11*)
17063   # Give a soname corresponding to the major version so that dld.sl refuses to
17064   # link against other versions.
17065   version_type=sunos
17066   need_lib_prefix=no
17067   need_version=no
17068   case "$host_cpu" in
17069   ia64*)
17070     shrext_cmds='.so'
17071     hardcode_into_libs=yes
17072     dynamic_linker="$host_os dld.so"
17073     shlibpath_var=LD_LIBRARY_PATH
17074     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17076     soname_spec='${libname}${release}${shared_ext}$major'
17077     if test "X$HPUX_IA64_MODE" = X32; then
17078       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17079     else
17080       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17081     fi
17082     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17083     ;;
17084    hppa*64*)
17085      shrext_cmds='.sl'
17086      hardcode_into_libs=yes
17087      dynamic_linker="$host_os dld.sl"
17088      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17089      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17093      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17094      ;;
17095    *)
17096     shrext_cmds='.sl'
17097     dynamic_linker="$host_os dld.sl"
17098     shlibpath_var=SHLIB_PATH
17099     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101     soname_spec='${libname}${release}${shared_ext}$major'
17102     ;;
17103   esac
17104   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17105   postinstall_cmds='chmod 555 $lib'
17106   ;;
17107
17108 irix5* | irix6* | nonstopux*)
17109   case $host_os in
17110     nonstopux*) version_type=nonstopux ;;
17111     *)
17112         if test "$lt_cv_prog_gnu_ld" = yes; then
17113                 version_type=linux
17114         else
17115                 version_type=irix
17116         fi ;;
17117   esac
17118   need_lib_prefix=no
17119   need_version=no
17120   soname_spec='${libname}${release}${shared_ext}$major'
17121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17122   case $host_os in
17123   irix5* | nonstopux*)
17124     libsuff= shlibsuff=
17125     ;;
17126   *)
17127     case $LD in # libtool.m4 will add one of these switches to LD
17128     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17129       libsuff= shlibsuff= libmagic=32-bit;;
17130     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17131       libsuff=32 shlibsuff=N32 libmagic=N32;;
17132     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17133       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17134     *) libsuff= shlibsuff= libmagic=never-match;;
17135     esac
17136     ;;
17137   esac
17138   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17139   shlibpath_overrides_runpath=no
17140   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17141   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17142   hardcode_into_libs=yes
17143   ;;
17144
17145 # No shared lib support for Linux oldld, aout, or coff.
17146 linux*oldld* | linux*aout* | linux*coff*)
17147   dynamic_linker=no
17148   ;;
17149
17150 # This must be Linux ELF.
17151 linux*)
17152   version_type=linux
17153   need_lib_prefix=no
17154   need_version=no
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156   soname_spec='${libname}${release}${shared_ext}$major'
17157   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17158   shlibpath_var=LD_LIBRARY_PATH
17159   shlibpath_overrides_runpath=no
17160   # This implies no fast_install, which is unacceptable.
17161   # Some rework will be needed to allow for fast_install
17162   # before this can be enabled.
17163   hardcode_into_libs=yes
17164
17165   # Append ld.so.conf contents to the search path
17166   if test -f /etc/ld.so.conf; then
17167     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17168     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17169   fi
17170
17171   # We used to test for /lib/ld.so.1 and disable shared libraries on
17172   # powerpc, because MkLinux only supported shared libraries with the
17173   # GNU dynamic linker.  Since this was broken with cross compilers,
17174   # most powerpc-linux boxes support dynamic linking these days and
17175   # people can always --disable-shared, the test was removed, and we
17176   # assume the GNU/Linux dynamic linker is in use.
17177   dynamic_linker='GNU/Linux ld.so'
17178   ;;
17179
17180 knetbsd*-gnu)
17181   version_type=linux
17182   need_lib_prefix=no
17183   need_version=no
17184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17185   soname_spec='${libname}${release}${shared_ext}$major'
17186   shlibpath_var=LD_LIBRARY_PATH
17187   shlibpath_overrides_runpath=no
17188   hardcode_into_libs=yes
17189   dynamic_linker='GNU ld.so'
17190   ;;
17191
17192 netbsd*)
17193   version_type=sunos
17194   need_lib_prefix=no
17195   need_version=no
17196   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17198     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17199     dynamic_linker='NetBSD (a.out) ld.so'
17200   else
17201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17202     soname_spec='${libname}${release}${shared_ext}$major'
17203     dynamic_linker='NetBSD ld.elf_so'
17204   fi
17205   shlibpath_var=LD_LIBRARY_PATH
17206   shlibpath_overrides_runpath=yes
17207   hardcode_into_libs=yes
17208   ;;
17209
17210 newsos6)
17211   version_type=linux
17212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213   shlibpath_var=LD_LIBRARY_PATH
17214   shlibpath_overrides_runpath=yes
17215   ;;
17216
17217 nto-qnx*)
17218   version_type=linux
17219   need_lib_prefix=no
17220   need_version=no
17221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222   soname_spec='${libname}${release}${shared_ext}$major'
17223   shlibpath_var=LD_LIBRARY_PATH
17224   shlibpath_overrides_runpath=yes
17225   ;;
17226
17227 openbsd*)
17228   version_type=sunos
17229   need_lib_prefix=no
17230   need_version=no
17231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17232   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17233   shlibpath_var=LD_LIBRARY_PATH
17234   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17235     case $host_os in
17236       openbsd2.[89] | openbsd2.[89].*)
17237         shlibpath_overrides_runpath=no
17238         ;;
17239       *)
17240         shlibpath_overrides_runpath=yes
17241         ;;
17242       esac
17243   else
17244     shlibpath_overrides_runpath=yes
17245   fi
17246   ;;
17247
17248 os2*)
17249   libname_spec='$name'
17250   shrext_cmds=".dll"
17251   need_lib_prefix=no
17252   library_names_spec='$libname${shared_ext} $libname.a'
17253   dynamic_linker='OS/2 ld.exe'
17254   shlibpath_var=LIBPATH
17255   ;;
17256
17257 osf3* | osf4* | osf5*)
17258   version_type=osf
17259   need_lib_prefix=no
17260   need_version=no
17261   soname_spec='${libname}${release}${shared_ext}$major'
17262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263   shlibpath_var=LD_LIBRARY_PATH
17264   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17265   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17266   ;;
17267
17268 sco3.2v5*)
17269   version_type=osf
17270   soname_spec='${libname}${release}${shared_ext}$major'
17271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272   shlibpath_var=LD_LIBRARY_PATH
17273   ;;
17274
17275 solaris*)
17276   version_type=linux
17277   need_lib_prefix=no
17278   need_version=no
17279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280   soname_spec='${libname}${release}${shared_ext}$major'
17281   shlibpath_var=LD_LIBRARY_PATH
17282   shlibpath_overrides_runpath=yes
17283   hardcode_into_libs=yes
17284   # ldd complains unless libraries are executable
17285   postinstall_cmds='chmod +x $lib'
17286   ;;
17287
17288 sunos4*)
17289   version_type=sunos
17290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17291   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17292   shlibpath_var=LD_LIBRARY_PATH
17293   shlibpath_overrides_runpath=yes
17294   if test "$with_gnu_ld" = yes; then
17295     need_lib_prefix=no
17296   fi
17297   need_version=yes
17298   ;;
17299
17300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17301   version_type=linux
17302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303   soname_spec='${libname}${release}${shared_ext}$major'
17304   shlibpath_var=LD_LIBRARY_PATH
17305   case $host_vendor in
17306     sni)
17307       shlibpath_overrides_runpath=no
17308       need_lib_prefix=no
17309       export_dynamic_flag_spec='${wl}-Blargedynsym'
17310       runpath_var=LD_RUN_PATH
17311       ;;
17312     siemens)
17313       need_lib_prefix=no
17314       ;;
17315     motorola)
17316       need_lib_prefix=no
17317       need_version=no
17318       shlibpath_overrides_runpath=no
17319       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17320       ;;
17321   esac
17322   ;;
17323
17324 sysv4*MP*)
17325   if test -d /usr/nec ;then
17326     version_type=linux
17327     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17328     soname_spec='$libname${shared_ext}.$major'
17329     shlibpath_var=LD_LIBRARY_PATH
17330   fi
17331   ;;
17332
17333 uts4*)
17334   version_type=linux
17335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336   soname_spec='${libname}${release}${shared_ext}$major'
17337   shlibpath_var=LD_LIBRARY_PATH
17338   ;;
17339
17340 *)
17341   dynamic_linker=no
17342   ;;
17343 esac
17344 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17345 echo "${ECHO_T}$dynamic_linker" >&6
17346 test "$dynamic_linker" = no && can_build_shared=no
17347
17348 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17349 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17350 hardcode_action_CXX=
17351 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17352    test -n "$runpath_var_CXX" || \
17353    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17354
17355   # We can hardcode non-existant directories.
17356   if test "$hardcode_direct_CXX" != no &&
17357      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17358      # have to relink, otherwise we might link with an installed library
17359      # when we should be linking with a yet-to-be-installed one
17360      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17361      test "$hardcode_minus_L_CXX" != no; then
17362     # Linking always hardcodes the temporary library directory.
17363     hardcode_action_CXX=relink
17364   else
17365     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17366     hardcode_action_CXX=immediate
17367   fi
17368 else
17369   # We cannot hardcode anything, or else we can only hardcode existing
17370   # directories.
17371   hardcode_action_CXX=unsupported
17372 fi
17373 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17374 echo "${ECHO_T}$hardcode_action_CXX" >&6
17375
17376 if test "$hardcode_action_CXX" = relink; then
17377   # Fast installation is not supported
17378   enable_fast_install=no
17379 elif test "$shlibpath_overrides_runpath" = yes ||
17380      test "$enable_shared" = no; then
17381   # Fast installation is not necessary
17382   enable_fast_install=needless
17383 fi
17384
17385 striplib=
17386 old_striplib=
17387 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17388 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17389 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17390   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17391   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17392   echo "$as_me:$LINENO: result: yes" >&5
17393 echo "${ECHO_T}yes" >&6
17394 else
17395 # FIXME - insert some real tests, host_os isn't really good enough
17396   case $host_os in
17397    darwin*)
17398        if test -n "$STRIP" ; then
17399          striplib="$STRIP -x"
17400          echo "$as_me:$LINENO: result: yes" >&5
17401 echo "${ECHO_T}yes" >&6
17402        else
17403   echo "$as_me:$LINENO: result: no" >&5
17404 echo "${ECHO_T}no" >&6
17405 fi
17406        ;;
17407    *)
17408   echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6
17410     ;;
17411   esac
17412 fi
17413
17414 if test "x$enable_dlopen" != xyes; then
17415   enable_dlopen=unknown
17416   enable_dlopen_self=unknown
17417   enable_dlopen_self_static=unknown
17418 else
17419   lt_cv_dlopen=no
17420   lt_cv_dlopen_libs=
17421
17422   case $host_os in
17423   beos*)
17424     lt_cv_dlopen="load_add_on"
17425     lt_cv_dlopen_libs=
17426     lt_cv_dlopen_self=yes
17427     ;;
17428
17429   mingw* | pw32*)
17430     lt_cv_dlopen="LoadLibrary"
17431     lt_cv_dlopen_libs=
17432    ;;
17433
17434   cygwin*)
17435     lt_cv_dlopen="dlopen"
17436     lt_cv_dlopen_libs=
17437    ;;
17438
17439   darwin*)
17440   # if libdl is installed we need to link against it
17441     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17442 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17443 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17444   echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446   ac_check_lib_save_LIBS=$LIBS
17447 LIBS="-ldl  $LIBS"
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h.  */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h.  */
17454
17455 /* Override any gcc2 internal prototype to avoid an error.  */
17456 #ifdef __cplusplus
17457 extern "C"
17458 #endif
17459 /* We use char because int might match the return type of a gcc2
17460    builtin and then its argument prototype would still apply.  */
17461 char dlopen ();
17462 int
17463 main ()
17464 {
17465 dlopen ();
17466   ;
17467   return 0;
17468 }
17469 _ACEOF
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17472   (eval $ac_link) 2>conftest.er1
17473   ac_status=$?
17474   grep -v '^ *+' conftest.er1 >conftest.err
17475   rm -f conftest.er1
17476   cat conftest.err >&5
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); } &&
17479          { ac_try='test -z "$ac_cxx_werror_flag"
17480                          || test ! -s conftest.err'
17481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482   (eval $ac_try) 2>&5
17483   ac_status=$?
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); }; } &&
17486          { ac_try='test -s conftest$ac_exeext'
17487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488   (eval $ac_try) 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; }; then
17492   ac_cv_lib_dl_dlopen=yes
17493 else
17494   echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17496
17497 ac_cv_lib_dl_dlopen=no
17498 fi
17499 rm -f conftest.err conftest.$ac_objext \
17500       conftest$ac_exeext conftest.$ac_ext
17501 LIBS=$ac_check_lib_save_LIBS
17502 fi
17503 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17505 if test $ac_cv_lib_dl_dlopen = yes; then
17506   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17507 else
17508
17509     lt_cv_dlopen="dyld"
17510     lt_cv_dlopen_libs=
17511     lt_cv_dlopen_self=yes
17512
17513 fi
17514
17515    ;;
17516
17517   *)
17518     echo "$as_me:$LINENO: checking for shl_load" >&5
17519 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17520 if test "${ac_cv_func_shl_load+set}" = set; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17531 #define shl_load innocuous_shl_load
17532
17533 /* System header to define __stub macros and hopefully few prototypes,
17534     which can conflict with char shl_load (); below.
17535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536     <limits.h> exists even on freestanding compilers.  */
17537
17538 #ifdef __STDC__
17539 # include <limits.h>
17540 #else
17541 # include <assert.h>
17542 #endif
17543
17544 #undef shl_load
17545
17546 /* Override any gcc2 internal prototype to avoid an error.  */
17547 #ifdef __cplusplus
17548 extern "C"
17549 {
17550 #endif
17551 /* We use char because int might match the return type of a gcc2
17552    builtin and then its argument prototype would still apply.  */
17553 char shl_load ();
17554 /* The GNU C library defines this for functions which it implements
17555     to always fail with ENOSYS.  Some functions are actually named
17556     something starting with __ and the normal name is an alias.  */
17557 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17558 choke me
17559 #else
17560 char (*f) () = shl_load;
17561 #endif
17562 #ifdef __cplusplus
17563 }
17564 #endif
17565
17566 int
17567 main ()
17568 {
17569 return f != shl_load;
17570   ;
17571   return 0;
17572 }
17573 _ACEOF
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17576   (eval $ac_link) 2>conftest.er1
17577   ac_status=$?
17578   grep -v '^ *+' conftest.er1 >conftest.err
17579   rm -f conftest.er1
17580   cat conftest.err >&5
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); } &&
17583          { ac_try='test -z "$ac_cxx_werror_flag"
17584                          || test ! -s conftest.err'
17585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586   (eval $ac_try) 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; } &&
17590          { ac_try='test -s conftest$ac_exeext'
17591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592   (eval $ac_try) 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; }; then
17596   ac_cv_func_shl_load=yes
17597 else
17598   echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17600
17601 ac_cv_func_shl_load=no
17602 fi
17603 rm -f conftest.err conftest.$ac_objext \
17604       conftest$ac_exeext conftest.$ac_ext
17605 fi
17606 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17607 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17608 if test $ac_cv_func_shl_load = yes; then
17609   lt_cv_dlopen="shl_load"
17610 else
17611   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17612 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17613 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17614   echo $ECHO_N "(cached) $ECHO_C" >&6
17615 else
17616   ac_check_lib_save_LIBS=$LIBS
17617 LIBS="-ldld  $LIBS"
17618 cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h.  */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h.  */
17624
17625 /* Override any gcc2 internal prototype to avoid an error.  */
17626 #ifdef __cplusplus
17627 extern "C"
17628 #endif
17629 /* We use char because int might match the return type of a gcc2
17630    builtin and then its argument prototype would still apply.  */
17631 char shl_load ();
17632 int
17633 main ()
17634 {
17635 shl_load ();
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_lib_dld_shl_load=yes
17663 else
17664   echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667 ac_cv_lib_dld_shl_load=no
17668 fi
17669 rm -f conftest.err conftest.$ac_objext \
17670       conftest$ac_exeext conftest.$ac_ext
17671 LIBS=$ac_check_lib_save_LIBS
17672 fi
17673 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17674 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17675 if test $ac_cv_lib_dld_shl_load = yes; then
17676   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17677 else
17678   echo "$as_me:$LINENO: checking for dlopen" >&5
17679 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17680 if test "${ac_cv_func_dlopen+set}" = set; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17691 #define dlopen innocuous_dlopen
17692
17693 /* System header to define __stub macros and hopefully few prototypes,
17694     which can conflict with char dlopen (); below.
17695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696     <limits.h> exists even on freestanding compilers.  */
17697
17698 #ifdef __STDC__
17699 # include <limits.h>
17700 #else
17701 # include <assert.h>
17702 #endif
17703
17704 #undef dlopen
17705
17706 /* Override any gcc2 internal prototype to avoid an error.  */
17707 #ifdef __cplusplus
17708 extern "C"
17709 {
17710 #endif
17711 /* We use char because int might match the return type of a gcc2
17712    builtin and then its argument prototype would still apply.  */
17713 char dlopen ();
17714 /* The GNU C library defines this for functions which it implements
17715     to always fail with ENOSYS.  Some functions are actually named
17716     something starting with __ and the normal name is an alias.  */
17717 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17718 choke me
17719 #else
17720 char (*f) () = dlopen;
17721 #endif
17722 #ifdef __cplusplus
17723 }
17724 #endif
17725
17726 int
17727 main ()
17728 {
17729 return f != dlopen;
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736   (eval $ac_link) 2>conftest.er1
17737   ac_status=$?
17738   grep -v '^ *+' conftest.er1 >conftest.err
17739   rm -f conftest.er1
17740   cat conftest.err >&5
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); } &&
17743          { ac_try='test -z "$ac_cxx_werror_flag"
17744                          || test ! -s conftest.err'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; } &&
17750          { ac_try='test -s conftest$ac_exeext'
17751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752   (eval $ac_try) 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; }; then
17756   ac_cv_func_dlopen=yes
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761 ac_cv_func_dlopen=no
17762 fi
17763 rm -f conftest.err conftest.$ac_objext \
17764       conftest$ac_exeext conftest.$ac_ext
17765 fi
17766 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17767 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17768 if test $ac_cv_func_dlopen = yes; then
17769   lt_cv_dlopen="dlopen"
17770 else
17771   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17772 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17773 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17774   echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776   ac_check_lib_save_LIBS=$LIBS
17777 LIBS="-ldl  $LIBS"
17778 cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h.  */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h.  */
17784
17785 /* Override any gcc2 internal prototype to avoid an error.  */
17786 #ifdef __cplusplus
17787 extern "C"
17788 #endif
17789 /* We use char because int might match the return type of a gcc2
17790    builtin and then its argument prototype would still apply.  */
17791 char dlopen ();
17792 int
17793 main ()
17794 {
17795 dlopen ();
17796   ;
17797   return 0;
17798 }
17799 _ACEOF
17800 rm -f conftest.$ac_objext conftest$ac_exeext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17802   (eval $ac_link) 2>conftest.er1
17803   ac_status=$?
17804   grep -v '^ *+' conftest.er1 >conftest.err
17805   rm -f conftest.er1
17806   cat conftest.err >&5
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); } &&
17809          { ac_try='test -z "$ac_cxx_werror_flag"
17810                          || test ! -s conftest.err'
17811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812   (eval $ac_try) 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; } &&
17816          { ac_try='test -s conftest$ac_exeext'
17817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818   (eval $ac_try) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; }; then
17822   ac_cv_lib_dl_dlopen=yes
17823 else
17824   echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827 ac_cv_lib_dl_dlopen=no
17828 fi
17829 rm -f conftest.err conftest.$ac_objext \
17830       conftest$ac_exeext conftest.$ac_ext
17831 LIBS=$ac_check_lib_save_LIBS
17832 fi
17833 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17834 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17835 if test $ac_cv_lib_dl_dlopen = yes; then
17836   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17837 else
17838   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17839 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17840 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843   ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-lsvld  $LIBS"
17845 cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h.  */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h.  */
17851
17852 /* Override any gcc2 internal prototype to avoid an error.  */
17853 #ifdef __cplusplus
17854 extern "C"
17855 #endif
17856 /* We use char because int might match the return type of a gcc2
17857    builtin and then its argument prototype would still apply.  */
17858 char dlopen ();
17859 int
17860 main ()
17861 {
17862 dlopen ();
17863   ;
17864   return 0;
17865 }
17866 _ACEOF
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17869   (eval $ac_link) 2>conftest.er1
17870   ac_status=$?
17871   grep -v '^ *+' conftest.er1 >conftest.err
17872   rm -f conftest.er1
17873   cat conftest.err >&5
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); } &&
17876          { ac_try='test -z "$ac_cxx_werror_flag"
17877                          || test ! -s conftest.err'
17878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879   (eval $ac_try) 2>&5
17880   ac_status=$?
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); }; } &&
17883          { ac_try='test -s conftest$ac_exeext'
17884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885   (eval $ac_try) 2>&5
17886   ac_status=$?
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); }; }; then
17889   ac_cv_lib_svld_dlopen=yes
17890 else
17891   echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17893
17894 ac_cv_lib_svld_dlopen=no
17895 fi
17896 rm -f conftest.err conftest.$ac_objext \
17897       conftest$ac_exeext conftest.$ac_ext
17898 LIBS=$ac_check_lib_save_LIBS
17899 fi
17900 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17901 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17902 if test $ac_cv_lib_svld_dlopen = yes; then
17903   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17904 else
17905   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17906 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17907 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   ac_check_lib_save_LIBS=$LIBS
17911 LIBS="-ldld  $LIBS"
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h.  */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h.  */
17918
17919 /* Override any gcc2 internal prototype to avoid an error.  */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 /* We use char because int might match the return type of a gcc2
17924    builtin and then its argument prototype would still apply.  */
17925 char dld_link ();
17926 int
17927 main ()
17928 {
17929 dld_link ();
17930   ;
17931   return 0;
17932 }
17933 _ACEOF
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936   (eval $ac_link) 2>conftest.er1
17937   ac_status=$?
17938   grep -v '^ *+' conftest.er1 >conftest.err
17939   rm -f conftest.er1
17940   cat conftest.err >&5
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); } &&
17943          { ac_try='test -z "$ac_cxx_werror_flag"
17944                          || test ! -s conftest.err'
17945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946   (eval $ac_try) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; } &&
17950          { ac_try='test -s conftest$ac_exeext'
17951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952   (eval $ac_try) 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; }; then
17956   ac_cv_lib_dld_dld_link=yes
17957 else
17958   echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961 ac_cv_lib_dld_dld_link=no
17962 fi
17963 rm -f conftest.err conftest.$ac_objext \
17964       conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17966 fi
17967 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17968 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17969 if test $ac_cv_lib_dld_dld_link = yes; then
17970   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17971 fi
17972
17973
17974 fi
17975
17976
17977 fi
17978
17979
17980 fi
17981
17982
17983 fi
17984
17985
17986 fi
17987
17988     ;;
17989   esac
17990
17991   if test "x$lt_cv_dlopen" != xno; then
17992     enable_dlopen=yes
17993   else
17994     enable_dlopen=no
17995   fi
17996
17997   case $lt_cv_dlopen in
17998   dlopen)
17999     save_CPPFLAGS="$CPPFLAGS"
18000     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18001
18002     save_LDFLAGS="$LDFLAGS"
18003     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18004
18005     save_LIBS="$LIBS"
18006     LIBS="$lt_cv_dlopen_libs $LIBS"
18007
18008     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18009 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18010 if test "${lt_cv_dlopen_self+set}" = set; then
18011   echo $ECHO_N "(cached) $ECHO_C" >&6
18012 else
18013           if test "$cross_compiling" = yes; then :
18014   lt_cv_dlopen_self=cross
18015 else
18016   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18017   lt_status=$lt_dlunknown
18018   cat > conftest.$ac_ext <<EOF
18019 #line 18019 "configure"
18020 #include "confdefs.h"
18021
18022 #if HAVE_DLFCN_H
18023 #include <dlfcn.h>
18024 #endif
18025
18026 #include <stdio.h>
18027
18028 #ifdef RTLD_GLOBAL
18029 #  define LT_DLGLOBAL           RTLD_GLOBAL
18030 #else
18031 #  ifdef DL_GLOBAL
18032 #    define LT_DLGLOBAL         DL_GLOBAL
18033 #  else
18034 #    define LT_DLGLOBAL         0
18035 #  endif
18036 #endif
18037
18038 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18039    find out it does not work in some platform. */
18040 #ifndef LT_DLLAZY_OR_NOW
18041 #  ifdef RTLD_LAZY
18042 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18043 #  else
18044 #    ifdef DL_LAZY
18045 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18046 #    else
18047 #      ifdef RTLD_NOW
18048 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18049 #      else
18050 #        ifdef DL_NOW
18051 #          define LT_DLLAZY_OR_NOW      DL_NOW
18052 #        else
18053 #          define LT_DLLAZY_OR_NOW      0
18054 #        endif
18055 #      endif
18056 #    endif
18057 #  endif
18058 #endif
18059
18060 #ifdef __cplusplus
18061 extern "C" void exit (int);
18062 #endif
18063
18064 void fnord() { int i=42;}
18065 int main ()
18066 {
18067   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18068   int status = $lt_dlunknown;
18069
18070   if (self)
18071     {
18072       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18073       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18074       /* dlclose (self); */
18075     }
18076
18077     exit (status);
18078 }
18079 EOF
18080   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18081   (eval $ac_link) 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18085     (./conftest; exit; ) 2>/dev/null
18086     lt_status=$?
18087     case x$lt_status in
18088       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18089       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18090       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18091     esac
18092   else :
18093     # compilation failed
18094     lt_cv_dlopen_self=no
18095   fi
18096 fi
18097 rm -fr conftest*
18098
18099
18100 fi
18101 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18102 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18103
18104     if test "x$lt_cv_dlopen_self" = xyes; then
18105       LDFLAGS="$LDFLAGS $link_static_flag"
18106       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18107 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18108 if test "${lt_cv_dlopen_self_static+set}" = set; then
18109   echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111           if test "$cross_compiling" = yes; then :
18112   lt_cv_dlopen_self_static=cross
18113 else
18114   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18115   lt_status=$lt_dlunknown
18116   cat > conftest.$ac_ext <<EOF
18117 #line 18117 "configure"
18118 #include "confdefs.h"
18119
18120 #if HAVE_DLFCN_H
18121 #include <dlfcn.h>
18122 #endif
18123
18124 #include <stdio.h>
18125
18126 #ifdef RTLD_GLOBAL
18127 #  define LT_DLGLOBAL           RTLD_GLOBAL
18128 #else
18129 #  ifdef DL_GLOBAL
18130 #    define LT_DLGLOBAL         DL_GLOBAL
18131 #  else
18132 #    define LT_DLGLOBAL         0
18133 #  endif
18134 #endif
18135
18136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18137    find out it does not work in some platform. */
18138 #ifndef LT_DLLAZY_OR_NOW
18139 #  ifdef RTLD_LAZY
18140 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18141 #  else
18142 #    ifdef DL_LAZY
18143 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18144 #    else
18145 #      ifdef RTLD_NOW
18146 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18147 #      else
18148 #        ifdef DL_NOW
18149 #          define LT_DLLAZY_OR_NOW      DL_NOW
18150 #        else
18151 #          define LT_DLLAZY_OR_NOW      0
18152 #        endif
18153 #      endif
18154 #    endif
18155 #  endif
18156 #endif
18157
18158 #ifdef __cplusplus
18159 extern "C" void exit (int);
18160 #endif
18161
18162 void fnord() { int i=42;}
18163 int main ()
18164 {
18165   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18166   int status = $lt_dlunknown;
18167
18168   if (self)
18169     {
18170       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18171       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18172       /* dlclose (self); */
18173     }
18174
18175     exit (status);
18176 }
18177 EOF
18178   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18179   (eval $ac_link) 2>&5
18180   ac_status=$?
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18183     (./conftest; exit; ) 2>/dev/null
18184     lt_status=$?
18185     case x$lt_status in
18186       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18187       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18188       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18189     esac
18190   else :
18191     # compilation failed
18192     lt_cv_dlopen_self_static=no
18193   fi
18194 fi
18195 rm -fr conftest*
18196
18197
18198 fi
18199 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18200 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18201     fi
18202
18203     CPPFLAGS="$save_CPPFLAGS"
18204     LDFLAGS="$save_LDFLAGS"
18205     LIBS="$save_LIBS"
18206     ;;
18207   esac
18208
18209   case $lt_cv_dlopen_self in
18210   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18211   *) enable_dlopen_self=unknown ;;
18212   esac
18213
18214   case $lt_cv_dlopen_self_static in
18215   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18216   *) enable_dlopen_self_static=unknown ;;
18217   esac
18218 fi
18219
18220
18221 # The else clause should only fire when bootstrapping the
18222 # libtool distribution, otherwise you forgot to ship ltmain.sh
18223 # with your package, and you will get complaints that there are
18224 # no rules to generate ltmain.sh.
18225 if test -f "$ltmain"; then
18226   # See if we are running on zsh, and set the options which allow our commands through
18227   # without removal of \ escapes.
18228   if test -n "${ZSH_VERSION+set}" ; then
18229     setopt NO_GLOB_SUBST
18230   fi
18231   # Now quote all the things that may contain metacharacters while being
18232   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18233   # variables and quote the copies for generation of the libtool script.
18234   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18235     SED SHELL STRIP \
18236     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18237     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18238     deplibs_check_method reload_flag reload_cmds need_locks \
18239     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18240     lt_cv_sys_global_symbol_to_c_name_address \
18241     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18242     old_postinstall_cmds old_postuninstall_cmds \
18243     compiler_CXX \
18244     CC_CXX \
18245     LD_CXX \
18246     lt_prog_compiler_wl_CXX \
18247     lt_prog_compiler_pic_CXX \
18248     lt_prog_compiler_static_CXX \
18249     lt_prog_compiler_no_builtin_flag_CXX \
18250     export_dynamic_flag_spec_CXX \
18251     thread_safe_flag_spec_CXX \
18252     whole_archive_flag_spec_CXX \
18253     enable_shared_with_static_runtimes_CXX \
18254     old_archive_cmds_CXX \
18255     old_archive_from_new_cmds_CXX \
18256     predep_objects_CXX \
18257     postdep_objects_CXX \
18258     predeps_CXX \
18259     postdeps_CXX \
18260     compiler_lib_search_path_CXX \
18261     archive_cmds_CXX \
18262     archive_expsym_cmds_CXX \
18263     postinstall_cmds_CXX \
18264     postuninstall_cmds_CXX \
18265     old_archive_from_expsyms_cmds_CXX \
18266     allow_undefined_flag_CXX \
18267     no_undefined_flag_CXX \
18268     export_symbols_cmds_CXX \
18269     hardcode_libdir_flag_spec_CXX \
18270     hardcode_libdir_flag_spec_ld_CXX \
18271     hardcode_libdir_separator_CXX \
18272     hardcode_automatic_CXX \
18273     module_cmds_CXX \
18274     module_expsym_cmds_CXX \
18275     lt_cv_prog_compiler_c_o_CXX \
18276     exclude_expsyms_CXX \
18277     include_expsyms_CXX; do
18278
18279     case $var in
18280     old_archive_cmds_CXX | \
18281     old_archive_from_new_cmds_CXX | \
18282     archive_cmds_CXX | \
18283     archive_expsym_cmds_CXX | \
18284     module_cmds_CXX | \
18285     module_expsym_cmds_CXX | \
18286     old_archive_from_expsyms_cmds_CXX | \
18287     export_symbols_cmds_CXX | \
18288     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18289     postinstall_cmds | postuninstall_cmds | \
18290     old_postinstall_cmds | old_postuninstall_cmds | \
18291     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18292       # Double-quote double-evaled strings.
18293       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18294       ;;
18295     *)
18296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18297       ;;
18298     esac
18299   done
18300
18301   case $lt_echo in
18302   *'\$0 --fallback-echo"')
18303     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18304     ;;
18305   esac
18306
18307 cfgfile="$ofile"
18308
18309   cat <<__EOF__ >> "$cfgfile"
18310 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18311
18312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18313
18314 # Shell to use when invoking shell scripts.
18315 SHELL=$lt_SHELL
18316
18317 # Whether or not to build shared libraries.
18318 build_libtool_libs=$enable_shared
18319
18320 # Whether or not to build static libraries.
18321 build_old_libs=$enable_static
18322
18323 # Whether or not to add -lc for building shared libraries.
18324 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18325
18326 # Whether or not to disallow shared libs when runtime libs are static
18327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18328
18329 # Whether or not to optimize for fast installation.
18330 fast_install=$enable_fast_install
18331
18332 # The host system.
18333 host_alias=$host_alias
18334 host=$host
18335
18336 # An echo program that does not interpret backslashes.
18337 echo=$lt_echo
18338
18339 # The archiver.
18340 AR=$lt_AR
18341 AR_FLAGS=$lt_AR_FLAGS
18342
18343 # A C compiler.
18344 LTCC=$lt_LTCC
18345
18346 # A language-specific compiler.
18347 CC=$lt_compiler_CXX
18348
18349 # Is the compiler the GNU C compiler?
18350 with_gcc=$GCC_CXX
18351
18352 # An ERE matcher.
18353 EGREP=$lt_EGREP
18354
18355 # The linker used to build libraries.
18356 LD=$lt_LD_CXX
18357
18358 # Whether we need hard or soft links.
18359 LN_S=$lt_LN_S
18360
18361 # A BSD-compatible nm program.
18362 NM=$lt_NM
18363
18364 # A symbol stripping program
18365 STRIP=$lt_STRIP
18366
18367 # Used to examine libraries when file_magic_cmd begins "file"
18368 MAGIC_CMD=$MAGIC_CMD
18369
18370 # Used on cygwin: DLL creation program.
18371 DLLTOOL="$DLLTOOL"
18372
18373 # Used on cygwin: object dumper.
18374 OBJDUMP="$OBJDUMP"
18375
18376 # Used on cygwin: assembler.
18377 AS="$AS"
18378
18379 # The name of the directory that contains temporary libtool files.
18380 objdir=$objdir
18381
18382 # How to create reloadable object files.
18383 reload_flag=$lt_reload_flag
18384 reload_cmds=$lt_reload_cmds
18385
18386 # How to pass a linker flag through the compiler.
18387 wl=$lt_lt_prog_compiler_wl_CXX
18388
18389 # Object file suffix (normally "o").
18390 objext="$ac_objext"
18391
18392 # Old archive suffix (normally "a").
18393 libext="$libext"
18394
18395 # Shared library suffix (normally ".so").
18396 shrext_cmds='$shrext_cmds'
18397
18398 # Executable file suffix (normally "").
18399 exeext="$exeext"
18400
18401 # Additional compiler flags for building library objects.
18402 pic_flag=$lt_lt_prog_compiler_pic_CXX
18403 pic_mode=$pic_mode
18404
18405 # What is the maximum length of a command?
18406 max_cmd_len=$lt_cv_sys_max_cmd_len
18407
18408 # Does compiler simultaneously support -c and -o options?
18409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18410
18411 # Must we lock files when doing compilation ?
18412 need_locks=$lt_need_locks
18413
18414 # Do we need the lib prefix for modules?
18415 need_lib_prefix=$need_lib_prefix
18416
18417 # Do we need a version for libraries?
18418 need_version=$need_version
18419
18420 # Whether dlopen is supported.
18421 dlopen_support=$enable_dlopen
18422
18423 # Whether dlopen of programs is supported.
18424 dlopen_self=$enable_dlopen_self
18425
18426 # Whether dlopen of statically linked programs is supported.
18427 dlopen_self_static=$enable_dlopen_self_static
18428
18429 # Compiler flag to prevent dynamic linking.
18430 link_static_flag=$lt_lt_prog_compiler_static_CXX
18431
18432 # Compiler flag to turn off builtin functions.
18433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18434
18435 # Compiler flag to allow reflexive dlopens.
18436 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18437
18438 # Compiler flag to generate shared objects directly from archives.
18439 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18440
18441 # Compiler flag to generate thread-safe objects.
18442 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18443
18444 # Library versioning type.
18445 version_type=$version_type
18446
18447 # Format of library name prefix.
18448 libname_spec=$lt_libname_spec
18449
18450 # List of archive names.  First name is the real one, the rest are links.
18451 # The last name is the one that the linker finds with -lNAME.
18452 library_names_spec=$lt_library_names_spec
18453
18454 # The coded name of the library, if different from the real name.
18455 soname_spec=$lt_soname_spec
18456
18457 # Commands used to build and install an old-style archive.
18458 RANLIB=$lt_RANLIB
18459 old_archive_cmds=$lt_old_archive_cmds_CXX
18460 old_postinstall_cmds=$lt_old_postinstall_cmds
18461 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18462
18463 # Create an old-style archive from a shared archive.
18464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18465
18466 # Create a temporary old-style archive to link instead of a shared archive.
18467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18468
18469 # Commands used to build and install a shared archive.
18470 archive_cmds=$lt_archive_cmds_CXX
18471 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18472 postinstall_cmds=$lt_postinstall_cmds
18473 postuninstall_cmds=$lt_postuninstall_cmds
18474
18475 # Commands used to build a loadable module (assumed same as above if empty)
18476 module_cmds=$lt_module_cmds_CXX
18477 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18478
18479 # Commands to strip libraries.
18480 old_striplib=$lt_old_striplib
18481 striplib=$lt_striplib
18482
18483 # Dependencies to place before the objects being linked to create a
18484 # shared library.
18485 predep_objects=$lt_predep_objects_CXX
18486
18487 # Dependencies to place after the objects being linked to create a
18488 # shared library.
18489 postdep_objects=$lt_postdep_objects_CXX
18490
18491 # Dependencies to place before the objects being linked to create a
18492 # shared library.
18493 predeps=$lt_predeps_CXX
18494
18495 # Dependencies to place after the objects being linked to create a
18496 # shared library.
18497 postdeps=$lt_postdeps_CXX
18498
18499 # The library search path used internally by the compiler when linking
18500 # a shared library.
18501 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18502
18503 # Method to check whether dependent libraries are shared objects.
18504 deplibs_check_method=$lt_deplibs_check_method
18505
18506 # Command to use when deplibs_check_method == file_magic.
18507 file_magic_cmd=$lt_file_magic_cmd
18508
18509 # Flag that allows shared libraries with undefined symbols to be built.
18510 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18511
18512 # Flag that forces no undefined symbols.
18513 no_undefined_flag=$lt_no_undefined_flag_CXX
18514
18515 # Commands used to finish a libtool library installation in a directory.
18516 finish_cmds=$lt_finish_cmds
18517
18518 # Same as above, but a single script fragment to be evaled but not shown.
18519 finish_eval=$lt_finish_eval
18520
18521 # Take the output of nm and produce a listing of raw symbols and C names.
18522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18523
18524 # Transform the output of nm in a proper C declaration
18525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18526
18527 # Transform the output of nm in a C name address pair
18528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18529
18530 # This is the shared library runtime path variable.
18531 runpath_var=$runpath_var
18532
18533 # This is the shared library path variable.
18534 shlibpath_var=$shlibpath_var
18535
18536 # Is shlibpath searched before the hard-coded library search path?
18537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18538
18539 # How to hardcode a shared library path into an executable.
18540 hardcode_action=$hardcode_action_CXX
18541
18542 # Whether we should hardcode library paths into libraries.
18543 hardcode_into_libs=$hardcode_into_libs
18544
18545 # Flag to hardcode \$libdir into a binary during linking.
18546 # This must work even if \$libdir does not exist.
18547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18548
18549 # If ld is used when linking, flag to hardcode \$libdir into
18550 # a binary during linking. This must work even if \$libdir does
18551 # not exist.
18552 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18553
18554 # Whether we need a single -rpath flag with a separated argument.
18555 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18556
18557 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18558 # resulting binary.
18559 hardcode_direct=$hardcode_direct_CXX
18560
18561 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18562 # resulting binary.
18563 hardcode_minus_L=$hardcode_minus_L_CXX
18564
18565 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18566 # the resulting binary.
18567 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18568
18569 # Set to yes if building a shared library automatically hardcodes DIR into the library
18570 # and all subsequent libraries and executables linked against it.
18571 hardcode_automatic=$hardcode_automatic_CXX
18572
18573 # Variables whose values should be saved in libtool wrapper scripts and
18574 # restored at relink time.
18575 variables_saved_for_relink="$variables_saved_for_relink"
18576
18577 # Whether libtool must link a program against all its dependency libraries.
18578 link_all_deplibs=$link_all_deplibs_CXX
18579
18580 # Compile-time system search path for libraries
18581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18582
18583 # Run-time system search path for libraries
18584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18585
18586 # Fix the shell variable \$srcfile for the compiler.
18587 fix_srcfile_path="$fix_srcfile_path_CXX"
18588
18589 # Set to yes if exported symbols are required.
18590 always_export_symbols=$always_export_symbols_CXX
18591
18592 # The commands to list exported symbols.
18593 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18594
18595 # The commands to extract the exported symbol list from a shared archive.
18596 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18597
18598 # Symbols that should not be listed in the preloaded symbols.
18599 exclude_expsyms=$lt_exclude_expsyms_CXX
18600
18601 # Symbols that must always be exported.
18602 include_expsyms=$lt_include_expsyms_CXX
18603
18604 # ### END LIBTOOL TAG CONFIG: $tagname
18605
18606 __EOF__
18607
18608
18609 else
18610   # If there is no Makefile yet, we rely on a make rule to execute
18611   # `config.status --recheck' to rerun these tests and create the
18612   # libtool script then.
18613   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18614   if test -f "$ltmain_in"; then
18615     test -f Makefile && make "$ltmain"
18616   fi
18617 fi
18618
18619
18620 ac_ext=c
18621 ac_cpp='$CPP $CPPFLAGS'
18622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18625
18626 CC=$lt_save_CC
18627 LDCXX=$LD
18628 LD=$lt_save_LD
18629 GCC=$lt_save_GCC
18630 with_gnu_ldcxx=$with_gnu_ld
18631 with_gnu_ld=$lt_save_with_gnu_ld
18632 lt_cv_path_LDCXX=$lt_cv_path_LD
18633 lt_cv_path_LD=$lt_save_path_LD
18634 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18635 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18636
18637         else
18638           tagname=""
18639         fi
18640         ;;
18641
18642       F77)
18643         if test -n "$F77" && test "X$F77" != "Xno"; then
18644
18645 ac_ext=f
18646 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18647 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18648 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18649
18650
18651 archive_cmds_need_lc_F77=no
18652 allow_undefined_flag_F77=
18653 always_export_symbols_F77=no
18654 archive_expsym_cmds_F77=
18655 export_dynamic_flag_spec_F77=
18656 hardcode_direct_F77=no
18657 hardcode_libdir_flag_spec_F77=
18658 hardcode_libdir_flag_spec_ld_F77=
18659 hardcode_libdir_separator_F77=
18660 hardcode_minus_L_F77=no
18661 hardcode_automatic_F77=no
18662 module_cmds_F77=
18663 module_expsym_cmds_F77=
18664 link_all_deplibs_F77=unknown
18665 old_archive_cmds_F77=$old_archive_cmds
18666 no_undefined_flag_F77=
18667 whole_archive_flag_spec_F77=
18668 enable_shared_with_static_runtimes_F77=no
18669
18670 # Source file extension for f77 test sources.
18671 ac_ext=f
18672
18673 # Object file extension for compiled f77 test sources.
18674 objext=o
18675 objext_F77=$objext
18676
18677 # Code to be used in simple compile tests
18678 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18679
18680 # Code to be used in simple link tests
18681 lt_simple_link_test_code="      program t\n      end\n"
18682
18683 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18684
18685 # If no C compiler was specified, use CC.
18686 LTCC=${LTCC-"$CC"}
18687
18688 # Allow CC to be a program name with arguments.
18689 compiler=$CC
18690
18691
18692 # Allow CC to be a program name with arguments.
18693 lt_save_CC="$CC"
18694 CC=${F77-"f77"}
18695 compiler=$CC
18696 compiler_F77=$CC
18697 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18698
18699 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18700 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18701 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18702 echo "${ECHO_T}$can_build_shared" >&6
18703
18704 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18705 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18706 test "$can_build_shared" = "no" && enable_shared=no
18707
18708 # On AIX, shared libraries and static libraries use the same namespace, and
18709 # are all built from PIC.
18710 case "$host_os" in
18711 aix3*)
18712   test "$enable_shared" = yes && enable_static=no
18713   if test -n "$RANLIB"; then
18714     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18715     postinstall_cmds='$RANLIB $lib'
18716   fi
18717   ;;
18718 aix4* | aix5*)
18719   test "$enable_shared" = yes && enable_static=no
18720   ;;
18721 esac
18722 echo "$as_me:$LINENO: result: $enable_shared" >&5
18723 echo "${ECHO_T}$enable_shared" >&6
18724
18725 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18726 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18727 # Make sure either enable_shared or enable_static is yes.
18728 test "$enable_shared" = yes || enable_static=yes
18729 echo "$as_me:$LINENO: result: $enable_static" >&5
18730 echo "${ECHO_T}$enable_static" >&6
18731
18732 test "$ld_shlibs_F77" = no && can_build_shared=no
18733
18734 GCC_F77="$G77"
18735 LD_F77="$LD"
18736
18737 lt_prog_compiler_wl_F77=
18738 lt_prog_compiler_pic_F77=
18739 lt_prog_compiler_static_F77=
18740
18741 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18742 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18743
18744   if test "$GCC" = yes; then
18745     lt_prog_compiler_wl_F77='-Wl,'
18746     lt_prog_compiler_static_F77='-static'
18747
18748     case $host_os in
18749       aix*)
18750       # All AIX code is PIC.
18751       if test "$host_cpu" = ia64; then
18752         # AIX 5 now supports IA64 processor
18753         lt_prog_compiler_static_F77='-Bstatic'
18754       fi
18755       ;;
18756
18757     amigaos*)
18758       # FIXME: we need at least 68020 code to build shared libraries, but
18759       # adding the `-m68020' flag to GCC prevents building anything better,
18760       # like `-m68040'.
18761       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18762       ;;
18763
18764     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18765       # PIC is the default for these OSes.
18766       ;;
18767
18768     mingw* | pw32* | os2*)
18769       # This hack is so that the source file can tell whether it is being
18770       # built for inclusion in a dll (and should export symbols for example).
18771       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18772       ;;
18773
18774     darwin* | rhapsody*)
18775       # PIC is the default on this platform
18776       # Common symbols not allowed in MH_DYLIB files
18777       lt_prog_compiler_pic_F77='-fno-common'
18778       ;;
18779
18780     msdosdjgpp*)
18781       # Just because we use GCC doesn't mean we suddenly get shared libraries
18782       # on systems that don't support them.
18783       lt_prog_compiler_can_build_shared_F77=no
18784       enable_shared=no
18785       ;;
18786
18787     sysv4*MP*)
18788       if test -d /usr/nec; then
18789         lt_prog_compiler_pic_F77=-Kconform_pic
18790       fi
18791       ;;
18792
18793     hpux*)
18794       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18795       # not for PA HP-UX.
18796       case "$host_cpu" in
18797       hppa*64*|ia64*)
18798         # +Z the default
18799         ;;
18800       *)
18801         lt_prog_compiler_pic_F77='-fPIC'
18802         ;;
18803       esac
18804       ;;
18805
18806     *)
18807       lt_prog_compiler_pic_F77='-fPIC'
18808       ;;
18809     esac
18810   else
18811     # PORTME Check for flag to pass linker flags through the system compiler.
18812     case $host_os in
18813     aix*)
18814       lt_prog_compiler_wl_F77='-Wl,'
18815       if test "$host_cpu" = ia64; then
18816         # AIX 5 now supports IA64 processor
18817         lt_prog_compiler_static_F77='-Bstatic'
18818       else
18819         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18820       fi
18821       ;;
18822       darwin*)
18823         # PIC is the default on this platform
18824         # Common symbols not allowed in MH_DYLIB files
18825        case "$cc_basename" in
18826          xlc*)
18827          lt_prog_compiler_pic_F77='-qnocommon'
18828          lt_prog_compiler_wl_F77='-Wl,'
18829          ;;
18830        esac
18831        ;;
18832
18833     mingw* | pw32* | os2*)
18834       # This hack is so that the source file can tell whether it is being
18835       # built for inclusion in a dll (and should export symbols for example).
18836       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18837       ;;
18838
18839     hpux9* | hpux10* | hpux11*)
18840       lt_prog_compiler_wl_F77='-Wl,'
18841       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18842       # not for PA HP-UX.
18843       case "$host_cpu" in
18844       hppa*64*|ia64*)
18845         # +Z the default
18846         ;;
18847       *)
18848         lt_prog_compiler_pic_F77='+Z'
18849         ;;
18850       esac
18851       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18852       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18853       ;;
18854
18855     irix5* | irix6* | nonstopux*)
18856       lt_prog_compiler_wl_F77='-Wl,'
18857       # PIC (with -KPIC) is the default.
18858       lt_prog_compiler_static_F77='-non_shared'
18859       ;;
18860
18861     newsos6)
18862       lt_prog_compiler_pic_F77='-KPIC'
18863       lt_prog_compiler_static_F77='-Bstatic'
18864       ;;
18865
18866     linux*)
18867       case $CC in
18868       icc* | ecc*)
18869         lt_prog_compiler_wl_F77='-Wl,'
18870         lt_prog_compiler_pic_F77='-KPIC'
18871         lt_prog_compiler_static_F77='-static'
18872         ;;
18873       ccc*)
18874         lt_prog_compiler_wl_F77='-Wl,'
18875         # All Alpha code is PIC.
18876         lt_prog_compiler_static_F77='-non_shared'
18877         ;;
18878       esac
18879       ;;
18880
18881     osf3* | osf4* | osf5*)
18882       lt_prog_compiler_wl_F77='-Wl,'
18883       # All OSF/1 code is PIC.
18884       lt_prog_compiler_static_F77='-non_shared'
18885       ;;
18886
18887     sco3.2v5*)
18888       lt_prog_compiler_pic_F77='-Kpic'
18889       lt_prog_compiler_static_F77='-dn'
18890       ;;
18891
18892     solaris*)
18893       lt_prog_compiler_wl_F77='-Wl,'
18894       lt_prog_compiler_pic_F77='-KPIC'
18895       lt_prog_compiler_static_F77='-Bstatic'
18896       ;;
18897
18898     sunos4*)
18899       lt_prog_compiler_wl_F77='-Qoption ld '
18900       lt_prog_compiler_pic_F77='-PIC'
18901       lt_prog_compiler_static_F77='-Bstatic'
18902       ;;
18903
18904     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18905       lt_prog_compiler_wl_F77='-Wl,'
18906       lt_prog_compiler_pic_F77='-KPIC'
18907       lt_prog_compiler_static_F77='-Bstatic'
18908       ;;
18909
18910     sysv4*MP*)
18911       if test -d /usr/nec ;then
18912         lt_prog_compiler_pic_F77='-Kconform_pic'
18913         lt_prog_compiler_static_F77='-Bstatic'
18914       fi
18915       ;;
18916
18917     uts4*)
18918       lt_prog_compiler_pic_F77='-pic'
18919       lt_prog_compiler_static_F77='-Bstatic'
18920       ;;
18921
18922     *)
18923       lt_prog_compiler_can_build_shared_F77=no
18924       ;;
18925     esac
18926   fi
18927
18928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18929 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18930
18931 #
18932 # Check to make sure the PIC flag actually works.
18933 #
18934 if test -n "$lt_prog_compiler_pic_F77"; then
18935
18936 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18937 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18938 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18939   echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941   lt_prog_compiler_pic_works_F77=no
18942   ac_outfile=conftest.$ac_objext
18943    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18944    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18945    # Insert the option either (1) after the last *FLAGS variable, or
18946    # (2) before a word containing "conftest.", or (3) at the end.
18947    # Note that $ac_compile itself does not contain backslashes and begins
18948    # with a dollar sign (not a hyphen), so the echo should work correctly.
18949    # The option is referenced via a variable to avoid confusing sed.
18950    lt_compile=`echo "$ac_compile" | $SED \
18951    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18953    -e 's:$: $lt_compiler_flag:'`
18954    (eval echo "\"\$as_me:18954: $lt_compile\"" >&5)
18955    (eval "$lt_compile" 2>conftest.err)
18956    ac_status=$?
18957    cat conftest.err >&5
18958    echo "$as_me:18958: \$? = $ac_status" >&5
18959    if (exit $ac_status) && test -s "$ac_outfile"; then
18960      # The compiler can only warn and ignore the option if not recognized
18961      # So say no if there are warnings
18962      if test ! -s conftest.err; then
18963        lt_prog_compiler_pic_works_F77=yes
18964      fi
18965    fi
18966    $rm conftest*
18967
18968 fi
18969 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18970 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18971
18972 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18973     case $lt_prog_compiler_pic_F77 in
18974      "" | " "*) ;;
18975      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18976      esac
18977 else
18978     lt_prog_compiler_pic_F77=
18979      lt_prog_compiler_can_build_shared_F77=no
18980 fi
18981
18982 fi
18983 case "$host_os" in
18984   # For platforms which do not support PIC, -DPIC is meaningless:
18985   *djgpp*)
18986     lt_prog_compiler_pic_F77=
18987     ;;
18988   *)
18989     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18990     ;;
18991 esac
18992
18993 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18994 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18995 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18996   echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998   lt_cv_prog_compiler_c_o_F77=no
18999    $rm -r conftest 2>/dev/null
19000    mkdir conftest
19001    cd conftest
19002    mkdir out
19003    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19004
19005    lt_compiler_flag="-o out/conftest2.$ac_objext"
19006    # Insert the option either (1) after the last *FLAGS variable, or
19007    # (2) before a word containing "conftest.", or (3) at the end.
19008    # Note that $ac_compile itself does not contain backslashes and begins
19009    # with a dollar sign (not a hyphen), so the echo should work correctly.
19010    lt_compile=`echo "$ac_compile" | $SED \
19011    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19012    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19013    -e 's:$: $lt_compiler_flag:'`
19014    (eval echo "\"\$as_me:19014: $lt_compile\"" >&5)
19015    (eval "$lt_compile" 2>out/conftest.err)
19016    ac_status=$?
19017    cat out/conftest.err >&5
19018    echo "$as_me:19018: \$? = $ac_status" >&5
19019    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19020    then
19021      # The compiler can only warn and ignore the option if not recognized
19022      # So say no if there are warnings
19023      if test ! -s out/conftest.err; then
19024        lt_cv_prog_compiler_c_o_F77=yes
19025      fi
19026    fi
19027    chmod u+w .
19028    $rm conftest*
19029    # SGI C++ compiler will create directory out/ii_files/ for
19030    # template instantiation
19031    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19032    $rm out/* && rmdir out
19033    cd ..
19034    rmdir conftest
19035    $rm conftest*
19036
19037 fi
19038 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19039 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19040
19041
19042 hard_links="nottested"
19043 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19044   # do not overwrite the value of need_locks provided by the user
19045   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19046 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19047   hard_links=yes
19048   $rm conftest*
19049   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19050   touch conftest.a
19051   ln conftest.a conftest.b 2>&5 || hard_links=no
19052   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19053   echo "$as_me:$LINENO: result: $hard_links" >&5
19054 echo "${ECHO_T}$hard_links" >&6
19055   if test "$hard_links" = no; then
19056     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19057 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19058     need_locks=warn
19059   fi
19060 else
19061   need_locks=no
19062 fi
19063
19064 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19065 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19066
19067   runpath_var=
19068   allow_undefined_flag_F77=
19069   enable_shared_with_static_runtimes_F77=no
19070   archive_cmds_F77=
19071   archive_expsym_cmds_F77=
19072   old_archive_From_new_cmds_F77=
19073   old_archive_from_expsyms_cmds_F77=
19074   export_dynamic_flag_spec_F77=
19075   whole_archive_flag_spec_F77=
19076   thread_safe_flag_spec_F77=
19077   hardcode_libdir_flag_spec_F77=
19078   hardcode_libdir_flag_spec_ld_F77=
19079   hardcode_libdir_separator_F77=
19080   hardcode_direct_F77=no
19081   hardcode_minus_L_F77=no
19082   hardcode_shlibpath_var_F77=unsupported
19083   link_all_deplibs_F77=unknown
19084   hardcode_automatic_F77=no
19085   module_cmds_F77=
19086   module_expsym_cmds_F77=
19087   always_export_symbols_F77=no
19088   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19089   # include_expsyms should be a list of space-separated symbols to be *always*
19090   # included in the symbol list
19091   include_expsyms_F77=
19092   # exclude_expsyms can be an extended regexp of symbols to exclude
19093   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19094   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19095   # as well as any symbol that contains `d'.
19096   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19097   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19098   # platforms (ab)use it in PIC code, but their linkers get confused if
19099   # the symbol is explicitly referenced.  Since portable code cannot
19100   # rely on this symbol name, it's probably fine to never include it in
19101   # preloaded symbol tables.
19102   extract_expsyms_cmds=
19103
19104   case $host_os in
19105   cygwin* | mingw* | pw32*)
19106     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19107     # When not using gcc, we currently assume that we are using
19108     # Microsoft Visual C++.
19109     if test "$GCC" != yes; then
19110       with_gnu_ld=no
19111     fi
19112     ;;
19113   openbsd*)
19114     with_gnu_ld=no
19115     ;;
19116   esac
19117
19118   ld_shlibs_F77=yes
19119   if test "$with_gnu_ld" = yes; then
19120     # If archive_cmds runs LD, not CC, wlarc should be empty
19121     wlarc='${wl}'
19122
19123     # See if GNU ld supports shared libraries.
19124     case $host_os in
19125     aix3* | aix4* | aix5*)
19126       # On AIX/PPC, the GNU linker is very broken
19127       if test "$host_cpu" != ia64; then
19128         ld_shlibs_F77=no
19129         cat <<EOF 1>&2
19130
19131 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19132 *** to be unable to reliably create shared libraries on AIX.
19133 *** Therefore, libtool is disabling shared libraries support.  If you
19134 *** really care for shared libraries, you may want to modify your PATH
19135 *** so that a non-GNU linker is found, and then restart.
19136
19137 EOF
19138       fi
19139       ;;
19140
19141     amigaos*)
19142       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)'
19143       hardcode_libdir_flag_spec_F77='-L$libdir'
19144       hardcode_minus_L_F77=yes
19145
19146       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19147       # that the semantics of dynamic libraries on AmigaOS, at least up
19148       # to version 4, is to share data among multiple programs linked
19149       # with the same dynamic library.  Since this doesn't match the
19150       # behavior of shared libraries on other platforms, we can't use
19151       # them.
19152       ld_shlibs_F77=no
19153       ;;
19154
19155     beos*)
19156       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19157         allow_undefined_flag_F77=unsupported
19158         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19159         # support --undefined.  This deserves some investigation.  FIXME
19160         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161       else
19162         ld_shlibs_F77=no
19163       fi
19164       ;;
19165
19166     cygwin* | mingw* | pw32*)
19167       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19168       # as there is no search path for DLLs.
19169       hardcode_libdir_flag_spec_F77='-L$libdir'
19170       allow_undefined_flag_F77=unsupported
19171       always_export_symbols_F77=no
19172       enable_shared_with_static_runtimes_F77=yes
19173       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19174
19175       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19176         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19177         # If the export-symbols file already is a .def file (1st line
19178         # is EXPORTS), use it as is; otherwise, prepend...
19179         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19180           cp $export_symbols $output_objdir/$soname.def;
19181         else
19182           echo EXPORTS > $output_objdir/$soname.def;
19183           cat $export_symbols >> $output_objdir/$soname.def;
19184         fi~
19185         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19186       else
19187         ld_shlibs=no
19188       fi
19189       ;;
19190
19191     netbsd*)
19192       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19193         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19194         wlarc=
19195       else
19196         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19197         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19198       fi
19199       ;;
19200
19201     solaris* | sysv5*)
19202       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19203         ld_shlibs_F77=no
19204         cat <<EOF 1>&2
19205
19206 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19207 *** create shared libraries on Solaris systems.  Therefore, libtool
19208 *** is disabling shared libraries support.  We urge you to upgrade GNU
19209 *** binutils to release 2.9.1 or newer.  Another option is to modify
19210 *** your PATH or compiler configuration so that the native linker is
19211 *** used, and then restart.
19212
19213 EOF
19214       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19215         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19217       else
19218         ld_shlibs_F77=no
19219       fi
19220       ;;
19221
19222     sunos4*)
19223       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19224       wlarc=
19225       hardcode_direct_F77=yes
19226       hardcode_shlibpath_var_F77=no
19227       ;;
19228
19229   linux*)
19230     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19231         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19232         archive_cmds_F77="$tmp_archive_cmds"
19233       supports_anon_versioning=no
19234       case `$LD -v 2>/dev/null` in
19235         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19236         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19237         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19238         *\ 2.11.*) ;; # other 2.11 versions
19239         *) supports_anon_versioning=yes ;;
19240       esac
19241       if test $supports_anon_versioning = yes; then
19242         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19244 $echo "local: *; };" >> $output_objdir/$libname.ver~
19245         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19246       else
19247         archive_expsym_cmds_F77="$tmp_archive_cmds"
19248       fi
19249     else
19250       ld_shlibs_F77=no
19251     fi
19252     ;;
19253
19254     *)
19255       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19256         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19257         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19258       else
19259         ld_shlibs_F77=no
19260       fi
19261       ;;
19262     esac
19263
19264     if test "$ld_shlibs_F77" = yes; then
19265       runpath_var=LD_RUN_PATH
19266       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19267       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19268       # ancient GNU ld didn't support --whole-archive et. al.
19269       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19270         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19271       else
19272         whole_archive_flag_spec_F77=
19273       fi
19274     fi
19275   else
19276     # PORTME fill in a description of your system's linker (not GNU ld)
19277     case $host_os in
19278     aix3*)
19279       allow_undefined_flag_F77=unsupported
19280       always_export_symbols_F77=yes
19281       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'
19282       # Note: this linker hardcodes the directories in LIBPATH if there
19283       # are no directories specified by -L.
19284       hardcode_minus_L_F77=yes
19285       if test "$GCC" = yes && test -z "$link_static_flag"; then
19286         # Neither direct hardcoding nor static linking is supported with a
19287         # broken collect2.
19288         hardcode_direct_F77=unsupported
19289       fi
19290       ;;
19291
19292     aix4* | aix5*)
19293       if test "$host_cpu" = ia64; then
19294         # On IA64, the linker does run time linking by default, so we don't
19295         # have to do anything special.
19296         aix_use_runtimelinking=no
19297         exp_sym_flag='-Bexport'
19298         no_entry_flag=""
19299       else
19300         # If we're using GNU nm, then we don't want the "-C" option.
19301         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19302         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19303           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'
19304         else
19305           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'
19306         fi
19307         aix_use_runtimelinking=no
19308
19309         # Test if we are trying to use run time linking or normal
19310         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19311         # need to do runtime linking.
19312         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19313           for ld_flag in $LDFLAGS; do
19314           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19315             aix_use_runtimelinking=yes
19316             break
19317           fi
19318           done
19319         esac
19320
19321         exp_sym_flag='-bexport'
19322         no_entry_flag='-bnoentry'
19323       fi
19324
19325       # When large executables or shared objects are built, AIX ld can
19326       # have problems creating the table of contents.  If linking a library
19327       # or program results in "error TOC overflow" add -mminimal-toc to
19328       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19329       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19330
19331       archive_cmds_F77=''
19332       hardcode_direct_F77=yes
19333       hardcode_libdir_separator_F77=':'
19334       link_all_deplibs_F77=yes
19335
19336       if test "$GCC" = yes; then
19337         case $host_os in aix4.012|aix4.012.*)
19338         # We only want to do this on AIX 4.2 and lower, the check
19339         # below for broken collect2 doesn't work under 4.3+
19340           collect2name=`${CC} -print-prog-name=collect2`
19341           if test -f "$collect2name" && \
19342            strings "$collect2name" | grep resolve_lib_name >/dev/null
19343           then
19344           # We have reworked collect2
19345           hardcode_direct_F77=yes
19346           else
19347           # We have old collect2
19348           hardcode_direct_F77=unsupported
19349           # It fails to find uninstalled libraries when the uninstalled
19350           # path is not listed in the libpath.  Setting hardcode_minus_L
19351           # to unsupported forces relinking
19352           hardcode_minus_L_F77=yes
19353           hardcode_libdir_flag_spec_F77='-L$libdir'
19354           hardcode_libdir_separator_F77=
19355           fi
19356         esac
19357         shared_flag='-shared'
19358       else
19359         # not using gcc
19360         if test "$host_cpu" = ia64; then
19361         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19362         # chokes on -Wl,-G. The following line is correct:
19363           shared_flag='-G'
19364         else
19365         if test "$aix_use_runtimelinking" = yes; then
19366             shared_flag='${wl}-G'
19367           else
19368             shared_flag='${wl}-bM:SRE'
19369         fi
19370         fi
19371       fi
19372
19373       # It seems that -bexpall does not export symbols beginning with
19374       # underscore (_), so it is better to generate a list of symbols to export.
19375       always_export_symbols_F77=yes
19376       if test "$aix_use_runtimelinking" = yes; then
19377         # Warning - without using the other runtime loading flags (-brtl),
19378         # -berok will link without error, but may produce a broken library.
19379         allow_undefined_flag_F77='-berok'
19380        # Determine the default libpath from the value encoded in an empty executable.
19381        cat >conftest.$ac_ext <<_ACEOF
19382       program main
19383
19384       end
19385 _ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19388   (eval $ac_link) 2>conftest.er1
19389   ac_status=$?
19390   grep -v '^ *+' conftest.er1 >conftest.err
19391   rm -f conftest.er1
19392   cat conftest.err >&5
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); } &&
19395          { ac_try='test -z "$ac_f77_werror_flag"
19396                          || test ! -s conftest.err'
19397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398   (eval $ac_try) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; } &&
19402          { ac_try='test -s conftest$ac_exeext'
19403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404   (eval $ac_try) 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; }; then
19408
19409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19410 }'`
19411 # Check for a 64-bit object if we didn't find anything.
19412 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; }
19413 }'`; fi
19414 else
19415   echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418 fi
19419 rm -f conftest.err conftest.$ac_objext \
19420       conftest$ac_exeext conftest.$ac_ext
19421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19422
19423        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19424         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"
19425        else
19426         if test "$host_cpu" = ia64; then
19427           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19428           allow_undefined_flag_F77="-z nodefs"
19429           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"
19430         else
19431          # Determine the default libpath from the value encoded in an empty executable.
19432          cat >conftest.$ac_ext <<_ACEOF
19433       program main
19434
19435       end
19436 _ACEOF
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19439   (eval $ac_link) 2>conftest.er1
19440   ac_status=$?
19441   grep -v '^ *+' conftest.er1 >conftest.err
19442   rm -f conftest.er1
19443   cat conftest.err >&5
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); } &&
19446          { ac_try='test -z "$ac_f77_werror_flag"
19447                          || test ! -s conftest.err'
19448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449   (eval $ac_try) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; } &&
19453          { ac_try='test -s conftest$ac_exeext'
19454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455   (eval $ac_try) 2>&5
19456   ac_status=$?
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); }; }; then
19459
19460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19461 }'`
19462 # Check for a 64-bit object if we didn't find anything.
19463 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; }
19464 }'`; fi
19465 else
19466   echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469 fi
19470 rm -f conftest.err conftest.$ac_objext \
19471       conftest$ac_exeext conftest.$ac_ext
19472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19473
19474          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19475           # Warning - without using the other run time loading flags,
19476           # -berok will link without error, but may produce a broken library.
19477           no_undefined_flag_F77=' ${wl}-bernotok'
19478           allow_undefined_flag_F77=' ${wl}-berok'
19479           # -bexpall does not export symbols beginning with underscore (_)
19480           always_export_symbols_F77=yes
19481           # Exported symbols can be pulled into shared objects from archives
19482           whole_archive_flag_spec_F77=' '
19483           archive_cmds_need_lc_F77=yes
19484           # This is similar to how AIX traditionally builds it's shared libraries.
19485           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'
19486         fi
19487       fi
19488       ;;
19489
19490     amigaos*)
19491       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)'
19492       hardcode_libdir_flag_spec_F77='-L$libdir'
19493       hardcode_minus_L_F77=yes
19494       # see comment about different semantics on the GNU ld section
19495       ld_shlibs_F77=no
19496       ;;
19497
19498     bsdi[45]*)
19499       export_dynamic_flag_spec_F77=-rdynamic
19500       ;;
19501
19502     cygwin* | mingw* | pw32*)
19503       # When not using gcc, we currently assume that we are using
19504       # Microsoft Visual C++.
19505       # hardcode_libdir_flag_spec is actually meaningless, as there is
19506       # no search path for DLLs.
19507       hardcode_libdir_flag_spec_F77=' '
19508       allow_undefined_flag_F77=unsupported
19509       # Tell ltmain to make .lib files, not .a files.
19510       libext=lib
19511       # Tell ltmain to make .dll files, not .so files.
19512       shrext_cmds=".dll"
19513       # FIXME: Setting linknames here is a bad hack.
19514       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19515       # The linker will automatically build a .lib file if we build a DLL.
19516       old_archive_From_new_cmds_F77='true'
19517       # FIXME: Should let the user specify the lib program.
19518       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19519       fix_srcfile_path='`cygpath -w "$srcfile"`'
19520       enable_shared_with_static_runtimes_F77=yes
19521       ;;
19522
19523     darwin* | rhapsody*)
19524       case "$host_os" in
19525         rhapsody* | darwin1.[012])
19526          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19527          ;;
19528        *) # Darwin 1.3 on
19529          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19530            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19531          else
19532            case ${MACOSX_DEPLOYMENT_TARGET} in
19533              10.[012])
19534                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19535                ;;
19536              10.*)
19537                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19538                ;;
19539            esac
19540          fi
19541          ;;
19542       esac
19543       archive_cmds_need_lc_F77=no
19544       hardcode_direct_F77=no
19545       hardcode_automatic_F77=yes
19546       hardcode_shlibpath_var_F77=unsupported
19547       whole_archive_flag_spec_F77=''
19548       link_all_deplibs_F77=yes
19549     if test "$GCC" = yes ; then
19550         output_verbose_link_cmd='echo'
19551         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19552       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19553       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19554       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}'
19555       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}'
19556     else
19557       case "$cc_basename" in
19558         xlc*)
19559          output_verbose_link_cmd='echo'
19560          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19561          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19562           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19563          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}'
19564           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}'
19565           ;;
19566        *)
19567          ld_shlibs_F77=no
19568           ;;
19569       esac
19570     fi
19571       ;;
19572
19573     dgux*)
19574       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19575       hardcode_libdir_flag_spec_F77='-L$libdir'
19576       hardcode_shlibpath_var_F77=no
19577       ;;
19578
19579     freebsd1*)
19580       ld_shlibs_F77=no
19581       ;;
19582
19583     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19584     # support.  Future versions do this automatically, but an explicit c++rt0.o
19585     # does not break anything, and helps significantly (at the cost of a little
19586     # extra space).
19587     freebsd2.2*)
19588       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19589       hardcode_libdir_flag_spec_F77='-R$libdir'
19590       hardcode_direct_F77=yes
19591       hardcode_shlibpath_var_F77=no
19592       ;;
19593
19594     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19595     freebsd2*)
19596       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19597       hardcode_direct_F77=yes
19598       hardcode_minus_L_F77=yes
19599       hardcode_shlibpath_var_F77=no
19600       ;;
19601
19602     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19603     freebsd* | kfreebsd*-gnu)
19604       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19605       hardcode_libdir_flag_spec_F77='-R$libdir'
19606       hardcode_direct_F77=yes
19607       hardcode_shlibpath_var_F77=no
19608       ;;
19609
19610     hpux9*)
19611       if test "$GCC" = yes; then
19612         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'
19613       else
19614         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'
19615       fi
19616       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19617       hardcode_libdir_separator_F77=:
19618       hardcode_direct_F77=yes
19619
19620       # hardcode_minus_L: Not really in the search PATH,
19621       # but as the default location of the library.
19622       hardcode_minus_L_F77=yes
19623       export_dynamic_flag_spec_F77='${wl}-E'
19624       ;;
19625
19626     hpux10* | hpux11*)
19627       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19628         case "$host_cpu" in
19629         hppa*64*|ia64*)
19630           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19631           ;;
19632         *)
19633           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19634           ;;
19635         esac
19636       else
19637         case "$host_cpu" in
19638         hppa*64*|ia64*)
19639           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19640           ;;
19641         *)
19642           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19643           ;;
19644         esac
19645       fi
19646       if test "$with_gnu_ld" = no; then
19647         case "$host_cpu" in
19648         hppa*64*)
19649           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19650           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19651           hardcode_libdir_separator_F77=:
19652           hardcode_direct_F77=no
19653           hardcode_shlibpath_var_F77=no
19654           ;;
19655         ia64*)
19656           hardcode_libdir_flag_spec_F77='-L$libdir'
19657           hardcode_direct_F77=no
19658           hardcode_shlibpath_var_F77=no
19659
19660           # hardcode_minus_L: Not really in the search PATH,
19661           # but as the default location of the library.
19662           hardcode_minus_L_F77=yes
19663           ;;
19664         *)
19665           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19666           hardcode_libdir_separator_F77=:
19667           hardcode_direct_F77=yes
19668           export_dynamic_flag_spec_F77='${wl}-E'
19669
19670           # hardcode_minus_L: Not really in the search PATH,
19671           # but as the default location of the library.
19672           hardcode_minus_L_F77=yes
19673           ;;
19674         esac
19675       fi
19676       ;;
19677
19678     irix5* | irix6* | nonstopux*)
19679       if test "$GCC" = yes; then
19680         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'
19681       else
19682         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'
19683         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19684       fi
19685       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19686       hardcode_libdir_separator_F77=:
19687       link_all_deplibs_F77=yes
19688       ;;
19689
19690     netbsd*)
19691       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19692         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19693       else
19694         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19695       fi
19696       hardcode_libdir_flag_spec_F77='-R$libdir'
19697       hardcode_direct_F77=yes
19698       hardcode_shlibpath_var_F77=no
19699       ;;
19700
19701     newsos6)
19702       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19703       hardcode_direct_F77=yes
19704       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19705       hardcode_libdir_separator_F77=:
19706       hardcode_shlibpath_var_F77=no
19707       ;;
19708
19709     openbsd*)
19710       hardcode_direct_F77=yes
19711       hardcode_shlibpath_var_F77=no
19712       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19713         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19714         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19715         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19716         export_dynamic_flag_spec_F77='${wl}-E'
19717       else
19718        case $host_os in
19719          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19720            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19721            hardcode_libdir_flag_spec_F77='-R$libdir'
19722            ;;
19723          *)
19724            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19725            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19726            ;;
19727        esac
19728       fi
19729       ;;
19730
19731     os2*)
19732       hardcode_libdir_flag_spec_F77='-L$libdir'
19733       hardcode_minus_L_F77=yes
19734       allow_undefined_flag_F77=unsupported
19735       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'
19736       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19737       ;;
19738
19739     osf3*)
19740       if test "$GCC" = yes; then
19741         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19742         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'
19743       else
19744         allow_undefined_flag_F77=' -expect_unresolved \*'
19745         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'
19746       fi
19747       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19748       hardcode_libdir_separator_F77=:
19749       ;;
19750
19751     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19752       if test "$GCC" = yes; then
19753         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19754         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'
19755         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19756       else
19757         allow_undefined_flag_F77=' -expect_unresolved \*'
19758         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'
19759         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~
19760         $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'
19761
19762         # Both c and cxx compiler support -rpath directly
19763         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19764       fi
19765       hardcode_libdir_separator_F77=:
19766       ;;
19767
19768     sco3.2v5*)
19769       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19770       hardcode_shlibpath_var_F77=no
19771       export_dynamic_flag_spec_F77='${wl}-Bexport'
19772       runpath_var=LD_RUN_PATH
19773       hardcode_runpath_var=yes
19774       ;;
19775
19776     solaris*)
19777       no_undefined_flag_F77=' -z text'
19778       if test "$GCC" = yes; then
19779         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19780         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19781           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19782       else
19783         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19784         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19785         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19786       fi
19787       hardcode_libdir_flag_spec_F77='-R$libdir'
19788       hardcode_shlibpath_var_F77=no
19789       case $host_os in
19790       solaris2.[0-5] | solaris2.[0-5].*) ;;
19791       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19792         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19793       esac
19794       link_all_deplibs_F77=yes
19795       ;;
19796
19797     sunos4*)
19798       if test "x$host_vendor" = xsequent; then
19799         # Use $CC to link under sequent, because it throws in some extra .o
19800         # files that make .init and .fini sections work.
19801         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19802       else
19803         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19804       fi
19805       hardcode_libdir_flag_spec_F77='-L$libdir'
19806       hardcode_direct_F77=yes
19807       hardcode_minus_L_F77=yes
19808       hardcode_shlibpath_var_F77=no
19809       ;;
19810
19811     sysv4)
19812       case $host_vendor in
19813         sni)
19814           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19815           hardcode_direct_F77=yes # is this really true???
19816         ;;
19817         siemens)
19818           ## LD is ld it makes a PLAMLIB
19819           ## CC just makes a GrossModule.
19820           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19821           reload_cmds_F77='$CC -r -o $output$reload_objs'
19822           hardcode_direct_F77=no
19823         ;;
19824         motorola)
19825           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19826           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19827         ;;
19828       esac
19829       runpath_var='LD_RUN_PATH'
19830       hardcode_shlibpath_var_F77=no
19831       ;;
19832
19833     sysv4.3*)
19834       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835       hardcode_shlibpath_var_F77=no
19836       export_dynamic_flag_spec_F77='-Bexport'
19837       ;;
19838
19839     sysv4*MP*)
19840       if test -d /usr/nec; then
19841         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842         hardcode_shlibpath_var_F77=no
19843         runpath_var=LD_RUN_PATH
19844         hardcode_runpath_var=yes
19845         ld_shlibs_F77=yes
19846       fi
19847       ;;
19848
19849     sysv4.2uw2*)
19850       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19851       hardcode_direct_F77=yes
19852       hardcode_minus_L_F77=no
19853       hardcode_shlibpath_var_F77=no
19854       hardcode_runpath_var=yes
19855       runpath_var=LD_RUN_PATH
19856       ;;
19857
19858    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19859       no_undefined_flag_F77='${wl}-z ${wl}text'
19860       if test "$GCC" = yes; then
19861         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19862       else
19863         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19864       fi
19865       runpath_var='LD_RUN_PATH'
19866       hardcode_shlibpath_var_F77=no
19867       ;;
19868
19869     sysv5*)
19870       no_undefined_flag_F77=' -z text'
19871       # $CC -shared without GNU ld will not create a library from C++
19872       # object files and a static libstdc++, better avoid it by now
19873       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19874       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19875                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19876       hardcode_libdir_flag_spec_F77=
19877       hardcode_shlibpath_var_F77=no
19878       runpath_var='LD_RUN_PATH'
19879       ;;
19880
19881     uts4*)
19882       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19883       hardcode_libdir_flag_spec_F77='-L$libdir'
19884       hardcode_shlibpath_var_F77=no
19885       ;;
19886
19887     *)
19888       ld_shlibs_F77=no
19889       ;;
19890     esac
19891   fi
19892
19893 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19894 echo "${ECHO_T}$ld_shlibs_F77" >&6
19895 test "$ld_shlibs_F77" = no && can_build_shared=no
19896
19897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19898 if test "$GCC" = yes; then
19899   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19900 fi
19901
19902 #
19903 # Do we need to explicitly link libc?
19904 #
19905 case "x$archive_cmds_need_lc_F77" in
19906 x|xyes)
19907   # Assume -lc should be added
19908   archive_cmds_need_lc_F77=yes
19909
19910   if test "$enable_shared" = yes && test "$GCC" = yes; then
19911     case $archive_cmds_F77 in
19912     *'~'*)
19913       # FIXME: we may have to deal with multi-command sequences.
19914       ;;
19915     '$CC '*)
19916       # Test whether the compiler implicitly links with -lc since on some
19917       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19918       # to ld, don't add -lc before -lgcc.
19919       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19921       $rm conftest*
19922       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19923
19924       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925   (eval $ac_compile) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); } 2>conftest.err; then
19929         soname=conftest
19930         lib=conftest
19931         libobjs=conftest.$ac_objext
19932         deplibs=
19933         wl=$lt_prog_compiler_wl_F77
19934         compiler_flags=-v
19935         linker_flags=-v
19936         verstring=
19937         output_objdir=.
19938         libname=conftest
19939         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19940         allow_undefined_flag_F77=
19941         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19942   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }
19946         then
19947           archive_cmds_need_lc_F77=no
19948         else
19949           archive_cmds_need_lc_F77=yes
19950         fi
19951         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19952       else
19953         cat conftest.err 1>&5
19954       fi
19955       $rm conftest*
19956       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19957 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19958       ;;
19959     esac
19960   fi
19961   ;;
19962 esac
19963
19964 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19965 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19966 library_names_spec=
19967 libname_spec='lib$name'
19968 soname_spec=
19969 shrext_cmds=".so"
19970 postinstall_cmds=
19971 postuninstall_cmds=
19972 finish_cmds=
19973 finish_eval=
19974 shlibpath_var=
19975 shlibpath_overrides_runpath=unknown
19976 version_type=none
19977 dynamic_linker="$host_os ld.so"
19978 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19979 if test "$GCC" = yes; then
19980   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19981   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19982     # if the path contains ";" then we assume it to be the separator
19983     # otherwise default to the standard path separator (i.e. ":") - it is
19984     # assumed that no part of a normal pathname contains ";" but that should
19985     # okay in the real world where ";" in dirpaths is itself problematic.
19986     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19987   else
19988     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19989   fi
19990 else
19991   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19992 fi
19993 need_lib_prefix=unknown
19994 hardcode_into_libs=no
19995
19996 # when you set need_version to no, make sure it does not cause -set_version
19997 # flags to be left without arguments
19998 need_version=unknown
19999
20000 case $host_os in
20001 aix3*)
20002   version_type=linux
20003   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20004   shlibpath_var=LIBPATH
20005
20006   # AIX 3 has no versioning support, so we append a major version to the name.
20007   soname_spec='${libname}${release}${shared_ext}$major'
20008   ;;
20009
20010 aix4* | aix5*)
20011   version_type=linux
20012   need_lib_prefix=no
20013   need_version=no
20014   hardcode_into_libs=yes
20015   if test "$host_cpu" = ia64; then
20016     # AIX 5 supports IA64
20017     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20018     shlibpath_var=LD_LIBRARY_PATH
20019   else
20020     # With GCC up to 2.95.x, collect2 would create an import file
20021     # for dependence libraries.  The import file would start with
20022     # the line `#! .'.  This would cause the generated library to
20023     # depend on `.', always an invalid library.  This was fixed in
20024     # development snapshots of GCC prior to 3.0.
20025     case $host_os in
20026       aix4 | aix4.[01] | aix4.[01].*)
20027       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20028            echo ' yes '
20029            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20030         :
20031       else
20032         can_build_shared=no
20033       fi
20034       ;;
20035     esac
20036     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20037     # soname into executable. Probably we can add versioning support to
20038     # collect2, so additional links can be useful in future.
20039     if test "$aix_use_runtimelinking" = yes; then
20040       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20041       # instead of lib<name>.a to let people know that these are not
20042       # typical AIX shared libraries.
20043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044     else
20045       # We preserve .a as extension for shared libraries through AIX4.2
20046       # and later when we are not doing run time linking.
20047       library_names_spec='${libname}${release}.a $libname.a'
20048       soname_spec='${libname}${release}${shared_ext}$major'
20049     fi
20050     shlibpath_var=LIBPATH
20051   fi
20052   ;;
20053
20054 amigaos*)
20055   library_names_spec='$libname.ixlibrary $libname.a'
20056   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20057   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'
20058   ;;
20059
20060 beos*)
20061   library_names_spec='${libname}${shared_ext}'
20062   dynamic_linker="$host_os ld.so"
20063   shlibpath_var=LIBRARY_PATH
20064   ;;
20065
20066 bsdi[45]*)
20067   version_type=linux
20068   need_version=no
20069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20070   soname_spec='${libname}${release}${shared_ext}$major'
20071   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20072   shlibpath_var=LD_LIBRARY_PATH
20073   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20074   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20075   # the default ld.so.conf also contains /usr/contrib/lib and
20076   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20077   # libtool to hard-code these into programs
20078   ;;
20079
20080 cygwin* | mingw* | pw32*)
20081   version_type=windows
20082   shrext_cmds=".dll"
20083   need_version=no
20084   need_lib_prefix=no
20085
20086   case $GCC,$host_os in
20087   yes,cygwin* | yes,mingw* | yes,pw32*)
20088     library_names_spec='$libname.dll.a'
20089     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20090     postinstall_cmds='base_file=`basename \${file}`~
20091       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20092       dldir=$destdir/`dirname \$dlpath`~
20093       test -d \$dldir || mkdir -p \$dldir~
20094       $install_prog $dir/$dlname \$dldir/$dlname'
20095     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20096       dlpath=$dir/\$dldll~
20097        $rm \$dlpath'
20098     shlibpath_overrides_runpath=yes
20099
20100     case $host_os in
20101     cygwin*)
20102       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20103       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20104       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20105       ;;
20106     mingw*)
20107       # MinGW DLLs use traditional 'lib' prefix
20108       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20109       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20110       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20111         # It is most probably a Windows format PATH printed by
20112         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20113         # path with ; separators, and with drive letters. We can handle the
20114         # drive letters (cygwin fileutils understands them), so leave them,
20115         # especially as we might pass files found there to a mingw objdump,
20116         # which wouldn't understand a cygwinified path. Ahh.
20117         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20118       else
20119         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20120       fi
20121       ;;
20122     pw32*)
20123       # pw32 DLLs use 'pw' prefix rather than 'lib'
20124       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20125       ;;
20126     esac
20127     ;;
20128
20129   *)
20130     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20131     ;;
20132   esac
20133   dynamic_linker='Win32 ld.exe'
20134   # FIXME: first we should search . and the directory the executable is in
20135   shlibpath_var=PATH
20136   ;;
20137
20138 darwin* | rhapsody*)
20139   dynamic_linker="$host_os dyld"
20140   version_type=darwin
20141   need_lib_prefix=no
20142   need_version=no
20143   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20144   soname_spec='${libname}${release}${major}$shared_ext'
20145   shlibpath_overrides_runpath=yes
20146   shlibpath_var=DYLD_LIBRARY_PATH
20147   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20148   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20149   if test "$GCC" = yes; then
20150     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"`
20151   else
20152     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20153   fi
20154   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20155   ;;
20156
20157 dgux*)
20158   version_type=linux
20159   need_lib_prefix=no
20160   need_version=no
20161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20162   soname_spec='${libname}${release}${shared_ext}$major'
20163   shlibpath_var=LD_LIBRARY_PATH
20164   ;;
20165
20166 freebsd1*)
20167   dynamic_linker=no
20168   ;;
20169
20170 kfreebsd*-gnu)
20171   version_type=linux
20172   need_lib_prefix=no
20173   need_version=no
20174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20175   soname_spec='${libname}${release}${shared_ext}$major'
20176   shlibpath_var=LD_LIBRARY_PATH
20177   shlibpath_overrides_runpath=no
20178   hardcode_into_libs=yes
20179   dynamic_linker='GNU ld.so'
20180   ;;
20181
20182 freebsd*)
20183   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20184   version_type=freebsd-$objformat
20185   case $version_type in
20186     freebsd-elf*)
20187       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20188       need_version=no
20189       need_lib_prefix=no
20190       ;;
20191     freebsd-*)
20192       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20193       need_version=yes
20194       ;;
20195   esac
20196   shlibpath_var=LD_LIBRARY_PATH
20197   case $host_os in
20198   freebsd2*)
20199     shlibpath_overrides_runpath=yes
20200     ;;
20201   freebsd3.01* | freebsdelf3.01*)
20202     shlibpath_overrides_runpath=yes
20203     hardcode_into_libs=yes
20204     ;;
20205   *) # from 3.2 on
20206     shlibpath_overrides_runpath=no
20207     hardcode_into_libs=yes
20208     ;;
20209   esac
20210   ;;
20211
20212 gnu*)
20213   version_type=linux
20214   need_lib_prefix=no
20215   need_version=no
20216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20217   soname_spec='${libname}${release}${shared_ext}$major'
20218   shlibpath_var=LD_LIBRARY_PATH
20219   hardcode_into_libs=yes
20220   ;;
20221
20222 hpux9* | hpux10* | hpux11*)
20223   # Give a soname corresponding to the major version so that dld.sl refuses to
20224   # link against other versions.
20225   version_type=sunos
20226   need_lib_prefix=no
20227   need_version=no
20228   case "$host_cpu" in
20229   ia64*)
20230     shrext_cmds='.so'
20231     hardcode_into_libs=yes
20232     dynamic_linker="$host_os dld.so"
20233     shlibpath_var=LD_LIBRARY_PATH
20234     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236     soname_spec='${libname}${release}${shared_ext}$major'
20237     if test "X$HPUX_IA64_MODE" = X32; then
20238       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20239     else
20240       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20241     fi
20242     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20243     ;;
20244    hppa*64*)
20245      shrext_cmds='.sl'
20246      hardcode_into_libs=yes
20247      dynamic_linker="$host_os dld.sl"
20248      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20249      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20253      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20254      ;;
20255    *)
20256     shrext_cmds='.sl'
20257     dynamic_linker="$host_os dld.sl"
20258     shlibpath_var=SHLIB_PATH
20259     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261     soname_spec='${libname}${release}${shared_ext}$major'
20262     ;;
20263   esac
20264   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20265   postinstall_cmds='chmod 555 $lib'
20266   ;;
20267
20268 irix5* | irix6* | nonstopux*)
20269   case $host_os in
20270     nonstopux*) version_type=nonstopux ;;
20271     *)
20272         if test "$lt_cv_prog_gnu_ld" = yes; then
20273                 version_type=linux
20274         else
20275                 version_type=irix
20276         fi ;;
20277   esac
20278   need_lib_prefix=no
20279   need_version=no
20280   soname_spec='${libname}${release}${shared_ext}$major'
20281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20282   case $host_os in
20283   irix5* | nonstopux*)
20284     libsuff= shlibsuff=
20285     ;;
20286   *)
20287     case $LD in # libtool.m4 will add one of these switches to LD
20288     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20289       libsuff= shlibsuff= libmagic=32-bit;;
20290     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20291       libsuff=32 shlibsuff=N32 libmagic=N32;;
20292     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20293       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20294     *) libsuff= shlibsuff= libmagic=never-match;;
20295     esac
20296     ;;
20297   esac
20298   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20299   shlibpath_overrides_runpath=no
20300   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20301   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20302   hardcode_into_libs=yes
20303   ;;
20304
20305 # No shared lib support for Linux oldld, aout, or coff.
20306 linux*oldld* | linux*aout* | linux*coff*)
20307   dynamic_linker=no
20308   ;;
20309
20310 # This must be Linux ELF.
20311 linux*)
20312   version_type=linux
20313   need_lib_prefix=no
20314   need_version=no
20315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316   soname_spec='${libname}${release}${shared_ext}$major'
20317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20318   shlibpath_var=LD_LIBRARY_PATH
20319   shlibpath_overrides_runpath=no
20320   # This implies no fast_install, which is unacceptable.
20321   # Some rework will be needed to allow for fast_install
20322   # before this can be enabled.
20323   hardcode_into_libs=yes
20324
20325   # Append ld.so.conf contents to the search path
20326   if test -f /etc/ld.so.conf; then
20327     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20328     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20329   fi
20330
20331   # We used to test for /lib/ld.so.1 and disable shared libraries on
20332   # powerpc, because MkLinux only supported shared libraries with the
20333   # GNU dynamic linker.  Since this was broken with cross compilers,
20334   # most powerpc-linux boxes support dynamic linking these days and
20335   # people can always --disable-shared, the test was removed, and we
20336   # assume the GNU/Linux dynamic linker is in use.
20337   dynamic_linker='GNU/Linux ld.so'
20338   ;;
20339
20340 knetbsd*-gnu)
20341   version_type=linux
20342   need_lib_prefix=no
20343   need_version=no
20344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20345   soname_spec='${libname}${release}${shared_ext}$major'
20346   shlibpath_var=LD_LIBRARY_PATH
20347   shlibpath_overrides_runpath=no
20348   hardcode_into_libs=yes
20349   dynamic_linker='GNU ld.so'
20350   ;;
20351
20352 netbsd*)
20353   version_type=sunos
20354   need_lib_prefix=no
20355   need_version=no
20356   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20358     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20359     dynamic_linker='NetBSD (a.out) ld.so'
20360   else
20361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20362     soname_spec='${libname}${release}${shared_ext}$major'
20363     dynamic_linker='NetBSD ld.elf_so'
20364   fi
20365   shlibpath_var=LD_LIBRARY_PATH
20366   shlibpath_overrides_runpath=yes
20367   hardcode_into_libs=yes
20368   ;;
20369
20370 newsos6)
20371   version_type=linux
20372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20373   shlibpath_var=LD_LIBRARY_PATH
20374   shlibpath_overrides_runpath=yes
20375   ;;
20376
20377 nto-qnx*)
20378   version_type=linux
20379   need_lib_prefix=no
20380   need_version=no
20381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382   soname_spec='${libname}${release}${shared_ext}$major'
20383   shlibpath_var=LD_LIBRARY_PATH
20384   shlibpath_overrides_runpath=yes
20385   ;;
20386
20387 openbsd*)
20388   version_type=sunos
20389   need_lib_prefix=no
20390   need_version=no
20391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20392   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20393   shlibpath_var=LD_LIBRARY_PATH
20394   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20395     case $host_os in
20396       openbsd2.[89] | openbsd2.[89].*)
20397         shlibpath_overrides_runpath=no
20398         ;;
20399       *)
20400         shlibpath_overrides_runpath=yes
20401         ;;
20402       esac
20403   else
20404     shlibpath_overrides_runpath=yes
20405   fi
20406   ;;
20407
20408 os2*)
20409   libname_spec='$name'
20410   shrext_cmds=".dll"
20411   need_lib_prefix=no
20412   library_names_spec='$libname${shared_ext} $libname.a'
20413   dynamic_linker='OS/2 ld.exe'
20414   shlibpath_var=LIBPATH
20415   ;;
20416
20417 osf3* | osf4* | osf5*)
20418   version_type=osf
20419   need_lib_prefix=no
20420   need_version=no
20421   soname_spec='${libname}${release}${shared_ext}$major'
20422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423   shlibpath_var=LD_LIBRARY_PATH
20424   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20425   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20426   ;;
20427
20428 sco3.2v5*)
20429   version_type=osf
20430   soname_spec='${libname}${release}${shared_ext}$major'
20431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432   shlibpath_var=LD_LIBRARY_PATH
20433   ;;
20434
20435 solaris*)
20436   version_type=linux
20437   need_lib_prefix=no
20438   need_version=no
20439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440   soname_spec='${libname}${release}${shared_ext}$major'
20441   shlibpath_var=LD_LIBRARY_PATH
20442   shlibpath_overrides_runpath=yes
20443   hardcode_into_libs=yes
20444   # ldd complains unless libraries are executable
20445   postinstall_cmds='chmod +x $lib'
20446   ;;
20447
20448 sunos4*)
20449   version_type=sunos
20450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20451   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20452   shlibpath_var=LD_LIBRARY_PATH
20453   shlibpath_overrides_runpath=yes
20454   if test "$with_gnu_ld" = yes; then
20455     need_lib_prefix=no
20456   fi
20457   need_version=yes
20458   ;;
20459
20460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20461   version_type=linux
20462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20463   soname_spec='${libname}${release}${shared_ext}$major'
20464   shlibpath_var=LD_LIBRARY_PATH
20465   case $host_vendor in
20466     sni)
20467       shlibpath_overrides_runpath=no
20468       need_lib_prefix=no
20469       export_dynamic_flag_spec='${wl}-Blargedynsym'
20470       runpath_var=LD_RUN_PATH
20471       ;;
20472     siemens)
20473       need_lib_prefix=no
20474       ;;
20475     motorola)
20476       need_lib_prefix=no
20477       need_version=no
20478       shlibpath_overrides_runpath=no
20479       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20480       ;;
20481   esac
20482   ;;
20483
20484 sysv4*MP*)
20485   if test -d /usr/nec ;then
20486     version_type=linux
20487     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20488     soname_spec='$libname${shared_ext}.$major'
20489     shlibpath_var=LD_LIBRARY_PATH
20490   fi
20491   ;;
20492
20493 uts4*)
20494   version_type=linux
20495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496   soname_spec='${libname}${release}${shared_ext}$major'
20497   shlibpath_var=LD_LIBRARY_PATH
20498   ;;
20499
20500 *)
20501   dynamic_linker=no
20502   ;;
20503 esac
20504 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20505 echo "${ECHO_T}$dynamic_linker" >&6
20506 test "$dynamic_linker" = no && can_build_shared=no
20507
20508 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20509 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20510 hardcode_action_F77=
20511 if test -n "$hardcode_libdir_flag_spec_F77" || \
20512    test -n "$runpath_var_F77" || \
20513    test "X$hardcode_automatic_F77" = "Xyes" ; then
20514
20515   # We can hardcode non-existant directories.
20516   if test "$hardcode_direct_F77" != no &&
20517      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20518      # have to relink, otherwise we might link with an installed library
20519      # when we should be linking with a yet-to-be-installed one
20520      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20521      test "$hardcode_minus_L_F77" != no; then
20522     # Linking always hardcodes the temporary library directory.
20523     hardcode_action_F77=relink
20524   else
20525     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20526     hardcode_action_F77=immediate
20527   fi
20528 else
20529   # We cannot hardcode anything, or else we can only hardcode existing
20530   # directories.
20531   hardcode_action_F77=unsupported
20532 fi
20533 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20534 echo "${ECHO_T}$hardcode_action_F77" >&6
20535
20536 if test "$hardcode_action_F77" = relink; then
20537   # Fast installation is not supported
20538   enable_fast_install=no
20539 elif test "$shlibpath_overrides_runpath" = yes ||
20540      test "$enable_shared" = no; then
20541   # Fast installation is not necessary
20542   enable_fast_install=needless
20543 fi
20544
20545 striplib=
20546 old_striplib=
20547 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20548 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20549 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20550   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20551   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20552   echo "$as_me:$LINENO: result: yes" >&5
20553 echo "${ECHO_T}yes" >&6
20554 else
20555 # FIXME - insert some real tests, host_os isn't really good enough
20556   case $host_os in
20557    darwin*)
20558        if test -n "$STRIP" ; then
20559          striplib="$STRIP -x"
20560          echo "$as_me:$LINENO: result: yes" >&5
20561 echo "${ECHO_T}yes" >&6
20562        else
20563   echo "$as_me:$LINENO: result: no" >&5
20564 echo "${ECHO_T}no" >&6
20565 fi
20566        ;;
20567    *)
20568   echo "$as_me:$LINENO: result: no" >&5
20569 echo "${ECHO_T}no" >&6
20570     ;;
20571   esac
20572 fi
20573
20574
20575
20576 # The else clause should only fire when bootstrapping the
20577 # libtool distribution, otherwise you forgot to ship ltmain.sh
20578 # with your package, and you will get complaints that there are
20579 # no rules to generate ltmain.sh.
20580 if test -f "$ltmain"; then
20581   # See if we are running on zsh, and set the options which allow our commands through
20582   # without removal of \ escapes.
20583   if test -n "${ZSH_VERSION+set}" ; then
20584     setopt NO_GLOB_SUBST
20585   fi
20586   # Now quote all the things that may contain metacharacters while being
20587   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20588   # variables and quote the copies for generation of the libtool script.
20589   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20590     SED SHELL STRIP \
20591     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20592     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20593     deplibs_check_method reload_flag reload_cmds need_locks \
20594     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20595     lt_cv_sys_global_symbol_to_c_name_address \
20596     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20597     old_postinstall_cmds old_postuninstall_cmds \
20598     compiler_F77 \
20599     CC_F77 \
20600     LD_F77 \
20601     lt_prog_compiler_wl_F77 \
20602     lt_prog_compiler_pic_F77 \
20603     lt_prog_compiler_static_F77 \
20604     lt_prog_compiler_no_builtin_flag_F77 \
20605     export_dynamic_flag_spec_F77 \
20606     thread_safe_flag_spec_F77 \
20607     whole_archive_flag_spec_F77 \
20608     enable_shared_with_static_runtimes_F77 \
20609     old_archive_cmds_F77 \
20610     old_archive_from_new_cmds_F77 \
20611     predep_objects_F77 \
20612     postdep_objects_F77 \
20613     predeps_F77 \
20614     postdeps_F77 \
20615     compiler_lib_search_path_F77 \
20616     archive_cmds_F77 \
20617     archive_expsym_cmds_F77 \
20618     postinstall_cmds_F77 \
20619     postuninstall_cmds_F77 \
20620     old_archive_from_expsyms_cmds_F77 \
20621     allow_undefined_flag_F77 \
20622     no_undefined_flag_F77 \
20623     export_symbols_cmds_F77 \
20624     hardcode_libdir_flag_spec_F77 \
20625     hardcode_libdir_flag_spec_ld_F77 \
20626     hardcode_libdir_separator_F77 \
20627     hardcode_automatic_F77 \
20628     module_cmds_F77 \
20629     module_expsym_cmds_F77 \
20630     lt_cv_prog_compiler_c_o_F77 \
20631     exclude_expsyms_F77 \
20632     include_expsyms_F77; do
20633
20634     case $var in
20635     old_archive_cmds_F77 | \
20636     old_archive_from_new_cmds_F77 | \
20637     archive_cmds_F77 | \
20638     archive_expsym_cmds_F77 | \
20639     module_cmds_F77 | \
20640     module_expsym_cmds_F77 | \
20641     old_archive_from_expsyms_cmds_F77 | \
20642     export_symbols_cmds_F77 | \
20643     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20644     postinstall_cmds | postuninstall_cmds | \
20645     old_postinstall_cmds | old_postuninstall_cmds | \
20646     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20647       # Double-quote double-evaled strings.
20648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20649       ;;
20650     *)
20651       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20652       ;;
20653     esac
20654   done
20655
20656   case $lt_echo in
20657   *'\$0 --fallback-echo"')
20658     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20659     ;;
20660   esac
20661
20662 cfgfile="$ofile"
20663
20664   cat <<__EOF__ >> "$cfgfile"
20665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20666
20667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20668
20669 # Shell to use when invoking shell scripts.
20670 SHELL=$lt_SHELL
20671
20672 # Whether or not to build shared libraries.
20673 build_libtool_libs=$enable_shared
20674
20675 # Whether or not to build static libraries.
20676 build_old_libs=$enable_static
20677
20678 # Whether or not to add -lc for building shared libraries.
20679 build_libtool_need_lc=$archive_cmds_need_lc_F77
20680
20681 # Whether or not to disallow shared libs when runtime libs are static
20682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20683
20684 # Whether or not to optimize for fast installation.
20685 fast_install=$enable_fast_install
20686
20687 # The host system.
20688 host_alias=$host_alias
20689 host=$host
20690
20691 # An echo program that does not interpret backslashes.
20692 echo=$lt_echo
20693
20694 # The archiver.
20695 AR=$lt_AR
20696 AR_FLAGS=$lt_AR_FLAGS
20697
20698 # A C compiler.
20699 LTCC=$lt_LTCC
20700
20701 # A language-specific compiler.
20702 CC=$lt_compiler_F77
20703
20704 # Is the compiler the GNU C compiler?
20705 with_gcc=$GCC_F77
20706
20707 # An ERE matcher.
20708 EGREP=$lt_EGREP
20709
20710 # The linker used to build libraries.
20711 LD=$lt_LD_F77
20712
20713 # Whether we need hard or soft links.
20714 LN_S=$lt_LN_S
20715
20716 # A BSD-compatible nm program.
20717 NM=$lt_NM
20718
20719 # A symbol stripping program
20720 STRIP=$lt_STRIP
20721
20722 # Used to examine libraries when file_magic_cmd begins "file"
20723 MAGIC_CMD=$MAGIC_CMD
20724
20725 # Used on cygwin: DLL creation program.
20726 DLLTOOL="$DLLTOOL"
20727
20728 # Used on cygwin: object dumper.
20729 OBJDUMP="$OBJDUMP"
20730
20731 # Used on cygwin: assembler.
20732 AS="$AS"
20733
20734 # The name of the directory that contains temporary libtool files.
20735 objdir=$objdir
20736
20737 # How to create reloadable object files.
20738 reload_flag=$lt_reload_flag
20739 reload_cmds=$lt_reload_cmds
20740
20741 # How to pass a linker flag through the compiler.
20742 wl=$lt_lt_prog_compiler_wl_F77
20743
20744 # Object file suffix (normally "o").
20745 objext="$ac_objext"
20746
20747 # Old archive suffix (normally "a").
20748 libext="$libext"
20749
20750 # Shared library suffix (normally ".so").
20751 shrext_cmds='$shrext_cmds'
20752
20753 # Executable file suffix (normally "").
20754 exeext="$exeext"
20755
20756 # Additional compiler flags for building library objects.
20757 pic_flag=$lt_lt_prog_compiler_pic_F77
20758 pic_mode=$pic_mode
20759
20760 # What is the maximum length of a command?
20761 max_cmd_len=$lt_cv_sys_max_cmd_len
20762
20763 # Does compiler simultaneously support -c and -o options?
20764 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20765
20766 # Must we lock files when doing compilation ?
20767 need_locks=$lt_need_locks
20768
20769 # Do we need the lib prefix for modules?
20770 need_lib_prefix=$need_lib_prefix
20771
20772 # Do we need a version for libraries?
20773 need_version=$need_version
20774
20775 # Whether dlopen is supported.
20776 dlopen_support=$enable_dlopen
20777
20778 # Whether dlopen of programs is supported.
20779 dlopen_self=$enable_dlopen_self
20780
20781 # Whether dlopen of statically linked programs is supported.
20782 dlopen_self_static=$enable_dlopen_self_static
20783
20784 # Compiler flag to prevent dynamic linking.
20785 link_static_flag=$lt_lt_prog_compiler_static_F77
20786
20787 # Compiler flag to turn off builtin functions.
20788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20789
20790 # Compiler flag to allow reflexive dlopens.
20791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20792
20793 # Compiler flag to generate shared objects directly from archives.
20794 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20795
20796 # Compiler flag to generate thread-safe objects.
20797 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20798
20799 # Library versioning type.
20800 version_type=$version_type
20801
20802 # Format of library name prefix.
20803 libname_spec=$lt_libname_spec
20804
20805 # List of archive names.  First name is the real one, the rest are links.
20806 # The last name is the one that the linker finds with -lNAME.
20807 library_names_spec=$lt_library_names_spec
20808
20809 # The coded name of the library, if different from the real name.
20810 soname_spec=$lt_soname_spec
20811
20812 # Commands used to build and install an old-style archive.
20813 RANLIB=$lt_RANLIB
20814 old_archive_cmds=$lt_old_archive_cmds_F77
20815 old_postinstall_cmds=$lt_old_postinstall_cmds
20816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20817
20818 # Create an old-style archive from a shared archive.
20819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20820
20821 # Create a temporary old-style archive to link instead of a shared archive.
20822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20823
20824 # Commands used to build and install a shared archive.
20825 archive_cmds=$lt_archive_cmds_F77
20826 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20827 postinstall_cmds=$lt_postinstall_cmds
20828 postuninstall_cmds=$lt_postuninstall_cmds
20829
20830 # Commands used to build a loadable module (assumed same as above if empty)
20831 module_cmds=$lt_module_cmds_F77
20832 module_expsym_cmds=$lt_module_expsym_cmds_F77
20833
20834 # Commands to strip libraries.
20835 old_striplib=$lt_old_striplib
20836 striplib=$lt_striplib
20837
20838 # Dependencies to place before the objects being linked to create a
20839 # shared library.
20840 predep_objects=$lt_predep_objects_F77
20841
20842 # Dependencies to place after the objects being linked to create a
20843 # shared library.
20844 postdep_objects=$lt_postdep_objects_F77
20845
20846 # Dependencies to place before the objects being linked to create a
20847 # shared library.
20848 predeps=$lt_predeps_F77
20849
20850 # Dependencies to place after the objects being linked to create a
20851 # shared library.
20852 postdeps=$lt_postdeps_F77
20853
20854 # The library search path used internally by the compiler when linking
20855 # a shared library.
20856 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20857
20858 # Method to check whether dependent libraries are shared objects.
20859 deplibs_check_method=$lt_deplibs_check_method
20860
20861 # Command to use when deplibs_check_method == file_magic.
20862 file_magic_cmd=$lt_file_magic_cmd
20863
20864 # Flag that allows shared libraries with undefined symbols to be built.
20865 allow_undefined_flag=$lt_allow_undefined_flag_F77
20866
20867 # Flag that forces no undefined symbols.
20868 no_undefined_flag=$lt_no_undefined_flag_F77
20869
20870 # Commands used to finish a libtool library installation in a directory.
20871 finish_cmds=$lt_finish_cmds
20872
20873 # Same as above, but a single script fragment to be evaled but not shown.
20874 finish_eval=$lt_finish_eval
20875
20876 # Take the output of nm and produce a listing of raw symbols and C names.
20877 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20878
20879 # Transform the output of nm in a proper C declaration
20880 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20881
20882 # Transform the output of nm in a C name address pair
20883 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20884
20885 # This is the shared library runtime path variable.
20886 runpath_var=$runpath_var
20887
20888 # This is the shared library path variable.
20889 shlibpath_var=$shlibpath_var
20890
20891 # Is shlibpath searched before the hard-coded library search path?
20892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20893
20894 # How to hardcode a shared library path into an executable.
20895 hardcode_action=$hardcode_action_F77
20896
20897 # Whether we should hardcode library paths into libraries.
20898 hardcode_into_libs=$hardcode_into_libs
20899
20900 # Flag to hardcode \$libdir into a binary during linking.
20901 # This must work even if \$libdir does not exist.
20902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20903
20904 # If ld is used when linking, flag to hardcode \$libdir into
20905 # a binary during linking. This must work even if \$libdir does
20906 # not exist.
20907 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20908
20909 # Whether we need a single -rpath flag with a separated argument.
20910 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20911
20912 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20913 # resulting binary.
20914 hardcode_direct=$hardcode_direct_F77
20915
20916 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20917 # resulting binary.
20918 hardcode_minus_L=$hardcode_minus_L_F77
20919
20920 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20921 # the resulting binary.
20922 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20923
20924 # Set to yes if building a shared library automatically hardcodes DIR into the library
20925 # and all subsequent libraries and executables linked against it.
20926 hardcode_automatic=$hardcode_automatic_F77
20927
20928 # Variables whose values should be saved in libtool wrapper scripts and
20929 # restored at relink time.
20930 variables_saved_for_relink="$variables_saved_for_relink"
20931
20932 # Whether libtool must link a program against all its dependency libraries.
20933 link_all_deplibs=$link_all_deplibs_F77
20934
20935 # Compile-time system search path for libraries
20936 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20937
20938 # Run-time system search path for libraries
20939 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20940
20941 # Fix the shell variable \$srcfile for the compiler.
20942 fix_srcfile_path="$fix_srcfile_path_F77"
20943
20944 # Set to yes if exported symbols are required.
20945 always_export_symbols=$always_export_symbols_F77
20946
20947 # The commands to list exported symbols.
20948 export_symbols_cmds=$lt_export_symbols_cmds_F77
20949
20950 # The commands to extract the exported symbol list from a shared archive.
20951 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20952
20953 # Symbols that should not be listed in the preloaded symbols.
20954 exclude_expsyms=$lt_exclude_expsyms_F77
20955
20956 # Symbols that must always be exported.
20957 include_expsyms=$lt_include_expsyms_F77
20958
20959 # ### END LIBTOOL TAG CONFIG: $tagname
20960
20961 __EOF__
20962
20963
20964 else
20965   # If there is no Makefile yet, we rely on a make rule to execute
20966   # `config.status --recheck' to rerun these tests and create the
20967   # libtool script then.
20968   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20969   if test -f "$ltmain_in"; then
20970     test -f Makefile && make "$ltmain"
20971   fi
20972 fi
20973
20974
20975 ac_ext=c
20976 ac_cpp='$CPP $CPPFLAGS'
20977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20980
20981 CC="$lt_save_CC"
20982
20983         else
20984           tagname=""
20985         fi
20986         ;;
20987
20988       GCJ)
20989         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20990           ac_ext=c
20991 ac_cpp='$CPP $CPPFLAGS'
20992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20995
20996
20997 # Source file extension for Java test sources.
20998 ac_ext=java
20999
21000 # Object file extension for compiled Java test sources.
21001 objext=o
21002 objext_GCJ=$objext
21003
21004 # Code to be used in simple compile tests
21005 lt_simple_compile_test_code="class foo {}\n"
21006
21007 # Code to be used in simple link tests
21008 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21009
21010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21011
21012 # If no C compiler was specified, use CC.
21013 LTCC=${LTCC-"$CC"}
21014
21015 # Allow CC to be a program name with arguments.
21016 compiler=$CC
21017
21018
21019 # Allow CC to be a program name with arguments.
21020 lt_save_CC="$CC"
21021 CC=${GCJ-"gcj"}
21022 compiler=$CC
21023 compiler_GCJ=$CC
21024
21025 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21026 archive_cmds_need_lc_GCJ=no
21027
21028
21029 lt_prog_compiler_no_builtin_flag_GCJ=
21030
21031 if test "$GCC" = yes; then
21032   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21033
21034
21035 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21036 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21037 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040   lt_cv_prog_compiler_rtti_exceptions=no
21041   ac_outfile=conftest.$ac_objext
21042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21043    lt_compiler_flag="-fno-rtti -fno-exceptions"
21044    # Insert the option either (1) after the last *FLAGS variable, or
21045    # (2) before a word containing "conftest.", or (3) at the end.
21046    # Note that $ac_compile itself does not contain backslashes and begins
21047    # with a dollar sign (not a hyphen), so the echo should work correctly.
21048    # The option is referenced via a variable to avoid confusing sed.
21049    lt_compile=`echo "$ac_compile" | $SED \
21050    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21052    -e 's:$: $lt_compiler_flag:'`
21053    (eval echo "\"\$as_me:21053: $lt_compile\"" >&5)
21054    (eval "$lt_compile" 2>conftest.err)
21055    ac_status=$?
21056    cat conftest.err >&5
21057    echo "$as_me:21057: \$? = $ac_status" >&5
21058    if (exit $ac_status) && test -s "$ac_outfile"; then
21059      # The compiler can only warn and ignore the option if not recognized
21060      # So say no if there are warnings
21061      if test ! -s conftest.err; then
21062        lt_cv_prog_compiler_rtti_exceptions=yes
21063      fi
21064    fi
21065    $rm conftest*
21066
21067 fi
21068 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21069 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21070
21071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21072     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21073 else
21074     :
21075 fi
21076
21077 fi
21078
21079 lt_prog_compiler_wl_GCJ=
21080 lt_prog_compiler_pic_GCJ=
21081 lt_prog_compiler_static_GCJ=
21082
21083 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21085
21086   if test "$GCC" = yes; then
21087     lt_prog_compiler_wl_GCJ='-Wl,'
21088     lt_prog_compiler_static_GCJ='-static'
21089
21090     case $host_os in
21091       aix*)
21092       # All AIX code is PIC.
21093       if test "$host_cpu" = ia64; then
21094         # AIX 5 now supports IA64 processor
21095         lt_prog_compiler_static_GCJ='-Bstatic'
21096       fi
21097       ;;
21098
21099     amigaos*)
21100       # FIXME: we need at least 68020 code to build shared libraries, but
21101       # adding the `-m68020' flag to GCC prevents building anything better,
21102       # like `-m68040'.
21103       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21104       ;;
21105
21106     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21107       # PIC is the default for these OSes.
21108       ;;
21109
21110     mingw* | pw32* | os2*)
21111       # This hack is so that the source file can tell whether it is being
21112       # built for inclusion in a dll (and should export symbols for example).
21113       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21114       ;;
21115
21116     darwin* | rhapsody*)
21117       # PIC is the default on this platform
21118       # Common symbols not allowed in MH_DYLIB files
21119       lt_prog_compiler_pic_GCJ='-fno-common'
21120       ;;
21121
21122     msdosdjgpp*)
21123       # Just because we use GCC doesn't mean we suddenly get shared libraries
21124       # on systems that don't support them.
21125       lt_prog_compiler_can_build_shared_GCJ=no
21126       enable_shared=no
21127       ;;
21128
21129     sysv4*MP*)
21130       if test -d /usr/nec; then
21131         lt_prog_compiler_pic_GCJ=-Kconform_pic
21132       fi
21133       ;;
21134
21135     hpux*)
21136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21137       # not for PA HP-UX.
21138       case "$host_cpu" in
21139       hppa*64*|ia64*)
21140         # +Z the default
21141         ;;
21142       *)
21143         lt_prog_compiler_pic_GCJ='-fPIC'
21144         ;;
21145       esac
21146       ;;
21147
21148     *)
21149       lt_prog_compiler_pic_GCJ='-fPIC'
21150       ;;
21151     esac
21152   else
21153     # PORTME Check for flag to pass linker flags through the system compiler.
21154     case $host_os in
21155     aix*)
21156       lt_prog_compiler_wl_GCJ='-Wl,'
21157       if test "$host_cpu" = ia64; then
21158         # AIX 5 now supports IA64 processor
21159         lt_prog_compiler_static_GCJ='-Bstatic'
21160       else
21161         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21162       fi
21163       ;;
21164       darwin*)
21165         # PIC is the default on this platform
21166         # Common symbols not allowed in MH_DYLIB files
21167        case "$cc_basename" in
21168          xlc*)
21169          lt_prog_compiler_pic_GCJ='-qnocommon'
21170          lt_prog_compiler_wl_GCJ='-Wl,'
21171          ;;
21172        esac
21173        ;;
21174
21175     mingw* | pw32* | os2*)
21176       # This hack is so that the source file can tell whether it is being
21177       # built for inclusion in a dll (and should export symbols for example).
21178       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21179       ;;
21180
21181     hpux9* | hpux10* | hpux11*)
21182       lt_prog_compiler_wl_GCJ='-Wl,'
21183       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21184       # not for PA HP-UX.
21185       case "$host_cpu" in
21186       hppa*64*|ia64*)
21187         # +Z the default
21188         ;;
21189       *)
21190         lt_prog_compiler_pic_GCJ='+Z'
21191         ;;
21192       esac
21193       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21194       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21195       ;;
21196
21197     irix5* | irix6* | nonstopux*)
21198       lt_prog_compiler_wl_GCJ='-Wl,'
21199       # PIC (with -KPIC) is the default.
21200       lt_prog_compiler_static_GCJ='-non_shared'
21201       ;;
21202
21203     newsos6)
21204       lt_prog_compiler_pic_GCJ='-KPIC'
21205       lt_prog_compiler_static_GCJ='-Bstatic'
21206       ;;
21207
21208     linux*)
21209       case $CC in
21210       icc* | ecc*)
21211         lt_prog_compiler_wl_GCJ='-Wl,'
21212         lt_prog_compiler_pic_GCJ='-KPIC'
21213         lt_prog_compiler_static_GCJ='-static'
21214         ;;
21215       ccc*)
21216         lt_prog_compiler_wl_GCJ='-Wl,'
21217         # All Alpha code is PIC.
21218         lt_prog_compiler_static_GCJ='-non_shared'
21219         ;;
21220       esac
21221       ;;
21222
21223     osf3* | osf4* | osf5*)
21224       lt_prog_compiler_wl_GCJ='-Wl,'
21225       # All OSF/1 code is PIC.
21226       lt_prog_compiler_static_GCJ='-non_shared'
21227       ;;
21228
21229     sco3.2v5*)
21230       lt_prog_compiler_pic_GCJ='-Kpic'
21231       lt_prog_compiler_static_GCJ='-dn'
21232       ;;
21233
21234     solaris*)
21235       lt_prog_compiler_wl_GCJ='-Wl,'
21236       lt_prog_compiler_pic_GCJ='-KPIC'
21237       lt_prog_compiler_static_GCJ='-Bstatic'
21238       ;;
21239
21240     sunos4*)
21241       lt_prog_compiler_wl_GCJ='-Qoption ld '
21242       lt_prog_compiler_pic_GCJ='-PIC'
21243       lt_prog_compiler_static_GCJ='-Bstatic'
21244       ;;
21245
21246     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21247       lt_prog_compiler_wl_GCJ='-Wl,'
21248       lt_prog_compiler_pic_GCJ='-KPIC'
21249       lt_prog_compiler_static_GCJ='-Bstatic'
21250       ;;
21251
21252     sysv4*MP*)
21253       if test -d /usr/nec ;then
21254         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21255         lt_prog_compiler_static_GCJ='-Bstatic'
21256       fi
21257       ;;
21258
21259     uts4*)
21260       lt_prog_compiler_pic_GCJ='-pic'
21261       lt_prog_compiler_static_GCJ='-Bstatic'
21262       ;;
21263
21264     *)
21265       lt_prog_compiler_can_build_shared_GCJ=no
21266       ;;
21267     esac
21268   fi
21269
21270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21271 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21272
21273 #
21274 # Check to make sure the PIC flag actually works.
21275 #
21276 if test -n "$lt_prog_compiler_pic_GCJ"; then
21277
21278 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21280 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21281   echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283   lt_prog_compiler_pic_works_GCJ=no
21284   ac_outfile=conftest.$ac_objext
21285    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21286    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21287    # Insert the option either (1) after the last *FLAGS variable, or
21288    # (2) before a word containing "conftest.", or (3) at the end.
21289    # Note that $ac_compile itself does not contain backslashes and begins
21290    # with a dollar sign (not a hyphen), so the echo should work correctly.
21291    # The option is referenced via a variable to avoid confusing sed.
21292    lt_compile=`echo "$ac_compile" | $SED \
21293    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21295    -e 's:$: $lt_compiler_flag:'`
21296    (eval echo "\"\$as_me:21296: $lt_compile\"" >&5)
21297    (eval "$lt_compile" 2>conftest.err)
21298    ac_status=$?
21299    cat conftest.err >&5
21300    echo "$as_me:21300: \$? = $ac_status" >&5
21301    if (exit $ac_status) && test -s "$ac_outfile"; then
21302      # The compiler can only warn and ignore the option if not recognized
21303      # So say no if there are warnings
21304      if test ! -s conftest.err; then
21305        lt_prog_compiler_pic_works_GCJ=yes
21306      fi
21307    fi
21308    $rm conftest*
21309
21310 fi
21311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21312 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21313
21314 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21315     case $lt_prog_compiler_pic_GCJ in
21316      "" | " "*) ;;
21317      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21318      esac
21319 else
21320     lt_prog_compiler_pic_GCJ=
21321      lt_prog_compiler_can_build_shared_GCJ=no
21322 fi
21323
21324 fi
21325 case "$host_os" in
21326   # For platforms which do not support PIC, -DPIC is meaningless:
21327   *djgpp*)
21328     lt_prog_compiler_pic_GCJ=
21329     ;;
21330   *)
21331     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21332     ;;
21333 esac
21334
21335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21337 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21338   echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340   lt_cv_prog_compiler_c_o_GCJ=no
21341    $rm -r conftest 2>/dev/null
21342    mkdir conftest
21343    cd conftest
21344    mkdir out
21345    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21346
21347    lt_compiler_flag="-o out/conftest2.$ac_objext"
21348    # Insert the option either (1) after the last *FLAGS variable, or
21349    # (2) before a word containing "conftest.", or (3) at the end.
21350    # Note that $ac_compile itself does not contain backslashes and begins
21351    # with a dollar sign (not a hyphen), so the echo should work correctly.
21352    lt_compile=`echo "$ac_compile" | $SED \
21353    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21355    -e 's:$: $lt_compiler_flag:'`
21356    (eval echo "\"\$as_me:21356: $lt_compile\"" >&5)
21357    (eval "$lt_compile" 2>out/conftest.err)
21358    ac_status=$?
21359    cat out/conftest.err >&5
21360    echo "$as_me:21360: \$? = $ac_status" >&5
21361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21362    then
21363      # The compiler can only warn and ignore the option if not recognized
21364      # So say no if there are warnings
21365      if test ! -s out/conftest.err; then
21366        lt_cv_prog_compiler_c_o_GCJ=yes
21367      fi
21368    fi
21369    chmod u+w .
21370    $rm conftest*
21371    # SGI C++ compiler will create directory out/ii_files/ for
21372    # template instantiation
21373    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21374    $rm out/* && rmdir out
21375    cd ..
21376    rmdir conftest
21377    $rm conftest*
21378
21379 fi
21380 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21381 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21382
21383
21384 hard_links="nottested"
21385 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21386   # do not overwrite the value of need_locks provided by the user
21387   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21388 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21389   hard_links=yes
21390   $rm conftest*
21391   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21392   touch conftest.a
21393   ln conftest.a conftest.b 2>&5 || hard_links=no
21394   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21395   echo "$as_me:$LINENO: result: $hard_links" >&5
21396 echo "${ECHO_T}$hard_links" >&6
21397   if test "$hard_links" = no; then
21398     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21399 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21400     need_locks=warn
21401   fi
21402 else
21403   need_locks=no
21404 fi
21405
21406 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21408
21409   runpath_var=
21410   allow_undefined_flag_GCJ=
21411   enable_shared_with_static_runtimes_GCJ=no
21412   archive_cmds_GCJ=
21413   archive_expsym_cmds_GCJ=
21414   old_archive_From_new_cmds_GCJ=
21415   old_archive_from_expsyms_cmds_GCJ=
21416   export_dynamic_flag_spec_GCJ=
21417   whole_archive_flag_spec_GCJ=
21418   thread_safe_flag_spec_GCJ=
21419   hardcode_libdir_flag_spec_GCJ=
21420   hardcode_libdir_flag_spec_ld_GCJ=
21421   hardcode_libdir_separator_GCJ=
21422   hardcode_direct_GCJ=no
21423   hardcode_minus_L_GCJ=no
21424   hardcode_shlibpath_var_GCJ=unsupported
21425   link_all_deplibs_GCJ=unknown
21426   hardcode_automatic_GCJ=no
21427   module_cmds_GCJ=
21428   module_expsym_cmds_GCJ=
21429   always_export_symbols_GCJ=no
21430   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21431   # include_expsyms should be a list of space-separated symbols to be *always*
21432   # included in the symbol list
21433   include_expsyms_GCJ=
21434   # exclude_expsyms can be an extended regexp of symbols to exclude
21435   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21436   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21437   # as well as any symbol that contains `d'.
21438   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21439   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21440   # platforms (ab)use it in PIC code, but their linkers get confused if
21441   # the symbol is explicitly referenced.  Since portable code cannot
21442   # rely on this symbol name, it's probably fine to never include it in
21443   # preloaded symbol tables.
21444   extract_expsyms_cmds=
21445
21446   case $host_os in
21447   cygwin* | mingw* | pw32*)
21448     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21449     # When not using gcc, we currently assume that we are using
21450     # Microsoft Visual C++.
21451     if test "$GCC" != yes; then
21452       with_gnu_ld=no
21453     fi
21454     ;;
21455   openbsd*)
21456     with_gnu_ld=no
21457     ;;
21458   esac
21459
21460   ld_shlibs_GCJ=yes
21461   if test "$with_gnu_ld" = yes; then
21462     # If archive_cmds runs LD, not CC, wlarc should be empty
21463     wlarc='${wl}'
21464
21465     # See if GNU ld supports shared libraries.
21466     case $host_os in
21467     aix3* | aix4* | aix5*)
21468       # On AIX/PPC, the GNU linker is very broken
21469       if test "$host_cpu" != ia64; then
21470         ld_shlibs_GCJ=no
21471         cat <<EOF 1>&2
21472
21473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21474 *** to be unable to reliably create shared libraries on AIX.
21475 *** Therefore, libtool is disabling shared libraries support.  If you
21476 *** really care for shared libraries, you may want to modify your PATH
21477 *** so that a non-GNU linker is found, and then restart.
21478
21479 EOF
21480       fi
21481       ;;
21482
21483     amigaos*)
21484       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)'
21485       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21486       hardcode_minus_L_GCJ=yes
21487
21488       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21489       # that the semantics of dynamic libraries on AmigaOS, at least up
21490       # to version 4, is to share data among multiple programs linked
21491       # with the same dynamic library.  Since this doesn't match the
21492       # behavior of shared libraries on other platforms, we can't use
21493       # them.
21494       ld_shlibs_GCJ=no
21495       ;;
21496
21497     beos*)
21498       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21499         allow_undefined_flag_GCJ=unsupported
21500         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21501         # support --undefined.  This deserves some investigation.  FIXME
21502         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21503       else
21504         ld_shlibs_GCJ=no
21505       fi
21506       ;;
21507
21508     cygwin* | mingw* | pw32*)
21509       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21510       # as there is no search path for DLLs.
21511       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21512       allow_undefined_flag_GCJ=unsupported
21513       always_export_symbols_GCJ=no
21514       enable_shared_with_static_runtimes_GCJ=yes
21515       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21516
21517       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21518         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21519         # If the export-symbols file already is a .def file (1st line
21520         # is EXPORTS), use it as is; otherwise, prepend...
21521         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21522           cp $export_symbols $output_objdir/$soname.def;
21523         else
21524           echo EXPORTS > $output_objdir/$soname.def;
21525           cat $export_symbols >> $output_objdir/$soname.def;
21526         fi~
21527         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21528       else
21529         ld_shlibs=no
21530       fi
21531       ;;
21532
21533     netbsd*)
21534       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21535         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21536         wlarc=
21537       else
21538         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21539         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21540       fi
21541       ;;
21542
21543     solaris* | sysv5*)
21544       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21545         ld_shlibs_GCJ=no
21546         cat <<EOF 1>&2
21547
21548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21549 *** create shared libraries on Solaris systems.  Therefore, libtool
21550 *** is disabling shared libraries support.  We urge you to upgrade GNU
21551 *** binutils to release 2.9.1 or newer.  Another option is to modify
21552 *** your PATH or compiler configuration so that the native linker is
21553 *** used, and then restart.
21554
21555 EOF
21556       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21557         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21558         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21559       else
21560         ld_shlibs_GCJ=no
21561       fi
21562       ;;
21563
21564     sunos4*)
21565       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21566       wlarc=
21567       hardcode_direct_GCJ=yes
21568       hardcode_shlibpath_var_GCJ=no
21569       ;;
21570
21571   linux*)
21572     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21573         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21574         archive_cmds_GCJ="$tmp_archive_cmds"
21575       supports_anon_versioning=no
21576       case `$LD -v 2>/dev/null` in
21577         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21578         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21579         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21580         *\ 2.11.*) ;; # other 2.11 versions
21581         *) supports_anon_versioning=yes ;;
21582       esac
21583       if test $supports_anon_versioning = yes; then
21584         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21586 $echo "local: *; };" >> $output_objdir/$libname.ver~
21587         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21588       else
21589         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21590       fi
21591     else
21592       ld_shlibs_GCJ=no
21593     fi
21594     ;;
21595
21596     *)
21597       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21598         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21599         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21600       else
21601         ld_shlibs_GCJ=no
21602       fi
21603       ;;
21604     esac
21605
21606     if test "$ld_shlibs_GCJ" = yes; then
21607       runpath_var=LD_RUN_PATH
21608       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21609       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21610       # ancient GNU ld didn't support --whole-archive et. al.
21611       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21612         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21613       else
21614         whole_archive_flag_spec_GCJ=
21615       fi
21616     fi
21617   else
21618     # PORTME fill in a description of your system's linker (not GNU ld)
21619     case $host_os in
21620     aix3*)
21621       allow_undefined_flag_GCJ=unsupported
21622       always_export_symbols_GCJ=yes
21623       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'
21624       # Note: this linker hardcodes the directories in LIBPATH if there
21625       # are no directories specified by -L.
21626       hardcode_minus_L_GCJ=yes
21627       if test "$GCC" = yes && test -z "$link_static_flag"; then
21628         # Neither direct hardcoding nor static linking is supported with a
21629         # broken collect2.
21630         hardcode_direct_GCJ=unsupported
21631       fi
21632       ;;
21633
21634     aix4* | aix5*)
21635       if test "$host_cpu" = ia64; then
21636         # On IA64, the linker does run time linking by default, so we don't
21637         # have to do anything special.
21638         aix_use_runtimelinking=no
21639         exp_sym_flag='-Bexport'
21640         no_entry_flag=""
21641       else
21642         # If we're using GNU nm, then we don't want the "-C" option.
21643         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21644         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21645           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'
21646         else
21647           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'
21648         fi
21649         aix_use_runtimelinking=no
21650
21651         # Test if we are trying to use run time linking or normal
21652         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21653         # need to do runtime linking.
21654         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21655           for ld_flag in $LDFLAGS; do
21656           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21657             aix_use_runtimelinking=yes
21658             break
21659           fi
21660           done
21661         esac
21662
21663         exp_sym_flag='-bexport'
21664         no_entry_flag='-bnoentry'
21665       fi
21666
21667       # When large executables or shared objects are built, AIX ld can
21668       # have problems creating the table of contents.  If linking a library
21669       # or program results in "error TOC overflow" add -mminimal-toc to
21670       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21671       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21672
21673       archive_cmds_GCJ=''
21674       hardcode_direct_GCJ=yes
21675       hardcode_libdir_separator_GCJ=':'
21676       link_all_deplibs_GCJ=yes
21677
21678       if test "$GCC" = yes; then
21679         case $host_os in aix4.012|aix4.012.*)
21680         # We only want to do this on AIX 4.2 and lower, the check
21681         # below for broken collect2 doesn't work under 4.3+
21682           collect2name=`${CC} -print-prog-name=collect2`
21683           if test -f "$collect2name" && \
21684            strings "$collect2name" | grep resolve_lib_name >/dev/null
21685           then
21686           # We have reworked collect2
21687           hardcode_direct_GCJ=yes
21688           else
21689           # We have old collect2
21690           hardcode_direct_GCJ=unsupported
21691           # It fails to find uninstalled libraries when the uninstalled
21692           # path is not listed in the libpath.  Setting hardcode_minus_L
21693           # to unsupported forces relinking
21694           hardcode_minus_L_GCJ=yes
21695           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21696           hardcode_libdir_separator_GCJ=
21697           fi
21698         esac
21699         shared_flag='-shared'
21700       else
21701         # not using gcc
21702         if test "$host_cpu" = ia64; then
21703         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21704         # chokes on -Wl,-G. The following line is correct:
21705           shared_flag='-G'
21706         else
21707         if test "$aix_use_runtimelinking" = yes; then
21708             shared_flag='${wl}-G'
21709           else
21710             shared_flag='${wl}-bM:SRE'
21711         fi
21712         fi
21713       fi
21714
21715       # It seems that -bexpall does not export symbols beginning with
21716       # underscore (_), so it is better to generate a list of symbols to export.
21717       always_export_symbols_GCJ=yes
21718       if test "$aix_use_runtimelinking" = yes; then
21719         # Warning - without using the other runtime loading flags (-brtl),
21720         # -berok will link without error, but may produce a broken library.
21721         allow_undefined_flag_GCJ='-berok'
21722        # Determine the default libpath from the value encoded in an empty executable.
21723        cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h.  */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h.  */
21729
21730 int
21731 main ()
21732 {
21733
21734   ;
21735   return 0;
21736 }
21737 _ACEOF
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21740   (eval $ac_link) 2>conftest.er1
21741   ac_status=$?
21742   grep -v '^ *+' conftest.er1 >conftest.err
21743   rm -f conftest.er1
21744   cat conftest.err >&5
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); } &&
21747          { ac_try='test -z "$ac_c_werror_flag"
21748                          || test ! -s conftest.err'
21749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750   (eval $ac_try) 2>&5
21751   ac_status=$?
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); }; } &&
21754          { ac_try='test -s conftest$ac_exeext'
21755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756   (eval $ac_try) 2>&5
21757   ac_status=$?
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); }; }; then
21760
21761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21762 }'`
21763 # Check for a 64-bit object if we didn't find anything.
21764 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; }
21765 }'`; fi
21766 else
21767   echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770 fi
21771 rm -f conftest.err conftest.$ac_objext \
21772       conftest$ac_exeext conftest.$ac_ext
21773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21774
21775        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21776         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"
21777        else
21778         if test "$host_cpu" = ia64; then
21779           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21780           allow_undefined_flag_GCJ="-z nodefs"
21781           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"
21782         else
21783          # Determine the default libpath from the value encoded in an empty executable.
21784          cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h.  */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h.  */
21790
21791 int
21792 main ()
21793 {
21794
21795   ;
21796   return 0;
21797 }
21798 _ACEOF
21799 rm -f conftest.$ac_objext conftest$ac_exeext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21801   (eval $ac_link) 2>conftest.er1
21802   ac_status=$?
21803   grep -v '^ *+' conftest.er1 >conftest.err
21804   rm -f conftest.er1
21805   cat conftest.err >&5
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); } &&
21808          { ac_try='test -z "$ac_c_werror_flag"
21809                          || test ! -s conftest.err'
21810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811   (eval $ac_try) 2>&5
21812   ac_status=$?
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); }; } &&
21815          { ac_try='test -s conftest$ac_exeext'
21816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817   (eval $ac_try) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); }; }; then
21821
21822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21823 }'`
21824 # Check for a 64-bit object if we didn't find anything.
21825 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; }
21826 }'`; fi
21827 else
21828   echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21830
21831 fi
21832 rm -f conftest.err conftest.$ac_objext \
21833       conftest$ac_exeext conftest.$ac_ext
21834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21835
21836          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21837           # Warning - without using the other run time loading flags,
21838           # -berok will link without error, but may produce a broken library.
21839           no_undefined_flag_GCJ=' ${wl}-bernotok'
21840           allow_undefined_flag_GCJ=' ${wl}-berok'
21841           # -bexpall does not export symbols beginning with underscore (_)
21842           always_export_symbols_GCJ=yes
21843           # Exported symbols can be pulled into shared objects from archives
21844           whole_archive_flag_spec_GCJ=' '
21845           archive_cmds_need_lc_GCJ=yes
21846           # This is similar to how AIX traditionally builds it's shared libraries.
21847           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'
21848         fi
21849       fi
21850       ;;
21851
21852     amigaos*)
21853       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)'
21854       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21855       hardcode_minus_L_GCJ=yes
21856       # see comment about different semantics on the GNU ld section
21857       ld_shlibs_GCJ=no
21858       ;;
21859
21860     bsdi[45]*)
21861       export_dynamic_flag_spec_GCJ=-rdynamic
21862       ;;
21863
21864     cygwin* | mingw* | pw32*)
21865       # When not using gcc, we currently assume that we are using
21866       # Microsoft Visual C++.
21867       # hardcode_libdir_flag_spec is actually meaningless, as there is
21868       # no search path for DLLs.
21869       hardcode_libdir_flag_spec_GCJ=' '
21870       allow_undefined_flag_GCJ=unsupported
21871       # Tell ltmain to make .lib files, not .a files.
21872       libext=lib
21873       # Tell ltmain to make .dll files, not .so files.
21874       shrext_cmds=".dll"
21875       # FIXME: Setting linknames here is a bad hack.
21876       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21877       # The linker will automatically build a .lib file if we build a DLL.
21878       old_archive_From_new_cmds_GCJ='true'
21879       # FIXME: Should let the user specify the lib program.
21880       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21881       fix_srcfile_path='`cygpath -w "$srcfile"`'
21882       enable_shared_with_static_runtimes_GCJ=yes
21883       ;;
21884
21885     darwin* | rhapsody*)
21886       case "$host_os" in
21887         rhapsody* | darwin1.[012])
21888          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21889          ;;
21890        *) # Darwin 1.3 on
21891          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21892            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21893          else
21894            case ${MACOSX_DEPLOYMENT_TARGET} in
21895              10.[012])
21896                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21897                ;;
21898              10.*)
21899                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21900                ;;
21901            esac
21902          fi
21903          ;;
21904       esac
21905       archive_cmds_need_lc_GCJ=no
21906       hardcode_direct_GCJ=no
21907       hardcode_automatic_GCJ=yes
21908       hardcode_shlibpath_var_GCJ=unsupported
21909       whole_archive_flag_spec_GCJ=''
21910       link_all_deplibs_GCJ=yes
21911     if test "$GCC" = yes ; then
21912         output_verbose_link_cmd='echo'
21913         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21914       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21915       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21916       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}'
21917       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}'
21918     else
21919       case "$cc_basename" in
21920         xlc*)
21921          output_verbose_link_cmd='echo'
21922          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21923          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21924           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21925          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}'
21926           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}'
21927           ;;
21928        *)
21929          ld_shlibs_GCJ=no
21930           ;;
21931       esac
21932     fi
21933       ;;
21934
21935     dgux*)
21936       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21937       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21938       hardcode_shlibpath_var_GCJ=no
21939       ;;
21940
21941     freebsd1*)
21942       ld_shlibs_GCJ=no
21943       ;;
21944
21945     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21946     # support.  Future versions do this automatically, but an explicit c++rt0.o
21947     # does not break anything, and helps significantly (at the cost of a little
21948     # extra space).
21949     freebsd2.2*)
21950       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21951       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21952       hardcode_direct_GCJ=yes
21953       hardcode_shlibpath_var_GCJ=no
21954       ;;
21955
21956     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21957     freebsd2*)
21958       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21959       hardcode_direct_GCJ=yes
21960       hardcode_minus_L_GCJ=yes
21961       hardcode_shlibpath_var_GCJ=no
21962       ;;
21963
21964     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21965     freebsd* | kfreebsd*-gnu)
21966       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21967       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21968       hardcode_direct_GCJ=yes
21969       hardcode_shlibpath_var_GCJ=no
21970       ;;
21971
21972     hpux9*)
21973       if test "$GCC" = yes; then
21974         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'
21975       else
21976         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'
21977       fi
21978       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21979       hardcode_libdir_separator_GCJ=:
21980       hardcode_direct_GCJ=yes
21981
21982       # hardcode_minus_L: Not really in the search PATH,
21983       # but as the default location of the library.
21984       hardcode_minus_L_GCJ=yes
21985       export_dynamic_flag_spec_GCJ='${wl}-E'
21986       ;;
21987
21988     hpux10* | hpux11*)
21989       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21990         case "$host_cpu" in
21991         hppa*64*|ia64*)
21992           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21993           ;;
21994         *)
21995           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21996           ;;
21997         esac
21998       else
21999         case "$host_cpu" in
22000         hppa*64*|ia64*)
22001           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22002           ;;
22003         *)
22004           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22005           ;;
22006         esac
22007       fi
22008       if test "$with_gnu_ld" = no; then
22009         case "$host_cpu" in
22010         hppa*64*)
22011           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22012           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22013           hardcode_libdir_separator_GCJ=:
22014           hardcode_direct_GCJ=no
22015           hardcode_shlibpath_var_GCJ=no
22016           ;;
22017         ia64*)
22018           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22019           hardcode_direct_GCJ=no
22020           hardcode_shlibpath_var_GCJ=no
22021
22022           # hardcode_minus_L: Not really in the search PATH,
22023           # but as the default location of the library.
22024           hardcode_minus_L_GCJ=yes
22025           ;;
22026         *)
22027           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22028           hardcode_libdir_separator_GCJ=:
22029           hardcode_direct_GCJ=yes
22030           export_dynamic_flag_spec_GCJ='${wl}-E'
22031
22032           # hardcode_minus_L: Not really in the search PATH,
22033           # but as the default location of the library.
22034           hardcode_minus_L_GCJ=yes
22035           ;;
22036         esac
22037       fi
22038       ;;
22039
22040     irix5* | irix6* | nonstopux*)
22041       if test "$GCC" = yes; then
22042         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'
22043       else
22044         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'
22045         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22046       fi
22047       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22048       hardcode_libdir_separator_GCJ=:
22049       link_all_deplibs_GCJ=yes
22050       ;;
22051
22052     netbsd*)
22053       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22054         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22055       else
22056         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22057       fi
22058       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22059       hardcode_direct_GCJ=yes
22060       hardcode_shlibpath_var_GCJ=no
22061       ;;
22062
22063     newsos6)
22064       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22065       hardcode_direct_GCJ=yes
22066       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22067       hardcode_libdir_separator_GCJ=:
22068       hardcode_shlibpath_var_GCJ=no
22069       ;;
22070
22071     openbsd*)
22072       hardcode_direct_GCJ=yes
22073       hardcode_shlibpath_var_GCJ=no
22074       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22075         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22076         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22077         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22078         export_dynamic_flag_spec_GCJ='${wl}-E'
22079       else
22080        case $host_os in
22081          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22082            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22083            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22084            ;;
22085          *)
22086            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22087            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22088            ;;
22089        esac
22090       fi
22091       ;;
22092
22093     os2*)
22094       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22095       hardcode_minus_L_GCJ=yes
22096       allow_undefined_flag_GCJ=unsupported
22097       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'
22098       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22099       ;;
22100
22101     osf3*)
22102       if test "$GCC" = yes; then
22103         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22104         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'
22105       else
22106         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22107         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'
22108       fi
22109       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22110       hardcode_libdir_separator_GCJ=:
22111       ;;
22112
22113     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22114       if test "$GCC" = yes; then
22115         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22116         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'
22117         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22118       else
22119         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22120         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'
22121         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~
22122         $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'
22123
22124         # Both c and cxx compiler support -rpath directly
22125         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22126       fi
22127       hardcode_libdir_separator_GCJ=:
22128       ;;
22129
22130     sco3.2v5*)
22131       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22132       hardcode_shlibpath_var_GCJ=no
22133       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22134       runpath_var=LD_RUN_PATH
22135       hardcode_runpath_var=yes
22136       ;;
22137
22138     solaris*)
22139       no_undefined_flag_GCJ=' -z text'
22140       if test "$GCC" = yes; then
22141         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22142         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22143           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22144       else
22145         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22147         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22148       fi
22149       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22150       hardcode_shlibpath_var_GCJ=no
22151       case $host_os in
22152       solaris2.[0-5] | solaris2.[0-5].*) ;;
22153       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22154         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22155       esac
22156       link_all_deplibs_GCJ=yes
22157       ;;
22158
22159     sunos4*)
22160       if test "x$host_vendor" = xsequent; then
22161         # Use $CC to link under sequent, because it throws in some extra .o
22162         # files that make .init and .fini sections work.
22163         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22164       else
22165         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22166       fi
22167       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22168       hardcode_direct_GCJ=yes
22169       hardcode_minus_L_GCJ=yes
22170       hardcode_shlibpath_var_GCJ=no
22171       ;;
22172
22173     sysv4)
22174       case $host_vendor in
22175         sni)
22176           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22177           hardcode_direct_GCJ=yes # is this really true???
22178         ;;
22179         siemens)
22180           ## LD is ld it makes a PLAMLIB
22181           ## CC just makes a GrossModule.
22182           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22183           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22184           hardcode_direct_GCJ=no
22185         ;;
22186         motorola)
22187           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22188           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22189         ;;
22190       esac
22191       runpath_var='LD_RUN_PATH'
22192       hardcode_shlibpath_var_GCJ=no
22193       ;;
22194
22195     sysv4.3*)
22196       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197       hardcode_shlibpath_var_GCJ=no
22198       export_dynamic_flag_spec_GCJ='-Bexport'
22199       ;;
22200
22201     sysv4*MP*)
22202       if test -d /usr/nec; then
22203         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204         hardcode_shlibpath_var_GCJ=no
22205         runpath_var=LD_RUN_PATH
22206         hardcode_runpath_var=yes
22207         ld_shlibs_GCJ=yes
22208       fi
22209       ;;
22210
22211     sysv4.2uw2*)
22212       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22213       hardcode_direct_GCJ=yes
22214       hardcode_minus_L_GCJ=no
22215       hardcode_shlibpath_var_GCJ=no
22216       hardcode_runpath_var=yes
22217       runpath_var=LD_RUN_PATH
22218       ;;
22219
22220    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22221       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22222       if test "$GCC" = yes; then
22223         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22224       else
22225         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22226       fi
22227       runpath_var='LD_RUN_PATH'
22228       hardcode_shlibpath_var_GCJ=no
22229       ;;
22230
22231     sysv5*)
22232       no_undefined_flag_GCJ=' -z text'
22233       # $CC -shared without GNU ld will not create a library from C++
22234       # object files and a static libstdc++, better avoid it by now
22235       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22236       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22237                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22238       hardcode_libdir_flag_spec_GCJ=
22239       hardcode_shlibpath_var_GCJ=no
22240       runpath_var='LD_RUN_PATH'
22241       ;;
22242
22243     uts4*)
22244       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22245       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22246       hardcode_shlibpath_var_GCJ=no
22247       ;;
22248
22249     *)
22250       ld_shlibs_GCJ=no
22251       ;;
22252     esac
22253   fi
22254
22255 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22256 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22257 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22258
22259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22260 if test "$GCC" = yes; then
22261   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22262 fi
22263
22264 #
22265 # Do we need to explicitly link libc?
22266 #
22267 case "x$archive_cmds_need_lc_GCJ" in
22268 x|xyes)
22269   # Assume -lc should be added
22270   archive_cmds_need_lc_GCJ=yes
22271
22272   if test "$enable_shared" = yes && test "$GCC" = yes; then
22273     case $archive_cmds_GCJ in
22274     *'~'*)
22275       # FIXME: we may have to deal with multi-command sequences.
22276       ;;
22277     '$CC '*)
22278       # Test whether the compiler implicitly links with -lc since on some
22279       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22280       # to ld, don't add -lc before -lgcc.
22281       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22283       $rm conftest*
22284       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22285
22286       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22287   (eval $ac_compile) 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } 2>conftest.err; then
22291         soname=conftest
22292         lib=conftest
22293         libobjs=conftest.$ac_objext
22294         deplibs=
22295         wl=$lt_prog_compiler_wl_GCJ
22296         compiler_flags=-v
22297         linker_flags=-v
22298         verstring=
22299         output_objdir=.
22300         libname=conftest
22301         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22302         allow_undefined_flag_GCJ=
22303         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22304   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }
22308         then
22309           archive_cmds_need_lc_GCJ=no
22310         else
22311           archive_cmds_need_lc_GCJ=yes
22312         fi
22313         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22314       else
22315         cat conftest.err 1>&5
22316       fi
22317       $rm conftest*
22318       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22319 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22320       ;;
22321     esac
22322   fi
22323   ;;
22324 esac
22325
22326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22328 library_names_spec=
22329 libname_spec='lib$name'
22330 soname_spec=
22331 shrext_cmds=".so"
22332 postinstall_cmds=
22333 postuninstall_cmds=
22334 finish_cmds=
22335 finish_eval=
22336 shlibpath_var=
22337 shlibpath_overrides_runpath=unknown
22338 version_type=none
22339 dynamic_linker="$host_os ld.so"
22340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22341 if test "$GCC" = yes; then
22342   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22343   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22344     # if the path contains ";" then we assume it to be the separator
22345     # otherwise default to the standard path separator (i.e. ":") - it is
22346     # assumed that no part of a normal pathname contains ";" but that should
22347     # okay in the real world where ";" in dirpaths is itself problematic.
22348     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22349   else
22350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22351   fi
22352 else
22353   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22354 fi
22355 need_lib_prefix=unknown
22356 hardcode_into_libs=no
22357
22358 # when you set need_version to no, make sure it does not cause -set_version
22359 # flags to be left without arguments
22360 need_version=unknown
22361
22362 case $host_os in
22363 aix3*)
22364   version_type=linux
22365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22366   shlibpath_var=LIBPATH
22367
22368   # AIX 3 has no versioning support, so we append a major version to the name.
22369   soname_spec='${libname}${release}${shared_ext}$major'
22370   ;;
22371
22372 aix4* | aix5*)
22373   version_type=linux
22374   need_lib_prefix=no
22375   need_version=no
22376   hardcode_into_libs=yes
22377   if test "$host_cpu" = ia64; then
22378     # AIX 5 supports IA64
22379     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22380     shlibpath_var=LD_LIBRARY_PATH
22381   else
22382     # With GCC up to 2.95.x, collect2 would create an import file
22383     # for dependence libraries.  The import file would start with
22384     # the line `#! .'.  This would cause the generated library to
22385     # depend on `.', always an invalid library.  This was fixed in
22386     # development snapshots of GCC prior to 3.0.
22387     case $host_os in
22388       aix4 | aix4.[01] | aix4.[01].*)
22389       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22390            echo ' yes '
22391            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22392         :
22393       else
22394         can_build_shared=no
22395       fi
22396       ;;
22397     esac
22398     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22399     # soname into executable. Probably we can add versioning support to
22400     # collect2, so additional links can be useful in future.
22401     if test "$aix_use_runtimelinking" = yes; then
22402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22403       # instead of lib<name>.a to let people know that these are not
22404       # typical AIX shared libraries.
22405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22406     else
22407       # We preserve .a as extension for shared libraries through AIX4.2
22408       # and later when we are not doing run time linking.
22409       library_names_spec='${libname}${release}.a $libname.a'
22410       soname_spec='${libname}${release}${shared_ext}$major'
22411     fi
22412     shlibpath_var=LIBPATH
22413   fi
22414   ;;
22415
22416 amigaos*)
22417   library_names_spec='$libname.ixlibrary $libname.a'
22418   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22419   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'
22420   ;;
22421
22422 beos*)
22423   library_names_spec='${libname}${shared_ext}'
22424   dynamic_linker="$host_os ld.so"
22425   shlibpath_var=LIBRARY_PATH
22426   ;;
22427
22428 bsdi[45]*)
22429   version_type=linux
22430   need_version=no
22431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22432   soname_spec='${libname}${release}${shared_ext}$major'
22433   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22434   shlibpath_var=LD_LIBRARY_PATH
22435   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22436   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22437   # the default ld.so.conf also contains /usr/contrib/lib and
22438   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22439   # libtool to hard-code these into programs
22440   ;;
22441
22442 cygwin* | mingw* | pw32*)
22443   version_type=windows
22444   shrext_cmds=".dll"
22445   need_version=no
22446   need_lib_prefix=no
22447
22448   case $GCC,$host_os in
22449   yes,cygwin* | yes,mingw* | yes,pw32*)
22450     library_names_spec='$libname.dll.a'
22451     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22452     postinstall_cmds='base_file=`basename \${file}`~
22453       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22454       dldir=$destdir/`dirname \$dlpath`~
22455       test -d \$dldir || mkdir -p \$dldir~
22456       $install_prog $dir/$dlname \$dldir/$dlname'
22457     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22458       dlpath=$dir/\$dldll~
22459        $rm \$dlpath'
22460     shlibpath_overrides_runpath=yes
22461
22462     case $host_os in
22463     cygwin*)
22464       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22465       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22466       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22467       ;;
22468     mingw*)
22469       # MinGW DLLs use traditional 'lib' prefix
22470       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22471       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22472       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22473         # It is most probably a Windows format PATH printed by
22474         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22475         # path with ; separators, and with drive letters. We can handle the
22476         # drive letters (cygwin fileutils understands them), so leave them,
22477         # especially as we might pass files found there to a mingw objdump,
22478         # which wouldn't understand a cygwinified path. Ahh.
22479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22480       else
22481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22482       fi
22483       ;;
22484     pw32*)
22485       # pw32 DLLs use 'pw' prefix rather than 'lib'
22486       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22487       ;;
22488     esac
22489     ;;
22490
22491   *)
22492     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22493     ;;
22494   esac
22495   dynamic_linker='Win32 ld.exe'
22496   # FIXME: first we should search . and the directory the executable is in
22497   shlibpath_var=PATH
22498   ;;
22499
22500 darwin* | rhapsody*)
22501   dynamic_linker="$host_os dyld"
22502   version_type=darwin
22503   need_lib_prefix=no
22504   need_version=no
22505   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22506   soname_spec='${libname}${release}${major}$shared_ext'
22507   shlibpath_overrides_runpath=yes
22508   shlibpath_var=DYLD_LIBRARY_PATH
22509   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22510   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22511   if test "$GCC" = yes; then
22512     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"`
22513   else
22514     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22515   fi
22516   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22517   ;;
22518
22519 dgux*)
22520   version_type=linux
22521   need_lib_prefix=no
22522   need_version=no
22523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22524   soname_spec='${libname}${release}${shared_ext}$major'
22525   shlibpath_var=LD_LIBRARY_PATH
22526   ;;
22527
22528 freebsd1*)
22529   dynamic_linker=no
22530   ;;
22531
22532 kfreebsd*-gnu)
22533   version_type=linux
22534   need_lib_prefix=no
22535   need_version=no
22536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22537   soname_spec='${libname}${release}${shared_ext}$major'
22538   shlibpath_var=LD_LIBRARY_PATH
22539   shlibpath_overrides_runpath=no
22540   hardcode_into_libs=yes
22541   dynamic_linker='GNU ld.so'
22542   ;;
22543
22544 freebsd*)
22545   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22546   version_type=freebsd-$objformat
22547   case $version_type in
22548     freebsd-elf*)
22549       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22550       need_version=no
22551       need_lib_prefix=no
22552       ;;
22553     freebsd-*)
22554       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22555       need_version=yes
22556       ;;
22557   esac
22558   shlibpath_var=LD_LIBRARY_PATH
22559   case $host_os in
22560   freebsd2*)
22561     shlibpath_overrides_runpath=yes
22562     ;;
22563   freebsd3.01* | freebsdelf3.01*)
22564     shlibpath_overrides_runpath=yes
22565     hardcode_into_libs=yes
22566     ;;
22567   *) # from 3.2 on
22568     shlibpath_overrides_runpath=no
22569     hardcode_into_libs=yes
22570     ;;
22571   esac
22572   ;;
22573
22574 gnu*)
22575   version_type=linux
22576   need_lib_prefix=no
22577   need_version=no
22578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22579   soname_spec='${libname}${release}${shared_ext}$major'
22580   shlibpath_var=LD_LIBRARY_PATH
22581   hardcode_into_libs=yes
22582   ;;
22583
22584 hpux9* | hpux10* | hpux11*)
22585   # Give a soname corresponding to the major version so that dld.sl refuses to
22586   # link against other versions.
22587   version_type=sunos
22588   need_lib_prefix=no
22589   need_version=no
22590   case "$host_cpu" in
22591   ia64*)
22592     shrext_cmds='.so'
22593     hardcode_into_libs=yes
22594     dynamic_linker="$host_os dld.so"
22595     shlibpath_var=LD_LIBRARY_PATH
22596     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22598     soname_spec='${libname}${release}${shared_ext}$major'
22599     if test "X$HPUX_IA64_MODE" = X32; then
22600       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22601     else
22602       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22603     fi
22604     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22605     ;;
22606    hppa*64*)
22607      shrext_cmds='.sl'
22608      hardcode_into_libs=yes
22609      dynamic_linker="$host_os dld.sl"
22610      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22611      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22615      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22616      ;;
22617    *)
22618     shrext_cmds='.sl'
22619     dynamic_linker="$host_os dld.sl"
22620     shlibpath_var=SHLIB_PATH
22621     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22623     soname_spec='${libname}${release}${shared_ext}$major'
22624     ;;
22625   esac
22626   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22627   postinstall_cmds='chmod 555 $lib'
22628   ;;
22629
22630 irix5* | irix6* | nonstopux*)
22631   case $host_os in
22632     nonstopux*) version_type=nonstopux ;;
22633     *)
22634         if test "$lt_cv_prog_gnu_ld" = yes; then
22635                 version_type=linux
22636         else
22637                 version_type=irix
22638         fi ;;
22639   esac
22640   need_lib_prefix=no
22641   need_version=no
22642   soname_spec='${libname}${release}${shared_ext}$major'
22643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22644   case $host_os in
22645   irix5* | nonstopux*)
22646     libsuff= shlibsuff=
22647     ;;
22648   *)
22649     case $LD in # libtool.m4 will add one of these switches to LD
22650     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22651       libsuff= shlibsuff= libmagic=32-bit;;
22652     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22653       libsuff=32 shlibsuff=N32 libmagic=N32;;
22654     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22655       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22656     *) libsuff= shlibsuff= libmagic=never-match;;
22657     esac
22658     ;;
22659   esac
22660   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22661   shlibpath_overrides_runpath=no
22662   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22663   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22664   hardcode_into_libs=yes
22665   ;;
22666
22667 # No shared lib support for Linux oldld, aout, or coff.
22668 linux*oldld* | linux*aout* | linux*coff*)
22669   dynamic_linker=no
22670   ;;
22671
22672 # This must be Linux ELF.
22673 linux*)
22674   version_type=linux
22675   need_lib_prefix=no
22676   need_version=no
22677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678   soname_spec='${libname}${release}${shared_ext}$major'
22679   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22680   shlibpath_var=LD_LIBRARY_PATH
22681   shlibpath_overrides_runpath=no
22682   # This implies no fast_install, which is unacceptable.
22683   # Some rework will be needed to allow for fast_install
22684   # before this can be enabled.
22685   hardcode_into_libs=yes
22686
22687   # Append ld.so.conf contents to the search path
22688   if test -f /etc/ld.so.conf; then
22689     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22690     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22691   fi
22692
22693   # We used to test for /lib/ld.so.1 and disable shared libraries on
22694   # powerpc, because MkLinux only supported shared libraries with the
22695   # GNU dynamic linker.  Since this was broken with cross compilers,
22696   # most powerpc-linux boxes support dynamic linking these days and
22697   # people can always --disable-shared, the test was removed, and we
22698   # assume the GNU/Linux dynamic linker is in use.
22699   dynamic_linker='GNU/Linux ld.so'
22700   ;;
22701
22702 knetbsd*-gnu)
22703   version_type=linux
22704   need_lib_prefix=no
22705   need_version=no
22706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22707   soname_spec='${libname}${release}${shared_ext}$major'
22708   shlibpath_var=LD_LIBRARY_PATH
22709   shlibpath_overrides_runpath=no
22710   hardcode_into_libs=yes
22711   dynamic_linker='GNU ld.so'
22712   ;;
22713
22714 netbsd*)
22715   version_type=sunos
22716   need_lib_prefix=no
22717   need_version=no
22718   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22720     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22721     dynamic_linker='NetBSD (a.out) ld.so'
22722   else
22723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22724     soname_spec='${libname}${release}${shared_ext}$major'
22725     dynamic_linker='NetBSD ld.elf_so'
22726   fi
22727   shlibpath_var=LD_LIBRARY_PATH
22728   shlibpath_overrides_runpath=yes
22729   hardcode_into_libs=yes
22730   ;;
22731
22732 newsos6)
22733   version_type=linux
22734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735   shlibpath_var=LD_LIBRARY_PATH
22736   shlibpath_overrides_runpath=yes
22737   ;;
22738
22739 nto-qnx*)
22740   version_type=linux
22741   need_lib_prefix=no
22742   need_version=no
22743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22744   soname_spec='${libname}${release}${shared_ext}$major'
22745   shlibpath_var=LD_LIBRARY_PATH
22746   shlibpath_overrides_runpath=yes
22747   ;;
22748
22749 openbsd*)
22750   version_type=sunos
22751   need_lib_prefix=no
22752   need_version=no
22753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22755   shlibpath_var=LD_LIBRARY_PATH
22756   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22757     case $host_os in
22758       openbsd2.[89] | openbsd2.[89].*)
22759         shlibpath_overrides_runpath=no
22760         ;;
22761       *)
22762         shlibpath_overrides_runpath=yes
22763         ;;
22764       esac
22765   else
22766     shlibpath_overrides_runpath=yes
22767   fi
22768   ;;
22769
22770 os2*)
22771   libname_spec='$name'
22772   shrext_cmds=".dll"
22773   need_lib_prefix=no
22774   library_names_spec='$libname${shared_ext} $libname.a'
22775   dynamic_linker='OS/2 ld.exe'
22776   shlibpath_var=LIBPATH
22777   ;;
22778
22779 osf3* | osf4* | osf5*)
22780   version_type=osf
22781   need_lib_prefix=no
22782   need_version=no
22783   soname_spec='${libname}${release}${shared_ext}$major'
22784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785   shlibpath_var=LD_LIBRARY_PATH
22786   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22787   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22788   ;;
22789
22790 sco3.2v5*)
22791   version_type=osf
22792   soname_spec='${libname}${release}${shared_ext}$major'
22793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22794   shlibpath_var=LD_LIBRARY_PATH
22795   ;;
22796
22797 solaris*)
22798   version_type=linux
22799   need_lib_prefix=no
22800   need_version=no
22801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802   soname_spec='${libname}${release}${shared_ext}$major'
22803   shlibpath_var=LD_LIBRARY_PATH
22804   shlibpath_overrides_runpath=yes
22805   hardcode_into_libs=yes
22806   # ldd complains unless libraries are executable
22807   postinstall_cmds='chmod +x $lib'
22808   ;;
22809
22810 sunos4*)
22811   version_type=sunos
22812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22814   shlibpath_var=LD_LIBRARY_PATH
22815   shlibpath_overrides_runpath=yes
22816   if test "$with_gnu_ld" = yes; then
22817     need_lib_prefix=no
22818   fi
22819   need_version=yes
22820   ;;
22821
22822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22823   version_type=linux
22824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825   soname_spec='${libname}${release}${shared_ext}$major'
22826   shlibpath_var=LD_LIBRARY_PATH
22827   case $host_vendor in
22828     sni)
22829       shlibpath_overrides_runpath=no
22830       need_lib_prefix=no
22831       export_dynamic_flag_spec='${wl}-Blargedynsym'
22832       runpath_var=LD_RUN_PATH
22833       ;;
22834     siemens)
22835       need_lib_prefix=no
22836       ;;
22837     motorola)
22838       need_lib_prefix=no
22839       need_version=no
22840       shlibpath_overrides_runpath=no
22841       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22842       ;;
22843   esac
22844   ;;
22845
22846 sysv4*MP*)
22847   if test -d /usr/nec ;then
22848     version_type=linux
22849     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22850     soname_spec='$libname${shared_ext}.$major'
22851     shlibpath_var=LD_LIBRARY_PATH
22852   fi
22853   ;;
22854
22855 uts4*)
22856   version_type=linux
22857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858   soname_spec='${libname}${release}${shared_ext}$major'
22859   shlibpath_var=LD_LIBRARY_PATH
22860   ;;
22861
22862 *)
22863   dynamic_linker=no
22864   ;;
22865 esac
22866 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22867 echo "${ECHO_T}$dynamic_linker" >&6
22868 test "$dynamic_linker" = no && can_build_shared=no
22869
22870 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22871 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22872 hardcode_action_GCJ=
22873 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22874    test -n "$runpath_var_GCJ" || \
22875    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22876
22877   # We can hardcode non-existant directories.
22878   if test "$hardcode_direct_GCJ" != no &&
22879      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22880      # have to relink, otherwise we might link with an installed library
22881      # when we should be linking with a yet-to-be-installed one
22882      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22883      test "$hardcode_minus_L_GCJ" != no; then
22884     # Linking always hardcodes the temporary library directory.
22885     hardcode_action_GCJ=relink
22886   else
22887     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22888     hardcode_action_GCJ=immediate
22889   fi
22890 else
22891   # We cannot hardcode anything, or else we can only hardcode existing
22892   # directories.
22893   hardcode_action_GCJ=unsupported
22894 fi
22895 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22896 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22897
22898 if test "$hardcode_action_GCJ" = relink; then
22899   # Fast installation is not supported
22900   enable_fast_install=no
22901 elif test "$shlibpath_overrides_runpath" = yes ||
22902      test "$enable_shared" = no; then
22903   # Fast installation is not necessary
22904   enable_fast_install=needless
22905 fi
22906
22907 striplib=
22908 old_striplib=
22909 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22910 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22911 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22912   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22913   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22914   echo "$as_me:$LINENO: result: yes" >&5
22915 echo "${ECHO_T}yes" >&6
22916 else
22917 # FIXME - insert some real tests, host_os isn't really good enough
22918   case $host_os in
22919    darwin*)
22920        if test -n "$STRIP" ; then
22921          striplib="$STRIP -x"
22922          echo "$as_me:$LINENO: result: yes" >&5
22923 echo "${ECHO_T}yes" >&6
22924        else
22925   echo "$as_me:$LINENO: result: no" >&5
22926 echo "${ECHO_T}no" >&6
22927 fi
22928        ;;
22929    *)
22930   echo "$as_me:$LINENO: result: no" >&5
22931 echo "${ECHO_T}no" >&6
22932     ;;
22933   esac
22934 fi
22935
22936 if test "x$enable_dlopen" != xyes; then
22937   enable_dlopen=unknown
22938   enable_dlopen_self=unknown
22939   enable_dlopen_self_static=unknown
22940 else
22941   lt_cv_dlopen=no
22942   lt_cv_dlopen_libs=
22943
22944   case $host_os in
22945   beos*)
22946     lt_cv_dlopen="load_add_on"
22947     lt_cv_dlopen_libs=
22948     lt_cv_dlopen_self=yes
22949     ;;
22950
22951   mingw* | pw32*)
22952     lt_cv_dlopen="LoadLibrary"
22953     lt_cv_dlopen_libs=
22954    ;;
22955
22956   cygwin*)
22957     lt_cv_dlopen="dlopen"
22958     lt_cv_dlopen_libs=
22959    ;;
22960
22961   darwin*)
22962   # if libdl is installed we need to link against it
22963     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22966   echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968   ac_check_lib_save_LIBS=$LIBS
22969 LIBS="-ldl  $LIBS"
22970 cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h.  */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h.  */
22976
22977 /* Override any gcc2 internal prototype to avoid an error.  */
22978 #ifdef __cplusplus
22979 extern "C"
22980 #endif
22981 /* We use char because int might match the return type of a gcc2
22982    builtin and then its argument prototype would still apply.  */
22983 char dlopen ();
22984 int
22985 main ()
22986 {
22987 dlopen ();
22988   ;
22989   return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext conftest$ac_exeext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22994   (eval $ac_link) 2>conftest.er1
22995   ac_status=$?
22996   grep -v '^ *+' conftest.er1 >conftest.err
22997   rm -f conftest.er1
22998   cat conftest.err >&5
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); } &&
23001          { ac_try='test -z "$ac_c_werror_flag"
23002                          || test ! -s conftest.err'
23003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004   (eval $ac_try) 2>&5
23005   ac_status=$?
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); }; } &&
23008          { ac_try='test -s conftest$ac_exeext'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; }; then
23014   ac_cv_lib_dl_dlopen=yes
23015 else
23016   echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019 ac_cv_lib_dl_dlopen=no
23020 fi
23021 rm -f conftest.err conftest.$ac_objext \
23022       conftest$ac_exeext conftest.$ac_ext
23023 LIBS=$ac_check_lib_save_LIBS
23024 fi
23025 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23026 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23027 if test $ac_cv_lib_dl_dlopen = yes; then
23028   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23029 else
23030
23031     lt_cv_dlopen="dyld"
23032     lt_cv_dlopen_libs=
23033     lt_cv_dlopen_self=yes
23034
23035 fi
23036
23037    ;;
23038
23039   *)
23040     echo "$as_me:$LINENO: checking for shl_load" >&5
23041 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23042 if test "${ac_cv_func_shl_load+set}" = set; then
23043   echo $ECHO_N "(cached) $ECHO_C" >&6
23044 else
23045   cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23053 #define shl_load innocuous_shl_load
23054
23055 /* System header to define __stub macros and hopefully few prototypes,
23056     which can conflict with char shl_load (); below.
23057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23058     <limits.h> exists even on freestanding compilers.  */
23059
23060 #ifdef __STDC__
23061 # include <limits.h>
23062 #else
23063 # include <assert.h>
23064 #endif
23065
23066 #undef shl_load
23067
23068 /* Override any gcc2 internal prototype to avoid an error.  */
23069 #ifdef __cplusplus
23070 extern "C"
23071 {
23072 #endif
23073 /* We use char because int might match the return type of a gcc2
23074    builtin and then its argument prototype would still apply.  */
23075 char shl_load ();
23076 /* The GNU C library defines this for functions which it implements
23077     to always fail with ENOSYS.  Some functions are actually named
23078     something starting with __ and the normal name is an alias.  */
23079 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23080 choke me
23081 #else
23082 char (*f) () = shl_load;
23083 #endif
23084 #ifdef __cplusplus
23085 }
23086 #endif
23087
23088 int
23089 main ()
23090 {
23091 return f != shl_load;
23092   ;
23093   return 0;
23094 }
23095 _ACEOF
23096 rm -f conftest.$ac_objext conftest$ac_exeext
23097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23098   (eval $ac_link) 2>conftest.er1
23099   ac_status=$?
23100   grep -v '^ *+' conftest.er1 >conftest.err
23101   rm -f conftest.er1
23102   cat conftest.err >&5
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); } &&
23105          { ac_try='test -z "$ac_c_werror_flag"
23106                          || test ! -s conftest.err'
23107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108   (eval $ac_try) 2>&5
23109   ac_status=$?
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); }; } &&
23112          { ac_try='test -s conftest$ac_exeext'
23113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114   (eval $ac_try) 2>&5
23115   ac_status=$?
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); }; }; then
23118   ac_cv_func_shl_load=yes
23119 else
23120   echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23122
23123 ac_cv_func_shl_load=no
23124 fi
23125 rm -f conftest.err conftest.$ac_objext \
23126       conftest$ac_exeext conftest.$ac_ext
23127 fi
23128 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23129 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23130 if test $ac_cv_func_shl_load = yes; then
23131   lt_cv_dlopen="shl_load"
23132 else
23133   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23134 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23135 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23136   echo $ECHO_N "(cached) $ECHO_C" >&6
23137 else
23138   ac_check_lib_save_LIBS=$LIBS
23139 LIBS="-ldld  $LIBS"
23140 cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h.  */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h.  */
23146
23147 /* Override any gcc2 internal prototype to avoid an error.  */
23148 #ifdef __cplusplus
23149 extern "C"
23150 #endif
23151 /* We use char because int might match the return type of a gcc2
23152    builtin and then its argument prototype would still apply.  */
23153 char shl_load ();
23154 int
23155 main ()
23156 {
23157 shl_load ();
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_lib_dld_shl_load=yes
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_cv_lib_dld_shl_load=no
23190 fi
23191 rm -f conftest.err conftest.$ac_objext \
23192       conftest$ac_exeext conftest.$ac_ext
23193 LIBS=$ac_check_lib_save_LIBS
23194 fi
23195 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23196 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23197 if test $ac_cv_lib_dld_shl_load = yes; then
23198   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23199 else
23200   echo "$as_me:$LINENO: checking for dlopen" >&5
23201 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23202 if test "${ac_cv_func_dlopen+set}" = set; then
23203   echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205   cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23213 #define dlopen innocuous_dlopen
23214
23215 /* System header to define __stub macros and hopefully few prototypes,
23216     which can conflict with char dlopen (); below.
23217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23218     <limits.h> exists even on freestanding compilers.  */
23219
23220 #ifdef __STDC__
23221 # include <limits.h>
23222 #else
23223 # include <assert.h>
23224 #endif
23225
23226 #undef dlopen
23227
23228 /* Override any gcc2 internal prototype to avoid an error.  */
23229 #ifdef __cplusplus
23230 extern "C"
23231 {
23232 #endif
23233 /* We use char because int might match the return type of a gcc2
23234    builtin and then its argument prototype would still apply.  */
23235 char dlopen ();
23236 /* The GNU C library defines this for functions which it implements
23237     to always fail with ENOSYS.  Some functions are actually named
23238     something starting with __ and the normal name is an alias.  */
23239 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23240 choke me
23241 #else
23242 char (*f) () = dlopen;
23243 #endif
23244 #ifdef __cplusplus
23245 }
23246 #endif
23247
23248 int
23249 main ()
23250 {
23251 return f != dlopen;
23252   ;
23253   return 0;
23254 }
23255 _ACEOF
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258   (eval $ac_link) 2>conftest.er1
23259   ac_status=$?
23260   grep -v '^ *+' conftest.er1 >conftest.err
23261   rm -f conftest.er1
23262   cat conftest.err >&5
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); } &&
23265          { ac_try='test -z "$ac_c_werror_flag"
23266                          || test ! -s conftest.err'
23267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }; } &&
23272          { ac_try='test -s conftest$ac_exeext'
23273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274   (eval $ac_try) 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; }; then
23278   ac_cv_func_dlopen=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283 ac_cv_func_dlopen=no
23284 fi
23285 rm -f conftest.err conftest.$ac_objext \
23286       conftest$ac_exeext conftest.$ac_ext
23287 fi
23288 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23289 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23290 if test $ac_cv_func_dlopen = yes; then
23291   lt_cv_dlopen="dlopen"
23292 else
23293   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23294 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23296   echo $ECHO_N "(cached) $ECHO_C" >&6
23297 else
23298   ac_check_lib_save_LIBS=$LIBS
23299 LIBS="-ldl  $LIBS"
23300 cat >conftest.$ac_ext <<_ACEOF
23301 /* confdefs.h.  */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h.  */
23306
23307 /* Override any gcc2 internal prototype to avoid an error.  */
23308 #ifdef __cplusplus
23309 extern "C"
23310 #endif
23311 /* We use char because int might match the return type of a gcc2
23312    builtin and then its argument prototype would still apply.  */
23313 char dlopen ();
23314 int
23315 main ()
23316 {
23317 dlopen ();
23318   ;
23319   return 0;
23320 }
23321 _ACEOF
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23324   (eval $ac_link) 2>conftest.er1
23325   ac_status=$?
23326   grep -v '^ *+' conftest.er1 >conftest.err
23327   rm -f conftest.er1
23328   cat conftest.err >&5
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); } &&
23331          { ac_try='test -z "$ac_c_werror_flag"
23332                          || test ! -s conftest.err'
23333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334   (eval $ac_try) 2>&5
23335   ac_status=$?
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); }; } &&
23338          { ac_try='test -s conftest$ac_exeext'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; }; then
23344   ac_cv_lib_dl_dlopen=yes
23345 else
23346   echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 ac_cv_lib_dl_dlopen=no
23350 fi
23351 rm -f conftest.err conftest.$ac_objext \
23352       conftest$ac_exeext conftest.$ac_ext
23353 LIBS=$ac_check_lib_save_LIBS
23354 fi
23355 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23356 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23357 if test $ac_cv_lib_dl_dlopen = yes; then
23358   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23359 else
23360   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23361 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23362 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23363   echo $ECHO_N "(cached) $ECHO_C" >&6
23364 else
23365   ac_check_lib_save_LIBS=$LIBS
23366 LIBS="-lsvld  $LIBS"
23367 cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h.  */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h.  */
23373
23374 /* Override any gcc2 internal prototype to avoid an error.  */
23375 #ifdef __cplusplus
23376 extern "C"
23377 #endif
23378 /* We use char because int might match the return type of a gcc2
23379    builtin and then its argument prototype would still apply.  */
23380 char dlopen ();
23381 int
23382 main ()
23383 {
23384 dlopen ();
23385   ;
23386   return 0;
23387 }
23388 _ACEOF
23389 rm -f conftest.$ac_objext conftest$ac_exeext
23390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23391   (eval $ac_link) 2>conftest.er1
23392   ac_status=$?
23393   grep -v '^ *+' conftest.er1 >conftest.err
23394   rm -f conftest.er1
23395   cat conftest.err >&5
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); } &&
23398          { ac_try='test -z "$ac_c_werror_flag"
23399                          || test ! -s conftest.err'
23400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401   (eval $ac_try) 2>&5
23402   ac_status=$?
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); }; } &&
23405          { ac_try='test -s conftest$ac_exeext'
23406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407   (eval $ac_try) 2>&5
23408   ac_status=$?
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); }; }; then
23411   ac_cv_lib_svld_dlopen=yes
23412 else
23413   echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23415
23416 ac_cv_lib_svld_dlopen=no
23417 fi
23418 rm -f conftest.err conftest.$ac_objext \
23419       conftest$ac_exeext conftest.$ac_ext
23420 LIBS=$ac_check_lib_save_LIBS
23421 fi
23422 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23423 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23424 if test $ac_cv_lib_svld_dlopen = yes; then
23425   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23426 else
23427   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23428 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23429 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23430   echo $ECHO_N "(cached) $ECHO_C" >&6
23431 else
23432   ac_check_lib_save_LIBS=$LIBS
23433 LIBS="-ldld  $LIBS"
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h.  */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h.  */
23440
23441 /* Override any gcc2 internal prototype to avoid an error.  */
23442 #ifdef __cplusplus
23443 extern "C"
23444 #endif
23445 /* We use char because int might match the return type of a gcc2
23446    builtin and then its argument prototype would still apply.  */
23447 char dld_link ();
23448 int
23449 main ()
23450 {
23451 dld_link ();
23452   ;
23453   return 0;
23454 }
23455 _ACEOF
23456 rm -f conftest.$ac_objext conftest$ac_exeext
23457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23458   (eval $ac_link) 2>conftest.er1
23459   ac_status=$?
23460   grep -v '^ *+' conftest.er1 >conftest.err
23461   rm -f conftest.er1
23462   cat conftest.err >&5
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); } &&
23465          { ac_try='test -z "$ac_c_werror_flag"
23466                          || test ! -s conftest.err'
23467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468   (eval $ac_try) 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; } &&
23472          { ac_try='test -s conftest$ac_exeext'
23473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474   (eval $ac_try) 2>&5
23475   ac_status=$?
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); }; }; then
23478   ac_cv_lib_dld_dld_link=yes
23479 else
23480   echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23482
23483 ac_cv_lib_dld_dld_link=no
23484 fi
23485 rm -f conftest.err conftest.$ac_objext \
23486       conftest$ac_exeext conftest.$ac_ext
23487 LIBS=$ac_check_lib_save_LIBS
23488 fi
23489 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23490 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23491 if test $ac_cv_lib_dld_dld_link = yes; then
23492   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23493 fi
23494
23495
23496 fi
23497
23498
23499 fi
23500
23501
23502 fi
23503
23504
23505 fi
23506
23507
23508 fi
23509
23510     ;;
23511   esac
23512
23513   if test "x$lt_cv_dlopen" != xno; then
23514     enable_dlopen=yes
23515   else
23516     enable_dlopen=no
23517   fi
23518
23519   case $lt_cv_dlopen in
23520   dlopen)
23521     save_CPPFLAGS="$CPPFLAGS"
23522     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23523
23524     save_LDFLAGS="$LDFLAGS"
23525     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23526
23527     save_LIBS="$LIBS"
23528     LIBS="$lt_cv_dlopen_libs $LIBS"
23529
23530     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23531 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23532 if test "${lt_cv_dlopen_self+set}" = set; then
23533   echo $ECHO_N "(cached) $ECHO_C" >&6
23534 else
23535           if test "$cross_compiling" = yes; then :
23536   lt_cv_dlopen_self=cross
23537 else
23538   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23539   lt_status=$lt_dlunknown
23540   cat > conftest.$ac_ext <<EOF
23541 #line 23541 "configure"
23542 #include "confdefs.h"
23543
23544 #if HAVE_DLFCN_H
23545 #include <dlfcn.h>
23546 #endif
23547
23548 #include <stdio.h>
23549
23550 #ifdef RTLD_GLOBAL
23551 #  define LT_DLGLOBAL           RTLD_GLOBAL
23552 #else
23553 #  ifdef DL_GLOBAL
23554 #    define LT_DLGLOBAL         DL_GLOBAL
23555 #  else
23556 #    define LT_DLGLOBAL         0
23557 #  endif
23558 #endif
23559
23560 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23561    find out it does not work in some platform. */
23562 #ifndef LT_DLLAZY_OR_NOW
23563 #  ifdef RTLD_LAZY
23564 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23565 #  else
23566 #    ifdef DL_LAZY
23567 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23568 #    else
23569 #      ifdef RTLD_NOW
23570 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23571 #      else
23572 #        ifdef DL_NOW
23573 #          define LT_DLLAZY_OR_NOW      DL_NOW
23574 #        else
23575 #          define LT_DLLAZY_OR_NOW      0
23576 #        endif
23577 #      endif
23578 #    endif
23579 #  endif
23580 #endif
23581
23582 #ifdef __cplusplus
23583 extern "C" void exit (int);
23584 #endif
23585
23586 void fnord() { int i=42;}
23587 int main ()
23588 {
23589   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23590   int status = $lt_dlunknown;
23591
23592   if (self)
23593     {
23594       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23595       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23596       /* dlclose (self); */
23597     }
23598
23599     exit (status);
23600 }
23601 EOF
23602   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23603   (eval $ac_link) 2>&5
23604   ac_status=$?
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23607     (./conftest; exit; ) 2>/dev/null
23608     lt_status=$?
23609     case x$lt_status in
23610       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23611       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23612       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23613     esac
23614   else :
23615     # compilation failed
23616     lt_cv_dlopen_self=no
23617   fi
23618 fi
23619 rm -fr conftest*
23620
23621
23622 fi
23623 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23624 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23625
23626     if test "x$lt_cv_dlopen_self" = xyes; then
23627       LDFLAGS="$LDFLAGS $link_static_flag"
23628       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23629 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23630 if test "${lt_cv_dlopen_self_static+set}" = set; then
23631   echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633           if test "$cross_compiling" = yes; then :
23634   lt_cv_dlopen_self_static=cross
23635 else
23636   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23637   lt_status=$lt_dlunknown
23638   cat > conftest.$ac_ext <<EOF
23639 #line 23639 "configure"
23640 #include "confdefs.h"
23641
23642 #if HAVE_DLFCN_H
23643 #include <dlfcn.h>
23644 #endif
23645
23646 #include <stdio.h>
23647
23648 #ifdef RTLD_GLOBAL
23649 #  define LT_DLGLOBAL           RTLD_GLOBAL
23650 #else
23651 #  ifdef DL_GLOBAL
23652 #    define LT_DLGLOBAL         DL_GLOBAL
23653 #  else
23654 #    define LT_DLGLOBAL         0
23655 #  endif
23656 #endif
23657
23658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23659    find out it does not work in some platform. */
23660 #ifndef LT_DLLAZY_OR_NOW
23661 #  ifdef RTLD_LAZY
23662 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23663 #  else
23664 #    ifdef DL_LAZY
23665 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23666 #    else
23667 #      ifdef RTLD_NOW
23668 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23669 #      else
23670 #        ifdef DL_NOW
23671 #          define LT_DLLAZY_OR_NOW      DL_NOW
23672 #        else
23673 #          define LT_DLLAZY_OR_NOW      0
23674 #        endif
23675 #      endif
23676 #    endif
23677 #  endif
23678 #endif
23679
23680 #ifdef __cplusplus
23681 extern "C" void exit (int);
23682 #endif
23683
23684 void fnord() { int i=42;}
23685 int main ()
23686 {
23687   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23688   int status = $lt_dlunknown;
23689
23690   if (self)
23691     {
23692       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23693       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23694       /* dlclose (self); */
23695     }
23696
23697     exit (status);
23698 }
23699 EOF
23700   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23701   (eval $ac_link) 2>&5
23702   ac_status=$?
23703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23705     (./conftest; exit; ) 2>/dev/null
23706     lt_status=$?
23707     case x$lt_status in
23708       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23709       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23710       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23711     esac
23712   else :
23713     # compilation failed
23714     lt_cv_dlopen_self_static=no
23715   fi
23716 fi
23717 rm -fr conftest*
23718
23719
23720 fi
23721 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23722 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23723     fi
23724
23725     CPPFLAGS="$save_CPPFLAGS"
23726     LDFLAGS="$save_LDFLAGS"
23727     LIBS="$save_LIBS"
23728     ;;
23729   esac
23730
23731   case $lt_cv_dlopen_self in
23732   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23733   *) enable_dlopen_self=unknown ;;
23734   esac
23735
23736   case $lt_cv_dlopen_self_static in
23737   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23738   *) enable_dlopen_self_static=unknown ;;
23739   esac
23740 fi
23741
23742
23743 # The else clause should only fire when bootstrapping the
23744 # libtool distribution, otherwise you forgot to ship ltmain.sh
23745 # with your package, and you will get complaints that there are
23746 # no rules to generate ltmain.sh.
23747 if test -f "$ltmain"; then
23748   # See if we are running on zsh, and set the options which allow our commands through
23749   # without removal of \ escapes.
23750   if test -n "${ZSH_VERSION+set}" ; then
23751     setopt NO_GLOB_SUBST
23752   fi
23753   # Now quote all the things that may contain metacharacters while being
23754   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23755   # variables and quote the copies for generation of the libtool script.
23756   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23757     SED SHELL STRIP \
23758     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23759     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23760     deplibs_check_method reload_flag reload_cmds need_locks \
23761     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23762     lt_cv_sys_global_symbol_to_c_name_address \
23763     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23764     old_postinstall_cmds old_postuninstall_cmds \
23765     compiler_GCJ \
23766     CC_GCJ \
23767     LD_GCJ \
23768     lt_prog_compiler_wl_GCJ \
23769     lt_prog_compiler_pic_GCJ \
23770     lt_prog_compiler_static_GCJ \
23771     lt_prog_compiler_no_builtin_flag_GCJ \
23772     export_dynamic_flag_spec_GCJ \
23773     thread_safe_flag_spec_GCJ \
23774     whole_archive_flag_spec_GCJ \
23775     enable_shared_with_static_runtimes_GCJ \
23776     old_archive_cmds_GCJ \
23777     old_archive_from_new_cmds_GCJ \
23778     predep_objects_GCJ \
23779     postdep_objects_GCJ \
23780     predeps_GCJ \
23781     postdeps_GCJ \
23782     compiler_lib_search_path_GCJ \
23783     archive_cmds_GCJ \
23784     archive_expsym_cmds_GCJ \
23785     postinstall_cmds_GCJ \
23786     postuninstall_cmds_GCJ \
23787     old_archive_from_expsyms_cmds_GCJ \
23788     allow_undefined_flag_GCJ \
23789     no_undefined_flag_GCJ \
23790     export_symbols_cmds_GCJ \
23791     hardcode_libdir_flag_spec_GCJ \
23792     hardcode_libdir_flag_spec_ld_GCJ \
23793     hardcode_libdir_separator_GCJ \
23794     hardcode_automatic_GCJ \
23795     module_cmds_GCJ \
23796     module_expsym_cmds_GCJ \
23797     lt_cv_prog_compiler_c_o_GCJ \
23798     exclude_expsyms_GCJ \
23799     include_expsyms_GCJ; do
23800
23801     case $var in
23802     old_archive_cmds_GCJ | \
23803     old_archive_from_new_cmds_GCJ | \
23804     archive_cmds_GCJ | \
23805     archive_expsym_cmds_GCJ | \
23806     module_cmds_GCJ | \
23807     module_expsym_cmds_GCJ | \
23808     old_archive_from_expsyms_cmds_GCJ | \
23809     export_symbols_cmds_GCJ | \
23810     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23811     postinstall_cmds | postuninstall_cmds | \
23812     old_postinstall_cmds | old_postuninstall_cmds | \
23813     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23814       # Double-quote double-evaled strings.
23815       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23816       ;;
23817     *)
23818       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23819       ;;
23820     esac
23821   done
23822
23823   case $lt_echo in
23824   *'\$0 --fallback-echo"')
23825     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23826     ;;
23827   esac
23828
23829 cfgfile="$ofile"
23830
23831   cat <<__EOF__ >> "$cfgfile"
23832 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23833
23834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23835
23836 # Shell to use when invoking shell scripts.
23837 SHELL=$lt_SHELL
23838
23839 # Whether or not to build shared libraries.
23840 build_libtool_libs=$enable_shared
23841
23842 # Whether or not to build static libraries.
23843 build_old_libs=$enable_static
23844
23845 # Whether or not to add -lc for building shared libraries.
23846 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23847
23848 # Whether or not to disallow shared libs when runtime libs are static
23849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23850
23851 # Whether or not to optimize for fast installation.
23852 fast_install=$enable_fast_install
23853
23854 # The host system.
23855 host_alias=$host_alias
23856 host=$host
23857
23858 # An echo program that does not interpret backslashes.
23859 echo=$lt_echo
23860
23861 # The archiver.
23862 AR=$lt_AR
23863 AR_FLAGS=$lt_AR_FLAGS
23864
23865 # A C compiler.
23866 LTCC=$lt_LTCC
23867
23868 # A language-specific compiler.
23869 CC=$lt_compiler_GCJ
23870
23871 # Is the compiler the GNU C compiler?
23872 with_gcc=$GCC_GCJ
23873
23874 # An ERE matcher.
23875 EGREP=$lt_EGREP
23876
23877 # The linker used to build libraries.
23878 LD=$lt_LD_GCJ
23879
23880 # Whether we need hard or soft links.
23881 LN_S=$lt_LN_S
23882
23883 # A BSD-compatible nm program.
23884 NM=$lt_NM
23885
23886 # A symbol stripping program
23887 STRIP=$lt_STRIP
23888
23889 # Used to examine libraries when file_magic_cmd begins "file"
23890 MAGIC_CMD=$MAGIC_CMD
23891
23892 # Used on cygwin: DLL creation program.
23893 DLLTOOL="$DLLTOOL"
23894
23895 # Used on cygwin: object dumper.
23896 OBJDUMP="$OBJDUMP"
23897
23898 # Used on cygwin: assembler.
23899 AS="$AS"
23900
23901 # The name of the directory that contains temporary libtool files.
23902 objdir=$objdir
23903
23904 # How to create reloadable object files.
23905 reload_flag=$lt_reload_flag
23906 reload_cmds=$lt_reload_cmds
23907
23908 # How to pass a linker flag through the compiler.
23909 wl=$lt_lt_prog_compiler_wl_GCJ
23910
23911 # Object file suffix (normally "o").
23912 objext="$ac_objext"
23913
23914 # Old archive suffix (normally "a").
23915 libext="$libext"
23916
23917 # Shared library suffix (normally ".so").
23918 shrext_cmds='$shrext_cmds'
23919
23920 # Executable file suffix (normally "").
23921 exeext="$exeext"
23922
23923 # Additional compiler flags for building library objects.
23924 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23925 pic_mode=$pic_mode
23926
23927 # What is the maximum length of a command?
23928 max_cmd_len=$lt_cv_sys_max_cmd_len
23929
23930 # Does compiler simultaneously support -c and -o options?
23931 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23932
23933 # Must we lock files when doing compilation ?
23934 need_locks=$lt_need_locks
23935
23936 # Do we need the lib prefix for modules?
23937 need_lib_prefix=$need_lib_prefix
23938
23939 # Do we need a version for libraries?
23940 need_version=$need_version
23941
23942 # Whether dlopen is supported.
23943 dlopen_support=$enable_dlopen
23944
23945 # Whether dlopen of programs is supported.
23946 dlopen_self=$enable_dlopen_self
23947
23948 # Whether dlopen of statically linked programs is supported.
23949 dlopen_self_static=$enable_dlopen_self_static
23950
23951 # Compiler flag to prevent dynamic linking.
23952 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23953
23954 # Compiler flag to turn off builtin functions.
23955 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23956
23957 # Compiler flag to allow reflexive dlopens.
23958 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23959
23960 # Compiler flag to generate shared objects directly from archives.
23961 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23962
23963 # Compiler flag to generate thread-safe objects.
23964 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23965
23966 # Library versioning type.
23967 version_type=$version_type
23968
23969 # Format of library name prefix.
23970 libname_spec=$lt_libname_spec
23971
23972 # List of archive names.  First name is the real one, the rest are links.
23973 # The last name is the one that the linker finds with -lNAME.
23974 library_names_spec=$lt_library_names_spec
23975
23976 # The coded name of the library, if different from the real name.
23977 soname_spec=$lt_soname_spec
23978
23979 # Commands used to build and install an old-style archive.
23980 RANLIB=$lt_RANLIB
23981 old_archive_cmds=$lt_old_archive_cmds_GCJ
23982 old_postinstall_cmds=$lt_old_postinstall_cmds
23983 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23984
23985 # Create an old-style archive from a shared archive.
23986 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23987
23988 # Create a temporary old-style archive to link instead of a shared archive.
23989 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23990
23991 # Commands used to build and install a shared archive.
23992 archive_cmds=$lt_archive_cmds_GCJ
23993 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23994 postinstall_cmds=$lt_postinstall_cmds
23995 postuninstall_cmds=$lt_postuninstall_cmds
23996
23997 # Commands used to build a loadable module (assumed same as above if empty)
23998 module_cmds=$lt_module_cmds_GCJ
23999 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24000
24001 # Commands to strip libraries.
24002 old_striplib=$lt_old_striplib
24003 striplib=$lt_striplib
24004
24005 # Dependencies to place before the objects being linked to create a
24006 # shared library.
24007 predep_objects=$lt_predep_objects_GCJ
24008
24009 # Dependencies to place after the objects being linked to create a
24010 # shared library.
24011 postdep_objects=$lt_postdep_objects_GCJ
24012
24013 # Dependencies to place before the objects being linked to create a
24014 # shared library.
24015 predeps=$lt_predeps_GCJ
24016
24017 # Dependencies to place after the objects being linked to create a
24018 # shared library.
24019 postdeps=$lt_postdeps_GCJ
24020
24021 # The library search path used internally by the compiler when linking
24022 # a shared library.
24023 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24024
24025 # Method to check whether dependent libraries are shared objects.
24026 deplibs_check_method=$lt_deplibs_check_method
24027
24028 # Command to use when deplibs_check_method == file_magic.
24029 file_magic_cmd=$lt_file_magic_cmd
24030
24031 # Flag that allows shared libraries with undefined symbols to be built.
24032 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24033
24034 # Flag that forces no undefined symbols.
24035 no_undefined_flag=$lt_no_undefined_flag_GCJ
24036
24037 # Commands used to finish a libtool library installation in a directory.
24038 finish_cmds=$lt_finish_cmds
24039
24040 # Same as above, but a single script fragment to be evaled but not shown.
24041 finish_eval=$lt_finish_eval
24042
24043 # Take the output of nm and produce a listing of raw symbols and C names.
24044 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24045
24046 # Transform the output of nm in a proper C declaration
24047 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24048
24049 # Transform the output of nm in a C name address pair
24050 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24051
24052 # This is the shared library runtime path variable.
24053 runpath_var=$runpath_var
24054
24055 # This is the shared library path variable.
24056 shlibpath_var=$shlibpath_var
24057
24058 # Is shlibpath searched before the hard-coded library search path?
24059 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24060
24061 # How to hardcode a shared library path into an executable.
24062 hardcode_action=$hardcode_action_GCJ
24063
24064 # Whether we should hardcode library paths into libraries.
24065 hardcode_into_libs=$hardcode_into_libs
24066
24067 # Flag to hardcode \$libdir into a binary during linking.
24068 # This must work even if \$libdir does not exist.
24069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24070
24071 # If ld is used when linking, flag to hardcode \$libdir into
24072 # a binary during linking. This must work even if \$libdir does
24073 # not exist.
24074 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24075
24076 # Whether we need a single -rpath flag with a separated argument.
24077 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24078
24079 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24080 # resulting binary.
24081 hardcode_direct=$hardcode_direct_GCJ
24082
24083 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24084 # resulting binary.
24085 hardcode_minus_L=$hardcode_minus_L_GCJ
24086
24087 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24088 # the resulting binary.
24089 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24090
24091 # Set to yes if building a shared library automatically hardcodes DIR into the library
24092 # and all subsequent libraries and executables linked against it.
24093 hardcode_automatic=$hardcode_automatic_GCJ
24094
24095 # Variables whose values should be saved in libtool wrapper scripts and
24096 # restored at relink time.
24097 variables_saved_for_relink="$variables_saved_for_relink"
24098
24099 # Whether libtool must link a program against all its dependency libraries.
24100 link_all_deplibs=$link_all_deplibs_GCJ
24101
24102 # Compile-time system search path for libraries
24103 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24104
24105 # Run-time system search path for libraries
24106 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24107
24108 # Fix the shell variable \$srcfile for the compiler.
24109 fix_srcfile_path="$fix_srcfile_path_GCJ"
24110
24111 # Set to yes if exported symbols are required.
24112 always_export_symbols=$always_export_symbols_GCJ
24113
24114 # The commands to list exported symbols.
24115 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24116
24117 # The commands to extract the exported symbol list from a shared archive.
24118 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24119
24120 # Symbols that should not be listed in the preloaded symbols.
24121 exclude_expsyms=$lt_exclude_expsyms_GCJ
24122
24123 # Symbols that must always be exported.
24124 include_expsyms=$lt_include_expsyms_GCJ
24125
24126 # ### END LIBTOOL TAG CONFIG: $tagname
24127
24128 __EOF__
24129
24130
24131 else
24132   # If there is no Makefile yet, we rely on a make rule to execute
24133   # `config.status --recheck' to rerun these tests and create the
24134   # libtool script then.
24135   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24136   if test -f "$ltmain_in"; then
24137     test -f Makefile && make "$ltmain"
24138   fi
24139 fi
24140
24141
24142 ac_ext=c
24143 ac_cpp='$CPP $CPPFLAGS'
24144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24147
24148 CC="$lt_save_CC"
24149
24150         else
24151           tagname=""
24152         fi
24153         ;;
24154
24155       RC)
24156         ac_ext=c
24157 ac_cpp='$CPP $CPPFLAGS'
24158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24161
24162
24163 # Source file extension for RC test sources.
24164 ac_ext=rc
24165
24166 # Object file extension for compiled RC test sources.
24167 objext=o
24168 objext_RC=$objext
24169
24170 # Code to be used in simple compile tests
24171 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24172
24173 # Code to be used in simple link tests
24174 lt_simple_link_test_code="$lt_simple_compile_test_code"
24175
24176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24177
24178 # If no C compiler was specified, use CC.
24179 LTCC=${LTCC-"$CC"}
24180
24181 # Allow CC to be a program name with arguments.
24182 compiler=$CC
24183
24184
24185 # Allow CC to be a program name with arguments.
24186 lt_save_CC="$CC"
24187 CC=${RC-"windres"}
24188 compiler=$CC
24189 compiler_RC=$CC
24190 lt_cv_prog_compiler_c_o_RC=yes
24191
24192 # The else clause should only fire when bootstrapping the
24193 # libtool distribution, otherwise you forgot to ship ltmain.sh
24194 # with your package, and you will get complaints that there are
24195 # no rules to generate ltmain.sh.
24196 if test -f "$ltmain"; then
24197   # See if we are running on zsh, and set the options which allow our commands through
24198   # without removal of \ escapes.
24199   if test -n "${ZSH_VERSION+set}" ; then
24200     setopt NO_GLOB_SUBST
24201   fi
24202   # Now quote all the things that may contain metacharacters while being
24203   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24204   # variables and quote the copies for generation of the libtool script.
24205   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24206     SED SHELL STRIP \
24207     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24208     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24209     deplibs_check_method reload_flag reload_cmds need_locks \
24210     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24211     lt_cv_sys_global_symbol_to_c_name_address \
24212     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24213     old_postinstall_cmds old_postuninstall_cmds \
24214     compiler_RC \
24215     CC_RC \
24216     LD_RC \
24217     lt_prog_compiler_wl_RC \
24218     lt_prog_compiler_pic_RC \
24219     lt_prog_compiler_static_RC \
24220     lt_prog_compiler_no_builtin_flag_RC \
24221     export_dynamic_flag_spec_RC \
24222     thread_safe_flag_spec_RC \
24223     whole_archive_flag_spec_RC \
24224     enable_shared_with_static_runtimes_RC \
24225     old_archive_cmds_RC \
24226     old_archive_from_new_cmds_RC \
24227     predep_objects_RC \
24228     postdep_objects_RC \
24229     predeps_RC \
24230     postdeps_RC \
24231     compiler_lib_search_path_RC \
24232     archive_cmds_RC \
24233     archive_expsym_cmds_RC \
24234     postinstall_cmds_RC \
24235     postuninstall_cmds_RC \
24236     old_archive_from_expsyms_cmds_RC \
24237     allow_undefined_flag_RC \
24238     no_undefined_flag_RC \
24239     export_symbols_cmds_RC \
24240     hardcode_libdir_flag_spec_RC \
24241     hardcode_libdir_flag_spec_ld_RC \
24242     hardcode_libdir_separator_RC \
24243     hardcode_automatic_RC \
24244     module_cmds_RC \
24245     module_expsym_cmds_RC \
24246     lt_cv_prog_compiler_c_o_RC \
24247     exclude_expsyms_RC \
24248     include_expsyms_RC; do
24249
24250     case $var in
24251     old_archive_cmds_RC | \
24252     old_archive_from_new_cmds_RC | \
24253     archive_cmds_RC | \
24254     archive_expsym_cmds_RC | \
24255     module_cmds_RC | \
24256     module_expsym_cmds_RC | \
24257     old_archive_from_expsyms_cmds_RC | \
24258     export_symbols_cmds_RC | \
24259     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24260     postinstall_cmds | postuninstall_cmds | \
24261     old_postinstall_cmds | old_postuninstall_cmds | \
24262     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24263       # Double-quote double-evaled strings.
24264       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24265       ;;
24266     *)
24267       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24268       ;;
24269     esac
24270   done
24271
24272   case $lt_echo in
24273   *'\$0 --fallback-echo"')
24274     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24275     ;;
24276   esac
24277
24278 cfgfile="$ofile"
24279
24280   cat <<__EOF__ >> "$cfgfile"
24281 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24282
24283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24284
24285 # Shell to use when invoking shell scripts.
24286 SHELL=$lt_SHELL
24287
24288 # Whether or not to build shared libraries.
24289 build_libtool_libs=$enable_shared
24290
24291 # Whether or not to build static libraries.
24292 build_old_libs=$enable_static
24293
24294 # Whether or not to add -lc for building shared libraries.
24295 build_libtool_need_lc=$archive_cmds_need_lc_RC
24296
24297 # Whether or not to disallow shared libs when runtime libs are static
24298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24299
24300 # Whether or not to optimize for fast installation.
24301 fast_install=$enable_fast_install
24302
24303 # The host system.
24304 host_alias=$host_alias
24305 host=$host
24306
24307 # An echo program that does not interpret backslashes.
24308 echo=$lt_echo
24309
24310 # The archiver.
24311 AR=$lt_AR
24312 AR_FLAGS=$lt_AR_FLAGS
24313
24314 # A C compiler.
24315 LTCC=$lt_LTCC
24316
24317 # A language-specific compiler.
24318 CC=$lt_compiler_RC
24319
24320 # Is the compiler the GNU C compiler?
24321 with_gcc=$GCC_RC
24322
24323 # An ERE matcher.
24324 EGREP=$lt_EGREP
24325
24326 # The linker used to build libraries.
24327 LD=$lt_LD_RC
24328
24329 # Whether we need hard or soft links.
24330 LN_S=$lt_LN_S
24331
24332 # A BSD-compatible nm program.
24333 NM=$lt_NM
24334
24335 # A symbol stripping program
24336 STRIP=$lt_STRIP
24337
24338 # Used to examine libraries when file_magic_cmd begins "file"
24339 MAGIC_CMD=$MAGIC_CMD
24340
24341 # Used on cygwin: DLL creation program.
24342 DLLTOOL="$DLLTOOL"
24343
24344 # Used on cygwin: object dumper.
24345 OBJDUMP="$OBJDUMP"
24346
24347 # Used on cygwin: assembler.
24348 AS="$AS"
24349
24350 # The name of the directory that contains temporary libtool files.
24351 objdir=$objdir
24352
24353 # How to create reloadable object files.
24354 reload_flag=$lt_reload_flag
24355 reload_cmds=$lt_reload_cmds
24356
24357 # How to pass a linker flag through the compiler.
24358 wl=$lt_lt_prog_compiler_wl_RC
24359
24360 # Object file suffix (normally "o").
24361 objext="$ac_objext"
24362
24363 # Old archive suffix (normally "a").
24364 libext="$libext"
24365
24366 # Shared library suffix (normally ".so").
24367 shrext_cmds='$shrext_cmds'
24368
24369 # Executable file suffix (normally "").
24370 exeext="$exeext"
24371
24372 # Additional compiler flags for building library objects.
24373 pic_flag=$lt_lt_prog_compiler_pic_RC
24374 pic_mode=$pic_mode
24375
24376 # What is the maximum length of a command?
24377 max_cmd_len=$lt_cv_sys_max_cmd_len
24378
24379 # Does compiler simultaneously support -c and -o options?
24380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24381
24382 # Must we lock files when doing compilation ?
24383 need_locks=$lt_need_locks
24384
24385 # Do we need the lib prefix for modules?
24386 need_lib_prefix=$need_lib_prefix
24387
24388 # Do we need a version for libraries?
24389 need_version=$need_version
24390
24391 # Whether dlopen is supported.
24392 dlopen_support=$enable_dlopen
24393
24394 # Whether dlopen of programs is supported.
24395 dlopen_self=$enable_dlopen_self
24396
24397 # Whether dlopen of statically linked programs is supported.
24398 dlopen_self_static=$enable_dlopen_self_static
24399
24400 # Compiler flag to prevent dynamic linking.
24401 link_static_flag=$lt_lt_prog_compiler_static_RC
24402
24403 # Compiler flag to turn off builtin functions.
24404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24405
24406 # Compiler flag to allow reflexive dlopens.
24407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24408
24409 # Compiler flag to generate shared objects directly from archives.
24410 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24411
24412 # Compiler flag to generate thread-safe objects.
24413 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24414
24415 # Library versioning type.
24416 version_type=$version_type
24417
24418 # Format of library name prefix.
24419 libname_spec=$lt_libname_spec
24420
24421 # List of archive names.  First name is the real one, the rest are links.
24422 # The last name is the one that the linker finds with -lNAME.
24423 library_names_spec=$lt_library_names_spec
24424
24425 # The coded name of the library, if different from the real name.
24426 soname_spec=$lt_soname_spec
24427
24428 # Commands used to build and install an old-style archive.
24429 RANLIB=$lt_RANLIB
24430 old_archive_cmds=$lt_old_archive_cmds_RC
24431 old_postinstall_cmds=$lt_old_postinstall_cmds
24432 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24433
24434 # Create an old-style archive from a shared archive.
24435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24436
24437 # Create a temporary old-style archive to link instead of a shared archive.
24438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24439
24440 # Commands used to build and install a shared archive.
24441 archive_cmds=$lt_archive_cmds_RC
24442 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24443 postinstall_cmds=$lt_postinstall_cmds
24444 postuninstall_cmds=$lt_postuninstall_cmds
24445
24446 # Commands used to build a loadable module (assumed same as above if empty)
24447 module_cmds=$lt_module_cmds_RC
24448 module_expsym_cmds=$lt_module_expsym_cmds_RC
24449
24450 # Commands to strip libraries.
24451 old_striplib=$lt_old_striplib
24452 striplib=$lt_striplib
24453
24454 # Dependencies to place before the objects being linked to create a
24455 # shared library.
24456 predep_objects=$lt_predep_objects_RC
24457
24458 # Dependencies to place after the objects being linked to create a
24459 # shared library.
24460 postdep_objects=$lt_postdep_objects_RC
24461
24462 # Dependencies to place before the objects being linked to create a
24463 # shared library.
24464 predeps=$lt_predeps_RC
24465
24466 # Dependencies to place after the objects being linked to create a
24467 # shared library.
24468 postdeps=$lt_postdeps_RC
24469
24470 # The library search path used internally by the compiler when linking
24471 # a shared library.
24472 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24473
24474 # Method to check whether dependent libraries are shared objects.
24475 deplibs_check_method=$lt_deplibs_check_method
24476
24477 # Command to use when deplibs_check_method == file_magic.
24478 file_magic_cmd=$lt_file_magic_cmd
24479
24480 # Flag that allows shared libraries with undefined symbols to be built.
24481 allow_undefined_flag=$lt_allow_undefined_flag_RC
24482
24483 # Flag that forces no undefined symbols.
24484 no_undefined_flag=$lt_no_undefined_flag_RC
24485
24486 # Commands used to finish a libtool library installation in a directory.
24487 finish_cmds=$lt_finish_cmds
24488
24489 # Same as above, but a single script fragment to be evaled but not shown.
24490 finish_eval=$lt_finish_eval
24491
24492 # Take the output of nm and produce a listing of raw symbols and C names.
24493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24494
24495 # Transform the output of nm in a proper C declaration
24496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24497
24498 # Transform the output of nm in a C name address pair
24499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24500
24501 # This is the shared library runtime path variable.
24502 runpath_var=$runpath_var
24503
24504 # This is the shared library path variable.
24505 shlibpath_var=$shlibpath_var
24506
24507 # Is shlibpath searched before the hard-coded library search path?
24508 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24509
24510 # How to hardcode a shared library path into an executable.
24511 hardcode_action=$hardcode_action_RC
24512
24513 # Whether we should hardcode library paths into libraries.
24514 hardcode_into_libs=$hardcode_into_libs
24515
24516 # Flag to hardcode \$libdir into a binary during linking.
24517 # This must work even if \$libdir does not exist.
24518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24519
24520 # If ld is used when linking, flag to hardcode \$libdir into
24521 # a binary during linking. This must work even if \$libdir does
24522 # not exist.
24523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24524
24525 # Whether we need a single -rpath flag with a separated argument.
24526 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24527
24528 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24529 # resulting binary.
24530 hardcode_direct=$hardcode_direct_RC
24531
24532 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24533 # resulting binary.
24534 hardcode_minus_L=$hardcode_minus_L_RC
24535
24536 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24537 # the resulting binary.
24538 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24539
24540 # Set to yes if building a shared library automatically hardcodes DIR into the library
24541 # and all subsequent libraries and executables linked against it.
24542 hardcode_automatic=$hardcode_automatic_RC
24543
24544 # Variables whose values should be saved in libtool wrapper scripts and
24545 # restored at relink time.
24546 variables_saved_for_relink="$variables_saved_for_relink"
24547
24548 # Whether libtool must link a program against all its dependency libraries.
24549 link_all_deplibs=$link_all_deplibs_RC
24550
24551 # Compile-time system search path for libraries
24552 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24553
24554 # Run-time system search path for libraries
24555 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24556
24557 # Fix the shell variable \$srcfile for the compiler.
24558 fix_srcfile_path="$fix_srcfile_path_RC"
24559
24560 # Set to yes if exported symbols are required.
24561 always_export_symbols=$always_export_symbols_RC
24562
24563 # The commands to list exported symbols.
24564 export_symbols_cmds=$lt_export_symbols_cmds_RC
24565
24566 # The commands to extract the exported symbol list from a shared archive.
24567 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24568
24569 # Symbols that should not be listed in the preloaded symbols.
24570 exclude_expsyms=$lt_exclude_expsyms_RC
24571
24572 # Symbols that must always be exported.
24573 include_expsyms=$lt_include_expsyms_RC
24574
24575 # ### END LIBTOOL TAG CONFIG: $tagname
24576
24577 __EOF__
24578
24579
24580 else
24581   # If there is no Makefile yet, we rely on a make rule to execute
24582   # `config.status --recheck' to rerun these tests and create the
24583   # libtool script then.
24584   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24585   if test -f "$ltmain_in"; then
24586     test -f Makefile && make "$ltmain"
24587   fi
24588 fi
24589
24590
24591 ac_ext=c
24592 ac_cpp='$CPP $CPPFLAGS'
24593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24596
24597 CC="$lt_save_CC"
24598
24599         ;;
24600
24601       *)
24602         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24603 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24604    { (exit 1); exit 1; }; }
24605         ;;
24606       esac
24607
24608       # Append the new tag name to the list of available tags.
24609       if test -n "$tagname" ; then
24610       available_tags="$available_tags $tagname"
24611     fi
24612     fi
24613   done
24614   IFS="$lt_save_ifs"
24615
24616   # Now substitute the updated list of available tags.
24617   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24618     mv "${ofile}T" "$ofile"
24619     chmod +x "$ofile"
24620   else
24621     rm -f "${ofile}T"
24622     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24623 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24624    { (exit 1); exit 1; }; }
24625   fi
24626 fi
24627
24628
24629
24630 # This can be used to rebuild libtool when needed
24631 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24632
24633 # Always use our own libtool.
24634 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24635
24636 # Prevent multiple expansion
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658 if test "$lt_cv_dlopen_self" = "yes" ; then
24659
24660 cat >>confdefs.h <<\_ACEOF
24661 #define CAN_DLOPEN_SELF 1
24662 _ACEOF
24663
24664 fi
24665
24666 etags_version=`$ETAGS --version 2>&1`
24667 case "$etags_version" in
24668         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24669         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24670         *) ETAGSFLAGS="" ;;
24671 esac
24672 ETAGSFLAGS=$ETAGSFLAGS
24673
24674
24675 if test "$WITH_LLVMGCCDIR" = "default" ; then
24676   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24677 set dummy llvm-gcc; ac_word=$2
24678 echo "$as_me:$LINENO: checking for $ac_word" >&5
24679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24680 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24681   echo $ECHO_N "(cached) $ECHO_C" >&6
24682 else
24683   case $LLVMGCC in
24684   [\\/]* | ?:[\\/]*)
24685   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24686   ;;
24687   *)
24688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689 for as_dir in $PATH
24690 do
24691   IFS=$as_save_IFS
24692   test -z "$as_dir" && as_dir=.
24693   for ac_exec_ext in '' $ac_executable_extensions; do
24694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24695     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24697     break 2
24698   fi
24699 done
24700 done
24701
24702   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24703   ;;
24704 esac
24705 fi
24706 LLVMGCC=$ac_cv_path_LLVMGCC
24707
24708 if test -n "$LLVMGCC"; then
24709   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24710 echo "${ECHO_T}$LLVMGCC" >&6
24711 else
24712   echo "$as_me:$LINENO: result: no" >&5
24713 echo "${ECHO_T}no" >&6
24714 fi
24715
24716   # Extract the first word of "llvm-g++", so it can be a program name with args.
24717 set dummy llvm-g++; ac_word=$2
24718 echo "$as_me:$LINENO: checking for $ac_word" >&5
24719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24720 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24721   echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723   case $LLVMGXX in
24724   [\\/]* | ?:[\\/]*)
24725   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24726   ;;
24727   *)
24728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24729 for as_dir in $PATH
24730 do
24731   IFS=$as_save_IFS
24732   test -z "$as_dir" && as_dir=.
24733   for ac_exec_ext in '' $ac_executable_extensions; do
24734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24735     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24737     break 2
24738   fi
24739 done
24740 done
24741
24742   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24743   ;;
24744 esac
24745 fi
24746 LLVMGXX=$ac_cv_path_LLVMGXX
24747
24748 if test -n "$LLVMGXX"; then
24749   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24750 echo "${ECHO_T}$LLVMGXX" >&6
24751 else
24752   echo "$as_me:$LINENO: result: no" >&5
24753 echo "${ECHO_T}no" >&6
24754 fi
24755
24756 else
24757   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24758   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24759   LLVMGCC=$LLVMGCC
24760
24761   LLVMGXX=$LLVMGXX
24762
24763 fi
24764
24765 echo "$as_me:$LINENO: checking tool compatibility" >&5
24766 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24767
24768 ICC=no
24769 IXX=no
24770 case $CC in
24771   icc*|icpc*)
24772     ICC=yes
24773     IXX=yes
24774     ;;
24775    *)
24776     ;;
24777 esac
24778
24779 if test "$GCC" != "yes" && test "$ICC" != "yes"
24780 then
24781   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24782 echo "$as_me: error: gcc|icc required but not found" >&2;}
24783    { (exit 1); exit 1; }; }
24784 fi
24785
24786 if test "$GXX" != "yes" && test "$IXX" != "yes"
24787 then
24788   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24789 echo "$as_me: error: g++|icc required but not found" >&2;}
24790    { (exit 1); exit 1; }; }
24791 fi
24792
24793 if test "$GCC" = "yes"
24794 then
24795   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24796   if test "$gccmajor" -lt "3"
24797   then
24798     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24799 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24800    { (exit 1); exit 1; }; }
24801   fi
24802 fi
24803
24804 if test -z "$llvm_cv_gnu_make_command"
24805 then
24806   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24807 echo "$as_me: error: GNU Make required but not found" >&2;}
24808    { (exit 1); exit 1; }; }
24809 fi
24810
24811 echo "$as_me:$LINENO: result: ok" >&5
24812 echo "${ECHO_T}ok" >&6
24813
24814
24815
24816 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24817 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24818 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24819   echo $ECHO_N "(cached) $ECHO_C" >&6
24820 else
24821   ac_check_lib_save_LIBS=$LIBS
24822 LIBS="-lelf  $LIBS"
24823 cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829
24830 /* Override any gcc2 internal prototype to avoid an error.  */
24831 #ifdef __cplusplus
24832 extern "C"
24833 #endif
24834 /* We use char because int might match the return type of a gcc2
24835    builtin and then its argument prototype would still apply.  */
24836 char elf_begin ();
24837 int
24838 main ()
24839 {
24840 elf_begin ();
24841   ;
24842   return 0;
24843 }
24844 _ACEOF
24845 rm -f conftest.$ac_objext conftest$ac_exeext
24846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24847   (eval $ac_link) 2>conftest.er1
24848   ac_status=$?
24849   grep -v '^ *+' conftest.er1 >conftest.err
24850   rm -f conftest.er1
24851   cat conftest.err >&5
24852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); } &&
24854          { ac_try='test -z "$ac_c_werror_flag"
24855                          || test ! -s conftest.err'
24856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); }; } &&
24861          { ac_try='test -s conftest$ac_exeext'
24862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863   (eval $ac_try) 2>&5
24864   ac_status=$?
24865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866   (exit $ac_status); }; }; then
24867   ac_cv_lib_elf_elf_begin=yes
24868 else
24869   echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24871
24872 ac_cv_lib_elf_elf_begin=no
24873 fi
24874 rm -f conftest.err conftest.$ac_objext \
24875       conftest$ac_exeext conftest.$ac_ext
24876 LIBS=$ac_check_lib_save_LIBS
24877 fi
24878 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24879 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24880 if test $ac_cv_lib_elf_elf_begin = yes; then
24881   cat >>confdefs.h <<_ACEOF
24882 #define HAVE_LIBELF 1
24883 _ACEOF
24884
24885   LIBS="-lelf $LIBS"
24886
24887 fi
24888
24889
24890 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24891 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24892 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24893   echo $ECHO_N "(cached) $ECHO_C" >&6
24894 else
24895   ac_func_search_save_LIBS=$LIBS
24896 ac_cv_search_lt_dlopen=no
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h.  */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h.  */
24903
24904 /* Override any gcc2 internal prototype to avoid an error.  */
24905 #ifdef __cplusplus
24906 extern "C"
24907 #endif
24908 /* We use char because int might match the return type of a gcc2
24909    builtin and then its argument prototype would still apply.  */
24910 char lt_dlopen ();
24911 int
24912 main ()
24913 {
24914 lt_dlopen ();
24915   ;
24916   return 0;
24917 }
24918 _ACEOF
24919 rm -f conftest.$ac_objext conftest$ac_exeext
24920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24921   (eval $ac_link) 2>conftest.er1
24922   ac_status=$?
24923   grep -v '^ *+' conftest.er1 >conftest.err
24924   rm -f conftest.er1
24925   cat conftest.err >&5
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); } &&
24928          { ac_try='test -z "$ac_c_werror_flag"
24929                          || test ! -s conftest.err'
24930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931   (eval $ac_try) 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); }; } &&
24935          { ac_try='test -s conftest$ac_exeext'
24936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937   (eval $ac_try) 2>&5
24938   ac_status=$?
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); }; }; then
24941   ac_cv_search_lt_dlopen="none required"
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 if test "$ac_cv_search_lt_dlopen" = no; then
24950   for ac_lib in ltdl; do
24951     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24952     cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h.  */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h.  */
24958
24959 /* Override any gcc2 internal prototype to avoid an error.  */
24960 #ifdef __cplusplus
24961 extern "C"
24962 #endif
24963 /* We use char because int might match the return type of a gcc2
24964    builtin and then its argument prototype would still apply.  */
24965 char lt_dlopen ();
24966 int
24967 main ()
24968 {
24969 lt_dlopen ();
24970   ;
24971   return 0;
24972 }
24973 _ACEOF
24974 rm -f conftest.$ac_objext conftest$ac_exeext
24975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24976   (eval $ac_link) 2>conftest.er1
24977   ac_status=$?
24978   grep -v '^ *+' conftest.er1 >conftest.err
24979   rm -f conftest.er1
24980   cat conftest.err >&5
24981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); } &&
24983          { ac_try='test -z "$ac_c_werror_flag"
24984                          || test ! -s conftest.err'
24985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986   (eval $ac_try) 2>&5
24987   ac_status=$?
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); }; } &&
24990          { ac_try='test -s conftest$ac_exeext'
24991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992   (eval $ac_try) 2>&5
24993   ac_status=$?
24994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); }; }; then
24996   ac_cv_search_lt_dlopen="-l$ac_lib"
24997 break
24998 else
24999   echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25001
25002 fi
25003 rm -f conftest.err conftest.$ac_objext \
25004       conftest$ac_exeext conftest.$ac_ext
25005   done
25006 fi
25007 LIBS=$ac_func_search_save_LIBS
25008 fi
25009 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25010 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25011 if test "$ac_cv_search_lt_dlopen" != no; then
25012   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25013
25014 cat >>confdefs.h <<\_ACEOF
25015 #define HAVE_LT_DLOPEN 1
25016 _ACEOF
25017
25018 else
25019   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25020                            not be available" >&5
25021 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25022                            not be available" >&2;}
25023 fi
25024
25025
25026 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25027 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25028 if test "${ac_cv_search_dlopen+set}" = set; then
25029   echo $ECHO_N "(cached) $ECHO_C" >&6
25030 else
25031   ac_func_search_save_LIBS=$LIBS
25032 ac_cv_search_dlopen=no
25033 cat >conftest.$ac_ext <<_ACEOF
25034 /* confdefs.h.  */
25035 _ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h.  */
25039
25040 /* Override any gcc2 internal prototype to avoid an error.  */
25041 #ifdef __cplusplus
25042 extern "C"
25043 #endif
25044 /* We use char because int might match the return type of a gcc2
25045    builtin and then its argument prototype would still apply.  */
25046 char dlopen ();
25047 int
25048 main ()
25049 {
25050 dlopen ();
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 rm -f conftest.$ac_objext conftest$ac_exeext
25056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25057   (eval $ac_link) 2>conftest.er1
25058   ac_status=$?
25059   grep -v '^ *+' conftest.er1 >conftest.err
25060   rm -f conftest.er1
25061   cat conftest.err >&5
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); } &&
25064          { ac_try='test -z "$ac_c_werror_flag"
25065                          || test ! -s conftest.err'
25066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067   (eval $ac_try) 2>&5
25068   ac_status=$?
25069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); }; } &&
25071          { ac_try='test -s conftest$ac_exeext'
25072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073   (eval $ac_try) 2>&5
25074   ac_status=$?
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); }; }; then
25077   ac_cv_search_dlopen="none required"
25078 else
25079   echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25081
25082 fi
25083 rm -f conftest.err conftest.$ac_objext \
25084       conftest$ac_exeext conftest.$ac_ext
25085 if test "$ac_cv_search_dlopen" = no; then
25086   for ac_lib in dl; do
25087     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25088     cat >conftest.$ac_ext <<_ACEOF
25089 /* confdefs.h.  */
25090 _ACEOF
25091 cat confdefs.h >>conftest.$ac_ext
25092 cat >>conftest.$ac_ext <<_ACEOF
25093 /* end confdefs.h.  */
25094
25095 /* Override any gcc2 internal prototype to avoid an error.  */
25096 #ifdef __cplusplus
25097 extern "C"
25098 #endif
25099 /* We use char because int might match the return type of a gcc2
25100    builtin and then its argument prototype would still apply.  */
25101 char dlopen ();
25102 int
25103 main ()
25104 {
25105 dlopen ();
25106   ;
25107   return 0;
25108 }
25109 _ACEOF
25110 rm -f conftest.$ac_objext conftest$ac_exeext
25111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25112   (eval $ac_link) 2>conftest.er1
25113   ac_status=$?
25114   grep -v '^ *+' conftest.er1 >conftest.err
25115   rm -f conftest.er1
25116   cat conftest.err >&5
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); } &&
25119          { ac_try='test -z "$ac_c_werror_flag"
25120                          || test ! -s conftest.err'
25121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122   (eval $ac_try) 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); }; } &&
25126          { ac_try='test -s conftest$ac_exeext'
25127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128   (eval $ac_try) 2>&5
25129   ac_status=$?
25130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131   (exit $ac_status); }; }; then
25132   ac_cv_search_dlopen="-l$ac_lib"
25133 break
25134 else
25135   echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25137
25138 fi
25139 rm -f conftest.err conftest.$ac_objext \
25140       conftest$ac_exeext conftest.$ac_ext
25141   done
25142 fi
25143 LIBS=$ac_func_search_save_LIBS
25144 fi
25145 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25146 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25147 if test "$ac_cv_search_dlopen" != no; then
25148   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25149
25150 cat >>confdefs.h <<\_ACEOF
25151 #define HAVE_DLOPEN 1
25152 _ACEOF
25153
25154 else
25155   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25156 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25157 fi
25158
25159
25160 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25161 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25162 if test "${ac_cv_search_mallinfo+set}" = set; then
25163   echo $ECHO_N "(cached) $ECHO_C" >&6
25164 else
25165   ac_func_search_save_LIBS=$LIBS
25166 ac_cv_search_mallinfo=no
25167 cat >conftest.$ac_ext <<_ACEOF
25168 /* confdefs.h.  */
25169 _ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h.  */
25173
25174 /* Override any gcc2 internal prototype to avoid an error.  */
25175 #ifdef __cplusplus
25176 extern "C"
25177 #endif
25178 /* We use char because int might match the return type of a gcc2
25179    builtin and then its argument prototype would still apply.  */
25180 char mallinfo ();
25181 int
25182 main ()
25183 {
25184 mallinfo ();
25185   ;
25186   return 0;
25187 }
25188 _ACEOF
25189 rm -f conftest.$ac_objext conftest$ac_exeext
25190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25191   (eval $ac_link) 2>conftest.er1
25192   ac_status=$?
25193   grep -v '^ *+' conftest.er1 >conftest.err
25194   rm -f conftest.er1
25195   cat conftest.err >&5
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); } &&
25198          { ac_try='test -z "$ac_c_werror_flag"
25199                          || test ! -s conftest.err'
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); }; } &&
25205          { ac_try='test -s conftest$ac_exeext'
25206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207   (eval $ac_try) 2>&5
25208   ac_status=$?
25209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); }; }; then
25211   ac_cv_search_mallinfo="none required"
25212 else
25213   echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25215
25216 fi
25217 rm -f conftest.err conftest.$ac_objext \
25218       conftest$ac_exeext conftest.$ac_ext
25219 if test "$ac_cv_search_mallinfo" = no; then
25220   for ac_lib in malloc; do
25221     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25222     cat >conftest.$ac_ext <<_ACEOF
25223 /* confdefs.h.  */
25224 _ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h.  */
25228
25229 /* Override any gcc2 internal prototype to avoid an error.  */
25230 #ifdef __cplusplus
25231 extern "C"
25232 #endif
25233 /* We use char because int might match the return type of a gcc2
25234    builtin and then its argument prototype would still apply.  */
25235 char mallinfo ();
25236 int
25237 main ()
25238 {
25239 mallinfo ();
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 rm -f conftest.$ac_objext conftest$ac_exeext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25246   (eval $ac_link) 2>conftest.er1
25247   ac_status=$?
25248   grep -v '^ *+' conftest.er1 >conftest.err
25249   rm -f conftest.er1
25250   cat conftest.err >&5
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); } &&
25253          { ac_try='test -z "$ac_c_werror_flag"
25254                          || test ! -s conftest.err'
25255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256   (eval $ac_try) 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }; } &&
25260          { ac_try='test -s conftest$ac_exeext'
25261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262   (eval $ac_try) 2>&5
25263   ac_status=$?
25264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); }; }; then
25266   ac_cv_search_mallinfo="-l$ac_lib"
25267 break
25268 else
25269   echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25271
25272 fi
25273 rm -f conftest.err conftest.$ac_objext \
25274       conftest$ac_exeext conftest.$ac_ext
25275   done
25276 fi
25277 LIBS=$ac_func_search_save_LIBS
25278 fi
25279 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25280 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25281 if test "$ac_cv_search_mallinfo" != no; then
25282   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25283
25284 cat >>confdefs.h <<\_ACEOF
25285 #define HAVE_MALLINFO 1
25286 _ACEOF
25287
25288 fi
25289
25290
25291 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25292 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25293 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25294   echo $ECHO_N "(cached) $ECHO_C" >&6
25295 else
25296   ac_func_search_save_LIBS=$LIBS
25297 ac_cv_search_pthread_mutex_lock=no
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h.  */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h.  */
25304
25305 /* Override any gcc2 internal prototype to avoid an error.  */
25306 #ifdef __cplusplus
25307 extern "C"
25308 #endif
25309 /* We use char because int might match the return type of a gcc2
25310    builtin and then its argument prototype would still apply.  */
25311 char pthread_mutex_lock ();
25312 int
25313 main ()
25314 {
25315 pthread_mutex_lock ();
25316   ;
25317   return 0;
25318 }
25319 _ACEOF
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25322   (eval $ac_link) 2>conftest.er1
25323   ac_status=$?
25324   grep -v '^ *+' conftest.er1 >conftest.err
25325   rm -f conftest.er1
25326   cat conftest.err >&5
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); } &&
25329          { ac_try='test -z "$ac_c_werror_flag"
25330                          || test ! -s conftest.err'
25331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332   (eval $ac_try) 2>&5
25333   ac_status=$?
25334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335   (exit $ac_status); }; } &&
25336          { ac_try='test -s conftest$ac_exeext'
25337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338   (eval $ac_try) 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; }; then
25342   ac_cv_search_pthread_mutex_lock="none required"
25343 else
25344   echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25346
25347 fi
25348 rm -f conftest.err conftest.$ac_objext \
25349       conftest$ac_exeext conftest.$ac_ext
25350 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25351   for ac_lib in pthread; do
25352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25353     cat >conftest.$ac_ext <<_ACEOF
25354 /* confdefs.h.  */
25355 _ACEOF
25356 cat confdefs.h >>conftest.$ac_ext
25357 cat >>conftest.$ac_ext <<_ACEOF
25358 /* end confdefs.h.  */
25359
25360 /* Override any gcc2 internal prototype to avoid an error.  */
25361 #ifdef __cplusplus
25362 extern "C"
25363 #endif
25364 /* We use char because int might match the return type of a gcc2
25365    builtin and then its argument prototype would still apply.  */
25366 char pthread_mutex_lock ();
25367 int
25368 main ()
25369 {
25370 pthread_mutex_lock ();
25371   ;
25372   return 0;
25373 }
25374 _ACEOF
25375 rm -f conftest.$ac_objext conftest$ac_exeext
25376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25377   (eval $ac_link) 2>conftest.er1
25378   ac_status=$?
25379   grep -v '^ *+' conftest.er1 >conftest.err
25380   rm -f conftest.er1
25381   cat conftest.err >&5
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); } &&
25384          { ac_try='test -z "$ac_c_werror_flag"
25385                          || test ! -s conftest.err'
25386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); }; } &&
25391          { ac_try='test -s conftest$ac_exeext'
25392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393   (eval $ac_try) 2>&5
25394   ac_status=$?
25395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396   (exit $ac_status); }; }; then
25397   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25398 break
25399 else
25400   echo "$as_me: failed program was:" >&5
25401 sed 's/^/| /' conftest.$ac_ext >&5
25402
25403 fi
25404 rm -f conftest.err conftest.$ac_objext \
25405       conftest$ac_exeext conftest.$ac_ext
25406   done
25407 fi
25408 LIBS=$ac_func_search_save_LIBS
25409 fi
25410 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25411 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25412 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25413   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25414
25415 cat >>confdefs.h <<\_ACEOF
25416 #define HAVE_PTHREAD_MUTEX_LOCK 1
25417 _ACEOF
25418
25419 fi
25420
25421
25422
25423
25424
25425
25426
25427
25428 ac_header_dirent=no
25429 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25430   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25431 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25432 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25434   echo $ECHO_N "(cached) $ECHO_C" >&6
25435 else
25436   cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h.  */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h.  */
25442 #include <sys/types.h>
25443 #include <$ac_hdr>
25444
25445 int
25446 main ()
25447 {
25448 if ((DIR *) 0)
25449 return 0;
25450   ;
25451   return 0;
25452 }
25453 _ACEOF
25454 rm -f conftest.$ac_objext
25455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25456   (eval $ac_compile) 2>conftest.er1
25457   ac_status=$?
25458   grep -v '^ *+' conftest.er1 >conftest.err
25459   rm -f conftest.er1
25460   cat conftest.err >&5
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); } &&
25463          { ac_try='test -z "$ac_c_werror_flag"
25464                          || test ! -s conftest.err'
25465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466   (eval $ac_try) 2>&5
25467   ac_status=$?
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); }; } &&
25470          { ac_try='test -s conftest.$ac_objext'
25471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472   (eval $ac_try) 2>&5
25473   ac_status=$?
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); }; }; then
25476   eval "$as_ac_Header=yes"
25477 else
25478   echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25480
25481 eval "$as_ac_Header=no"
25482 fi
25483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25484 fi
25485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25488   cat >>confdefs.h <<_ACEOF
25489 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25490 _ACEOF
25491
25492 ac_header_dirent=$ac_hdr; break
25493 fi
25494
25495 done
25496 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25497 if test $ac_header_dirent = dirent.h; then
25498   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25499 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25500 if test "${ac_cv_search_opendir+set}" = set; then
25501   echo $ECHO_N "(cached) $ECHO_C" >&6
25502 else
25503   ac_func_search_save_LIBS=$LIBS
25504 ac_cv_search_opendir=no
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h.  */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h.  */
25511
25512 /* Override any gcc2 internal prototype to avoid an error.  */
25513 #ifdef __cplusplus
25514 extern "C"
25515 #endif
25516 /* We use char because int might match the return type of a gcc2
25517    builtin and then its argument prototype would still apply.  */
25518 char opendir ();
25519 int
25520 main ()
25521 {
25522 opendir ();
25523   ;
25524   return 0;
25525 }
25526 _ACEOF
25527 rm -f conftest.$ac_objext conftest$ac_exeext
25528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25529   (eval $ac_link) 2>conftest.er1
25530   ac_status=$?
25531   grep -v '^ *+' conftest.er1 >conftest.err
25532   rm -f conftest.er1
25533   cat conftest.err >&5
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); } &&
25536          { ac_try='test -z "$ac_c_werror_flag"
25537                          || test ! -s conftest.err'
25538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539   (eval $ac_try) 2>&5
25540   ac_status=$?
25541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542   (exit $ac_status); }; } &&
25543          { ac_try='test -s conftest$ac_exeext'
25544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545   (eval $ac_try) 2>&5
25546   ac_status=$?
25547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548   (exit $ac_status); }; }; then
25549   ac_cv_search_opendir="none required"
25550 else
25551   echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25553
25554 fi
25555 rm -f conftest.err conftest.$ac_objext \
25556       conftest$ac_exeext conftest.$ac_ext
25557 if test "$ac_cv_search_opendir" = no; then
25558   for ac_lib in dir; do
25559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25560     cat >conftest.$ac_ext <<_ACEOF
25561 /* confdefs.h.  */
25562 _ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h.  */
25566
25567 /* Override any gcc2 internal prototype to avoid an error.  */
25568 #ifdef __cplusplus
25569 extern "C"
25570 #endif
25571 /* We use char because int might match the return type of a gcc2
25572    builtin and then its argument prototype would still apply.  */
25573 char opendir ();
25574 int
25575 main ()
25576 {
25577 opendir ();
25578   ;
25579   return 0;
25580 }
25581 _ACEOF
25582 rm -f conftest.$ac_objext conftest$ac_exeext
25583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25584   (eval $ac_link) 2>conftest.er1
25585   ac_status=$?
25586   grep -v '^ *+' conftest.er1 >conftest.err
25587   rm -f conftest.er1
25588   cat conftest.err >&5
25589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590   (exit $ac_status); } &&
25591          { ac_try='test -z "$ac_c_werror_flag"
25592                          || test ! -s conftest.err'
25593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594   (eval $ac_try) 2>&5
25595   ac_status=$?
25596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597   (exit $ac_status); }; } &&
25598          { ac_try='test -s conftest$ac_exeext'
25599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600   (eval $ac_try) 2>&5
25601   ac_status=$?
25602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603   (exit $ac_status); }; }; then
25604   ac_cv_search_opendir="-l$ac_lib"
25605 break
25606 else
25607   echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610 fi
25611 rm -f conftest.err conftest.$ac_objext \
25612       conftest$ac_exeext conftest.$ac_ext
25613   done
25614 fi
25615 LIBS=$ac_func_search_save_LIBS
25616 fi
25617 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25618 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25619 if test "$ac_cv_search_opendir" != no; then
25620   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25621
25622 fi
25623
25624 else
25625   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25626 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25627 if test "${ac_cv_search_opendir+set}" = set; then
25628   echo $ECHO_N "(cached) $ECHO_C" >&6
25629 else
25630   ac_func_search_save_LIBS=$LIBS
25631 ac_cv_search_opendir=no
25632 cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638
25639 /* Override any gcc2 internal prototype to avoid an error.  */
25640 #ifdef __cplusplus
25641 extern "C"
25642 #endif
25643 /* We use char because int might match the return type of a gcc2
25644    builtin and then its argument prototype would still apply.  */
25645 char opendir ();
25646 int
25647 main ()
25648 {
25649 opendir ();
25650   ;
25651   return 0;
25652 }
25653 _ACEOF
25654 rm -f conftest.$ac_objext conftest$ac_exeext
25655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656   (eval $ac_link) 2>conftest.er1
25657   ac_status=$?
25658   grep -v '^ *+' conftest.er1 >conftest.err
25659   rm -f conftest.er1
25660   cat conftest.err >&5
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); } &&
25663          { ac_try='test -z "$ac_c_werror_flag"
25664                          || test ! -s conftest.err'
25665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666   (eval $ac_try) 2>&5
25667   ac_status=$?
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); }; } &&
25670          { ac_try='test -s conftest$ac_exeext'
25671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672   (eval $ac_try) 2>&5
25673   ac_status=$?
25674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675   (exit $ac_status); }; }; then
25676   ac_cv_search_opendir="none required"
25677 else
25678   echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25680
25681 fi
25682 rm -f conftest.err conftest.$ac_objext \
25683       conftest$ac_exeext conftest.$ac_ext
25684 if test "$ac_cv_search_opendir" = no; then
25685   for ac_lib in x; do
25686     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25687     cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h.  */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h.  */
25693
25694 /* Override any gcc2 internal prototype to avoid an error.  */
25695 #ifdef __cplusplus
25696 extern "C"
25697 #endif
25698 /* We use char because int might match the return type of a gcc2
25699    builtin and then its argument prototype would still apply.  */
25700 char opendir ();
25701 int
25702 main ()
25703 {
25704 opendir ();
25705   ;
25706   return 0;
25707 }
25708 _ACEOF
25709 rm -f conftest.$ac_objext conftest$ac_exeext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25711   (eval $ac_link) 2>conftest.er1
25712   ac_status=$?
25713   grep -v '^ *+' conftest.er1 >conftest.err
25714   rm -f conftest.er1
25715   cat conftest.err >&5
25716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); } &&
25718          { ac_try='test -z "$ac_c_werror_flag"
25719                          || test ! -s conftest.err'
25720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721   (eval $ac_try) 2>&5
25722   ac_status=$?
25723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724   (exit $ac_status); }; } &&
25725          { ac_try='test -s conftest$ac_exeext'
25726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727   (eval $ac_try) 2>&5
25728   ac_status=$?
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); }; }; then
25731   ac_cv_search_opendir="-l$ac_lib"
25732 break
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737 fi
25738 rm -f conftest.err conftest.$ac_objext \
25739       conftest$ac_exeext conftest.$ac_ext
25740   done
25741 fi
25742 LIBS=$ac_func_search_save_LIBS
25743 fi
25744 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25745 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25746 if test "$ac_cv_search_opendir" != no; then
25747   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25748
25749 fi
25750
25751 fi
25752
25753 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25754 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25755 if test "${ac_cv_header_mmap_anon+set}" = set; then
25756   echo $ECHO_N "(cached) $ECHO_C" >&6
25757 else
25758    ac_ext=c
25759 ac_cpp='$CPP $CPPFLAGS'
25760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25763
25764   cat >conftest.$ac_ext <<_ACEOF
25765 /* confdefs.h.  */
25766 _ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h.  */
25770 #include <sys/mman.h>
25771 #include <unistd.h>
25772 #include <fcntl.h>
25773 int
25774 main ()
25775 {
25776 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25777   ;
25778   return 0;
25779 }
25780 _ACEOF
25781 rm -f conftest.$ac_objext
25782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25783   (eval $ac_compile) 2>conftest.er1
25784   ac_status=$?
25785   grep -v '^ *+' conftest.er1 >conftest.err
25786   rm -f conftest.er1
25787   cat conftest.err >&5
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); } &&
25790          { ac_try='test -z "$ac_c_werror_flag"
25791                          || test ! -s conftest.err'
25792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793   (eval $ac_try) 2>&5
25794   ac_status=$?
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); }; } &&
25797          { ac_try='test -s conftest.$ac_objext'
25798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799   (eval $ac_try) 2>&5
25800   ac_status=$?
25801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802   (exit $ac_status); }; }; then
25803   ac_cv_header_mmap_anon=yes
25804 else
25805   echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25807
25808 ac_cv_header_mmap_anon=no
25809 fi
25810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25811   ac_ext=c
25812 ac_cpp='$CPP $CPPFLAGS'
25813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25816
25817
25818 fi
25819 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25820 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25821 if test "$ac_cv_header_mmap_anon" = yes; then
25822
25823 cat >>confdefs.h <<\_ACEOF
25824 #define HAVE_MMAP_ANONYMOUS 1
25825 _ACEOF
25826
25827 fi
25828
25829 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25830 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25831 if test "${ac_cv_header_stat_broken+set}" = set; then
25832   echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25834   cat >conftest.$ac_ext <<_ACEOF
25835 /* confdefs.h.  */
25836 _ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h.  */
25840 #include <sys/types.h>
25841 #include <sys/stat.h>
25842
25843 #if defined(S_ISBLK) && defined(S_IFDIR)
25844 # if S_ISBLK (S_IFDIR)
25845 You lose.
25846 # endif
25847 #endif
25848
25849 #if defined(S_ISBLK) && defined(S_IFCHR)
25850 # if S_ISBLK (S_IFCHR)
25851 You lose.
25852 # endif
25853 #endif
25854
25855 #if defined(S_ISLNK) && defined(S_IFREG)
25856 # if S_ISLNK (S_IFREG)
25857 You lose.
25858 # endif
25859 #endif
25860
25861 #if defined(S_ISSOCK) && defined(S_IFREG)
25862 # if S_ISSOCK (S_IFREG)
25863 You lose.
25864 # endif
25865 #endif
25866
25867 _ACEOF
25868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25869   $EGREP "You lose" >/dev/null 2>&1; then
25870   ac_cv_header_stat_broken=yes
25871 else
25872   ac_cv_header_stat_broken=no
25873 fi
25874 rm -f conftest*
25875
25876 fi
25877 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25878 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25879 if test $ac_cv_header_stat_broken = yes; then
25880
25881 cat >>confdefs.h <<\_ACEOF
25882 #define STAT_MACROS_BROKEN 1
25883 _ACEOF
25884
25885 fi
25886
25887 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25888 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25889 if test "${ac_cv_header_stdc+set}" = set; then
25890   echo $ECHO_N "(cached) $ECHO_C" >&6
25891 else
25892   cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h.  */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h.  */
25898 #include <stdlib.h>
25899 #include <stdarg.h>
25900 #include <string.h>
25901 #include <float.h>
25902
25903 int
25904 main ()
25905 {
25906
25907   ;
25908   return 0;
25909 }
25910 _ACEOF
25911 rm -f conftest.$ac_objext
25912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25913   (eval $ac_compile) 2>conftest.er1
25914   ac_status=$?
25915   grep -v '^ *+' conftest.er1 >conftest.err
25916   rm -f conftest.er1
25917   cat conftest.err >&5
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); } &&
25920          { ac_try='test -z "$ac_c_werror_flag"
25921                          || test ! -s conftest.err'
25922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923   (eval $ac_try) 2>&5
25924   ac_status=$?
25925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926   (exit $ac_status); }; } &&
25927          { ac_try='test -s conftest.$ac_objext'
25928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929   (eval $ac_try) 2>&5
25930   ac_status=$?
25931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932   (exit $ac_status); }; }; then
25933   ac_cv_header_stdc=yes
25934 else
25935   echo "$as_me: failed program was:" >&5
25936 sed 's/^/| /' conftest.$ac_ext >&5
25937
25938 ac_cv_header_stdc=no
25939 fi
25940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25941
25942 if test $ac_cv_header_stdc = yes; then
25943   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25944   cat >conftest.$ac_ext <<_ACEOF
25945 /* confdefs.h.  */
25946 _ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h.  */
25950 #include <string.h>
25951
25952 _ACEOF
25953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25954   $EGREP "memchr" >/dev/null 2>&1; then
25955   :
25956 else
25957   ac_cv_header_stdc=no
25958 fi
25959 rm -f conftest*
25960
25961 fi
25962
25963 if test $ac_cv_header_stdc = yes; then
25964   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25965   cat >conftest.$ac_ext <<_ACEOF
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971 #include <stdlib.h>
25972
25973 _ACEOF
25974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25975   $EGREP "free" >/dev/null 2>&1; then
25976   :
25977 else
25978   ac_cv_header_stdc=no
25979 fi
25980 rm -f conftest*
25981
25982 fi
25983
25984 if test $ac_cv_header_stdc = yes; then
25985   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25986   if test "$cross_compiling" = yes; then
25987   :
25988 else
25989   cat >conftest.$ac_ext <<_ACEOF
25990 /* confdefs.h.  */
25991 _ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h.  */
25995 #include <ctype.h>
25996 #if ((' ' & 0x0FF) == 0x020)
25997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25999 #else
26000 # define ISLOWER(c) \
26001                    (('a' <= (c) && (c) <= 'i') \
26002                      || ('j' <= (c) && (c) <= 'r') \
26003                      || ('s' <= (c) && (c) <= 'z'))
26004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26005 #endif
26006
26007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26008 int
26009 main ()
26010 {
26011   int i;
26012   for (i = 0; i < 256; i++)
26013     if (XOR (islower (i), ISLOWER (i))
26014         || toupper (i) != TOUPPER (i))
26015       exit(2);
26016   exit (0);
26017 }
26018 _ACEOF
26019 rm -f conftest$ac_exeext
26020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26021   (eval $ac_link) 2>&5
26022   ac_status=$?
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026   (eval $ac_try) 2>&5
26027   ac_status=$?
26028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029   (exit $ac_status); }; }; then
26030   :
26031 else
26032   echo "$as_me: program exited with status $ac_status" >&5
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036 ( exit $ac_status )
26037 ac_cv_header_stdc=no
26038 fi
26039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26040 fi
26041 fi
26042 fi
26043 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26044 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26045 if test $ac_cv_header_stdc = yes; then
26046
26047 cat >>confdefs.h <<\_ACEOF
26048 #define STDC_HEADERS 1
26049 _ACEOF
26050
26051 fi
26052
26053 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26056   echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058   cat >conftest.$ac_ext <<_ACEOF
26059 /* confdefs.h.  */
26060 _ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h.  */
26064 #include <sys/types.h>
26065 #include <sys/wait.h>
26066 #ifndef WEXITSTATUS
26067 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26068 #endif
26069 #ifndef WIFEXITED
26070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26071 #endif
26072
26073 int
26074 main ()
26075 {
26076   int s;
26077   wait (&s);
26078   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26079   ;
26080   return 0;
26081 }
26082 _ACEOF
26083 rm -f conftest.$ac_objext
26084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26085   (eval $ac_compile) 2>conftest.er1
26086   ac_status=$?
26087   grep -v '^ *+' conftest.er1 >conftest.err
26088   rm -f conftest.er1
26089   cat conftest.err >&5
26090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091   (exit $ac_status); } &&
26092          { ac_try='test -z "$ac_c_werror_flag"
26093                          || test ! -s conftest.err'
26094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095   (eval $ac_try) 2>&5
26096   ac_status=$?
26097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); }; } &&
26099          { ac_try='test -s conftest.$ac_objext'
26100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101   (eval $ac_try) 2>&5
26102   ac_status=$?
26103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104   (exit $ac_status); }; }; then
26105   ac_cv_header_sys_wait_h=yes
26106 else
26107   echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26109
26110 ac_cv_header_sys_wait_h=no
26111 fi
26112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26113 fi
26114 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26115 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26116 if test $ac_cv_header_sys_wait_h = yes; then
26117
26118 cat >>confdefs.h <<\_ACEOF
26119 #define HAVE_SYS_WAIT_H 1
26120 _ACEOF
26121
26122 fi
26123
26124 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26125 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26126 if test "${ac_cv_header_time+set}" = set; then
26127   echo $ECHO_N "(cached) $ECHO_C" >&6
26128 else
26129   cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h.  */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h.  */
26135 #include <sys/types.h>
26136 #include <sys/time.h>
26137 #include <time.h>
26138
26139 int
26140 main ()
26141 {
26142 if ((struct tm *) 0)
26143 return 0;
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 rm -f conftest.$ac_objext
26149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26150   (eval $ac_compile) 2>conftest.er1
26151   ac_status=$?
26152   grep -v '^ *+' conftest.er1 >conftest.err
26153   rm -f conftest.er1
26154   cat conftest.err >&5
26155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156   (exit $ac_status); } &&
26157          { ac_try='test -z "$ac_c_werror_flag"
26158                          || test ! -s conftest.err'
26159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160   (eval $ac_try) 2>&5
26161   ac_status=$?
26162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163   (exit $ac_status); }; } &&
26164          { ac_try='test -s conftest.$ac_objext'
26165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166   (eval $ac_try) 2>&5
26167   ac_status=$?
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); }; }; then
26170   ac_cv_header_time=yes
26171 else
26172   echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26174
26175 ac_cv_header_time=no
26176 fi
26177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26178 fi
26179 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26180 echo "${ECHO_T}$ac_cv_header_time" >&6
26181 if test $ac_cv_header_time = yes; then
26182
26183 cat >>confdefs.h <<\_ACEOF
26184 #define TIME_WITH_SYS_TIME 1
26185 _ACEOF
26186
26187 fi
26188
26189
26190
26191
26192
26193
26194
26195
26196 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26197 do
26198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26200   echo "$as_me:$LINENO: checking for $ac_header" >&5
26201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26203   echo $ECHO_N "(cached) $ECHO_C" >&6
26204 fi
26205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26207 else
26208   # Is the header compilable?
26209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26211 cat >conftest.$ac_ext <<_ACEOF
26212 /* confdefs.h.  */
26213 _ACEOF
26214 cat confdefs.h >>conftest.$ac_ext
26215 cat >>conftest.$ac_ext <<_ACEOF
26216 /* end confdefs.h.  */
26217 $ac_includes_default
26218 #include <$ac_header>
26219 _ACEOF
26220 rm -f conftest.$ac_objext
26221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26222   (eval $ac_compile) 2>conftest.er1
26223   ac_status=$?
26224   grep -v '^ *+' conftest.er1 >conftest.err
26225   rm -f conftest.er1
26226   cat conftest.err >&5
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } &&
26229          { ac_try='test -z "$ac_c_werror_flag"
26230                          || test ! -s conftest.err'
26231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232   (eval $ac_try) 2>&5
26233   ac_status=$?
26234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); }; } &&
26236          { ac_try='test -s conftest.$ac_objext'
26237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26238   (eval $ac_try) 2>&5
26239   ac_status=$?
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); }; }; then
26242   ac_header_compiler=yes
26243 else
26244   echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26246
26247 ac_header_compiler=no
26248 fi
26249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26251 echo "${ECHO_T}$ac_header_compiler" >&6
26252
26253 # Is the header present?
26254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26256 cat >conftest.$ac_ext <<_ACEOF
26257 /* confdefs.h.  */
26258 _ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h.  */
26262 #include <$ac_header>
26263 _ACEOF
26264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26266   ac_status=$?
26267   grep -v '^ *+' conftest.er1 >conftest.err
26268   rm -f conftest.er1
26269   cat conftest.err >&5
26270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271   (exit $ac_status); } >/dev/null; then
26272   if test -s conftest.err; then
26273     ac_cpp_err=$ac_c_preproc_warn_flag
26274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26275   else
26276     ac_cpp_err=
26277   fi
26278 else
26279   ac_cpp_err=yes
26280 fi
26281 if test -z "$ac_cpp_err"; then
26282   ac_header_preproc=yes
26283 else
26284   echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26286
26287   ac_header_preproc=no
26288 fi
26289 rm -f conftest.err conftest.$ac_ext
26290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26291 echo "${ECHO_T}$ac_header_preproc" >&6
26292
26293 # So?  What about this header?
26294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26295   yes:no: )
26296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26300     ac_header_preproc=yes
26301     ;;
26302   no:yes:* )
26303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26315     (
26316       cat <<\_ASBOX
26317 ## ----------------------------------- ##
26318 ## Report this to llvmbugs@cs.uiuc.edu ##
26319 ## ----------------------------------- ##
26320 _ASBOX
26321     ) |
26322       sed "s/^/$as_me: WARNING:     /" >&2
26323     ;;
26324 esac
26325 echo "$as_me:$LINENO: checking for $ac_header" >&5
26326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 else
26330   eval "$as_ac_Header=\$ac_header_preproc"
26331 fi
26332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26334
26335 fi
26336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26337   cat >>confdefs.h <<_ACEOF
26338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26339 _ACEOF
26340
26341 fi
26342
26343 done
26344
26345
26346
26347
26348
26349
26350
26351 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26352 do
26353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355   echo "$as_me:$LINENO: checking for $ac_header" >&5
26356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26358   echo $ECHO_N "(cached) $ECHO_C" >&6
26359 fi
26360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26362 else
26363   # Is the header compilable?
26364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26366 cat >conftest.$ac_ext <<_ACEOF
26367 /* confdefs.h.  */
26368 _ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h.  */
26372 $ac_includes_default
26373 #include <$ac_header>
26374 _ACEOF
26375 rm -f conftest.$ac_objext
26376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26377   (eval $ac_compile) 2>conftest.er1
26378   ac_status=$?
26379   grep -v '^ *+' conftest.er1 >conftest.err
26380   rm -f conftest.er1
26381   cat conftest.err >&5
26382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383   (exit $ac_status); } &&
26384          { ac_try='test -z "$ac_c_werror_flag"
26385                          || test ! -s conftest.err'
26386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387   (eval $ac_try) 2>&5
26388   ac_status=$?
26389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390   (exit $ac_status); }; } &&
26391          { ac_try='test -s conftest.$ac_objext'
26392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393   (eval $ac_try) 2>&5
26394   ac_status=$?
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); }; }; then
26397   ac_header_compiler=yes
26398 else
26399   echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26401
26402 ac_header_compiler=no
26403 fi
26404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26406 echo "${ECHO_T}$ac_header_compiler" >&6
26407
26408 # Is the header present?
26409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26411 cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h.  */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h.  */
26417 #include <$ac_header>
26418 _ACEOF
26419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26421   ac_status=$?
26422   grep -v '^ *+' conftest.er1 >conftest.err
26423   rm -f conftest.er1
26424   cat conftest.err >&5
26425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426   (exit $ac_status); } >/dev/null; then
26427   if test -s conftest.err; then
26428     ac_cpp_err=$ac_c_preproc_warn_flag
26429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26430   else
26431     ac_cpp_err=
26432   fi
26433 else
26434   ac_cpp_err=yes
26435 fi
26436 if test -z "$ac_cpp_err"; then
26437   ac_header_preproc=yes
26438 else
26439   echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26441
26442   ac_header_preproc=no
26443 fi
26444 rm -f conftest.err conftest.$ac_ext
26445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446 echo "${ECHO_T}$ac_header_preproc" >&6
26447
26448 # So?  What about this header?
26449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26450   yes:no: )
26451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455     ac_header_preproc=yes
26456     ;;
26457   no:yes:* )
26458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26470     (
26471       cat <<\_ASBOX
26472 ## ----------------------------------- ##
26473 ## Report this to llvmbugs@cs.uiuc.edu ##
26474 ## ----------------------------------- ##
26475 _ASBOX
26476     ) |
26477       sed "s/^/$as_me: WARNING:     /" >&2
26478     ;;
26479 esac
26480 echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483   echo $ECHO_N "(cached) $ECHO_C" >&6
26484 else
26485   eval "$as_ac_Header=\$ac_header_preproc"
26486 fi
26487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26489
26490 fi
26491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26492   cat >>confdefs.h <<_ACEOF
26493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26494 _ACEOF
26495
26496 fi
26497
26498 done
26499
26500
26501
26502
26503
26504
26505 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26506 do
26507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509   echo "$as_me:$LINENO: checking for $ac_header" >&5
26510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26512   echo $ECHO_N "(cached) $ECHO_C" >&6
26513 fi
26514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26516 else
26517   # Is the header compilable?
26518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26520 cat >conftest.$ac_ext <<_ACEOF
26521 /* confdefs.h.  */
26522 _ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h.  */
26526 $ac_includes_default
26527 #include <$ac_header>
26528 _ACEOF
26529 rm -f conftest.$ac_objext
26530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26531   (eval $ac_compile) 2>conftest.er1
26532   ac_status=$?
26533   grep -v '^ *+' conftest.er1 >conftest.err
26534   rm -f conftest.er1
26535   cat conftest.err >&5
26536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537   (exit $ac_status); } &&
26538          { ac_try='test -z "$ac_c_werror_flag"
26539                          || test ! -s conftest.err'
26540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541   (eval $ac_try) 2>&5
26542   ac_status=$?
26543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544   (exit $ac_status); }; } &&
26545          { ac_try='test -s conftest.$ac_objext'
26546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547   (eval $ac_try) 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; }; then
26551   ac_header_compiler=yes
26552 else
26553   echo "$as_me: failed program was:" >&5
26554 sed 's/^/| /' conftest.$ac_ext >&5
26555
26556 ac_header_compiler=no
26557 fi
26558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26560 echo "${ECHO_T}$ac_header_compiler" >&6
26561
26562 # Is the header present?
26563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26565 cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h.  */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h.  */
26571 #include <$ac_header>
26572 _ACEOF
26573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26575   ac_status=$?
26576   grep -v '^ *+' conftest.er1 >conftest.err
26577   rm -f conftest.er1
26578   cat conftest.err >&5
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); } >/dev/null; then
26581   if test -s conftest.err; then
26582     ac_cpp_err=$ac_c_preproc_warn_flag
26583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26584   else
26585     ac_cpp_err=
26586   fi
26587 else
26588   ac_cpp_err=yes
26589 fi
26590 if test -z "$ac_cpp_err"; then
26591   ac_header_preproc=yes
26592 else
26593   echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26595
26596   ac_header_preproc=no
26597 fi
26598 rm -f conftest.err conftest.$ac_ext
26599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26600 echo "${ECHO_T}$ac_header_preproc" >&6
26601
26602 # So?  What about this header?
26603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26604   yes:no: )
26605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26609     ac_header_preproc=yes
26610     ;;
26611   no:yes:* )
26612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26614     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26618     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26619 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26624     (
26625       cat <<\_ASBOX
26626 ## ----------------------------------- ##
26627 ## Report this to llvmbugs@cs.uiuc.edu ##
26628 ## ----------------------------------- ##
26629 _ASBOX
26630     ) |
26631       sed "s/^/$as_me: WARNING:     /" >&2
26632     ;;
26633 esac
26634 echo "$as_me:$LINENO: checking for $ac_header" >&5
26635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26637   echo $ECHO_N "(cached) $ECHO_C" >&6
26638 else
26639   eval "$as_ac_Header=\$ac_header_preproc"
26640 fi
26641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26643
26644 fi
26645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26646   cat >>confdefs.h <<_ACEOF
26647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26648 _ACEOF
26649
26650 fi
26651
26652 done
26653
26654
26655
26656 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26657 do
26658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660   echo "$as_me:$LINENO: checking for $ac_header" >&5
26661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26663   echo $ECHO_N "(cached) $ECHO_C" >&6
26664 fi
26665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26667 else
26668   # Is the header compilable?
26669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26671 cat >conftest.$ac_ext <<_ACEOF
26672 /* confdefs.h.  */
26673 _ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h.  */
26677 $ac_includes_default
26678 #include <$ac_header>
26679 _ACEOF
26680 rm -f conftest.$ac_objext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26682   (eval $ac_compile) 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } &&
26689          { ac_try='test -z "$ac_c_werror_flag"
26690                          || test ! -s conftest.err'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; } &&
26696          { ac_try='test -s conftest.$ac_objext'
26697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698   (eval $ac_try) 2>&5
26699   ac_status=$?
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); }; }; then
26702   ac_header_compiler=yes
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707 ac_header_compiler=no
26708 fi
26709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26711 echo "${ECHO_T}$ac_header_compiler" >&6
26712
26713 # Is the header present?
26714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26716 cat >conftest.$ac_ext <<_ACEOF
26717 /* confdefs.h.  */
26718 _ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h.  */
26722 #include <$ac_header>
26723 _ACEOF
26724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26726   ac_status=$?
26727   grep -v '^ *+' conftest.er1 >conftest.err
26728   rm -f conftest.er1
26729   cat conftest.err >&5
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); } >/dev/null; then
26732   if test -s conftest.err; then
26733     ac_cpp_err=$ac_c_preproc_warn_flag
26734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26735   else
26736     ac_cpp_err=
26737   fi
26738 else
26739   ac_cpp_err=yes
26740 fi
26741 if test -z "$ac_cpp_err"; then
26742   ac_header_preproc=yes
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747   ac_header_preproc=no
26748 fi
26749 rm -f conftest.err conftest.$ac_ext
26750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26751 echo "${ECHO_T}$ac_header_preproc" >&6
26752
26753 # So?  What about this header?
26754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26755   yes:no: )
26756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26760     ac_header_preproc=yes
26761     ;;
26762   no:yes:* )
26763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26775     (
26776       cat <<\_ASBOX
26777 ## ----------------------------------- ##
26778 ## Report this to llvmbugs@cs.uiuc.edu ##
26779 ## ----------------------------------- ##
26780 _ASBOX
26781     ) |
26782       sed "s/^/$as_me: WARNING:     /" >&2
26783     ;;
26784 esac
26785 echo "$as_me:$LINENO: checking for $ac_header" >&5
26786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26788   echo $ECHO_N "(cached) $ECHO_C" >&6
26789 else
26790   eval "$as_ac_Header=\$ac_header_preproc"
26791 fi
26792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26794
26795 fi
26796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26797   cat >>confdefs.h <<_ACEOF
26798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26799 _ACEOF
26800
26801 fi
26802
26803 done
26804
26805
26806
26807 echo "$as_me:$LINENO: checking for pid_t" >&5
26808 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26809 if test "${ac_cv_type_pid_t+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 $ac_includes_default
26819 int
26820 main ()
26821 {
26822 if ((pid_t *) 0)
26823   return 0;
26824 if (sizeof (pid_t))
26825   return 0;
26826   ;
26827   return 0;
26828 }
26829 _ACEOF
26830 rm -f conftest.$ac_objext
26831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26832   (eval $ac_compile) 2>conftest.er1
26833   ac_status=$?
26834   grep -v '^ *+' conftest.er1 >conftest.err
26835   rm -f conftest.er1
26836   cat conftest.err >&5
26837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); } &&
26839          { ac_try='test -z "$ac_c_werror_flag"
26840                          || test ! -s conftest.err'
26841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842   (eval $ac_try) 2>&5
26843   ac_status=$?
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); }; } &&
26846          { ac_try='test -s conftest.$ac_objext'
26847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848   (eval $ac_try) 2>&5
26849   ac_status=$?
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); }; }; then
26852   ac_cv_type_pid_t=yes
26853 else
26854   echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26856
26857 ac_cv_type_pid_t=no
26858 fi
26859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26860 fi
26861 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26862 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26863 if test $ac_cv_type_pid_t = yes; then
26864   :
26865 else
26866
26867 cat >>confdefs.h <<_ACEOF
26868 #define pid_t int
26869 _ACEOF
26870
26871 fi
26872
26873 echo "$as_me:$LINENO: checking for size_t" >&5
26874 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26875 if test "${ac_cv_type_size_t+set}" = set; then
26876   echo $ECHO_N "(cached) $ECHO_C" >&6
26877 else
26878   cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h.  */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h.  */
26884 $ac_includes_default
26885 int
26886 main ()
26887 {
26888 if ((size_t *) 0)
26889   return 0;
26890 if (sizeof (size_t))
26891   return 0;
26892   ;
26893   return 0;
26894 }
26895 _ACEOF
26896 rm -f conftest.$ac_objext
26897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26898   (eval $ac_compile) 2>conftest.er1
26899   ac_status=$?
26900   grep -v '^ *+' conftest.er1 >conftest.err
26901   rm -f conftest.er1
26902   cat conftest.err >&5
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); } &&
26905          { ac_try='test -z "$ac_c_werror_flag"
26906                          || test ! -s conftest.err'
26907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908   (eval $ac_try) 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); }; } &&
26912          { ac_try='test -s conftest.$ac_objext'
26913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914   (eval $ac_try) 2>&5
26915   ac_status=$?
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); }; }; then
26918   ac_cv_type_size_t=yes
26919 else
26920   echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26922
26923 ac_cv_type_size_t=no
26924 fi
26925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26926 fi
26927 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26928 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26929 if test $ac_cv_type_size_t = yes; then
26930   :
26931 else
26932
26933 cat >>confdefs.h <<_ACEOF
26934 #define size_t unsigned
26935 _ACEOF
26936
26937 fi
26938
26939 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26940 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26941 if test "${ac_cv_type_signal+set}" = set; then
26942   echo $ECHO_N "(cached) $ECHO_C" >&6
26943 else
26944   cat >conftest.$ac_ext <<_ACEOF
26945 /* confdefs.h.  */
26946 _ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h.  */
26950 #include <sys/types.h>
26951 #include <signal.h>
26952 #ifdef signal
26953 # undef signal
26954 #endif
26955 #ifdef __cplusplus
26956 extern "C" void (*signal (int, void (*)(int)))(int);
26957 #else
26958 void (*signal ()) ();
26959 #endif
26960
26961 int
26962 main ()
26963 {
26964 int i;
26965   ;
26966   return 0;
26967 }
26968 _ACEOF
26969 rm -f conftest.$ac_objext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26971   (eval $ac_compile) 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_objext'
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   ac_cv_type_signal=void
26992 else
26993   echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26995
26996 ac_cv_type_signal=int
26997 fi
26998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26999 fi
27000 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27001 echo "${ECHO_T}$ac_cv_type_signal" >&6
27002
27003 cat >>confdefs.h <<_ACEOF
27004 #define RETSIGTYPE $ac_cv_type_signal
27005 _ACEOF
27006
27007
27008 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27009 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27010 if test "${ac_cv_struct_tm+set}" = set; then
27011   echo $ECHO_N "(cached) $ECHO_C" >&6
27012 else
27013   cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h.  */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h.  */
27019 #include <sys/types.h>
27020 #include <time.h>
27021
27022 int
27023 main ()
27024 {
27025 struct tm *tp; tp->tm_sec;
27026   ;
27027   return 0;
27028 }
27029 _ACEOF
27030 rm -f conftest.$ac_objext
27031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27032   (eval $ac_compile) 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } &&
27039          { ac_try='test -z "$ac_c_werror_flag"
27040                          || test ! -s conftest.err'
27041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042   (eval $ac_try) 2>&5
27043   ac_status=$?
27044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); }; } &&
27046          { ac_try='test -s conftest.$ac_objext'
27047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048   (eval $ac_try) 2>&5
27049   ac_status=$?
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); }; }; then
27052   ac_cv_struct_tm=time.h
27053 else
27054   echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27056
27057 ac_cv_struct_tm=sys/time.h
27058 fi
27059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27060 fi
27061 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27062 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27063 if test $ac_cv_struct_tm = sys/time.h; then
27064
27065 cat >>confdefs.h <<\_ACEOF
27066 #define TM_IN_SYS_TIME 1
27067 _ACEOF
27068
27069 fi
27070
27071 echo "$as_me:$LINENO: checking for int64_t" >&5
27072 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27073 if test "${ac_cv_type_int64_t+set}" = set; then
27074   echo $ECHO_N "(cached) $ECHO_C" >&6
27075 else
27076   cat >conftest.$ac_ext <<_ACEOF
27077 /* confdefs.h.  */
27078 _ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h.  */
27082 $ac_includes_default
27083 int
27084 main ()
27085 {
27086 if ((int64_t *) 0)
27087   return 0;
27088 if (sizeof (int64_t))
27089   return 0;
27090   ;
27091   return 0;
27092 }
27093 _ACEOF
27094 rm -f conftest.$ac_objext
27095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27096   (eval $ac_compile) 2>conftest.er1
27097   ac_status=$?
27098   grep -v '^ *+' conftest.er1 >conftest.err
27099   rm -f conftest.er1
27100   cat conftest.err >&5
27101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102   (exit $ac_status); } &&
27103          { ac_try='test -z "$ac_c_werror_flag"
27104                          || test ! -s conftest.err'
27105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106   (eval $ac_try) 2>&5
27107   ac_status=$?
27108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109   (exit $ac_status); }; } &&
27110          { ac_try='test -s conftest.$ac_objext'
27111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112   (eval $ac_try) 2>&5
27113   ac_status=$?
27114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115   (exit $ac_status); }; }; then
27116   ac_cv_type_int64_t=yes
27117 else
27118   echo "$as_me: failed program was:" >&5
27119 sed 's/^/| /' conftest.$ac_ext >&5
27120
27121 ac_cv_type_int64_t=no
27122 fi
27123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27124 fi
27125 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27126 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27127 if test $ac_cv_type_int64_t = yes; then
27128
27129 cat >>confdefs.h <<_ACEOF
27130 #define HAVE_INT64_T 1
27131 _ACEOF
27132
27133
27134 else
27135   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27136 echo "$as_me: error: Type int64_t required but not found" >&2;}
27137    { (exit 1); exit 1; }; }
27138 fi
27139
27140 echo "$as_me:$LINENO: checking for uint64_t" >&5
27141 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27142 if test "${ac_cv_type_uint64_t+set}" = set; then
27143   echo $ECHO_N "(cached) $ECHO_C" >&6
27144 else
27145   cat >conftest.$ac_ext <<_ACEOF
27146 /* confdefs.h.  */
27147 _ACEOF
27148 cat confdefs.h >>conftest.$ac_ext
27149 cat >>conftest.$ac_ext <<_ACEOF
27150 /* end confdefs.h.  */
27151 $ac_includes_default
27152 int
27153 main ()
27154 {
27155 if ((uint64_t *) 0)
27156   return 0;
27157 if (sizeof (uint64_t))
27158   return 0;
27159   ;
27160   return 0;
27161 }
27162 _ACEOF
27163 rm -f conftest.$ac_objext
27164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27165   (eval $ac_compile) 2>conftest.er1
27166   ac_status=$?
27167   grep -v '^ *+' conftest.er1 >conftest.err
27168   rm -f conftest.er1
27169   cat conftest.err >&5
27170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171   (exit $ac_status); } &&
27172          { ac_try='test -z "$ac_c_werror_flag"
27173                          || test ! -s conftest.err'
27174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175   (eval $ac_try) 2>&5
27176   ac_status=$?
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); }; } &&
27179          { ac_try='test -s conftest.$ac_objext'
27180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181   (eval $ac_try) 2>&5
27182   ac_status=$?
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); }; }; then
27185   ac_cv_type_uint64_t=yes
27186 else
27187   echo "$as_me: failed program was:" >&5
27188 sed 's/^/| /' conftest.$ac_ext >&5
27189
27190 ac_cv_type_uint64_t=no
27191 fi
27192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27193 fi
27194 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27195 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27196 if test $ac_cv_type_uint64_t = yes; then
27197
27198 cat >>confdefs.h <<_ACEOF
27199 #define HAVE_UINT64_T 1
27200 _ACEOF
27201
27202
27203 else
27204   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27205 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27206 if test "${ac_cv_type_u_int64_t+set}" = set; then
27207   echo $ECHO_N "(cached) $ECHO_C" >&6
27208 else
27209   cat >conftest.$ac_ext <<_ACEOF
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 $ac_includes_default
27216 int
27217 main ()
27218 {
27219 if ((u_int64_t *) 0)
27220   return 0;
27221 if (sizeof (u_int64_t))
27222   return 0;
27223   ;
27224   return 0;
27225 }
27226 _ACEOF
27227 rm -f conftest.$ac_objext
27228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27229   (eval $ac_compile) 2>conftest.er1
27230   ac_status=$?
27231   grep -v '^ *+' conftest.er1 >conftest.err
27232   rm -f conftest.er1
27233   cat conftest.err >&5
27234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235   (exit $ac_status); } &&
27236          { ac_try='test -z "$ac_c_werror_flag"
27237                          || test ! -s conftest.err'
27238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239   (eval $ac_try) 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); }; } &&
27243          { ac_try='test -s conftest.$ac_objext'
27244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245   (eval $ac_try) 2>&5
27246   ac_status=$?
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); }; }; then
27249   ac_cv_type_u_int64_t=yes
27250 else
27251   echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27253
27254 ac_cv_type_u_int64_t=no
27255 fi
27256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27257 fi
27258 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27259 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27260 if test $ac_cv_type_u_int64_t = yes; then
27261
27262 cat >>confdefs.h <<_ACEOF
27263 #define HAVE_U_INT64_T 1
27264 _ACEOF
27265
27266
27267 else
27268   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27269 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27270    { (exit 1); exit 1; }; }
27271 fi
27272
27273 fi
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27284 do
27285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27286 echo "$as_me:$LINENO: checking for $ac_func" >&5
27287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27288 if eval "test \"\${$as_ac_var+set}\" = set"; then
27289   echo $ECHO_N "(cached) $ECHO_C" >&6
27290 else
27291   cat >conftest.$ac_ext <<_ACEOF
27292 /* confdefs.h.  */
27293 _ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h.  */
27297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27299 #define $ac_func innocuous_$ac_func
27300
27301 /* System header to define __stub macros and hopefully few prototypes,
27302     which can conflict with char $ac_func (); below.
27303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27304     <limits.h> exists even on freestanding compilers.  */
27305
27306 #ifdef __STDC__
27307 # include <limits.h>
27308 #else
27309 # include <assert.h>
27310 #endif
27311
27312 #undef $ac_func
27313
27314 /* Override any gcc2 internal prototype to avoid an error.  */
27315 #ifdef __cplusplus
27316 extern "C"
27317 {
27318 #endif
27319 /* We use char because int might match the return type of a gcc2
27320    builtin and then its argument prototype would still apply.  */
27321 char $ac_func ();
27322 /* The GNU C library defines this for functions which it implements
27323     to always fail with ENOSYS.  Some functions are actually named
27324     something starting with __ and the normal name is an alias.  */
27325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27326 choke me
27327 #else
27328 char (*f) () = $ac_func;
27329 #endif
27330 #ifdef __cplusplus
27331 }
27332 #endif
27333
27334 int
27335 main ()
27336 {
27337 return f != $ac_func;
27338   ;
27339   return 0;
27340 }
27341 _ACEOF
27342 rm -f conftest.$ac_objext conftest$ac_exeext
27343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27344   (eval $ac_link) 2>conftest.er1
27345   ac_status=$?
27346   grep -v '^ *+' conftest.er1 >conftest.err
27347   rm -f conftest.er1
27348   cat conftest.err >&5
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); } &&
27351          { ac_try='test -z "$ac_c_werror_flag"
27352                          || test ! -s conftest.err'
27353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354   (eval $ac_try) 2>&5
27355   ac_status=$?
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); }; } &&
27358          { ac_try='test -s conftest$ac_exeext'
27359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360   (eval $ac_try) 2>&5
27361   ac_status=$?
27362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363   (exit $ac_status); }; }; then
27364   eval "$as_ac_var=yes"
27365 else
27366   echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.$ac_ext >&5
27368
27369 eval "$as_ac_var=no"
27370 fi
27371 rm -f conftest.err conftest.$ac_objext \
27372       conftest$ac_exeext conftest.$ac_ext
27373 fi
27374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27376 if test `eval echo '${'$as_ac_var'}'` = yes; then
27377   cat >>confdefs.h <<_ACEOF
27378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27379 _ACEOF
27380
27381 fi
27382 done
27383
27384
27385
27386
27387 for ac_func in mkdtemp mkstemp mktemp
27388 do
27389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27390 echo "$as_me:$LINENO: checking for $ac_func" >&5
27391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27392 if eval "test \"\${$as_ac_var+set}\" = set"; then
27393   echo $ECHO_N "(cached) $ECHO_C" >&6
27394 else
27395   cat >conftest.$ac_ext <<_ACEOF
27396 /* confdefs.h.  */
27397 _ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h.  */
27401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27403 #define $ac_func innocuous_$ac_func
27404
27405 /* System header to define __stub macros and hopefully few prototypes,
27406     which can conflict with char $ac_func (); below.
27407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27408     <limits.h> exists even on freestanding compilers.  */
27409
27410 #ifdef __STDC__
27411 # include <limits.h>
27412 #else
27413 # include <assert.h>
27414 #endif
27415
27416 #undef $ac_func
27417
27418 /* Override any gcc2 internal prototype to avoid an error.  */
27419 #ifdef __cplusplus
27420 extern "C"
27421 {
27422 #endif
27423 /* We use char because int might match the return type of a gcc2
27424    builtin and then its argument prototype would still apply.  */
27425 char $ac_func ();
27426 /* The GNU C library defines this for functions which it implements
27427     to always fail with ENOSYS.  Some functions are actually named
27428     something starting with __ and the normal name is an alias.  */
27429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27430 choke me
27431 #else
27432 char (*f) () = $ac_func;
27433 #endif
27434 #ifdef __cplusplus
27435 }
27436 #endif
27437
27438 int
27439 main ()
27440 {
27441 return f != $ac_func;
27442   ;
27443   return 0;
27444 }
27445 _ACEOF
27446 rm -f conftest.$ac_objext conftest$ac_exeext
27447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27448   (eval $ac_link) 2>conftest.er1
27449   ac_status=$?
27450   grep -v '^ *+' conftest.er1 >conftest.err
27451   rm -f conftest.er1
27452   cat conftest.err >&5
27453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454   (exit $ac_status); } &&
27455          { ac_try='test -z "$ac_c_werror_flag"
27456                          || test ! -s conftest.err'
27457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458   (eval $ac_try) 2>&5
27459   ac_status=$?
27460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461   (exit $ac_status); }; } &&
27462          { ac_try='test -s conftest$ac_exeext'
27463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464   (eval $ac_try) 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); }; }; then
27468   eval "$as_ac_var=yes"
27469 else
27470   echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27472
27473 eval "$as_ac_var=no"
27474 fi
27475 rm -f conftest.err conftest.$ac_objext \
27476       conftest$ac_exeext conftest.$ac_ext
27477 fi
27478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27480 if test `eval echo '${'$as_ac_var'}'` = yes; then
27481   cat >>confdefs.h <<_ACEOF
27482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27483 _ACEOF
27484
27485 fi
27486 done
27487
27488
27489
27490
27491
27492
27493
27494 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27495 do
27496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27497 echo "$as_me:$LINENO: checking for $ac_func" >&5
27498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27499 if eval "test \"\${$as_ac_var+set}\" = set"; then
27500   echo $ECHO_N "(cached) $ECHO_C" >&6
27501 else
27502   cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h.  */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h.  */
27508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27510 #define $ac_func innocuous_$ac_func
27511
27512 /* System header to define __stub macros and hopefully few prototypes,
27513     which can conflict with char $ac_func (); below.
27514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27515     <limits.h> exists even on freestanding compilers.  */
27516
27517 #ifdef __STDC__
27518 # include <limits.h>
27519 #else
27520 # include <assert.h>
27521 #endif
27522
27523 #undef $ac_func
27524
27525 /* Override any gcc2 internal prototype to avoid an error.  */
27526 #ifdef __cplusplus
27527 extern "C"
27528 {
27529 #endif
27530 /* We use char because int might match the return type of a gcc2
27531    builtin and then its argument prototype would still apply.  */
27532 char $ac_func ();
27533 /* The GNU C library defines this for functions which it implements
27534     to always fail with ENOSYS.  Some functions are actually named
27535     something starting with __ and the normal name is an alias.  */
27536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27537 choke me
27538 #else
27539 char (*f) () = $ac_func;
27540 #endif
27541 #ifdef __cplusplus
27542 }
27543 #endif
27544
27545 int
27546 main ()
27547 {
27548 return f != $ac_func;
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 rm -f conftest.$ac_objext conftest$ac_exeext
27554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27555   (eval $ac_link) 2>conftest.er1
27556   ac_status=$?
27557   grep -v '^ *+' conftest.er1 >conftest.err
27558   rm -f conftest.er1
27559   cat conftest.err >&5
27560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561   (exit $ac_status); } &&
27562          { ac_try='test -z "$ac_c_werror_flag"
27563                          || test ! -s conftest.err'
27564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565   (eval $ac_try) 2>&5
27566   ac_status=$?
27567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568   (exit $ac_status); }; } &&
27569          { ac_try='test -s conftest$ac_exeext'
27570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571   (eval $ac_try) 2>&5
27572   ac_status=$?
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); }; }; then
27575   eval "$as_ac_var=yes"
27576 else
27577   echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27579
27580 eval "$as_ac_var=no"
27581 fi
27582 rm -f conftest.err conftest.$ac_objext \
27583       conftest$ac_exeext conftest.$ac_ext
27584 fi
27585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27587 if test `eval echo '${'$as_ac_var'}'` = yes; then
27588   cat >>confdefs.h <<_ACEOF
27589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27590 _ACEOF
27591
27592 fi
27593 done
27594
27595
27596
27597
27598 for ac_func in strtoll strtoq sysconf
27599 do
27600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27601 echo "$as_me:$LINENO: checking for $ac_func" >&5
27602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27603 if eval "test \"\${$as_ac_var+set}\" = set"; then
27604   echo $ECHO_N "(cached) $ECHO_C" >&6
27605 else
27606   cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27614 #define $ac_func innocuous_$ac_func
27615
27616 /* System header to define __stub macros and hopefully few prototypes,
27617     which can conflict with char $ac_func (); below.
27618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619     <limits.h> exists even on freestanding compilers.  */
27620
27621 #ifdef __STDC__
27622 # include <limits.h>
27623 #else
27624 # include <assert.h>
27625 #endif
27626
27627 #undef $ac_func
27628
27629 /* Override any gcc2 internal prototype to avoid an error.  */
27630 #ifdef __cplusplus
27631 extern "C"
27632 {
27633 #endif
27634 /* We use char because int might match the return type of a gcc2
27635    builtin and then its argument prototype would still apply.  */
27636 char $ac_func ();
27637 /* The GNU C library defines this for functions which it implements
27638     to always fail with ENOSYS.  Some functions are actually named
27639     something starting with __ and the normal name is an alias.  */
27640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27641 choke me
27642 #else
27643 char (*f) () = $ac_func;
27644 #endif
27645 #ifdef __cplusplus
27646 }
27647 #endif
27648
27649 int
27650 main ()
27651 {
27652 return f != $ac_func;
27653   ;
27654   return 0;
27655 }
27656 _ACEOF
27657 rm -f conftest.$ac_objext conftest$ac_exeext
27658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27659   (eval $ac_link) 2>conftest.er1
27660   ac_status=$?
27661   grep -v '^ *+' conftest.er1 >conftest.err
27662   rm -f conftest.er1
27663   cat conftest.err >&5
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); } &&
27666          { ac_try='test -z "$ac_c_werror_flag"
27667                          || test ! -s conftest.err'
27668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669   (eval $ac_try) 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; } &&
27673          { ac_try='test -s conftest$ac_exeext'
27674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27675   (eval $ac_try) 2>&5
27676   ac_status=$?
27677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678   (exit $ac_status); }; }; then
27679   eval "$as_ac_var=yes"
27680 else
27681   echo "$as_me: failed program was:" >&5
27682 sed 's/^/| /' conftest.$ac_ext >&5
27683
27684 eval "$as_ac_var=no"
27685 fi
27686 rm -f conftest.err conftest.$ac_objext \
27687       conftest$ac_exeext conftest.$ac_ext
27688 fi
27689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27691 if test `eval echo '${'$as_ac_var'}'` = yes; then
27692   cat >>confdefs.h <<_ACEOF
27693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27694 _ACEOF
27695
27696 fi
27697 done
27698
27699 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27700 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27701 if test "${llvm_cv_c_printf_a+set}" = set; then
27702   echo $ECHO_N "(cached) $ECHO_C" >&6
27703 else
27704   ac_ext=c
27705 ac_cpp='$CPP $CPPFLAGS'
27706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27709
27710  if test "$cross_compiling" = yes; then
27711   llvmac_cv_c_printf_a=no
27712 else
27713   cat >conftest.$ac_ext <<_ACEOF
27714
27715   /* confdefs.h.  */
27716 _ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h.  */
27720
27721 #include <stdio.h>
27722 #include <stdlib.h>
27723
27724 int
27725 main ()
27726 {
27727
27728 volatile double A, B;
27729 char Buffer[100];
27730 A = 1;
27731 A /= 10.0;
27732 sprintf(Buffer, "%a", A);
27733 B = atof(Buffer);
27734 if (A != B)
27735   return (1);
27736 if (A != 0x1.999999999999ap-4)
27737   return (1);
27738 return (0);
27739   ;
27740   return 0;
27741 }
27742 _ACEOF
27743 rm -f conftest$ac_exeext
27744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27745   (eval $ac_link) 2>&5
27746   ac_status=$?
27747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750   (eval $ac_try) 2>&5
27751   ac_status=$?
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); }; }; then
27754   llvm_cv_c_printf_a=yes
27755 else
27756   echo "$as_me: program exited with status $ac_status" >&5
27757 echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760 ( exit $ac_status )
27761 llvmac_cv_c_printf_a=no
27762 fi
27763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27764 fi
27765  ac_ext=c
27766 ac_cpp='$CPP $CPPFLAGS'
27767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27770
27771 fi
27772 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27773 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27774  if test "$llvm_cv_c_printf_a" = "yes"; then
27775
27776 cat >>confdefs.h <<\_ACEOF
27777 #define HAVE_PRINTF_A 1
27778 _ACEOF
27779
27780  fi
27781
27782 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27783 # for constant arguments.  Useless!
27784 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27785 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27786 if test "${ac_cv_working_alloca_h+set}" = set; then
27787   echo $ECHO_N "(cached) $ECHO_C" >&6
27788 else
27789   cat >conftest.$ac_ext <<_ACEOF
27790 /* confdefs.h.  */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h.  */
27795 #include <alloca.h>
27796 int
27797 main ()
27798 {
27799 char *p = (char *) alloca (2 * sizeof (int));
27800   ;
27801   return 0;
27802 }
27803 _ACEOF
27804 rm -f conftest.$ac_objext conftest$ac_exeext
27805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27806   (eval $ac_link) 2>conftest.er1
27807   ac_status=$?
27808   grep -v '^ *+' conftest.er1 >conftest.err
27809   rm -f conftest.er1
27810   cat conftest.err >&5
27811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812   (exit $ac_status); } &&
27813          { ac_try='test -z "$ac_c_werror_flag"
27814                          || test ! -s conftest.err'
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); }; } &&
27820          { ac_try='test -s conftest$ac_exeext'
27821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822   (eval $ac_try) 2>&5
27823   ac_status=$?
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); }; }; then
27826   ac_cv_working_alloca_h=yes
27827 else
27828   echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27830
27831 ac_cv_working_alloca_h=no
27832 fi
27833 rm -f conftest.err conftest.$ac_objext \
27834       conftest$ac_exeext conftest.$ac_ext
27835 fi
27836 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27837 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27838 if test $ac_cv_working_alloca_h = yes; then
27839
27840 cat >>confdefs.h <<\_ACEOF
27841 #define HAVE_ALLOCA_H 1
27842 _ACEOF
27843
27844 fi
27845
27846 echo "$as_me:$LINENO: checking for alloca" >&5
27847 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27848 if test "${ac_cv_func_alloca_works+set}" = set; then
27849   echo $ECHO_N "(cached) $ECHO_C" >&6
27850 else
27851   cat >conftest.$ac_ext <<_ACEOF
27852 /* confdefs.h.  */
27853 _ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h.  */
27857 #ifdef __GNUC__
27858 # define alloca __builtin_alloca
27859 #else
27860 # ifdef _MSC_VER
27861 #  include <malloc.h>
27862 #  define alloca _alloca
27863 # else
27864 #  if HAVE_ALLOCA_H
27865 #   include <alloca.h>
27866 #  else
27867 #   ifdef _AIX
27868  #pragma alloca
27869 #   else
27870 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27871 char *alloca ();
27872 #    endif
27873 #   endif
27874 #  endif
27875 # endif
27876 #endif
27877
27878 int
27879 main ()
27880 {
27881 char *p = (char *) alloca (1);
27882   ;
27883   return 0;
27884 }
27885 _ACEOF
27886 rm -f conftest.$ac_objext conftest$ac_exeext
27887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27888   (eval $ac_link) 2>conftest.er1
27889   ac_status=$?
27890   grep -v '^ *+' conftest.er1 >conftest.err
27891   rm -f conftest.er1
27892   cat conftest.err >&5
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); } &&
27895          { ac_try='test -z "$ac_c_werror_flag"
27896                          || test ! -s conftest.err'
27897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898   (eval $ac_try) 2>&5
27899   ac_status=$?
27900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); }; } &&
27902          { ac_try='test -s conftest$ac_exeext'
27903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904   (eval $ac_try) 2>&5
27905   ac_status=$?
27906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907   (exit $ac_status); }; }; then
27908   ac_cv_func_alloca_works=yes
27909 else
27910   echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27912
27913 ac_cv_func_alloca_works=no
27914 fi
27915 rm -f conftest.err conftest.$ac_objext \
27916       conftest$ac_exeext conftest.$ac_ext
27917 fi
27918 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27919 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27920
27921 if test $ac_cv_func_alloca_works = yes; then
27922
27923 cat >>confdefs.h <<\_ACEOF
27924 #define HAVE_ALLOCA 1
27925 _ACEOF
27926
27927 else
27928   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27929 # that cause trouble.  Some versions do not even contain alloca or
27930 # contain a buggy version.  If you still want to use their alloca,
27931 # use ar to extract alloca.o from them instead of compiling alloca.c.
27932
27933 ALLOCA=alloca.$ac_objext
27934
27935 cat >>confdefs.h <<\_ACEOF
27936 #define C_ALLOCA 1
27937 _ACEOF
27938
27939
27940 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27941 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27942 if test "${ac_cv_os_cray+set}" = set; then
27943   echo $ECHO_N "(cached) $ECHO_C" >&6
27944 else
27945   cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951 #if defined(CRAY) && ! defined(CRAY2)
27952 webecray
27953 #else
27954 wenotbecray
27955 #endif
27956
27957 _ACEOF
27958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27959   $EGREP "webecray" >/dev/null 2>&1; then
27960   ac_cv_os_cray=yes
27961 else
27962   ac_cv_os_cray=no
27963 fi
27964 rm -f conftest*
27965
27966 fi
27967 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27968 echo "${ECHO_T}$ac_cv_os_cray" >&6
27969 if test $ac_cv_os_cray = yes; then
27970   for ac_func in _getb67 GETB67 getb67; do
27971     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27972 echo "$as_me:$LINENO: checking for $ac_func" >&5
27973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27974 if eval "test \"\${$as_ac_var+set}\" = set"; then
27975   echo $ECHO_N "(cached) $ECHO_C" >&6
27976 else
27977   cat >conftest.$ac_ext <<_ACEOF
27978 /* confdefs.h.  */
27979 _ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h.  */
27983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27985 #define $ac_func innocuous_$ac_func
27986
27987 /* System header to define __stub macros and hopefully few prototypes,
27988     which can conflict with char $ac_func (); below.
27989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27990     <limits.h> exists even on freestanding compilers.  */
27991
27992 #ifdef __STDC__
27993 # include <limits.h>
27994 #else
27995 # include <assert.h>
27996 #endif
27997
27998 #undef $ac_func
27999
28000 /* Override any gcc2 internal prototype to avoid an error.  */
28001 #ifdef __cplusplus
28002 extern "C"
28003 {
28004 #endif
28005 /* We use char because int might match the return type of a gcc2
28006    builtin and then its argument prototype would still apply.  */
28007 char $ac_func ();
28008 /* The GNU C library defines this for functions which it implements
28009     to always fail with ENOSYS.  Some functions are actually named
28010     something starting with __ and the normal name is an alias.  */
28011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28012 choke me
28013 #else
28014 char (*f) () = $ac_func;
28015 #endif
28016 #ifdef __cplusplus
28017 }
28018 #endif
28019
28020 int
28021 main ()
28022 {
28023 return f != $ac_func;
28024   ;
28025   return 0;
28026 }
28027 _ACEOF
28028 rm -f conftest.$ac_objext conftest$ac_exeext
28029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28030   (eval $ac_link) 2>conftest.er1
28031   ac_status=$?
28032   grep -v '^ *+' conftest.er1 >conftest.err
28033   rm -f conftest.er1
28034   cat conftest.err >&5
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); } &&
28037          { ac_try='test -z "$ac_c_werror_flag"
28038                          || test ! -s conftest.err'
28039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040   (eval $ac_try) 2>&5
28041   ac_status=$?
28042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043   (exit $ac_status); }; } &&
28044          { ac_try='test -s conftest$ac_exeext'
28045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28046   (eval $ac_try) 2>&5
28047   ac_status=$?
28048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049   (exit $ac_status); }; }; then
28050   eval "$as_ac_var=yes"
28051 else
28052   echo "$as_me: failed program was:" >&5
28053 sed 's/^/| /' conftest.$ac_ext >&5
28054
28055 eval "$as_ac_var=no"
28056 fi
28057 rm -f conftest.err conftest.$ac_objext \
28058       conftest$ac_exeext conftest.$ac_ext
28059 fi
28060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28062 if test `eval echo '${'$as_ac_var'}'` = yes; then
28063
28064 cat >>confdefs.h <<_ACEOF
28065 #define CRAY_STACKSEG_END $ac_func
28066 _ACEOF
28067
28068     break
28069 fi
28070
28071   done
28072 fi
28073
28074 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28075 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28076 if test "${ac_cv_c_stack_direction+set}" = set; then
28077   echo $ECHO_N "(cached) $ECHO_C" >&6
28078 else
28079   if test "$cross_compiling" = yes; then
28080   ac_cv_c_stack_direction=0
28081 else
28082   cat >conftest.$ac_ext <<_ACEOF
28083 /* confdefs.h.  */
28084 _ACEOF
28085 cat confdefs.h >>conftest.$ac_ext
28086 cat >>conftest.$ac_ext <<_ACEOF
28087 /* end confdefs.h.  */
28088 int
28089 find_stack_direction ()
28090 {
28091   static char *addr = 0;
28092   auto char dummy;
28093   if (addr == 0)
28094     {
28095       addr = &dummy;
28096       return find_stack_direction ();
28097     }
28098   else
28099     return (&dummy > addr) ? 1 : -1;
28100 }
28101
28102 int
28103 main ()
28104 {
28105   exit (find_stack_direction () < 0);
28106 }
28107 _ACEOF
28108 rm -f conftest$ac_exeext
28109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28110   (eval $ac_link) 2>&5
28111   ac_status=$?
28112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115   (eval $ac_try) 2>&5
28116   ac_status=$?
28117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118   (exit $ac_status); }; }; then
28119   ac_cv_c_stack_direction=1
28120 else
28121   echo "$as_me: program exited with status $ac_status" >&5
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125 ( exit $ac_status )
28126 ac_cv_c_stack_direction=-1
28127 fi
28128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28129 fi
28130 fi
28131 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28132 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28133
28134 cat >>confdefs.h <<_ACEOF
28135 #define STACK_DIRECTION $ac_cv_c_stack_direction
28136 _ACEOF
28137
28138
28139 fi
28140
28141
28142 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28143 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28144 if test "${ac_cv_func_rand48+set}" = set; then
28145   echo $ECHO_N "(cached) $ECHO_C" >&6
28146 else
28147   ac_ext=cc
28148 ac_cpp='$CXXCPP $CPPFLAGS'
28149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28152
28153    cat >conftest.$ac_ext <<_ACEOF
28154 /* confdefs.h.  */
28155 _ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h.  */
28159 #include <stdlib.h>
28160 int
28161 main ()
28162 {
28163 srand48(0);lrand48();drand48();
28164   ;
28165   return 0;
28166 }
28167 _ACEOF
28168 rm -f conftest.$ac_objext
28169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28170   (eval $ac_compile) 2>conftest.er1
28171   ac_status=$?
28172   grep -v '^ *+' conftest.er1 >conftest.err
28173   rm -f conftest.er1
28174   cat conftest.err >&5
28175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176   (exit $ac_status); } &&
28177          { ac_try='test -z "$ac_cxx_werror_flag"
28178                          || test ! -s conftest.err'
28179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180   (eval $ac_try) 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); }; } &&
28184          { ac_try='test -s conftest.$ac_objext'
28185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186   (eval $ac_try) 2>&5
28187   ac_status=$?
28188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); }; }; then
28190   ac_cv_func_rand48=yes
28191 else
28192   echo "$as_me: failed program was:" >&5
28193 sed 's/^/| /' conftest.$ac_ext >&5
28194
28195 ac_cv_func_rand48=no
28196 fi
28197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28198   ac_ext=c
28199 ac_cpp='$CPP $CPPFLAGS'
28200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28203
28204 fi
28205 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28206 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28207
28208 if test "$ac_cv_func_rand48" = "yes" ; then
28209
28210 cat >>confdefs.h <<\_ACEOF
28211 #define HAVE_RAND48 1
28212 _ACEOF
28213
28214 fi
28215
28216
28217 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28218 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28219 if test "${ac_cv_cxx_namespaces+set}" = set; then
28220   echo $ECHO_N "(cached) $ECHO_C" >&6
28221 else
28222   ac_ext=cc
28223 ac_cpp='$CXXCPP $CPPFLAGS'
28224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28227
28228  cat >conftest.$ac_ext <<_ACEOF
28229 /* confdefs.h.  */
28230 _ACEOF
28231 cat confdefs.h >>conftest.$ac_ext
28232 cat >>conftest.$ac_ext <<_ACEOF
28233 /* end confdefs.h.  */
28234 namespace Outer { namespace Inner { int i = 0; }}
28235 int
28236 main ()
28237 {
28238 using namespace Outer::Inner; return i;
28239   ;
28240   return 0;
28241 }
28242 _ACEOF
28243 rm -f conftest.$ac_objext
28244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28245   (eval $ac_compile) 2>conftest.er1
28246   ac_status=$?
28247   grep -v '^ *+' conftest.er1 >conftest.err
28248   rm -f conftest.er1
28249   cat conftest.err >&5
28250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251   (exit $ac_status); } &&
28252          { ac_try='test -z "$ac_cxx_werror_flag"
28253                          || test ! -s conftest.err'
28254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255   (eval $ac_try) 2>&5
28256   ac_status=$?
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); }; } &&
28259          { ac_try='test -s conftest.$ac_objext'
28260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261   (eval $ac_try) 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); }; }; then
28265   ac_cv_cxx_namespaces=yes
28266 else
28267   echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28269
28270 ac_cv_cxx_namespaces=no
28271 fi
28272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28273  ac_ext=c
28274 ac_cpp='$CPP $CPPFLAGS'
28275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28278
28279
28280 fi
28281 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28282 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28283 if test "$ac_cv_cxx_namespaces" = yes; then
28284
28285 cat >>confdefs.h <<\_ACEOF
28286 #define HAVE_NAMESPACES
28287 _ACEOF
28288
28289 fi
28290
28291 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28292 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28293 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28294   echo $ECHO_N "(cached) $ECHO_C" >&6
28295 else
28296
28297   ac_ext=cc
28298 ac_cpp='$CXXCPP $CPPFLAGS'
28299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28302
28303   cat >conftest.$ac_ext <<_ACEOF
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309 #include <ext/hash_map>
28310 #ifdef HAVE_NAMESPACES
28311 using namespace std;
28312 #endif
28313 int
28314 main ()
28315 {
28316 hash_map<int, int> t;
28317   ;
28318   return 0;
28319 }
28320 _ACEOF
28321 rm -f conftest.$ac_objext
28322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28323   (eval $ac_compile) 2>conftest.er1
28324   ac_status=$?
28325   grep -v '^ *+' conftest.er1 >conftest.err
28326   rm -f conftest.er1
28327   cat conftest.err >&5
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); } &&
28330          { ac_try='test -z "$ac_cxx_werror_flag"
28331                          || test ! -s conftest.err'
28332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333   (eval $ac_try) 2>&5
28334   ac_status=$?
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); }; } &&
28337          { ac_try='test -s conftest.$ac_objext'
28338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339   (eval $ac_try) 2>&5
28340   ac_status=$?
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); }; }; then
28343   ac_cv_cxx_have_std_ext_hash_map=yes
28344 else
28345   echo "$as_me: failed program was:" >&5
28346 sed 's/^/| /' conftest.$ac_ext >&5
28347
28348 ac_cv_cxx_have_std_ext_hash_map=no
28349 fi
28350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28351   ac_ext=c
28352 ac_cpp='$CPP $CPPFLAGS'
28353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28356
28357 fi
28358 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28359 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28360  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28361  then
28362
28363 cat >>confdefs.h <<\_ACEOF
28364 #define HAVE_STD_EXT_HASH_MAP 1
28365 _ACEOF
28366
28367  else
28368
28369 cat >>confdefs.h <<\_ACEOF
28370 #define HAVE_STD_EXT_HASH_MAP 0
28371 _ACEOF
28372
28373  fi
28374
28375  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28376 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28377 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28378   echo $ECHO_N "(cached) $ECHO_C" >&6
28379 else
28380
28381   ac_ext=cc
28382 ac_cpp='$CXXCPP $CPPFLAGS'
28383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28386
28387   cat >conftest.$ac_ext <<_ACEOF
28388 /* confdefs.h.  */
28389 _ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h.  */
28393 #include <ext/hash_map>
28394 #ifdef HAVE_NAMESPACES
28395 using namespace __gnu_cxx;
28396 #endif
28397 int
28398 main ()
28399 {
28400 hash_map<int,int> t;
28401   ;
28402   return 0;
28403 }
28404 _ACEOF
28405 rm -f conftest.$ac_objext
28406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28407   (eval $ac_compile) 2>conftest.er1
28408   ac_status=$?
28409   grep -v '^ *+' conftest.er1 >conftest.err
28410   rm -f conftest.er1
28411   cat conftest.err >&5
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); } &&
28414          { ac_try='test -z "$ac_cxx_werror_flag"
28415                          || test ! -s conftest.err'
28416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417   (eval $ac_try) 2>&5
28418   ac_status=$?
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; } &&
28421          { ac_try='test -s conftest.$ac_objext'
28422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423   (eval $ac_try) 2>&5
28424   ac_status=$?
28425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426   (exit $ac_status); }; }; then
28427   ac_cv_cxx_have_gnu_ext_hash_map=yes
28428 else
28429   echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28431
28432 ac_cv_cxx_have_gnu_ext_hash_map=no
28433 fi
28434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28435   ac_ext=c
28436 ac_cpp='$CPP $CPPFLAGS'
28437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28440
28441 fi
28442 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28443 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28444  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28445  then
28446
28447 cat >>confdefs.h <<\_ACEOF
28448 #define HAVE_GNU_EXT_HASH_MAP 1
28449 _ACEOF
28450
28451  else
28452
28453 cat >>confdefs.h <<\_ACEOF
28454 #define HAVE_GNU_EXT_HASH_MAP 0
28455 _ACEOF
28456
28457  fi
28458
28459  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28460 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28461 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28462   echo $ECHO_N "(cached) $ECHO_C" >&6
28463 else
28464
28465   ac_ext=cc
28466 ac_cpp='$CXXCPP $CPPFLAGS'
28467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28470
28471   cat >conftest.$ac_ext <<_ACEOF
28472 /* confdefs.h.  */
28473 _ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h.  */
28477 #include <hash_map>
28478 int
28479 main ()
28480 {
28481 hash_map<int,int> t;
28482   ;
28483   return 0;
28484 }
28485 _ACEOF
28486 rm -f conftest.$ac_objext
28487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28488   (eval $ac_compile) 2>conftest.er1
28489   ac_status=$?
28490   grep -v '^ *+' conftest.er1 >conftest.err
28491   rm -f conftest.er1
28492   cat conftest.err >&5
28493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494   (exit $ac_status); } &&
28495          { ac_try='test -z "$ac_cxx_werror_flag"
28496                          || test ! -s conftest.err'
28497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28498   (eval $ac_try) 2>&5
28499   ac_status=$?
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); }; } &&
28502          { ac_try='test -s conftest.$ac_objext'
28503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504   (eval $ac_try) 2>&5
28505   ac_status=$?
28506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507   (exit $ac_status); }; }; then
28508   ac_cv_cxx_have_global_hash_map=yes
28509 else
28510   echo "$as_me: failed program was:" >&5
28511 sed 's/^/| /' conftest.$ac_ext >&5
28512
28513 ac_cv_cxx_have_global_hash_map=no
28514 fi
28515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28516   ac_ext=c
28517 ac_cpp='$CPP $CPPFLAGS'
28518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28521
28522 fi
28523 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28524 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28525  if test "$ac_cv_cxx_have_global_hash_map" = yes
28526  then
28527
28528 cat >>confdefs.h <<\_ACEOF
28529 #define HAVE_GLOBAL_HASH_MAP 1
28530 _ACEOF
28531
28532  else
28533
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_GLOBAL_HASH_MAP 0
28536 _ACEOF
28537
28538  fi
28539
28540 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28541 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28542 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28543   echo $ECHO_N "(cached) $ECHO_C" >&6
28544 else
28545
28546   ac_ext=cc
28547 ac_cpp='$CXXCPP $CPPFLAGS'
28548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28551
28552   cat >conftest.$ac_ext <<_ACEOF
28553 /* confdefs.h.  */
28554 _ACEOF
28555 cat confdefs.h >>conftest.$ac_ext
28556 cat >>conftest.$ac_ext <<_ACEOF
28557 /* end confdefs.h.  */
28558 #include <ext/hash_set>
28559 #ifdef HAVE_NAMESPACES
28560 using namespace std;
28561 #endif
28562 int
28563 main ()
28564 {
28565 hash_set<int> t;
28566   ;
28567   return 0;
28568 }
28569 _ACEOF
28570 rm -f conftest.$ac_objext
28571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28572   (eval $ac_compile) 2>conftest.er1
28573   ac_status=$?
28574   grep -v '^ *+' conftest.er1 >conftest.err
28575   rm -f conftest.er1
28576   cat conftest.err >&5
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); } &&
28579          { ac_try='test -z "$ac_cxx_werror_flag"
28580                          || test ! -s conftest.err'
28581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582   (eval $ac_try) 2>&5
28583   ac_status=$?
28584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585   (exit $ac_status); }; } &&
28586          { ac_try='test -s conftest.$ac_objext'
28587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588   (eval $ac_try) 2>&5
28589   ac_status=$?
28590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591   (exit $ac_status); }; }; then
28592   ac_cv_cxx_have_std_ext_hash_set=yes
28593 else
28594   echo "$as_me: failed program was:" >&5
28595 sed 's/^/| /' conftest.$ac_ext >&5
28596
28597 ac_cv_cxx_have_std_ext_hash_set=no
28598 fi
28599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28600   ac_ext=c
28601 ac_cpp='$CPP $CPPFLAGS'
28602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28605
28606 fi
28607 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28608 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28609  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28610  then
28611
28612 cat >>confdefs.h <<\_ACEOF
28613 #define HAVE_STD_EXT_HASH_SET 1
28614 _ACEOF
28615
28616  else
28617
28618 cat >>confdefs.h <<\_ACEOF
28619 #define HAVE_STD_EXT_HASH_SET 0
28620 _ACEOF
28621
28622  fi
28623
28624  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28625 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28626 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28627   echo $ECHO_N "(cached) $ECHO_C" >&6
28628 else
28629
28630   ac_ext=cc
28631 ac_cpp='$CXXCPP $CPPFLAGS'
28632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28635
28636   cat >conftest.$ac_ext <<_ACEOF
28637 /* confdefs.h.  */
28638 _ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h.  */
28642 #include <ext/hash_set>
28643 #ifdef HAVE_NAMESPACES
28644 using namespace __gnu_cxx;
28645 #endif
28646 int
28647 main ()
28648 {
28649 hash_set<int> t;
28650   ;
28651   return 0;
28652 }
28653 _ACEOF
28654 rm -f conftest.$ac_objext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656   (eval $ac_compile) 2>conftest.er1
28657   ac_status=$?
28658   grep -v '^ *+' conftest.er1 >conftest.err
28659   rm -f conftest.er1
28660   cat conftest.err >&5
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } &&
28663          { ac_try='test -z "$ac_cxx_werror_flag"
28664                          || test ! -s conftest.err'
28665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666   (eval $ac_try) 2>&5
28667   ac_status=$?
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); }; } &&
28670          { ac_try='test -s conftest.$ac_objext'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; }; then
28676   ac_cv_cxx_have_gnu_ext_hash_set=yes
28677 else
28678   echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28680
28681 ac_cv_cxx_have_gnu_ext_hash_set=no
28682 fi
28683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28684   ac_ext=c
28685 ac_cpp='$CPP $CPPFLAGS'
28686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28689
28690 fi
28691 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28692 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28693  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28694  then
28695
28696 cat >>confdefs.h <<\_ACEOF
28697 #define HAVE_GNU_EXT_HASH_SET 1
28698 _ACEOF
28699
28700  else
28701
28702 cat >>confdefs.h <<\_ACEOF
28703 #define HAVE_GNU_EXT_HASH_SET 0
28704 _ACEOF
28705
28706  fi
28707
28708  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28709 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28710 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28711   echo $ECHO_N "(cached) $ECHO_C" >&6
28712 else
28713
28714   ac_ext=cc
28715 ac_cpp='$CXXCPP $CPPFLAGS'
28716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28719
28720   cat >conftest.$ac_ext <<_ACEOF
28721 /* confdefs.h.  */
28722 _ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h.  */
28726 #include <hash_set>
28727 int
28728 main ()
28729 {
28730 hash_set<int> t; return 0;
28731   ;
28732   return 0;
28733 }
28734 _ACEOF
28735 rm -f conftest.$ac_objext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28737   (eval $ac_compile) 2>conftest.er1
28738   ac_status=$?
28739   grep -v '^ *+' conftest.er1 >conftest.err
28740   rm -f conftest.er1
28741   cat conftest.err >&5
28742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743   (exit $ac_status); } &&
28744          { ac_try='test -z "$ac_cxx_werror_flag"
28745                          || test ! -s conftest.err'
28746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747   (eval $ac_try) 2>&5
28748   ac_status=$?
28749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750   (exit $ac_status); }; } &&
28751          { ac_try='test -s conftest.$ac_objext'
28752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753   (eval $ac_try) 2>&5
28754   ac_status=$?
28755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756   (exit $ac_status); }; }; then
28757   ac_cv_cxx_have_global_hash_set=yes
28758 else
28759   echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28761
28762 ac_cv_cxx_have_global_hash_set=no
28763 fi
28764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28765   ac_ext=c
28766 ac_cpp='$CPP $CPPFLAGS'
28767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28770
28771 fi
28772 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28773 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28774  if test "$ac_cv_cxx_have_global_hash_set" = yes
28775  then
28776
28777 cat >>confdefs.h <<\_ACEOF
28778 #define HAVE_GLOBAL_HASH_SET 1
28779 _ACEOF
28780
28781  else
28782
28783 cat >>confdefs.h <<\_ACEOF
28784 #define HAVE_GLOBAL_HASH_SET 0
28785 _ACEOF
28786
28787  fi
28788
28789 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28790 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28791 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28792   echo $ECHO_N "(cached) $ECHO_C" >&6
28793 else
28794
28795   ac_ext=cc
28796 ac_cpp='$CXXCPP $CPPFLAGS'
28797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28800
28801   cat >conftest.$ac_ext <<_ACEOF
28802 /* confdefs.h.  */
28803 _ACEOF
28804 cat confdefs.h >>conftest.$ac_ext
28805 cat >>conftest.$ac_ext <<_ACEOF
28806 /* end confdefs.h.  */
28807 #include <iterator>
28808 #ifdef HAVE_NAMESPACES
28809 using namespace std;
28810 #endif
28811 int
28812 main ()
28813 {
28814 iterator<int,int,int> t; return 0;
28815   ;
28816   return 0;
28817 }
28818 _ACEOF
28819 rm -f conftest.$ac_objext
28820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28821   (eval $ac_compile) 2>conftest.er1
28822   ac_status=$?
28823   grep -v '^ *+' conftest.er1 >conftest.err
28824   rm -f conftest.er1
28825   cat conftest.err >&5
28826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827   (exit $ac_status); } &&
28828          { ac_try='test -z "$ac_cxx_werror_flag"
28829                          || test ! -s conftest.err'
28830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831   (eval $ac_try) 2>&5
28832   ac_status=$?
28833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834   (exit $ac_status); }; } &&
28835          { ac_try='test -s conftest.$ac_objext'
28836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837   (eval $ac_try) 2>&5
28838   ac_status=$?
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; }; then
28841   ac_cv_cxx_have_std_iterator=yes
28842 else
28843   echo "$as_me: failed program was:" >&5
28844 sed 's/^/| /' conftest.$ac_ext >&5
28845
28846 ac_cv_cxx_have_std_iterator=no
28847 fi
28848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28849   ac_ext=c
28850 ac_cpp='$CPP $CPPFLAGS'
28851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28854
28855
28856 fi
28857 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28858 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28859 if test "$ac_cv_cxx_have_std_iterator" = yes
28860 then
28861
28862 cat >>confdefs.h <<\_ACEOF
28863 #define HAVE_STD_ITERATOR 1
28864 _ACEOF
28865
28866 else
28867
28868 cat >>confdefs.h <<\_ACEOF
28869 #define HAVE_STD_ITERATOR 0
28870 _ACEOF
28871
28872 fi
28873
28874 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28875 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28876 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28877   echo $ECHO_N "(cached) $ECHO_C" >&6
28878 else
28879
28880   ac_ext=cc
28881 ac_cpp='$CXXCPP $CPPFLAGS'
28882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28885
28886   cat >conftest.$ac_ext <<_ACEOF
28887 /* confdefs.h.  */
28888 _ACEOF
28889 cat confdefs.h >>conftest.$ac_ext
28890 cat >>conftest.$ac_ext <<_ACEOF
28891 /* end confdefs.h.  */
28892 #include <iterator>
28893 #ifdef HAVE_NAMESPACES
28894 using namespace std;
28895 #endif
28896 int
28897 main ()
28898 {
28899 bidirectional_iterator<int,int> t; return 0;
28900   ;
28901   return 0;
28902 }
28903 _ACEOF
28904 rm -f conftest.$ac_objext
28905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28906   (eval $ac_compile) 2>conftest.er1
28907   ac_status=$?
28908   grep -v '^ *+' conftest.er1 >conftest.err
28909   rm -f conftest.er1
28910   cat conftest.err >&5
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); } &&
28913          { ac_try='test -z "$ac_cxx_werror_flag"
28914                          || test ! -s conftest.err'
28915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916   (eval $ac_try) 2>&5
28917   ac_status=$?
28918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919   (exit $ac_status); }; } &&
28920          { ac_try='test -s conftest.$ac_objext'
28921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922   (eval $ac_try) 2>&5
28923   ac_status=$?
28924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925   (exit $ac_status); }; }; then
28926   ac_cv_cxx_have_bi_iterator=yes
28927 else
28928   echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28930
28931 ac_cv_cxx_have_bi_iterator=no
28932 fi
28933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28934   ac_ext=c
28935 ac_cpp='$CPP $CPPFLAGS'
28936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28939
28940
28941 fi
28942 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28943 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28944 if test "$ac_cv_cxx_have_bi_iterator" = yes
28945 then
28946
28947 cat >>confdefs.h <<\_ACEOF
28948 #define HAVE_BI_ITERATOR 1
28949 _ACEOF
28950
28951 else
28952
28953 cat >>confdefs.h <<\_ACEOF
28954 #define HAVE_BI_ITERATOR 0
28955 _ACEOF
28956
28957 fi
28958
28959 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28960 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28961 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28962   echo $ECHO_N "(cached) $ECHO_C" >&6
28963 else
28964
28965   ac_ext=cc
28966 ac_cpp='$CXXCPP $CPPFLAGS'
28967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28970
28971   cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h.  */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h.  */
28977 #include <iterator>
28978 #ifdef HAVE_NAMESPACES
28979 using namespace std;
28980 #endif
28981 int
28982 main ()
28983 {
28984 forward_iterator<int,int> t; return 0;
28985   ;
28986   return 0;
28987 }
28988 _ACEOF
28989 rm -f conftest.$ac_objext
28990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28991   (eval $ac_compile) 2>conftest.er1
28992   ac_status=$?
28993   grep -v '^ *+' conftest.er1 >conftest.err
28994   rm -f conftest.er1
28995   cat conftest.err >&5
28996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997   (exit $ac_status); } &&
28998          { ac_try='test -z "$ac_cxx_werror_flag"
28999                          || test ! -s conftest.err'
29000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29001   (eval $ac_try) 2>&5
29002   ac_status=$?
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); }; } &&
29005          { ac_try='test -s conftest.$ac_objext'
29006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29007   (eval $ac_try) 2>&5
29008   ac_status=$?
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); }; }; then
29011   ac_cv_cxx_have_fwd_iterator=yes
29012 else
29013   echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29015
29016 ac_cv_cxx_have_fwd_iterator=no
29017 fi
29018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29019   ac_ext=c
29020 ac_cpp='$CPP $CPPFLAGS'
29021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29024
29025
29026 fi
29027 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29028 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29029 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29030 then
29031
29032 cat >>confdefs.h <<\_ACEOF
29033 #define HAVE_FWD_ITERATOR 1
29034 _ACEOF
29035
29036 else
29037
29038 cat >>confdefs.h <<\_ACEOF
29039 #define HAVE_FWD_ITERATOR 0
29040 _ACEOF
29041
29042 fi
29043
29044
29045 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29046 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29047 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29048   echo $ECHO_N "(cached) $ECHO_C" >&6
29049 else
29050   ac_ext=cc
29051 ac_cpp='$CXXCPP $CPPFLAGS'
29052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29055
29056    cat >conftest.$ac_ext <<_ACEOF
29057 /* confdefs.h.  */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h.  */
29062 #include <math.h>
29063 int
29064 main ()
29065 {
29066 float f; isnan(f);
29067   ;
29068   return 0;
29069 }
29070 _ACEOF
29071 rm -f conftest.$ac_objext
29072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29073   (eval $ac_compile) 2>conftest.er1
29074   ac_status=$?
29075   grep -v '^ *+' conftest.er1 >conftest.err
29076   rm -f conftest.er1
29077   cat conftest.err >&5
29078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079   (exit $ac_status); } &&
29080          { ac_try='test -z "$ac_cxx_werror_flag"
29081                          || test ! -s conftest.err'
29082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083   (eval $ac_try) 2>&5
29084   ac_status=$?
29085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086   (exit $ac_status); }; } &&
29087          { ac_try='test -s conftest.$ac_objext'
29088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089   (eval $ac_try) 2>&5
29090   ac_status=$?
29091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092   (exit $ac_status); }; }; then
29093   ac_cv_func_isnan_in_math_h=yes
29094 else
29095   echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29097
29098 ac_cv_func_isnan_in_math_h=no
29099 fi
29100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29101   ac_ext=c
29102 ac_cpp='$CPP $CPPFLAGS'
29103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29106
29107 fi
29108 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29109 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29110
29111
29112 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29113
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_ISNAN_IN_MATH_H 1
29116 _ACEOF
29117
29118 fi
29119
29120 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29121 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29122 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29123   echo $ECHO_N "(cached) $ECHO_C" >&6
29124 else
29125   ac_ext=cc
29126 ac_cpp='$CXXCPP $CPPFLAGS'
29127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29130
29131    cat >conftest.$ac_ext <<_ACEOF
29132 /* confdefs.h.  */
29133 _ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h.  */
29137 #include <cmath>
29138 int
29139 main ()
29140 {
29141 float f; isnan(f);
29142   ;
29143   return 0;
29144 }
29145 _ACEOF
29146 rm -f conftest.$ac_objext
29147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29148   (eval $ac_compile) 2>conftest.er1
29149   ac_status=$?
29150   grep -v '^ *+' conftest.er1 >conftest.err
29151   rm -f conftest.er1
29152   cat conftest.err >&5
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); } &&
29155          { ac_try='test -z "$ac_cxx_werror_flag"
29156                          || test ! -s conftest.err'
29157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158   (eval $ac_try) 2>&5
29159   ac_status=$?
29160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161   (exit $ac_status); }; } &&
29162          { ac_try='test -s conftest.$ac_objext'
29163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164   (eval $ac_try) 2>&5
29165   ac_status=$?
29166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167   (exit $ac_status); }; }; then
29168   ac_cv_func_isnan_in_cmath=yes
29169 else
29170   echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29172
29173 ac_cv_func_isnan_in_cmath=no
29174 fi
29175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29176   ac_ext=c
29177 ac_cpp='$CPP $CPPFLAGS'
29178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29181
29182 fi
29183 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29184 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29185
29186 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29187
29188 cat >>confdefs.h <<\_ACEOF
29189 #define HAVE_ISNAN_IN_CMATH 1
29190 _ACEOF
29191
29192 fi
29193
29194 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29195 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29196 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29197   echo $ECHO_N "(cached) $ECHO_C" >&6
29198 else
29199   ac_ext=cc
29200 ac_cpp='$CXXCPP $CPPFLAGS'
29201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29204
29205    cat >conftest.$ac_ext <<_ACEOF
29206 /* confdefs.h.  */
29207 _ACEOF
29208 cat confdefs.h >>conftest.$ac_ext
29209 cat >>conftest.$ac_ext <<_ACEOF
29210 /* end confdefs.h.  */
29211 #include <cmath>
29212 int
29213 main ()
29214 {
29215 float f; std::isnan(f);
29216   ;
29217   return 0;
29218 }
29219 _ACEOF
29220 rm -f conftest.$ac_objext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29222   (eval $ac_compile) 2>conftest.er1
29223   ac_status=$?
29224   grep -v '^ *+' conftest.er1 >conftest.err
29225   rm -f conftest.er1
29226   cat conftest.err >&5
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); } &&
29229          { ac_try='test -z "$ac_cxx_werror_flag"
29230                          || test ! -s conftest.err'
29231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232   (eval $ac_try) 2>&5
29233   ac_status=$?
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); }; } &&
29236          { ac_try='test -s conftest.$ac_objext'
29237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238   (eval $ac_try) 2>&5
29239   ac_status=$?
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); }; }; then
29242   ac_cv_func_std_isnan_in_cmath=yes
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247 ac_cv_func_std_isnan_in_cmath=no
29248 fi
29249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29250   ac_ext=c
29251 ac_cpp='$CPP $CPPFLAGS'
29252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29255
29256 fi
29257 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29258 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29259
29260 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29261
29262 cat >>confdefs.h <<\_ACEOF
29263 #define HAVE_STD_ISNAN_IN_CMATH 1
29264 _ACEOF
29265
29266 fi
29267
29268
29269 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29270 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29271 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29272   echo $ECHO_N "(cached) $ECHO_C" >&6
29273 else
29274   ac_ext=cc
29275 ac_cpp='$CXXCPP $CPPFLAGS'
29276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29279
29280    cat >conftest.$ac_ext <<_ACEOF
29281 /* confdefs.h.  */
29282 _ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h.  */
29286 #include <math.h>
29287 int
29288 main ()
29289 {
29290 float f; isinf(f);
29291   ;
29292   return 0;
29293 }
29294 _ACEOF
29295 rm -f conftest.$ac_objext
29296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29297   (eval $ac_compile) 2>conftest.er1
29298   ac_status=$?
29299   grep -v '^ *+' conftest.er1 >conftest.err
29300   rm -f conftest.er1
29301   cat conftest.err >&5
29302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303   (exit $ac_status); } &&
29304          { ac_try='test -z "$ac_cxx_werror_flag"
29305                          || test ! -s conftest.err'
29306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307   (eval $ac_try) 2>&5
29308   ac_status=$?
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); }; } &&
29311          { ac_try='test -s conftest.$ac_objext'
29312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313   (eval $ac_try) 2>&5
29314   ac_status=$?
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); }; }; then
29317   ac_cv_func_isinf_in_math_h=yes
29318 else
29319   echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29321
29322 ac_cv_func_isinf_in_math_h=no
29323 fi
29324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29325   ac_ext=c
29326 ac_cpp='$CPP $CPPFLAGS'
29327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29330
29331 fi
29332 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29333 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29334
29335 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29336
29337 cat >>confdefs.h <<\_ACEOF
29338 #define HAVE_ISINF_IN_MATH_H 1
29339 _ACEOF
29340
29341 fi
29342
29343 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29344 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29345 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29346   echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29348   ac_ext=cc
29349 ac_cpp='$CXXCPP $CPPFLAGS'
29350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29353
29354    cat >conftest.$ac_ext <<_ACEOF
29355 /* confdefs.h.  */
29356 _ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h.  */
29360 #include <cmath>
29361 int
29362 main ()
29363 {
29364 float f; isinf(f);
29365   ;
29366   return 0;
29367 }
29368 _ACEOF
29369 rm -f conftest.$ac_objext
29370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29371   (eval $ac_compile) 2>conftest.er1
29372   ac_status=$?
29373   grep -v '^ *+' conftest.er1 >conftest.err
29374   rm -f conftest.er1
29375   cat conftest.err >&5
29376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377   (exit $ac_status); } &&
29378          { ac_try='test -z "$ac_cxx_werror_flag"
29379                          || test ! -s conftest.err'
29380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381   (eval $ac_try) 2>&5
29382   ac_status=$?
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); }; } &&
29385          { ac_try='test -s conftest.$ac_objext'
29386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387   (eval $ac_try) 2>&5
29388   ac_status=$?
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); }; }; then
29391   ac_cv_func_isinf_in_cmath=yes
29392 else
29393   echo "$as_me: failed program was:" >&5
29394 sed 's/^/| /' conftest.$ac_ext >&5
29395
29396 ac_cv_func_isinf_in_cmath=no
29397 fi
29398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29399   ac_ext=c
29400 ac_cpp='$CPP $CPPFLAGS'
29401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29404
29405 fi
29406 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29407 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29408
29409 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29410
29411 cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_ISINF_IN_CMATH 1
29413 _ACEOF
29414
29415 fi
29416
29417 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29418 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29419 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29420   echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422   ac_ext=cc
29423 ac_cpp='$CXXCPP $CPPFLAGS'
29424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29427
29428    cat >conftest.$ac_ext <<_ACEOF
29429 /* confdefs.h.  */
29430 _ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h.  */
29434 #include <cmath>
29435 int
29436 main ()
29437 {
29438 float f; std::isinf(f)}
29439   ;
29440   return 0;
29441 }
29442 _ACEOF
29443 rm -f conftest.$ac_objext
29444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29445   (eval $ac_compile) 2>conftest.er1
29446   ac_status=$?
29447   grep -v '^ *+' conftest.er1 >conftest.err
29448   rm -f conftest.er1
29449   cat conftest.err >&5
29450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451   (exit $ac_status); } &&
29452          { ac_try='test -z "$ac_cxx_werror_flag"
29453                          || test ! -s conftest.err'
29454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455   (eval $ac_try) 2>&5
29456   ac_status=$?
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); }; } &&
29459          { ac_try='test -s conftest.$ac_objext'
29460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461   (eval $ac_try) 2>&5
29462   ac_status=$?
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); }; }; then
29465   ac_cv_func_std_isinf_in_cmath=yes
29466 else
29467   echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29469
29470 ac_cv_func_std_isinf_in_cmath=no
29471 fi
29472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29473   ac_ext=c
29474 ac_cpp='$CPP $CPPFLAGS'
29475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29478
29479 fi
29480 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29481 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29482
29483 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29484
29485 cat >>confdefs.h <<\_ACEOF
29486 #define HAVE_STD_ISINF_IN_CMATH 1
29487 _ACEOF
29488
29489 fi
29490
29491 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29492 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29493 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29494   echo $ECHO_N "(cached) $ECHO_C" >&6
29495 else
29496   ac_ext=cc
29497 ac_cpp='$CXXCPP $CPPFLAGS'
29498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29501
29502    cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h.  */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h.  */
29508 #include <ieeefp.h>
29509 int
29510 main ()
29511 {
29512 float f; finite(f);
29513   ;
29514   return 0;
29515 }
29516 _ACEOF
29517 rm -f conftest.$ac_objext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29519   (eval $ac_compile) 2>conftest.er1
29520   ac_status=$?
29521   grep -v '^ *+' conftest.er1 >conftest.err
29522   rm -f conftest.er1
29523   cat conftest.err >&5
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); } &&
29526          { ac_try='test -z "$ac_cxx_werror_flag"
29527                          || test ! -s conftest.err'
29528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529   (eval $ac_try) 2>&5
29530   ac_status=$?
29531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532   (exit $ac_status); }; } &&
29533          { ac_try='test -s conftest.$ac_objext'
29534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535   (eval $ac_try) 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; }; then
29539   ac_cv_func_finite_in_ieeefp_h=yes
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544 ac_cv_func_finite_in_ieeefp_h=no
29545 fi
29546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29547   ac_ext=c
29548 ac_cpp='$CPP $CPPFLAGS'
29549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29552
29553 fi
29554 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29555 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29556
29557 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29558
29559 cat >>confdefs.h <<\_ACEOF
29560 #define HAVE_FINITE_IN_IEEEFP_H 1
29561 _ACEOF
29562
29563 fi
29564
29565
29566
29567
29568
29569 for ac_header in stdlib.h unistd.h
29570 do
29571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29573   echo "$as_me:$LINENO: checking for $ac_header" >&5
29574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29576   echo $ECHO_N "(cached) $ECHO_C" >&6
29577 fi
29578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29580 else
29581   # Is the header compilable?
29582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29584 cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590 $ac_includes_default
29591 #include <$ac_header>
29592 _ACEOF
29593 rm -f conftest.$ac_objext
29594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29595   (eval $ac_compile) 2>conftest.er1
29596   ac_status=$?
29597   grep -v '^ *+' conftest.er1 >conftest.err
29598   rm -f conftest.er1
29599   cat conftest.err >&5
29600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601   (exit $ac_status); } &&
29602          { ac_try='test -z "$ac_c_werror_flag"
29603                          || test ! -s conftest.err'
29604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605   (eval $ac_try) 2>&5
29606   ac_status=$?
29607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608   (exit $ac_status); }; } &&
29609          { ac_try='test -s conftest.$ac_objext'
29610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29611   (eval $ac_try) 2>&5
29612   ac_status=$?
29613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614   (exit $ac_status); }; }; then
29615   ac_header_compiler=yes
29616 else
29617   echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.$ac_ext >&5
29619
29620 ac_header_compiler=no
29621 fi
29622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29624 echo "${ECHO_T}$ac_header_compiler" >&6
29625
29626 # Is the header present?
29627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29629 cat >conftest.$ac_ext <<_ACEOF
29630 /* confdefs.h.  */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h.  */
29635 #include <$ac_header>
29636 _ACEOF
29637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29639   ac_status=$?
29640   grep -v '^ *+' conftest.er1 >conftest.err
29641   rm -f conftest.er1
29642   cat conftest.err >&5
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); } >/dev/null; then
29645   if test -s conftest.err; then
29646     ac_cpp_err=$ac_c_preproc_warn_flag
29647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29648   else
29649     ac_cpp_err=
29650   fi
29651 else
29652   ac_cpp_err=yes
29653 fi
29654 if test -z "$ac_cpp_err"; then
29655   ac_header_preproc=yes
29656 else
29657   echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29659
29660   ac_header_preproc=no
29661 fi
29662 rm -f conftest.err conftest.$ac_ext
29663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29664 echo "${ECHO_T}$ac_header_preproc" >&6
29665
29666 # So?  What about this header?
29667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29668   yes:no: )
29669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29673     ac_header_preproc=yes
29674     ;;
29675   no:yes:* )
29676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29688     (
29689       cat <<\_ASBOX
29690 ## ----------------------------------- ##
29691 ## Report this to llvmbugs@cs.uiuc.edu ##
29692 ## ----------------------------------- ##
29693 _ASBOX
29694     ) |
29695       sed "s/^/$as_me: WARNING:     /" >&2
29696     ;;
29697 esac
29698 echo "$as_me:$LINENO: checking for $ac_header" >&5
29699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29701   echo $ECHO_N "(cached) $ECHO_C" >&6
29702 else
29703   eval "$as_ac_Header=\$ac_header_preproc"
29704 fi
29705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29707
29708 fi
29709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29710   cat >>confdefs.h <<_ACEOF
29711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29712 _ACEOF
29713
29714 fi
29715
29716 done
29717
29718
29719 for ac_func in getpagesize
29720 do
29721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29722 echo "$as_me:$LINENO: checking for $ac_func" >&5
29723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29724 if eval "test \"\${$as_ac_var+set}\" = set"; then
29725   echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727   cat >conftest.$ac_ext <<_ACEOF
29728 /* confdefs.h.  */
29729 _ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h.  */
29733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29735 #define $ac_func innocuous_$ac_func
29736
29737 /* System header to define __stub macros and hopefully few prototypes,
29738     which can conflict with char $ac_func (); below.
29739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29740     <limits.h> exists even on freestanding compilers.  */
29741
29742 #ifdef __STDC__
29743 # include <limits.h>
29744 #else
29745 # include <assert.h>
29746 #endif
29747
29748 #undef $ac_func
29749
29750 /* Override any gcc2 internal prototype to avoid an error.  */
29751 #ifdef __cplusplus
29752 extern "C"
29753 {
29754 #endif
29755 /* We use char because int might match the return type of a gcc2
29756    builtin and then its argument prototype would still apply.  */
29757 char $ac_func ();
29758 /* The GNU C library defines this for functions which it implements
29759     to always fail with ENOSYS.  Some functions are actually named
29760     something starting with __ and the normal name is an alias.  */
29761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29762 choke me
29763 #else
29764 char (*f) () = $ac_func;
29765 #endif
29766 #ifdef __cplusplus
29767 }
29768 #endif
29769
29770 int
29771 main ()
29772 {
29773 return f != $ac_func;
29774   ;
29775   return 0;
29776 }
29777 _ACEOF
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29780   (eval $ac_link) 2>conftest.er1
29781   ac_status=$?
29782   grep -v '^ *+' conftest.er1 >conftest.err
29783   rm -f conftest.er1
29784   cat conftest.err >&5
29785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786   (exit $ac_status); } &&
29787          { ac_try='test -z "$ac_c_werror_flag"
29788                          || test ! -s conftest.err'
29789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29790   (eval $ac_try) 2>&5
29791   ac_status=$?
29792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793   (exit $ac_status); }; } &&
29794          { ac_try='test -s conftest$ac_exeext'
29795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796   (eval $ac_try) 2>&5
29797   ac_status=$?
29798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799   (exit $ac_status); }; }; then
29800   eval "$as_ac_var=yes"
29801 else
29802   echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29804
29805 eval "$as_ac_var=no"
29806 fi
29807 rm -f conftest.err conftest.$ac_objext \
29808       conftest$ac_exeext conftest.$ac_ext
29809 fi
29810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29812 if test `eval echo '${'$as_ac_var'}'` = yes; then
29813   cat >>confdefs.h <<_ACEOF
29814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29815 _ACEOF
29816
29817 fi
29818 done
29819
29820 echo "$as_me:$LINENO: checking for working mmap" >&5
29821 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29822 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29823   echo $ECHO_N "(cached) $ECHO_C" >&6
29824 else
29825   if test "$cross_compiling" = yes; then
29826   ac_cv_func_mmap_fixed_mapped=no
29827 else
29828   cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834 $ac_includes_default
29835 /* malloc might have been renamed as rpl_malloc. */
29836 #undef malloc
29837
29838 /* Thanks to Mike Haertel and Jim Avera for this test.
29839    Here is a matrix of mmap possibilities:
29840         mmap private not fixed
29841         mmap private fixed at somewhere currently unmapped
29842         mmap private fixed at somewhere already mapped
29843         mmap shared not fixed
29844         mmap shared fixed at somewhere currently unmapped
29845         mmap shared fixed at somewhere already mapped
29846    For private mappings, we should verify that changes cannot be read()
29847    back from the file, nor mmap's back from the file at a different
29848    address.  (There have been systems where private was not correctly
29849    implemented like the infamous i386 svr4.0, and systems where the
29850    VM page cache was not coherent with the file system buffer cache
29851    like early versions of FreeBSD and possibly contemporary NetBSD.)
29852    For shared mappings, we should conversely verify that changes get
29853    propagated back to all the places they're supposed to be.
29854
29855    Grep wants private fixed already mapped.
29856    The main things grep needs to know about mmap are:
29857    * does it exist and is it safe to write into the mmap'd area
29858    * how to use it (BSD variants)  */
29859
29860 #include <fcntl.h>
29861 #include <sys/mman.h>
29862
29863 #if !STDC_HEADERS && !HAVE_STDLIB_H
29864 char *malloc ();
29865 #endif
29866
29867 /* This mess was copied from the GNU getpagesize.h.  */
29868 #if !HAVE_GETPAGESIZE
29869 /* Assume that all systems that can run configure have sys/param.h.  */
29870 # if !HAVE_SYS_PARAM_H
29871 #  define HAVE_SYS_PARAM_H 1
29872 # endif
29873
29874 # ifdef _SC_PAGESIZE
29875 #  define getpagesize() sysconf(_SC_PAGESIZE)
29876 # else /* no _SC_PAGESIZE */
29877 #  if HAVE_SYS_PARAM_H
29878 #   include <sys/param.h>
29879 #   ifdef EXEC_PAGESIZE
29880 #    define getpagesize() EXEC_PAGESIZE
29881 #   else /* no EXEC_PAGESIZE */
29882 #    ifdef NBPG
29883 #     define getpagesize() NBPG * CLSIZE
29884 #     ifndef CLSIZE
29885 #      define CLSIZE 1
29886 #     endif /* no CLSIZE */
29887 #    else /* no NBPG */
29888 #     ifdef NBPC
29889 #      define getpagesize() NBPC
29890 #     else /* no NBPC */
29891 #      ifdef PAGESIZE
29892 #       define getpagesize() PAGESIZE
29893 #      endif /* PAGESIZE */
29894 #     endif /* no NBPC */
29895 #    endif /* no NBPG */
29896 #   endif /* no EXEC_PAGESIZE */
29897 #  else /* no HAVE_SYS_PARAM_H */
29898 #   define getpagesize() 8192   /* punt totally */
29899 #  endif /* no HAVE_SYS_PARAM_H */
29900 # endif /* no _SC_PAGESIZE */
29901
29902 #endif /* no HAVE_GETPAGESIZE */
29903
29904 int
29905 main ()
29906 {
29907   char *data, *data2, *data3;
29908   int i, pagesize;
29909   int fd;
29910
29911   pagesize = getpagesize ();
29912
29913   /* First, make a file with some known garbage in it. */
29914   data = (char *) malloc (pagesize);
29915   if (!data)
29916     exit (1);
29917   for (i = 0; i < pagesize; ++i)
29918     *(data + i) = rand ();
29919   umask (0);
29920   fd = creat ("conftest.mmap", 0600);
29921   if (fd < 0)
29922     exit (1);
29923   if (write (fd, data, pagesize) != pagesize)
29924     exit (1);
29925   close (fd);
29926
29927   /* Next, try to mmap the file at a fixed address which already has
29928      something else allocated at it.  If we can, also make sure that
29929      we see the same garbage.  */
29930   fd = open ("conftest.mmap", O_RDWR);
29931   if (fd < 0)
29932     exit (1);
29933   data2 = (char *) malloc (2 * pagesize);
29934   if (!data2)
29935     exit (1);
29936   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29937   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29938                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29939     exit (1);
29940   for (i = 0; i < pagesize; ++i)
29941     if (*(data + i) != *(data2 + i))
29942       exit (1);
29943
29944   /* Finally, make sure that changes to the mapped area do not
29945      percolate back to the file as seen by read().  (This is a bug on
29946      some variants of i386 svr4.0.)  */
29947   for (i = 0; i < pagesize; ++i)
29948     *(data2 + i) = *(data2 + i) + 1;
29949   data3 = (char *) malloc (pagesize);
29950   if (!data3)
29951     exit (1);
29952   if (read (fd, data3, pagesize) != pagesize)
29953     exit (1);
29954   for (i = 0; i < pagesize; ++i)
29955     if (*(data + i) != *(data3 + i))
29956       exit (1);
29957   close (fd);
29958   exit (0);
29959 }
29960 _ACEOF
29961 rm -f conftest$ac_exeext
29962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29963   (eval $ac_link) 2>&5
29964   ac_status=$?
29965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968   (eval $ac_try) 2>&5
29969   ac_status=$?
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); }; }; then
29972   ac_cv_func_mmap_fixed_mapped=yes
29973 else
29974   echo "$as_me: program exited with status $ac_status" >&5
29975 echo "$as_me: failed program was:" >&5
29976 sed 's/^/| /' conftest.$ac_ext >&5
29977
29978 ( exit $ac_status )
29979 ac_cv_func_mmap_fixed_mapped=no
29980 fi
29981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29982 fi
29983 fi
29984 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29985 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29986 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29987
29988 cat >>confdefs.h <<\_ACEOF
29989 #define HAVE_MMAP 1
29990 _ACEOF
29991
29992 fi
29993 rm -f conftest.mmap
29994
29995 echo "$as_me:$LINENO: checking for mmap of files" >&5
29996 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29997 if test "${ac_cv_func_mmap_file+set}" = set; then
29998   echo $ECHO_N "(cached) $ECHO_C" >&6
29999 else
30000    ac_ext=c
30001 ac_cpp='$CPP $CPPFLAGS'
30002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30005
30006   if test "$cross_compiling" = yes; then
30007   ac_cv_func_mmap_file=no
30008 else
30009   cat >conftest.$ac_ext <<_ACEOF
30010
30011     /* confdefs.h.  */
30012 _ACEOF
30013 cat confdefs.h >>conftest.$ac_ext
30014 cat >>conftest.$ac_ext <<_ACEOF
30015 /* end confdefs.h.  */
30016
30017 #include <sys/types.h>
30018 #include <sys/mman.h>
30019 #include <fcntl.h>
30020
30021 int
30022 main ()
30023 {
30024
30025   int fd;
30026   fd = creat ("foo",0777);
30027   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30028   unlink ("foo");
30029   return (fd != (int) MAP_FAILED);
30030   ;
30031   return 0;
30032 }
30033 _ACEOF
30034 rm -f conftest$ac_exeext
30035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30036   (eval $ac_link) 2>&5
30037   ac_status=$?
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041   (eval $ac_try) 2>&5
30042   ac_status=$?
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); }; }; then
30045   ac_cv_func_mmap_file=yes
30046 else
30047   echo "$as_me: program exited with status $ac_status" >&5
30048 echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050
30051 ( exit $ac_status )
30052 ac_cv_func_mmap_file=no
30053 fi
30054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30055 fi
30056   ac_ext=c
30057 ac_cpp='$CPP $CPPFLAGS'
30058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30061
30062
30063 fi
30064 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30065 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30066 if test "$ac_cv_func_mmap_file" = yes; then
30067
30068 cat >>confdefs.h <<\_ACEOF
30069 #define HAVE_MMAP_FILE
30070 _ACEOF
30071
30072    MMAP_FILE=yes
30073
30074 fi
30075
30076 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30077 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30078 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30079   echo $ECHO_N "(cached) $ECHO_C" >&6
30080 else
30081   if test "$llvm_cv_os_type" = "Interix" ; then
30082    ac_cv_need_dev_zero_for_mmap=yes
30083  else
30084    ac_cv_need_dev_zero_for_mmap=no
30085  fi
30086
30087 fi
30088 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30089 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30090 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30091
30092 cat >>confdefs.h <<\_ACEOF
30093 #define NEED_DEV_ZERO_FOR_MMAP 1
30094 _ACEOF
30095
30096 fi
30097 echo "$as_me:$LINENO: checking for mprotect" >&5
30098 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30099 if test "${ac_cv_func_mprotect+set}" = set; then
30100   echo $ECHO_N "(cached) $ECHO_C" >&6
30101 else
30102   cat >conftest.$ac_ext <<_ACEOF
30103 /* confdefs.h.  */
30104 _ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h.  */
30108 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30110 #define mprotect innocuous_mprotect
30111
30112 /* System header to define __stub macros and hopefully few prototypes,
30113     which can conflict with char mprotect (); below.
30114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115     <limits.h> exists even on freestanding compilers.  */
30116
30117 #ifdef __STDC__
30118 # include <limits.h>
30119 #else
30120 # include <assert.h>
30121 #endif
30122
30123 #undef mprotect
30124
30125 /* Override any gcc2 internal prototype to avoid an error.  */
30126 #ifdef __cplusplus
30127 extern "C"
30128 {
30129 #endif
30130 /* We use char because int might match the return type of a gcc2
30131    builtin and then its argument prototype would still apply.  */
30132 char mprotect ();
30133 /* The GNU C library defines this for functions which it implements
30134     to always fail with ENOSYS.  Some functions are actually named
30135     something starting with __ and the normal name is an alias.  */
30136 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30137 choke me
30138 #else
30139 char (*f) () = mprotect;
30140 #endif
30141 #ifdef __cplusplus
30142 }
30143 #endif
30144
30145 int
30146 main ()
30147 {
30148 return f != mprotect;
30149   ;
30150   return 0;
30151 }
30152 _ACEOF
30153 rm -f conftest.$ac_objext conftest$ac_exeext
30154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30155   (eval $ac_link) 2>conftest.er1
30156   ac_status=$?
30157   grep -v '^ *+' conftest.er1 >conftest.err
30158   rm -f conftest.er1
30159   cat conftest.err >&5
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); } &&
30162          { ac_try='test -z "$ac_c_werror_flag"
30163                          || test ! -s conftest.err'
30164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165   (eval $ac_try) 2>&5
30166   ac_status=$?
30167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168   (exit $ac_status); }; } &&
30169          { ac_try='test -s conftest$ac_exeext'
30170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30171   (eval $ac_try) 2>&5
30172   ac_status=$?
30173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); }; }; then
30175   ac_cv_func_mprotect=yes
30176 else
30177   echo "$as_me: failed program was:" >&5
30178 sed 's/^/| /' conftest.$ac_ext >&5
30179
30180 ac_cv_func_mprotect=no
30181 fi
30182 rm -f conftest.err conftest.$ac_objext \
30183       conftest$ac_exeext conftest.$ac_ext
30184 fi
30185 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30186 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30187 if test $ac_cv_func_mprotect = yes; then
30188   :
30189 else
30190   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30191 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30192    { (exit 1); exit 1; }; }
30193 fi
30194
30195
30196 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30197 then
30198   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30199 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30200 fi
30201 if test "$ac_cv_func_mmap_file" = "no"
30202 then
30203   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30204 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30205 fi
30206
30207
30208 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30209 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30210 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30211   echo $ECHO_N "(cached) $ECHO_C" >&6
30212 else
30213   llvm_cv_llvmgcc_sanity="no"
30214 if test -x "$LLVMGCC" ; then
30215   cp /dev/null conftest.c
30216   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30217   if test $? -eq 0 ; then
30218     llvm_cv_llvmgcc_sanity="yes"
30219   fi
30220   rm conftest.c
30221 fi
30222 fi
30223 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30224 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30225
30226 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30227   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30228   LLVMCC1=$llvmcc1path
30229
30230   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30231   LLVMCC1PLUS=$llvmcc1pluspath
30232
30233   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30234   LLVMGCCDIR=$llvmgccdir
30235
30236 fi
30237
30238 SHLIBEXT=$libltdl_cv_shlibext
30239
30240
30241 # Translate the various configuration directories and other basic
30242 # information into substitutions that will end up in Makefile.config.in
30243 # that these configured values can be used by the makefiles
30244 eval LLVM_PREFIX="${prefix}";
30245 eval LLVM_BINDIR="${prefix}/bin";
30246 eval LLVM_LIBDIR="${prefix}/lib";
30247 eval LLVM_DATADIR="${prefix}/share/llvm";
30248 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30249 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30250 eval LLVM_INCLUDEDIR="${prefix}/include";
30251 eval LLVM_INFODIR="${prefix}/info";
30252 eval LLVM_MANDIR="${prefix}/man";
30253 LLVM_CONFIGTIME=`date`
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265 # Place the various directores into the config.h file as #defines so that we
30266 # can know about the installation paths within LLVM.
30267
30268 cat >>confdefs.h <<_ACEOF
30269 #define LLVM_PREFIX "$LLVM_PREFIX"
30270 _ACEOF
30271
30272
30273 cat >>confdefs.h <<_ACEOF
30274 #define LLVM_BINDIR "$LLVM_BINDIR"
30275 _ACEOF
30276
30277
30278 cat >>confdefs.h <<_ACEOF
30279 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30280 _ACEOF
30281
30282
30283 cat >>confdefs.h <<_ACEOF
30284 #define LLVM_DATADIR "$LLVM_DATADIR"
30285 _ACEOF
30286
30287
30288 cat >>confdefs.h <<_ACEOF
30289 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30290 _ACEOF
30291
30292
30293 cat >>confdefs.h <<_ACEOF
30294 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30295 _ACEOF
30296
30297
30298 cat >>confdefs.h <<_ACEOF
30299 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30300 _ACEOF
30301
30302
30303 cat >>confdefs.h <<_ACEOF
30304 #define LLVM_INFODIR "$LLVM_INFODIR"
30305 _ACEOF
30306
30307
30308 cat >>confdefs.h <<_ACEOF
30309 #define LLVM_MANDIR "$LLVM_MANDIR"
30310 _ACEOF
30311
30312
30313 cat >>confdefs.h <<_ACEOF
30314 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30315 _ACEOF
30316
30317
30318
30319           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30320
30321
30322           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30323
30324           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30325
30326           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30327
30328           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30329
30330           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30331
30332
30333           ac_config_files="$ac_config_files Makefile.config"
30334
30335
30336                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30337
30338
30339           ac_config_files="$ac_config_files docs/doxygen.cfg"
30340
30341
30342           ac_config_commands="$ac_config_commands setup"
30343
30344           ac_config_commands="$ac_config_commands Makefile"
30345
30346
30347           ac_config_commands="$ac_config_commands Makefile.common"
30348
30349
30350           ac_config_commands="$ac_config_commands examples/Makefile"
30351
30352
30353           ac_config_commands="$ac_config_commands lib/Makefile"
30354
30355
30356           ac_config_commands="$ac_config_commands runtime/Makefile"
30357
30358
30359           ac_config_commands="$ac_config_commands test/Makefile"
30360
30361
30362           ac_config_commands="$ac_config_commands test/Makefile.tests"
30363
30364
30365           ac_config_commands="$ac_config_commands tools/Makefile"
30366
30367
30368           ac_config_commands="$ac_config_commands utils/Makefile"
30369
30370
30371           ac_config_commands="$ac_config_commands projects/Makefile"
30372
30373
30374
30375 cat >confcache <<\_ACEOF
30376 # This file is a shell script that caches the results of configure
30377 # tests run on this system so they can be shared between configure
30378 # scripts and configure runs, see configure's option --config-cache.
30379 # It is not useful on other systems.  If it contains results you don't
30380 # want to keep, you may remove or edit it.
30381 #
30382 # config.status only pays attention to the cache file if you give it
30383 # the --recheck option to rerun configure.
30384 #
30385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30387 # following values.
30388
30389 _ACEOF
30390
30391 # The following way of writing the cache mishandles newlines in values,
30392 # but we know of no workaround that is simple, portable, and efficient.
30393 # So, don't put newlines in cache variables' values.
30394 # Ultrix sh set writes to stderr and can't be redirected directly,
30395 # and sets the high bit in the cache file unless we assign to the vars.
30396 {
30397   (set) 2>&1 |
30398     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30399     *ac_space=\ *)
30400       # `set' does not quote correctly, so add quotes (double-quote
30401       # substitution turns \\\\ into \\, and sed turns \\ into \).
30402       sed -n \
30403         "s/'/'\\\\''/g;
30404           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30405       ;;
30406     *)
30407       # `set' quotes correctly as required by POSIX, so do not add quotes.
30408       sed -n \
30409         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30410       ;;
30411     esac;
30412 } |
30413   sed '
30414      t clear
30415      : clear
30416      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30417      t end
30418      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30419      : end' >>confcache
30420 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30421   if test -w $cache_file; then
30422     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30423     cat confcache >$cache_file
30424   else
30425     echo "not updating unwritable cache $cache_file"
30426   fi
30427 fi
30428 rm -f confcache
30429
30430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30431 # Let make expand exec_prefix.
30432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30433
30434 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30435 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30436 # trailing colons and then remove the whole line if VPATH becomes empty
30437 # (actually we leave an empty line to preserve line numbers).
30438 if test "x$srcdir" = x.; then
30439   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30440 s/:*\$(srcdir):*/:/;
30441 s/:*\${srcdir}:*/:/;
30442 s/:*@srcdir@:*/:/;
30443 s/^\([^=]*=[     ]*\):*/\1/;
30444 s/:*$//;
30445 s/^[^=]*=[       ]*$//;
30446 }'
30447 fi
30448
30449 DEFS=-DHAVE_CONFIG_H
30450
30451 ac_libobjs=
30452 ac_ltlibobjs=
30453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30454   # 1. Remove the extension, and $U if already installed.
30455   ac_i=`echo "$ac_i" |
30456          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30457   # 2. Add them.
30458   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30459   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30460 done
30461 LIBOBJS=$ac_libobjs
30462
30463 LTLIBOBJS=$ac_ltlibobjs
30464
30465
30466 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30467   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30468 Usually this means the macro was only invoked conditionally." >&5
30469 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30470 Usually this means the macro was only invoked conditionally." >&2;}
30471    { (exit 1); exit 1; }; }
30472 fi
30473 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30474   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30475 Usually this means the macro was only invoked conditionally." >&5
30476 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30477 Usually this means the macro was only invoked conditionally." >&2;}
30478    { (exit 1); exit 1; }; }
30479 fi
30480
30481 : ${CONFIG_STATUS=./config.status}
30482 ac_clean_files_save=$ac_clean_files
30483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30484 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30485 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30486 cat >$CONFIG_STATUS <<_ACEOF
30487 #! $SHELL
30488 # Generated by $as_me.
30489 # Run this file to recreate the current configuration.
30490 # Compiler output produced by configure, useful for debugging
30491 # configure, is in config.log if it exists.
30492
30493 debug=false
30494 ac_cs_recheck=false
30495 ac_cs_silent=false
30496 SHELL=\${CONFIG_SHELL-$SHELL}
30497 _ACEOF
30498
30499 cat >>$CONFIG_STATUS <<\_ACEOF
30500 ## --------------------- ##
30501 ## M4sh Initialization.  ##
30502 ## --------------------- ##
30503
30504 # Be Bourne compatible
30505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30506   emulate sh
30507   NULLCMD=:
30508   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30509   # is contrary to our usage.  Disable this feature.
30510   alias -g '${1+"$@"}'='"$@"'
30511 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30512   set -o posix
30513 fi
30514 DUALCASE=1; export DUALCASE # for MKS sh
30515
30516 # Support unset when possible.
30517 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30518   as_unset=unset
30519 else
30520   as_unset=false
30521 fi
30522
30523
30524 # Work around bugs in pre-3.0 UWIN ksh.
30525 $as_unset ENV MAIL MAILPATH
30526 PS1='$ '
30527 PS2='> '
30528 PS4='+ '
30529
30530 # NLS nuisances.
30531 for as_var in \
30532   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30533   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30534   LC_TELEPHONE LC_TIME
30535 do
30536   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30537     eval $as_var=C; export $as_var
30538   else
30539     $as_unset $as_var
30540   fi
30541 done
30542
30543 # Required to use basename.
30544 if expr a : '\(a\)' >/dev/null 2>&1; then
30545   as_expr=expr
30546 else
30547   as_expr=false
30548 fi
30549
30550 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30551   as_basename=basename
30552 else
30553   as_basename=false
30554 fi
30555
30556
30557 # Name of the executable.
30558 as_me=`$as_basename "$0" ||
30559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30560          X"$0" : 'X\(//\)$' \| \
30561          X"$0" : 'X\(/\)$' \| \
30562          .     : '\(.\)' 2>/dev/null ||
30563 echo X/"$0" |
30564     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30565           /^X\/\(\/\/\)$/{ s//\1/; q; }
30566           /^X\/\(\/\).*/{ s//\1/; q; }
30567           s/.*/./; q'`
30568
30569
30570 # PATH needs CR, and LINENO needs CR and PATH.
30571 # Avoid depending upon Character Ranges.
30572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30575 as_cr_digits='0123456789'
30576 as_cr_alnum=$as_cr_Letters$as_cr_digits
30577
30578 # The user is always right.
30579 if test "${PATH_SEPARATOR+set}" != set; then
30580   echo "#! /bin/sh" >conf$$.sh
30581   echo  "exit 0"   >>conf$$.sh
30582   chmod +x conf$$.sh
30583   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30584     PATH_SEPARATOR=';'
30585   else
30586     PATH_SEPARATOR=:
30587   fi
30588   rm -f conf$$.sh
30589 fi
30590
30591
30592   as_lineno_1=$LINENO
30593   as_lineno_2=$LINENO
30594   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30595   test "x$as_lineno_1" != "x$as_lineno_2" &&
30596   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30597   # Find who we are.  Look in the path if we contain no path at all
30598   # relative or not.
30599   case $0 in
30600     *[\\/]* ) as_myself=$0 ;;
30601     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30602 for as_dir in $PATH
30603 do
30604   IFS=$as_save_IFS
30605   test -z "$as_dir" && as_dir=.
30606   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30607 done
30608
30609        ;;
30610   esac
30611   # We did not find ourselves, most probably we were run as `sh COMMAND'
30612   # in which case we are not to be found in the path.
30613   if test "x$as_myself" = x; then
30614     as_myself=$0
30615   fi
30616   if test ! -f "$as_myself"; then
30617     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30618 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30619    { (exit 1); exit 1; }; }
30620   fi
30621   case $CONFIG_SHELL in
30622   '')
30623     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30624 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30625 do
30626   IFS=$as_save_IFS
30627   test -z "$as_dir" && as_dir=.
30628   for as_base in sh bash ksh sh5; do
30629          case $as_dir in
30630          /*)
30631            if ("$as_dir/$as_base" -c '
30632   as_lineno_1=$LINENO
30633   as_lineno_2=$LINENO
30634   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30635   test "x$as_lineno_1" != "x$as_lineno_2" &&
30636   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30637              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30638              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30639              CONFIG_SHELL=$as_dir/$as_base
30640              export CONFIG_SHELL
30641              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30642            fi;;
30643          esac
30644        done
30645 done
30646 ;;
30647   esac
30648
30649   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30650   # uniformly replaced by the line number.  The first 'sed' inserts a
30651   # line-number line before each line; the second 'sed' does the real
30652   # work.  The second script uses 'N' to pair each line-number line
30653   # with the numbered line, and appends trailing '-' during
30654   # substitution so that $LINENO is not a special case at line end.
30655   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30656   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30657   sed '=' <$as_myself |
30658     sed '
30659       N
30660       s,$,-,
30661       : loop
30662       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30663       t loop
30664       s,-$,,
30665       s,^['$as_cr_digits']*\n,,
30666     ' >$as_me.lineno &&
30667   chmod +x $as_me.lineno ||
30668     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30669 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30670    { (exit 1); exit 1; }; }
30671
30672   # Don't try to exec as it changes $[0], causing all sort of problems
30673   # (the dirname of $[0] is not the place where we might find the
30674   # original and so on.  Autoconf is especially sensible to this).
30675   . ./$as_me.lineno
30676   # Exit status is that of the last command.
30677   exit
30678 }
30679
30680
30681 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30682   *c*,-n*) ECHO_N= ECHO_C='
30683 ' ECHO_T='      ' ;;
30684   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30685   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30686 esac
30687
30688 if expr a : '\(a\)' >/dev/null 2>&1; then
30689   as_expr=expr
30690 else
30691   as_expr=false
30692 fi
30693
30694 rm -f conf$$ conf$$.exe conf$$.file
30695 echo >conf$$.file
30696 if ln -s conf$$.file conf$$ 2>/dev/null; then
30697   # We could just check for DJGPP; but this test a) works b) is more generic
30698   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30699   if test -f conf$$.exe; then
30700     # Don't use ln at all; we don't have any links
30701     as_ln_s='cp -p'
30702   else
30703     as_ln_s='ln -s'
30704   fi
30705 elif ln conf$$.file conf$$ 2>/dev/null; then
30706   as_ln_s=ln
30707 else
30708   as_ln_s='cp -p'
30709 fi
30710 rm -f conf$$ conf$$.exe conf$$.file
30711
30712 if mkdir -p . 2>/dev/null; then
30713   as_mkdir_p=:
30714 else
30715   test -d ./-p && rmdir ./-p
30716   as_mkdir_p=false
30717 fi
30718
30719 as_executable_p="test -f"
30720
30721 # Sed expression to map a string onto a valid CPP name.
30722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30723
30724 # Sed expression to map a string onto a valid variable name.
30725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30726
30727
30728 # IFS
30729 # We need space, tab and new line, in precisely that order.
30730 as_nl='
30731 '
30732 IFS="   $as_nl"
30733
30734 # CDPATH.
30735 $as_unset CDPATH
30736
30737 exec 6>&1
30738
30739 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30740 # report actual input values of CONFIG_FILES etc. instead of their
30741 # values after options handling.  Logging --version etc. is OK.
30742 exec 5>>config.log
30743 {
30744   echo
30745   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30746 ## Running $as_me. ##
30747 _ASBOX
30748 } >&5
30749 cat >&5 <<_CSEOF
30750
30751 This file was extended by llvm $as_me 1.5cvs, which was
30752 generated by GNU Autoconf 2.59.  Invocation command line was
30753
30754   CONFIG_FILES    = $CONFIG_FILES
30755   CONFIG_HEADERS  = $CONFIG_HEADERS
30756   CONFIG_LINKS    = $CONFIG_LINKS
30757   CONFIG_COMMANDS = $CONFIG_COMMANDS
30758   $ $0 $@
30759
30760 _CSEOF
30761 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30762 echo >&5
30763 _ACEOF
30764
30765 # Files that config.status was made for.
30766 if test -n "$ac_config_files"; then
30767   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30768 fi
30769
30770 if test -n "$ac_config_headers"; then
30771   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30772 fi
30773
30774 if test -n "$ac_config_links"; then
30775   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30776 fi
30777
30778 if test -n "$ac_config_commands"; then
30779   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30780 fi
30781
30782 cat >>$CONFIG_STATUS <<\_ACEOF
30783
30784 ac_cs_usage="\
30785 \`$as_me' instantiates files from templates according to the
30786 current configuration.
30787
30788 Usage: $0 [OPTIONS] [FILE]...
30789
30790   -h, --help       print this help, then exit
30791   -V, --version    print version number, then exit
30792   -q, --quiet      do not print progress messages
30793   -d, --debug      don't remove temporary files
30794       --recheck    update $as_me by reconfiguring in the same conditions
30795   --file=FILE[:TEMPLATE]
30796                    instantiate the configuration file FILE
30797   --header=FILE[:TEMPLATE]
30798                    instantiate the configuration header FILE
30799
30800 Configuration files:
30801 $config_files
30802
30803 Configuration headers:
30804 $config_headers
30805
30806 Configuration commands:
30807 $config_commands
30808
30809 Report bugs to <bug-autoconf@gnu.org>."
30810 _ACEOF
30811
30812 cat >>$CONFIG_STATUS <<_ACEOF
30813 ac_cs_version="\\
30814 llvm config.status 1.5cvs
30815 configured by $0, generated by GNU Autoconf 2.59,
30816   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30817
30818 Copyright (C) 2003 Free Software Foundation, Inc.
30819 This config.status script is free software; the Free Software Foundation
30820 gives unlimited permission to copy, distribute and modify it."
30821 srcdir=$srcdir
30822 INSTALL="$INSTALL"
30823 _ACEOF
30824
30825 cat >>$CONFIG_STATUS <<\_ACEOF
30826 # If no file are specified by the user, then we need to provide default
30827 # value.  By we need to know if files were specified by the user.
30828 ac_need_defaults=:
30829 while test $# != 0
30830 do
30831   case $1 in
30832   --*=*)
30833     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30834     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30835     ac_shift=:
30836     ;;
30837   -*)
30838     ac_option=$1
30839     ac_optarg=$2
30840     ac_shift=shift
30841     ;;
30842   *) # This is not an option, so the user has probably given explicit
30843      # arguments.
30844      ac_option=$1
30845      ac_need_defaults=false;;
30846   esac
30847
30848   case $ac_option in
30849   # Handling of the options.
30850 _ACEOF
30851 cat >>$CONFIG_STATUS <<\_ACEOF
30852   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30853     ac_cs_recheck=: ;;
30854   --version | --vers* | -V )
30855     echo "$ac_cs_version"; exit 0 ;;
30856   --he | --h)
30857     # Conflict between --help and --header
30858     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30859 Try \`$0 --help' for more information." >&5
30860 echo "$as_me: error: ambiguous option: $1
30861 Try \`$0 --help' for more information." >&2;}
30862    { (exit 1); exit 1; }; };;
30863   --help | --hel | -h )
30864     echo "$ac_cs_usage"; exit 0 ;;
30865   --debug | --d* | -d )
30866     debug=: ;;
30867   --file | --fil | --fi | --f )
30868     $ac_shift
30869     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30870     ac_need_defaults=false;;
30871   --header | --heade | --head | --hea )
30872     $ac_shift
30873     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30874     ac_need_defaults=false;;
30875   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30876   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30877     ac_cs_silent=: ;;
30878
30879   # This is an error.
30880   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30881 Try \`$0 --help' for more information." >&5
30882 echo "$as_me: error: unrecognized option: $1
30883 Try \`$0 --help' for more information." >&2;}
30884    { (exit 1); exit 1; }; } ;;
30885
30886   *) ac_config_targets="$ac_config_targets $1" ;;
30887
30888   esac
30889   shift
30890 done
30891
30892 ac_configure_extra_args=
30893
30894 if $ac_cs_silent; then
30895   exec 6>/dev/null
30896   ac_configure_extra_args="$ac_configure_extra_args --silent"
30897 fi
30898
30899 _ACEOF
30900 cat >>$CONFIG_STATUS <<_ACEOF
30901 if \$ac_cs_recheck; then
30902   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30903   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30904 fi
30905
30906 _ACEOF
30907
30908 cat >>$CONFIG_STATUS <<_ACEOF
30909 #
30910 # INIT-COMMANDS section.
30911 #
30912
30913 llvm_src="${srcdir}"
30914
30915 _ACEOF
30916
30917
30918
30919 cat >>$CONFIG_STATUS <<\_ACEOF
30920 for ac_config_target in $ac_config_targets
30921 do
30922   case "$ac_config_target" in
30923   # Handling of arguments.
30924   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30925   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30926   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30927   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30928   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30929   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30930   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30931   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30932   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30933   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30934   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30935   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30936   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30937   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30938   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30939   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30940   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30941   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30942   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30943   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30944   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30945   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30946   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30947   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30948 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30949    { (exit 1); exit 1; }; };;
30950   esac
30951 done
30952
30953 # If the user did not use the arguments to specify the items to instantiate,
30954 # then the envvar interface is used.  Set only those that are not.
30955 # We use the long form for the default assignment because of an extremely
30956 # bizarre bug on SunOS 4.1.3.
30957 if $ac_need_defaults; then
30958   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30959   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30960   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30961 fi
30962
30963 # Have a temporary directory for convenience.  Make it in the build tree
30964 # simply because there is no reason to put it here, and in addition,
30965 # creating and moving files from /tmp can sometimes cause problems.
30966 # Create a temporary directory, and hook for its removal unless debugging.
30967 $debug ||
30968 {
30969   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30970   trap '{ (exit 1); exit 1; }' 1 2 13 15
30971 }
30972
30973 # Create a (secure) tmp directory for tmp files.
30974
30975 {
30976   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30977   test -n "$tmp" && test -d "$tmp"
30978 }  ||
30979 {
30980   tmp=./confstat$$-$RANDOM
30981   (umask 077 && mkdir $tmp)
30982 } ||
30983 {
30984    echo "$me: cannot create a temporary directory in ." >&2
30985    { (exit 1); exit 1; }
30986 }
30987
30988 _ACEOF
30989
30990 cat >>$CONFIG_STATUS <<_ACEOF
30991
30992 #
30993 # CONFIG_FILES section.
30994 #
30995
30996 # No need to generate the scripts if there are no CONFIG_FILES.
30997 # This happens for instance when ./config.status config.h
30998 if test -n "\$CONFIG_FILES"; then
30999   # Protect against being on the right side of a sed subst in config.status.
31000   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31001    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31002 s,@SHELL@,$SHELL,;t t
31003 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31004 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31005 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31006 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31007 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31008 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31009 s,@exec_prefix@,$exec_prefix,;t t
31010 s,@prefix@,$prefix,;t t
31011 s,@program_transform_name@,$program_transform_name,;t t
31012 s,@bindir@,$bindir,;t t
31013 s,@sbindir@,$sbindir,;t t
31014 s,@libexecdir@,$libexecdir,;t t
31015 s,@datadir@,$datadir,;t t
31016 s,@sysconfdir@,$sysconfdir,;t t
31017 s,@sharedstatedir@,$sharedstatedir,;t t
31018 s,@localstatedir@,$localstatedir,;t t
31019 s,@libdir@,$libdir,;t t
31020 s,@includedir@,$includedir,;t t
31021 s,@oldincludedir@,$oldincludedir,;t t
31022 s,@infodir@,$infodir,;t t
31023 s,@mandir@,$mandir,;t t
31024 s,@build_alias@,$build_alias,;t t
31025 s,@host_alias@,$host_alias,;t t
31026 s,@target_alias@,$target_alias,;t t
31027 s,@DEFS@,$DEFS,;t t
31028 s,@ECHO_C@,$ECHO_C,;t t
31029 s,@ECHO_N@,$ECHO_N,;t t
31030 s,@ECHO_T@,$ECHO_T,;t t
31031 s,@LIBS@,$LIBS,;t t
31032 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31033 s,@subdirs@,$subdirs,;t t
31034 s,@build@,$build,;t t
31035 s,@build_cpu@,$build_cpu,;t t
31036 s,@build_vendor@,$build_vendor,;t t
31037 s,@build_os@,$build_os,;t t
31038 s,@host@,$host,;t t
31039 s,@host_cpu@,$host_cpu,;t t
31040 s,@host_vendor@,$host_vendor,;t t
31041 s,@host_os@,$host_os,;t t
31042 s,@target@,$target,;t t
31043 s,@target_cpu@,$target_cpu,;t t
31044 s,@target_vendor@,$target_vendor,;t t
31045 s,@target_os@,$target_os,;t t
31046 s,@OS@,$OS,;t t
31047 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31048 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31049 s,@ARCH@,$ARCH,;t t
31050 s,@ENDIAN@,$ENDIAN,;t t
31051 s,@CC@,$CC,;t t
31052 s,@CFLAGS@,$CFLAGS,;t t
31053 s,@LDFLAGS@,$LDFLAGS,;t t
31054 s,@CPPFLAGS@,$CPPFLAGS,;t t
31055 s,@ac_ct_CC@,$ac_ct_CC,;t t
31056 s,@EXEEXT@,$EXEEXT,;t t
31057 s,@OBJEXT@,$OBJEXT,;t t
31058 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31059 s,@JIT@,$JIT,;t t
31060 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31061 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31062 s,@CPP@,$CPP,;t t
31063 s,@CXX@,$CXX,;t t
31064 s,@CXXFLAGS@,$CXXFLAGS,;t t
31065 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31066 s,@LEX@,$LEX,;t t
31067 s,@LEXLIB@,$LEXLIB,;t t
31068 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31069 s,@FLEX@,$FLEX,;t t
31070 s,@YACC@,$YACC,;t t
31071 s,@BISON@,$BISON,;t t
31072 s,@ifGNUmake@,$ifGNUmake,;t t
31073 s,@LN_S@,$LN_S,;t t
31074 s,@CMP@,$CMP,;t t
31075 s,@CP@,$CP,;t t
31076 s,@DATE@,$DATE,;t t
31077 s,@FIND@,$FIND,;t t
31078 s,@GREP@,$GREP,;t t
31079 s,@MKDIR@,$MKDIR,;t t
31080 s,@MV@,$MV,;t t
31081 s,@RANLIB@,$RANLIB,;t t
31082 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31083 s,@RM@,$RM,;t t
31084 s,@SED@,$SED,;t t
31085 s,@TAR@,$TAR,;t t
31086 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31087 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31088 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31089 s,@BZIP2@,$BZIP2,;t t
31090 s,@DOT@,$DOT,;t t
31091 s,@DOXYGEN@,$DOXYGEN,;t t
31092 s,@ETAGS@,$ETAGS,;t t
31093 s,@GROFF@,$GROFF,;t t
31094 s,@GZIP@,$GZIP,;t t
31095 s,@POD2HTML@,$POD2HTML,;t t
31096 s,@POD2MAN@,$POD2MAN,;t t
31097 s,@RUNTEST@,$RUNTEST,;t t
31098 s,@TCLSH@,$TCLSH,;t t
31099 s,@ZIP@,$ZIP,;t t
31100 s,@EGREP@,$EGREP,;t t
31101 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31102 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31103 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31104 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31105 s,@LIBADD_DL@,$LIBADD_DL,;t t
31106 s,@ECHO@,$ECHO,;t t
31107 s,@AR@,$AR,;t t
31108 s,@ac_ct_AR@,$ac_ct_AR,;t t
31109 s,@STRIP@,$STRIP,;t t
31110 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31111 s,@CXXCPP@,$CXXCPP,;t t
31112 s,@F77@,$F77,;t t
31113 s,@FFLAGS@,$FFLAGS,;t t
31114 s,@ac_ct_F77@,$ac_ct_F77,;t t
31115 s,@LIBTOOL@,$LIBTOOL,;t t
31116 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31117 s,@LLVMGCC@,$LLVMGCC,;t t
31118 s,@LLVMGXX@,$LLVMGXX,;t t
31119 s,@ALLOCA@,$ALLOCA,;t t
31120 s,@MMAP_FILE@,$MMAP_FILE,;t t
31121 s,@LLVMCC1@,$LLVMCC1,;t t
31122 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31123 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31124 s,@SHLIBEXT@,$SHLIBEXT,;t t
31125 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31126 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31127 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31128 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31129 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31130 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31131 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31132 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31133 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31134 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31135 s,@LIBOBJS@,$LIBOBJS,;t t
31136 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31137 CEOF
31138
31139 _ACEOF
31140
31141   cat >>$CONFIG_STATUS <<\_ACEOF
31142   # Split the substitutions into bite-sized pieces for seds with
31143   # small command number limits, like on Digital OSF/1 and HP-UX.
31144   ac_max_sed_lines=48
31145   ac_sed_frag=1 # Number of current file.
31146   ac_beg=1 # First line for current file.
31147   ac_end=$ac_max_sed_lines # Line after last line for current file.
31148   ac_more_lines=:
31149   ac_sed_cmds=
31150   while $ac_more_lines; do
31151     if test $ac_beg -gt 1; then
31152       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31153     else
31154       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31155     fi
31156     if test ! -s $tmp/subs.frag; then
31157       ac_more_lines=false
31158     else
31159       # The purpose of the label and of the branching condition is to
31160       # speed up the sed processing (if there are no `@' at all, there
31161       # is no need to browse any of the substitutions).
31162       # These are the two extra sed commands mentioned above.
31163       (echo ':t
31164   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31165       if test -z "$ac_sed_cmds"; then
31166         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31167       else
31168         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31169       fi
31170       ac_sed_frag=`expr $ac_sed_frag + 1`
31171       ac_beg=$ac_end
31172       ac_end=`expr $ac_end + $ac_max_sed_lines`
31173     fi
31174   done
31175   if test -z "$ac_sed_cmds"; then
31176     ac_sed_cmds=cat
31177   fi
31178 fi # test -n "$CONFIG_FILES"
31179
31180 _ACEOF
31181 cat >>$CONFIG_STATUS <<\_ACEOF
31182 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31183   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31184   case $ac_file in
31185   - | *:- | *:-:* ) # input from stdin
31186         cat >$tmp/stdin
31187         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31188         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31189   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31190         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31191   * )   ac_file_in=$ac_file.in ;;
31192   esac
31193
31194   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31195   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31197          X"$ac_file" : 'X\(//\)[^/]' \| \
31198          X"$ac_file" : 'X\(//\)$' \| \
31199          X"$ac_file" : 'X\(/\)' \| \
31200          .     : '\(.\)' 2>/dev/null ||
31201 echo X"$ac_file" |
31202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31203           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31204           /^X\(\/\/\)$/{ s//\1/; q; }
31205           /^X\(\/\).*/{ s//\1/; q; }
31206           s/.*/./; q'`
31207   { if $as_mkdir_p; then
31208     mkdir -p "$ac_dir"
31209   else
31210     as_dir="$ac_dir"
31211     as_dirs=
31212     while test ! -d "$as_dir"; do
31213       as_dirs="$as_dir $as_dirs"
31214       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31216          X"$as_dir" : 'X\(//\)[^/]' \| \
31217          X"$as_dir" : 'X\(//\)$' \| \
31218          X"$as_dir" : 'X\(/\)' \| \
31219          .     : '\(.\)' 2>/dev/null ||
31220 echo X"$as_dir" |
31221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31222           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31223           /^X\(\/\/\)$/{ s//\1/; q; }
31224           /^X\(\/\).*/{ s//\1/; q; }
31225           s/.*/./; q'`
31226     done
31227     test ! -n "$as_dirs" || mkdir $as_dirs
31228   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31230    { (exit 1); exit 1; }; }; }
31231
31232   ac_builddir=.
31233
31234 if test "$ac_dir" != .; then
31235   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31236   # A "../" for each directory in $ac_dir_suffix.
31237   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31238 else
31239   ac_dir_suffix= ac_top_builddir=
31240 fi
31241
31242 case $srcdir in
31243   .)  # No --srcdir option.  We are building in place.
31244     ac_srcdir=.
31245     if test -z "$ac_top_builddir"; then
31246        ac_top_srcdir=.
31247     else
31248        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31249     fi ;;
31250   [\\/]* | ?:[\\/]* )  # Absolute path.
31251     ac_srcdir=$srcdir$ac_dir_suffix;
31252     ac_top_srcdir=$srcdir ;;
31253   *) # Relative path.
31254     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31255     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31256 esac
31257
31258 # Do not use `cd foo && pwd` to compute absolute paths, because
31259 # the directories may not exist.
31260 case `pwd` in
31261 .) ac_abs_builddir="$ac_dir";;
31262 *)
31263   case "$ac_dir" in
31264   .) ac_abs_builddir=`pwd`;;
31265   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31266   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31267   esac;;
31268 esac
31269 case $ac_abs_builddir in
31270 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31271 *)
31272   case ${ac_top_builddir}. in
31273   .) ac_abs_top_builddir=$ac_abs_builddir;;
31274   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31275   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31276   esac;;
31277 esac
31278 case $ac_abs_builddir in
31279 .) ac_abs_srcdir=$ac_srcdir;;
31280 *)
31281   case $ac_srcdir in
31282   .) ac_abs_srcdir=$ac_abs_builddir;;
31283   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31284   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31285   esac;;
31286 esac
31287 case $ac_abs_builddir in
31288 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31289 *)
31290   case $ac_top_srcdir in
31291   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31292   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31293   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31294   esac;;
31295 esac
31296
31297
31298   case $INSTALL in
31299   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31300   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31301   esac
31302
31303   if test x"$ac_file" != x-; then
31304     { echo "$as_me:$LINENO: creating $ac_file" >&5
31305 echo "$as_me: creating $ac_file" >&6;}
31306     rm -f "$ac_file"
31307   fi
31308   # Let's still pretend it is `configure' which instantiates (i.e., don't
31309   # use $as_me), people would be surprised to read:
31310   #    /* config.h.  Generated by config.status.  */
31311   if test x"$ac_file" = x-; then
31312     configure_input=
31313   else
31314     configure_input="$ac_file.  "
31315   fi
31316   configure_input=$configure_input"Generated from `echo $ac_file_in |
31317                                      sed 's,.*/,,'` by configure."
31318
31319   # First look for the input files in the build tree, otherwise in the
31320   # src tree.
31321   ac_file_inputs=`IFS=:
31322     for f in $ac_file_in; do
31323       case $f in
31324       -) echo $tmp/stdin ;;
31325       [\\/$]*)
31326          # Absolute (can't be DOS-style, as IFS=:)
31327          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31328 echo "$as_me: error: cannot find input file: $f" >&2;}
31329    { (exit 1); exit 1; }; }
31330          echo "$f";;
31331       *) # Relative
31332          if test -f "$f"; then
31333            # Build tree
31334            echo "$f"
31335          elif test -f "$srcdir/$f"; then
31336            # Source tree
31337            echo "$srcdir/$f"
31338          else
31339            # /dev/null tree
31340            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31341 echo "$as_me: error: cannot find input file: $f" >&2;}
31342    { (exit 1); exit 1; }; }
31343          fi;;
31344       esac
31345     done` || { (exit 1); exit 1; }
31346 _ACEOF
31347 cat >>$CONFIG_STATUS <<_ACEOF
31348   sed "$ac_vpsub
31349 $extrasub
31350 _ACEOF
31351 cat >>$CONFIG_STATUS <<\_ACEOF
31352 :t
31353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31354 s,@configure_input@,$configure_input,;t t
31355 s,@srcdir@,$ac_srcdir,;t t
31356 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31357 s,@top_srcdir@,$ac_top_srcdir,;t t
31358 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31359 s,@builddir@,$ac_builddir,;t t
31360 s,@abs_builddir@,$ac_abs_builddir,;t t
31361 s,@top_builddir@,$ac_top_builddir,;t t
31362 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31363 s,@INSTALL@,$ac_INSTALL,;t t
31364 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31365   rm -f $tmp/stdin
31366   if test x"$ac_file" != x-; then
31367     mv $tmp/out $ac_file
31368   else
31369     cat $tmp/out
31370     rm -f $tmp/out
31371   fi
31372
31373 done
31374 _ACEOF
31375 cat >>$CONFIG_STATUS <<\_ACEOF
31376
31377 #
31378 # CONFIG_HEADER section.
31379 #
31380
31381 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31382 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31383 #
31384 # ac_d sets the value in "#define NAME VALUE" lines.
31385 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31386 ac_dB='[         ].*$,\1#\2'
31387 ac_dC=' '
31388 ac_dD=',;t'
31389 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31390 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31391 ac_uB='$,\1#\2define\3'
31392 ac_uC=' '
31393 ac_uD=',;t'
31394
31395 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31396   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31397   case $ac_file in
31398   - | *:- | *:-:* ) # input from stdin
31399         cat >$tmp/stdin
31400         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31401         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31402   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31403         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31404   * )   ac_file_in=$ac_file.in ;;
31405   esac
31406
31407   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31408 echo "$as_me: creating $ac_file" >&6;}
31409
31410   # First look for the input files in the build tree, otherwise in the
31411   # src tree.
31412   ac_file_inputs=`IFS=:
31413     for f in $ac_file_in; do
31414       case $f in
31415       -) echo $tmp/stdin ;;
31416       [\\/$]*)
31417          # Absolute (can't be DOS-style, as IFS=:)
31418          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31419 echo "$as_me: error: cannot find input file: $f" >&2;}
31420    { (exit 1); exit 1; }; }
31421          # Do quote $f, to prevent DOS paths from being IFS'd.
31422          echo "$f";;
31423       *) # Relative
31424          if test -f "$f"; then
31425            # Build tree
31426            echo "$f"
31427          elif test -f "$srcdir/$f"; then
31428            # Source tree
31429            echo "$srcdir/$f"
31430          else
31431            # /dev/null tree
31432            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31433 echo "$as_me: error: cannot find input file: $f" >&2;}
31434    { (exit 1); exit 1; }; }
31435          fi;;
31436       esac
31437     done` || { (exit 1); exit 1; }
31438   # Remove the trailing spaces.
31439   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31440
31441 _ACEOF
31442
31443 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31444 # `conftest.undefs', that substitutes the proper values into
31445 # config.h.in to produce config.h.  The first handles `#define'
31446 # templates, and the second `#undef' templates.
31447 # And first: Protect against being on the right side of a sed subst in
31448 # config.status.  Protect against being in an unquoted here document
31449 # in config.status.
31450 rm -f conftest.defines conftest.undefs
31451 # Using a here document instead of a string reduces the quoting nightmare.
31452 # Putting comments in sed scripts is not portable.
31453 #
31454 # `end' is used to avoid that the second main sed command (meant for
31455 # 0-ary CPP macros) applies to n-ary macro definitions.
31456 # See the Autoconf documentation for `clear'.
31457 cat >confdef2sed.sed <<\_ACEOF
31458 s/[\\&,]/\\&/g
31459 s,[\\$`],\\&,g
31460 t clear
31461 : clear
31462 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31463 t end
31464 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31465 : end
31466 _ACEOF
31467 # If some macros were called several times there might be several times
31468 # the same #defines, which is useless.  Nevertheless, we may not want to
31469 # sort them, since we want the *last* AC-DEFINE to be honored.
31470 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31471 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31472 rm -f confdef2sed.sed
31473
31474 # This sed command replaces #undef with comments.  This is necessary, for
31475 # example, in the case of _POSIX_SOURCE, which is predefined and required
31476 # on some systems where configure will not decide to define it.
31477 cat >>conftest.undefs <<\_ACEOF
31478 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31479 _ACEOF
31480
31481 # Break up conftest.defines because some shells have a limit on the size
31482 # of here documents, and old seds have small limits too (100 cmds).
31483 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31484 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31485 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31486 echo '  :' >>$CONFIG_STATUS
31487 rm -f conftest.tail
31488 while grep . conftest.defines >/dev/null
31489 do
31490   # Write a limited-size here document to $tmp/defines.sed.
31491   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31492   # Speed up: don't consider the non `#define' lines.
31493   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31494   # Work around the forget-to-reset-the-flag bug.
31495   echo 't clr' >>$CONFIG_STATUS
31496   echo ': clr' >>$CONFIG_STATUS
31497   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31498   echo 'CEOF
31499   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31500   rm -f $tmp/in
31501   mv $tmp/out $tmp/in
31502 ' >>$CONFIG_STATUS
31503   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31504   rm -f conftest.defines
31505   mv conftest.tail conftest.defines
31506 done
31507 rm -f conftest.defines
31508 echo '  fi # grep' >>$CONFIG_STATUS
31509 echo >>$CONFIG_STATUS
31510
31511 # Break up conftest.undefs because some shells have a limit on the size
31512 # of here documents, and old seds have small limits too (100 cmds).
31513 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31514 rm -f conftest.tail
31515 while grep . conftest.undefs >/dev/null
31516 do
31517   # Write a limited-size here document to $tmp/undefs.sed.
31518   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31519   # Speed up: don't consider the non `#undef'
31520   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31521   # Work around the forget-to-reset-the-flag bug.
31522   echo 't clr' >>$CONFIG_STATUS
31523   echo ': clr' >>$CONFIG_STATUS
31524   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31525   echo 'CEOF
31526   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31527   rm -f $tmp/in
31528   mv $tmp/out $tmp/in
31529 ' >>$CONFIG_STATUS
31530   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31531   rm -f conftest.undefs
31532   mv conftest.tail conftest.undefs
31533 done
31534 rm -f conftest.undefs
31535
31536 cat >>$CONFIG_STATUS <<\_ACEOF
31537   # Let's still pretend it is `configure' which instantiates (i.e., don't
31538   # use $as_me), people would be surprised to read:
31539   #    /* config.h.  Generated by config.status.  */
31540   if test x"$ac_file" = x-; then
31541     echo "/* Generated by configure.  */" >$tmp/config.h
31542   else
31543     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31544   fi
31545   cat $tmp/in >>$tmp/config.h
31546   rm -f $tmp/in
31547   if test x"$ac_file" != x-; then
31548     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31549       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31550 echo "$as_me: $ac_file is unchanged" >&6;}
31551     else
31552       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31554          X"$ac_file" : 'X\(//\)[^/]' \| \
31555          X"$ac_file" : 'X\(//\)$' \| \
31556          X"$ac_file" : 'X\(/\)' \| \
31557          .     : '\(.\)' 2>/dev/null ||
31558 echo X"$ac_file" |
31559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31560           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31561           /^X\(\/\/\)$/{ s//\1/; q; }
31562           /^X\(\/\).*/{ s//\1/; q; }
31563           s/.*/./; q'`
31564       { if $as_mkdir_p; then
31565     mkdir -p "$ac_dir"
31566   else
31567     as_dir="$ac_dir"
31568     as_dirs=
31569     while test ! -d "$as_dir"; do
31570       as_dirs="$as_dir $as_dirs"
31571       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31573          X"$as_dir" : 'X\(//\)[^/]' \| \
31574          X"$as_dir" : 'X\(//\)$' \| \
31575          X"$as_dir" : 'X\(/\)' \| \
31576          .     : '\(.\)' 2>/dev/null ||
31577 echo X"$as_dir" |
31578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31579           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31580           /^X\(\/\/\)$/{ s//\1/; q; }
31581           /^X\(\/\).*/{ s//\1/; q; }
31582           s/.*/./; q'`
31583     done
31584     test ! -n "$as_dirs" || mkdir $as_dirs
31585   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31586 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31587    { (exit 1); exit 1; }; }; }
31588
31589       rm -f $ac_file
31590       mv $tmp/config.h $ac_file
31591     fi
31592   else
31593     cat $tmp/config.h
31594     rm -f $tmp/config.h
31595   fi
31596 done
31597 _ACEOF
31598 cat >>$CONFIG_STATUS <<\_ACEOF
31599
31600 #
31601 # CONFIG_COMMANDS section.
31602 #
31603 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31604   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31605   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31606   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31608          X"$ac_dest" : 'X\(//\)[^/]' \| \
31609          X"$ac_dest" : 'X\(//\)$' \| \
31610          X"$ac_dest" : 'X\(/\)' \| \
31611          .     : '\(.\)' 2>/dev/null ||
31612 echo X"$ac_dest" |
31613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31614           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31615           /^X\(\/\/\)$/{ s//\1/; q; }
31616           /^X\(\/\).*/{ s//\1/; q; }
31617           s/.*/./; q'`
31618   { if $as_mkdir_p; then
31619     mkdir -p "$ac_dir"
31620   else
31621     as_dir="$ac_dir"
31622     as_dirs=
31623     while test ! -d "$as_dir"; do
31624       as_dirs="$as_dir $as_dirs"
31625       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31627          X"$as_dir" : 'X\(//\)[^/]' \| \
31628          X"$as_dir" : 'X\(//\)$' \| \
31629          X"$as_dir" : 'X\(/\)' \| \
31630          .     : '\(.\)' 2>/dev/null ||
31631 echo X"$as_dir" |
31632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31633           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31634           /^X\(\/\/\)$/{ s//\1/; q; }
31635           /^X\(\/\).*/{ s//\1/; q; }
31636           s/.*/./; q'`
31637     done
31638     test ! -n "$as_dirs" || mkdir $as_dirs
31639   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31641    { (exit 1); exit 1; }; }; }
31642
31643   ac_builddir=.
31644
31645 if test "$ac_dir" != .; then
31646   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31647   # A "../" for each directory in $ac_dir_suffix.
31648   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31649 else
31650   ac_dir_suffix= ac_top_builddir=
31651 fi
31652
31653 case $srcdir in
31654   .)  # No --srcdir option.  We are building in place.
31655     ac_srcdir=.
31656     if test -z "$ac_top_builddir"; then
31657        ac_top_srcdir=.
31658     else
31659        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31660     fi ;;
31661   [\\/]* | ?:[\\/]* )  # Absolute path.
31662     ac_srcdir=$srcdir$ac_dir_suffix;
31663     ac_top_srcdir=$srcdir ;;
31664   *) # Relative path.
31665     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31666     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31667 esac
31668
31669 # Do not use `cd foo && pwd` to compute absolute paths, because
31670 # the directories may not exist.
31671 case `pwd` in
31672 .) ac_abs_builddir="$ac_dir";;
31673 *)
31674   case "$ac_dir" in
31675   .) ac_abs_builddir=`pwd`;;
31676   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31677   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31678   esac;;
31679 esac
31680 case $ac_abs_builddir in
31681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31682 *)
31683   case ${ac_top_builddir}. in
31684   .) ac_abs_top_builddir=$ac_abs_builddir;;
31685   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31686   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31687   esac;;
31688 esac
31689 case $ac_abs_builddir in
31690 .) ac_abs_srcdir=$ac_srcdir;;
31691 *)
31692   case $ac_srcdir in
31693   .) ac_abs_srcdir=$ac_abs_builddir;;
31694   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31695   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31696   esac;;
31697 esac
31698 case $ac_abs_builddir in
31699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31700 *)
31701   case $ac_top_srcdir in
31702   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31703   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31704   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31705   esac;;
31706 esac
31707
31708
31709   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31710 echo "$as_me: executing $ac_dest commands" >&6;}
31711   case $ac_dest in
31712     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31713    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31714     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31715    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31716     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31717    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31718     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31719    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31720     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31721    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31722     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31723    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31724     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31725    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31726     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31727    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31728     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31729    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31730     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31731    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31732   esac
31733 done
31734 _ACEOF
31735
31736 cat >>$CONFIG_STATUS <<\_ACEOF
31737
31738 { (exit 0); exit 0; }
31739 _ACEOF
31740 chmod +x $CONFIG_STATUS
31741 ac_clean_files=$ac_clean_files_save
31742
31743
31744 # configure is writing to config.log, and then calls config.status.
31745 # config.status does its own redirection, appending to config.log.
31746 # Unfortunately, on DOS this fails, as config.log is still kept open
31747 # by configure, so config.status won't be able to write to it; its
31748 # output is simply discarded.  So we exec the FD to /dev/null,
31749 # effectively closing config.log, so it can be properly (re)opened and
31750 # appended to by config.status.  When coming back to configure, we
31751 # need to make the FD available again.
31752 if test "$no_create" != yes; then
31753   ac_cs_success=:
31754   ac_config_status_args=
31755   test "$silent" = yes &&
31756     ac_config_status_args="$ac_config_status_args --quiet"
31757   exec 5>/dev/null
31758   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31759   exec 5>>config.log
31760   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31761   # would make configure fail if this is the last instruction.
31762   $ac_cs_success || { (exit 1); exit 1; }
31763 fi
31764
31765 #
31766 # CONFIG_SUBDIRS section.
31767 #
31768 if test "$no_recursion" != yes; then
31769
31770   # Remove --cache-file and --srcdir arguments so they do not pile up.
31771   ac_sub_configure_args=
31772   ac_prev=
31773   for ac_arg in $ac_configure_args; do
31774     if test -n "$ac_prev"; then
31775       ac_prev=
31776       continue
31777     fi
31778     case $ac_arg in
31779     -cache-file | --cache-file | --cache-fil | --cache-fi \
31780     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31781       ac_prev=cache_file ;;
31782     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31783     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31784     | --c=*)
31785       ;;
31786     --config-cache | -C)
31787       ;;
31788     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31789       ac_prev=srcdir ;;
31790     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31791       ;;
31792     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31793       ac_prev=prefix ;;
31794     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31795       ;;
31796     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31797     esac
31798   done
31799
31800   # Always prepend --prefix to ensure using the same prefix
31801   # in subdir configurations.
31802   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31803
31804   ac_popdir=`pwd`
31805   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31806
31807     # Do not complain, so a configure script can configure whichever
31808     # parts of a large source tree are present.
31809     test -d $srcdir/$ac_dir || continue
31810
31811     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31812 echo "$as_me: configuring in $ac_dir" >&6;}
31813     { if $as_mkdir_p; then
31814     mkdir -p "$ac_dir"
31815   else
31816     as_dir="$ac_dir"
31817     as_dirs=
31818     while test ! -d "$as_dir"; do
31819       as_dirs="$as_dir $as_dirs"
31820       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31822          X"$as_dir" : 'X\(//\)[^/]' \| \
31823          X"$as_dir" : 'X\(//\)$' \| \
31824          X"$as_dir" : 'X\(/\)' \| \
31825          .     : '\(.\)' 2>/dev/null ||
31826 echo X"$as_dir" |
31827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31828           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31829           /^X\(\/\/\)$/{ s//\1/; q; }
31830           /^X\(\/\).*/{ s//\1/; q; }
31831           s/.*/./; q'`
31832     done
31833     test ! -n "$as_dirs" || mkdir $as_dirs
31834   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31836    { (exit 1); exit 1; }; }; }
31837
31838     ac_builddir=.
31839
31840 if test "$ac_dir" != .; then
31841   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31842   # A "../" for each directory in $ac_dir_suffix.
31843   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31844 else
31845   ac_dir_suffix= ac_top_builddir=
31846 fi
31847
31848 case $srcdir in
31849   .)  # No --srcdir option.  We are building in place.
31850     ac_srcdir=.
31851     if test -z "$ac_top_builddir"; then
31852        ac_top_srcdir=.
31853     else
31854        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31855     fi ;;
31856   [\\/]* | ?:[\\/]* )  # Absolute path.
31857     ac_srcdir=$srcdir$ac_dir_suffix;
31858     ac_top_srcdir=$srcdir ;;
31859   *) # Relative path.
31860     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31861     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31862 esac
31863
31864 # Do not use `cd foo && pwd` to compute absolute paths, because
31865 # the directories may not exist.
31866 case `pwd` in
31867 .) ac_abs_builddir="$ac_dir";;
31868 *)
31869   case "$ac_dir" in
31870   .) ac_abs_builddir=`pwd`;;
31871   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31872   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31873   esac;;
31874 esac
31875 case $ac_abs_builddir in
31876 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31877 *)
31878   case ${ac_top_builddir}. in
31879   .) ac_abs_top_builddir=$ac_abs_builddir;;
31880   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31881   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31882   esac;;
31883 esac
31884 case $ac_abs_builddir in
31885 .) ac_abs_srcdir=$ac_srcdir;;
31886 *)
31887   case $ac_srcdir in
31888   .) ac_abs_srcdir=$ac_abs_builddir;;
31889   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31890   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31891   esac;;
31892 esac
31893 case $ac_abs_builddir in
31894 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31895 *)
31896   case $ac_top_srcdir in
31897   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31898   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31899   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31900   esac;;
31901 esac
31902
31903
31904     cd $ac_dir
31905
31906     # Check for guested configure; otherwise get Cygnus style configure.
31907     if test -f $ac_srcdir/configure.gnu; then
31908       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31909     elif test -f $ac_srcdir/configure; then
31910       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31911     elif test -f $ac_srcdir/configure.in; then
31912       ac_sub_configure=$ac_configure
31913     else
31914       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31916       ac_sub_configure=
31917     fi
31918
31919     # The recursion is here.
31920     if test -n "$ac_sub_configure"; then
31921       # Make the cache file name correct relative to the subdirectory.
31922       case $cache_file in
31923       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31924       *) # Relative path.
31925         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31926       esac
31927
31928       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31929 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31930       # The eval makes quoting arguments work.
31931       eval $ac_sub_configure $ac_sub_configure_args \
31932            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31933         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31934 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31935    { (exit 1); exit 1; }; }
31936     fi
31937
31938     cd $ac_popdir
31939   done
31940 fi
31941
31942
31943 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31944  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31945 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31946  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31947 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31948  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31949 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31950  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31951 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31952  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31953 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31954 fi