7b8ccb40d32dedc2b559b51cbbc85cc78ae8a3c2
[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.8cvs.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
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 CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL 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 LLVMGCC_VERSION LLVMGCC_MAJVERS 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.8cvs 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.8cvs:";;
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-assertions
1039   --enable-debug-runtime
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041   --enable-doxygen        Build doxygen documentation (default is NO)
1042   --enable-threads        Use threads if available (default is YES)
1043   --enable-target         Build specific host targets:
1044                           all,host-only,{target-name} (default=all)
1045   --enable-ltdl-install   install libltdl
1046   --enable-shared[=PKGS]
1047                           build shared libraries [default=yes]
1048   --enable-static[=PKGS]
1049                           build static libraries [default=yes]
1050   --enable-fast-install[=PKGS]
1051                           optimize for fast installation [default=yes]
1052   --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054 Optional Packages:
1055   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1058                           searches PATH)
1059   --with-tclinclude       directory where tcl headers are
1060   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061   --with-pic              try to use only PIC/non-PIC objects [default=use
1062                           both]
1063   --with-tags[=TAGS]
1064                           include additional configurations [automatic]
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd $ac_popdir
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 llvm configure 1.8cvs
1180 generated by GNU Autoconf 2.59
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185
1186 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1187 _ACEOF
1188   exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by llvm $as_me 1.8cvs, which was
1196 generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198   $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229   IFS=$as_save_IFS
1230   test -z "$as_dir" && as_dir=.
1231   echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258   for ac_arg
1259   do
1260     case $ac_arg in
1261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263     | -silent | --silent | --silen | --sile | --sil)
1264       continue ;;
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     esac
1268     case $ac_pass in
1269     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270     2)
1271       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272       if test $ac_must_keep_next = true; then
1273         ac_must_keep_next=false # Got value, back to normal.
1274       else
1275         case $ac_arg in
1276           *=* | --config-cache | -C | -disable-* | --disable-* \
1277           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279           | -with-* | --with-* | -without-* | --without-* | --x)
1280             case "$ac_configure_args0 " in
1281               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282             esac
1283             ;;
1284           -* ) ac_must_keep_next=true ;;
1285         esac
1286       fi
1287       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288       # Get rid of the leading space.
1289       ac_sep=" "
1290       ;;
1291     esac
1292   done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log.  We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303   # Save into config.log some information that might help in debugging.
1304   {
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312     echo
1313     # The following way of writing the cache mishandles newlines in values,
1314 {
1315   (set) 2>&1 |
1316     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317     *ac_space=\ *)
1318       sed -n \
1319         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321       ;;
1322     *)
1323       sed -n \
1324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325       ;;
1326     esac;
1327 }
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335     echo
1336     for ac_var in $ac_subst_vars
1337     do
1338       eval ac_val=$`echo $ac_var`
1339       echo "$ac_var='"'"'$ac_val'"'"'"
1340     done | sort
1341     echo
1342
1343     if test -n "$ac_subst_files"; then
1344       cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349       echo
1350       for ac_var in $ac_subst_files
1351       do
1352         eval ac_val=$`echo $ac_var`
1353         echo "$ac_var='"'"'$ac_val'"'"'"
1354       done | sort
1355       echo
1356     fi
1357
1358     if test -s confdefs.h; then
1359       cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364       echo
1365       sed "/^$/d" confdefs.h | sort
1366       echo
1367     fi
1368     test "$ac_signal" != 0 &&
1369       echo "$as_me: caught signal $ac_signal"
1370     echo "$as_me: exit $exit_status"
1371   } >&5
1372   rm -f core *.core &&
1373   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374     exit $exit_status
1375      ' 0
1376 for ac_signal in 1 2 13 15; do
1377   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416   if test "x$prefix" != xNONE; then
1417     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418   else
1419     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420   fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423   if test -r "$ac_site_file"; then
1424     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426     sed 's/^/| /' "$ac_site_file" >&5
1427     . "$ac_site_file"
1428   fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432   # Some versions of bash will fail to source /dev/null (special
1433   # files actually), so we avoid doing that.
1434   if test -f "$cache_file"; then
1435     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437     case $cache_file in
1438       [\\/]* | ?:[\\/]* ) . $cache_file;;
1439       *)                      . ./$cache_file;;
1440     esac
1441   fi
1442 else
1443   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445   >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454   eval ac_new_set=\$ac_env_${ac_var}_set
1455   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456   eval ac_new_val="\$ac_env_${ac_var}_value"
1457   case $ac_old_set,$ac_new_set in
1458     set,)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,set)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,);;
1467     *)
1468       if test "x$ac_old_val" != "x$ac_new_val"; then
1469         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472 echo "$as_me:   former value:  $ac_old_val" >&2;}
1473         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474 echo "$as_me:   current value: $ac_new_val" >&2;}
1475         ac_cache_corrupted=:
1476       fi;;
1477   esac
1478   # Pass precious variables to config.status.
1479   if test "$ac_new_set" = set; then
1480     case $ac_new_val in
1481     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483     *) ac_arg=$ac_var=$ac_new_val ;;
1484     esac
1485     case " $ac_configure_args " in
1486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488     esac
1489   fi
1490 done
1491 if $ac_cache_corrupted; then
1492   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1533
1534
1535
1536
1537
1538
1539
1540 ac_aux_dir=
1541 for ac_dir in autoconf $srcdir/autoconf; do
1542   if test -f $ac_dir/install-sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install-sh -c"
1545     break
1546   elif test -f $ac_dir/install.sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install.sh -c"
1549     break
1550   elif test -f $ac_dir/shtool; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/shtool install -c"
1553     break
1554   fi
1555 done
1556 if test -z "$ac_aux_dir"; then
1557   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559    { (exit 1); exit 1; }; }
1560 fi
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565
1566 if test ${srcdir} != "." ; then
1567   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570    { (exit 1); exit 1; }; }
1571   fi
1572 fi
1573
1574 for i in `ls ${srcdir}/projects`
1575 do
1576   if test -d ${srcdir}/projects/${i} ; then
1577     case ${i} in
1578       "CVS") ;;
1579       "sample")
1580
1581 subdirs="$subdirs projects/sample"
1582     ;;
1583       "Stacker")
1584
1585 subdirs="$subdirs projects/Stacker"
1586    ;;
1587       "llvm-test")
1588
1589 subdirs="$subdirs projects/llvm-test"
1590  ;;
1591       "llvm-reopt")
1592
1593 subdirs="$subdirs projects/llvm-reopt"
1594 ;;
1595       "llvm-gcc")
1596
1597 subdirs="$subdirs projects/llvm-gcc"
1598   ;;
1599       "llvm-java")
1600
1601 subdirs="$subdirs projects/llvm-java"
1602  ;;
1603       "llvm-tv")
1604
1605 subdirs="$subdirs projects/llvm-tv"
1606    ;;
1607       "llvm-poolalloc")
1608
1609 subdirs="$subdirs projects/llvm-poolalloc"
1610  ;;
1611       "llvm-kernel")
1612
1613 subdirs="$subdirs projects/llvm-kernel"
1614  ;;
1615       *)
1616         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618         ;;
1619     esac
1620   fi
1621 done
1622
1623
1624 # Make sure we can run config.sub.
1625 $ac_config_sub sun4 >/dev/null 2>&1 ||
1626   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628    { (exit 1); exit 1; }; }
1629
1630 echo "$as_me:$LINENO: checking build system type" >&5
1631 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632 if test "${ac_cv_build+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   ac_cv_build_alias=$build_alias
1636 test -z "$ac_cv_build_alias" &&
1637   ac_cv_build_alias=`$ac_config_guess`
1638 test -z "$ac_cv_build_alias" &&
1639   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641    { (exit 1); exit 1; }; }
1642 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645    { (exit 1); exit 1; }; }
1646
1647 fi
1648 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649 echo "${ECHO_T}$ac_cv_build" >&6
1650 build=$ac_cv_build
1651 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656 echo "$as_me:$LINENO: checking host system type" >&5
1657 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658 if test "${ac_cv_host+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   ac_cv_host_alias=$host_alias
1662 test -z "$ac_cv_host_alias" &&
1663   ac_cv_host_alias=$ac_cv_build_alias
1664 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667    { (exit 1); exit 1; }; }
1668
1669 fi
1670 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671 echo "${ECHO_T}$ac_cv_host" >&6
1672 host=$ac_cv_host
1673 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678 echo "$as_me:$LINENO: checking target system type" >&5
1679 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680 if test "${ac_cv_target+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   ac_cv_target_alias=$target_alias
1684 test "x$ac_cv_target_alias" = "x" &&
1685   ac_cv_target_alias=$ac_cv_host_alias
1686 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689    { (exit 1); exit 1; }; }
1690
1691 fi
1692 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693 echo "${ECHO_T}$ac_cv_target" >&6
1694 target=$ac_cv_target
1695 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700 # The aliases save the names the user supplied, while $host etc.
1701 # will get canonicalized.
1702 test -n "$target_alias" &&
1703   test "$program_prefix$program_suffix$program_transform_name" = \
1704     NONENONEs,x,x, &&
1705   program_prefix=${target_alias}-
1706
1707 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709 if test "${llvm_cv_os_type+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   case $build in
1713   *-*-aix*)
1714     llvm_cv_os_type="AIX"
1715     llvm_cv_platform_type="Unix" ;;
1716   *-*-cygwin*)
1717     llvm_cv_os_type="Cygwin"
1718     llvm_cv_platform_type="Unix" ;;
1719   *-*-darwin*)
1720     llvm_cv_os_type="Darwin"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-freebsd*)
1723     llvm_cv_os_type="FreeBSD"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-openbsd*)
1726     llvm_cv_os_type="OpenBSD"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-hpux*)
1729     llvm_cv_os_type="HP-UX"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-interix*)
1732     llvm_cv_os_type="Interix"
1733     llvm_cv_platform_type="Unix" ;;
1734   *-*-linux*)
1735     llvm_cv_os_type="Linux"
1736     llvm_cv_platform_type="Unix" ;;
1737   *-*-solaris*)
1738     llvm_cv_os_type="SunOS"
1739     llvm_cv_platform_type="Unix" ;;
1740   *-*-win32*)
1741     llvm_cv_os_type="Win32"
1742     llvm_cv_platform_type="Win32" ;;
1743   *-*-mingw*)
1744     llvm_cv_os_type="MingW"
1745     llvm_cv_platform_type="Win32" ;;
1746   *)
1747     llvm_cv_os_type="Unknown"
1748     llvm_cv_platform_type="Unknown" ;;
1749 esac
1750 fi
1751 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752 echo "${ECHO_T}$llvm_cv_os_type" >&6
1753
1754 if test "$llvm_cv_os_type" = "Unknown" ; then
1755   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1757    { (exit 1); exit 1; }; }
1758 fi
1759
1760 OS=$llvm_cv_os_type
1761
1762
1763 case $llvm_cv_platform_type in
1764   Unix)
1765
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_UNIX 1
1768 _ACEOF
1769
1770     LLVM_ON_UNIX=1
1771
1772     LLVM_ON_WIN32=0
1773
1774     ;;
1775   Win32)
1776
1777 cat >>confdefs.h <<\_ACEOF
1778 #define LLVM_ON_WIN32 1
1779 _ACEOF
1780
1781     LLVM_ON_UNIX=0
1782
1783     LLVM_ON_WIN32=1
1784
1785     ;;
1786 esac
1787
1788 echo "$as_me:$LINENO: checking target architecture" >&5
1789 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1790 if test "${llvm_cv_target_arch+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   case $target in
1794   i?86-*)                 llvm_cv_target_arch="x86" ;;
1795   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1796   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1797   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1798   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1799   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1800   *)                      llvm_cv_target_arch="Unknown" ;;
1801 esac
1802 fi
1803 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1805
1806 if test "$llvm_cv_target_arch" = "Unknown" ; then
1807   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1809 fi
1810
1811 ARCH=$llvm_cv_target_arch
1812
1813
1814 ac_ext=c
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$CC"; then
1828   ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848   echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 fi
1856 if test -z "$ac_cv_prog_CC"; then
1857   ac_ct_CC=$CC
1858   # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_CC"; then
1866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_CC="gcc"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   CC=$ac_ct_CC
1894 else
1895   CC="$ac_cv_prog_CC"
1896 fi
1897
1898 if test -z "$CC"; then
1899   if test -n "$ac_tool_prefix"; then
1900   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   if test -n "$CC"; then
1908   ac_cv_prog_CC="$CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913   IFS=$as_save_IFS
1914   test -z "$as_dir" && as_dir=.
1915   for ac_exec_ext in '' $ac_executable_extensions; do
1916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917     ac_cv_prog_CC="${ac_tool_prefix}cc"
1918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919     break 2
1920   fi
1921 done
1922 done
1923
1924 fi
1925 fi
1926 CC=$ac_cv_prog_CC
1927 if test -n "$CC"; then
1928   echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1934
1935 fi
1936 if test -z "$ac_cv_prog_CC"; then
1937   ac_ct_CC=$CC
1938   # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   if test -n "$ac_ct_CC"; then
1946   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953   for ac_exec_ext in '' $ac_executable_extensions; do
1954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955     ac_cv_prog_ac_ct_CC="cc"
1956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957     break 2
1958   fi
1959 done
1960 done
1961
1962 fi
1963 fi
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1968 else
1969   echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971 fi
1972
1973   CC=$ac_ct_CC
1974 else
1975   CC="$ac_cv_prog_CC"
1976 fi
1977
1978 fi
1979 if test -z "$CC"; then
1980   # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$CC"; then
1988   ac_cv_prog_CC="$CC" # Let the user override the test.
1989 else
1990   ac_prog_rejected=no
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999        ac_prog_rejected=yes
2000        continue
2001      fi
2002     ac_cv_prog_CC="cc"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 if test $ac_prog_rejected = yes; then
2010   # We found a bogon in the path, so make sure we never use it.
2011   set dummy $ac_cv_prog_CC
2012   shift
2013   if test $# != 0; then
2014     # We chose a different compiler from the bogus one.
2015     # However, it has the same basename, so the bogon will be chosen
2016     # first if we set CC to just the basename; use the full file name.
2017     shift
2018     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2019   fi
2020 fi
2021 fi
2022 fi
2023 CC=$ac_cv_prog_CC
2024 if test -n "$CC"; then
2025   echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2027 else
2028   echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2030 fi
2031
2032 fi
2033 if test -z "$CC"; then
2034   if test -n "$ac_tool_prefix"; then
2035   for ac_prog in cl
2036   do
2037     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$CC"; then
2045   ac_cv_prog_CC="$CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065   echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072     test -n "$CC" && break
2073   done
2074 fi
2075 if test -z "$CC"; then
2076   ac_ct_CC=$CC
2077   for ac_prog in cl
2078 do
2079   # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test -n "$ac_ct_CC"; then
2087   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_prog_ac_ct_CC="$ac_prog"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114   test -n "$ac_ct_CC" && break
2115 done
2116
2117   CC=$ac_ct_CC
2118 fi
2119
2120 fi
2121
2122
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127    { (exit 1); exit 1; }; }
2128
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131      "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134   (eval $ac_compiler --version </dev/null >&5) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139   (eval $ac_compiler -v </dev/null >&5) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144   (eval $ac_compiler -V </dev/null >&5) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h.  */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h.  */
2155
2156 int
2157 main ()
2158 {
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2168 # of exeext.
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173   (eval $ac_link_default) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; then
2177   # Find the output, starting from the most likely.  This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # resort.
2180
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183 ac_cv_exeext=
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186 do
2187   test -f "$ac_file" || continue
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190         ;;
2191     conftest.$ac_ext )
2192         # This is the source file.
2193         ;;
2194     [ab].out )
2195         # We found the default executable, but exeext='' is most
2196         # certainly right.
2197         break;;
2198     *.* )
2199         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200         # FIXME: I believe we export ac_cv_exeext for Libtool,
2201         # but it would be cool to find out if it's true.  Does anybody
2202         # maintain Libtool? --akim.
2203         export ac_cv_exeext
2204         break;;
2205     * )
2206         break;;
2207   esac
2208 done
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217    { (exit 77); exit 77; }; }
2218 fi
2219
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2223
2224 # Check the compiler produces executables we can run.  If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231   if { ac_try='./$ac_file'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237     cross_compiling=no
2238   else
2239     if test "$cross_compiling" = maybe; then
2240         cross_compiling=yes
2241     else
2242         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248    { (exit 1); exit 1; }; }
2249     fi
2250   fi
2251 fi
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2254
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run.  If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2263
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267   (eval $ac_link) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; then
2271   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2274 # `rm'.
2275 for ac_file in conftest.exe conftest conftest.*; do
2276   test -f "$ac_file" || continue
2277   case $ac_file in
2278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280           export ac_cv_exeext
2281           break;;
2282     * ) break;;
2283   esac
2284 done
2285 else
2286   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2299 ac_exeext=$EXEEXT
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; then
2326   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327   case $ac_file in
2328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330        break;;
2331   esac
2332 done
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341    { (exit 1); exit 1; }; }
2342 fi
2343
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345 fi
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2349 ac_objext=$OBJEXT
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h.  */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h.  */
2361
2362 int
2363 main ()
2364 {
2365 #ifndef __GNUC__
2366        choke me
2367 #endif
2368
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375   (eval $ac_compile) 2>conftest.er1
2376   ac_status=$?
2377   grep -v '^ *+' conftest.er1 >conftest.err
2378   rm -f conftest.er1
2379   cat conftest.err >&5
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); } &&
2382          { ac_try='test -z "$ac_c_werror_flag"
2383                          || test ! -s conftest.err'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; } &&
2389          { ac_try='test -s conftest.$ac_objext'
2390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391   (eval $ac_try) 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; }; then
2395   ac_compiler_gnu=yes
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 ac_compiler_gnu=no
2401 fi
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405 fi
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2411 CFLAGS="-g"
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415   echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417   cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h.  */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h.  */
2423
2424 int
2425 main ()
2426 {
2427
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   ac_cv_prog_cc_g=yes
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_cv_prog_cc_g=no
2460 fi
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 fi
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466   CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468   if test "$GCC" = yes; then
2469     CFLAGS="-g -O2"
2470   else
2471     CFLAGS="-g"
2472   fi
2473 else
2474   if test "$GCC" = yes; then
2475     CFLAGS="-O2"
2476   else
2477     CFLAGS=
2478   fi
2479 fi
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   ac_cv_prog_cc_stdc=no
2486 ac_save_CC=$CC
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493 #include <stdarg.h>
2494 #include <stdio.h>
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2501      char **p;
2502      int i;
2503 {
2504   return p[i];
2505 }
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2507 {
2508   char *s;
2509   va_list v;
2510   va_start (v,p);
2511   s = g (p, va_arg (v,int));
2512   va_end (v);
2513   return s;
2514 }
2515
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517    function prototypes and stuff, but not '\xHH' hex character constants.
2518    These don't provoke an error unfortunately, instead are silently treated
2519    as 'x'.  The following induces an error, until -std1 is added to get
2520    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521    array size at least.  It's necessary to write '\x00'==0 to get something
2522    that's true only with -std1.  */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 int argc;
2530 char **argv;
2531 int
2532 main ()
2533 {
2534 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX                   -qlanglvl=ansi
2542 # Ultrix and OSF/1      -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2545 # SVR4                  -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547 do
2548   CC="$ac_save_CC $ac_arg"
2549   rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag"
2559                          || test ! -s conftest.err'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   ac_cv_prog_cc_stdc=$ac_arg
2572 break
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 fi
2578 rm -f conftest.err conftest.$ac_objext
2579 done
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2581 CC=$ac_save_CC
2582
2583 fi
2584
2585 case "x$ac_cv_prog_cc_stdc" in
2586   x|xno)
2587     echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2589   *)
2590     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592     CC="$CC $ac_cv_prog_cc_stdc" ;;
2593 esac
2594
2595 # Some people use a C++ compiler to compile C.  Since we use `exit',
2596 # in C++ we need to declare it.  In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #ifndef __cplusplus
2601   choke me
2602 #endif
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606   (eval $ac_compile) 2>conftest.er1
2607   ac_status=$?
2608   grep -v '^ *+' conftest.er1 >conftest.err
2609   rm -f conftest.er1
2610   cat conftest.err >&5
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -z "$ac_c_werror_flag"
2614                          || test ! -s conftest.err'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   for ac_declaration in \
2627    '' \
2628    'extern "C" void std::exit (int) throw (); using std::exit;' \
2629    'extern "C" void std::exit (int); using std::exit;' \
2630    'extern "C" void exit (int) throw ();' \
2631    'extern "C" void exit (int);' \
2632    'void exit (int);'
2633 do
2634   cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h.  */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h.  */
2640 $ac_declaration
2641 #include <stdlib.h>
2642 int
2643 main ()
2644 {
2645 exit (42);
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>conftest.er1
2653   ac_status=$?
2654   grep -v '^ *+' conftest.er1 >conftest.err
2655   rm -f conftest.er1
2656   cat conftest.err >&5
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -z "$ac_c_werror_flag"
2660                          || test ! -s conftest.err'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; }; then
2672   :
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 continue
2678 fi
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680   cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686 $ac_declaration
2687 int
2688 main ()
2689 {
2690 exit (42);
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>conftest.er1
2698   ac_status=$?
2699   grep -v '^ *+' conftest.er1 >conftest.err
2700   rm -f conftest.er1
2701   cat conftest.err >&5
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } &&
2704          { ac_try='test -z "$ac_c_werror_flag"
2705                          || test ! -s conftest.err'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   break
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 fi
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 done
2725 rm -f conftest*
2726 if test -n "$ac_declaration"; then
2727   echo '#ifdef __cplusplus' >>confdefs.h
2728   echo $ac_declaration      >>confdefs.h
2729   echo '#endif'             >>confdefs.h
2730 fi
2731
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744
2745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747 if test "${ac_cv_c_bigendian+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   # See if sys/param.h defines the BYTE_ORDER macro.
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <sys/types.h>
2758 #include <sys/param.h>
2759
2760 int
2761 main ()
2762 {
2763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2764  bogus endian macros
2765 #endif
2766
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773   (eval $ac_compile) 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -z "$ac_c_werror_flag"
2781                          || test ! -s conftest.err'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; } &&
2787          { ac_try='test -s conftest.$ac_objext'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793   # It does; now see whether it defined to BIG_ENDIAN or not.
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2802
2803 int
2804 main ()
2805 {
2806 #if BYTE_ORDER != BIG_ENDIAN
2807  not big endian
2808 #endif
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816   (eval $ac_compile) 2>conftest.er1
2817   ac_status=$?
2818   grep -v '^ *+' conftest.er1 >conftest.err
2819   rm -f conftest.er1
2820   cat conftest.err >&5
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } &&
2823          { ac_try='test -z "$ac_c_werror_flag"
2824                          || test ! -s conftest.err'
2825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826   (eval $ac_try) 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; } &&
2830          { ac_try='test -s conftest.$ac_objext'
2831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832   (eval $ac_try) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; }; then
2836   ac_cv_c_bigendian=yes
2837 else
2838   echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 ac_cv_c_bigendian=no
2842 fi
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 # It does not; compile a test program.
2849 if test "$cross_compiling" = yes; then
2850   # try to guess the endianness by grepping values into an object file
2851   ac_cv_c_bigendian=unknown
2852   cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2864 int
2865 main ()
2866 {
2867  _ascii (); _ebcdic ();
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895   ac_cv_c_bigendian=yes
2896 fi
2897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898   if test "$ac_cv_c_bigendian" = unknown; then
2899     ac_cv_c_bigendian=no
2900   else
2901     # finding both strings is unlikely to happen, but who knows?
2902     ac_cv_c_bigendian=unknown
2903   fi
2904 fi
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 fi
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918 int
2919 main ()
2920 {
2921   /* Are we little or big endian?  From Harbison&Steele.  */
2922   union
2923   {
2924     long l;
2925     char c[sizeof (long)];
2926   } u;
2927   u.l = 1;
2928   exit (u.c[sizeof (long) - 1] == 1);
2929 }
2930 _ACEOF
2931 rm -f conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933   (eval $ac_link) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942   ac_cv_c_bigendian=no
2943 else
2944   echo "$as_me: program exited with status $ac_status" >&5
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 ( exit $ac_status )
2949 ac_cv_c_bigendian=yes
2950 fi
2951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 fi
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 fi
2956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958 case $ac_cv_c_bigendian in
2959   yes)
2960     ENDIAN=big
2961  ;;
2962   no)
2963     ENDIAN=little
2964  ;;
2965   *)
2966     { { echo "$as_me:$LINENO: error: unknown endianness
2967 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968 echo "$as_me: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970    { (exit 1); exit 1; }; } ;;
2971 esac
2972
2973
2974 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2975   cvsbuild="yes"
2976   optimize="no"
2977   CVSBUILD=CVSBUILD=1
2978
2979 else
2980   cvsbuild="no"
2981   optimize="yes"
2982 fi
2983
2984
2985 # Check whether --enable-optimized or --disable-optimized was given.
2986 if test "${enable_optimized+set}" = set; then
2987   enableval="$enable_optimized"
2988
2989 else
2990   enableval=$optimize
2991 fi;
2992 if test ${enableval} = "no" ; then
2993   ENABLE_OPTIMIZED=
2994
2995 else
2996   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2997
2998 fi
2999
3000 # Check whether --enable-assertions or --disable-assertions was given.
3001 if test "${enable_assertions+set}" = set; then
3002   enableval="$enable_assertions"
3003
3004 else
3005   enableval="yes"
3006 fi;
3007 if test ${enableval} = "yes" ; then
3008   DISABLE_ASSERTIONS=
3009
3010 else
3011   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3012
3013 fi
3014
3015 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016 if test "${enable_debug_runtime+set}" = set; then
3017   enableval="$enable_debug_runtime"
3018
3019 else
3020   enableval=no
3021 fi;
3022 if test ${enableval} = "no" ; then
3023   DEBUG_RUNTIME=
3024
3025 else
3026   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3027
3028 fi
3029
3030 # Check whether --enable-jit or --disable-jit was given.
3031 if test "${enable_jit+set}" = set; then
3032   enableval="$enable_jit"
3033
3034 else
3035   enableval=default
3036 fi;
3037 if test ${enableval} = "no"
3038 then
3039   JIT=
3040
3041 else
3042   case "$llvm_cv_target_arch" in
3043     x86)     TARGET_HAS_JIT=1
3044  ;;
3045     Sparc)   TARGET_HAS_JIT=1
3046  ;;
3047     PowerPC) TARGET_HAS_JIT=1
3048  ;;
3049     x86_64)  TARGET_HAS_JIT=0
3050  ;;
3051     Alpha)   TARGET_HAS_JIT=1
3052  ;;
3053     IA64)    TARGET_HAS_JIT=0
3054  ;;
3055     *)       TARGET_HAS_JIT=0
3056  ;;
3057   esac
3058 fi
3059
3060 # Check whether --enable-doxygen or --disable-doxygen was given.
3061 if test "${enable_doxygen+set}" = set; then
3062   enableval="$enable_doxygen"
3063
3064 else
3065   enableval=default
3066 fi;
3067 case "$enableval" in
3068   yes) ENABLE_DOXYGEN=1
3069  ;;
3070   no)  ENABLE_DOXYGEN=0
3071  ;;
3072   default) ENABLE_DOXYGEN=0
3073  ;;
3074   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076    { (exit 1); exit 1; }; } ;;
3077 esac
3078
3079 # Check whether --enable-threads or --disable-threads was given.
3080 if test "${enable_threads+set}" = set; then
3081   enableval="$enable_threads"
3082
3083 else
3084   enableval=yes
3085 fi;
3086 case "$enableval" in
3087   yes) ENABLE_THREADS=1
3088  ;;
3089   no)  ENABLE_THREADS=0
3090  ;;
3091   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093    { (exit 1); exit 1; }; } ;;
3094 esac
3095
3096 cat >>confdefs.h <<_ACEOF
3097 #define ENABLE_THREADS $ENABLE_THREADS
3098 _ACEOF
3099
3100
3101 TARGETS_TO_BUILD=""
3102 # Check whether --enable-targets or --disable-targets was given.
3103 if test "${enable_targets+set}" = set; then
3104   enableval="$enable_targets"
3105
3106 else
3107   enableval=all
3108 fi;
3109 case "$enableval" in
3110   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3111   host-only)
3112     case "$llvm_cv_target_arch" in
3113       x86)     TARGETS_TO_BUILD="X86" ;;
3114       x86_64)  TARGETS_TO_BUILD="X86" ;;
3115       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3116       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3118       IA64)    TARGETS_TO_BUILD="IA64" ;;
3119       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3120 echo "$as_me: error: Can not set target to build" >&2;}
3121    { (exit 1); exit 1; }; } ;;
3122     esac
3123     ;;
3124   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3125       case "$a_target" in
3126         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3128         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3129         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3132         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134    { (exit 1); exit 1; }; } ;;
3135       esac
3136   done
3137   ;;
3138 esac
3139 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3140 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3141
3142
3143
3144 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145 if test "${with_llvmgccdir+set}" = set; then
3146   withval="$with_llvmgccdir"
3147
3148 else
3149   withval=default
3150 fi;
3151 case "$withval" in
3152   default) WITH_LLVMGCCDIR=default ;;
3153   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3154   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156    { (exit 1); exit 1; }; } ;;
3157 esac
3158
3159
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168 # On Suns, sometimes $CPP names a directory.
3169 if test -n "$CPP" && test -d "$CPP"; then
3170   CPP=
3171 fi
3172 if test -z "$CPP"; then
3173   if test "${ac_cv_prog_CPP+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176       # Double quotes because CPP needs to be expanded
3177     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178     do
3179       ac_preproc_ok=false
3180 for ac_c_preproc_warn_flag in '' yes
3181 do
3182   # Use a header file that comes with gcc, so configuring glibc
3183   # with a fresh cross-compiler works.
3184   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185   # <limits.h> exists even on freestanding compilers.
3186   # On the NeXT, cc -E runs the code through the compiler's parser,
3187   # not just through cpp. "Syntax error" is here to catch this case.
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 #ifdef __STDC__
3195 # include <limits.h>
3196 #else
3197 # include <assert.h>
3198 #endif
3199                      Syntax error
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } >/dev/null; then
3209   if test -s conftest.err; then
3210     ac_cpp_err=$ac_c_preproc_warn_flag
3211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212   else
3213     ac_cpp_err=
3214   fi
3215 else
3216   ac_cpp_err=yes
3217 fi
3218 if test -z "$ac_cpp_err"; then
3219   :
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224   # Broken: fails on valid input.
3225 continue
3226 fi
3227 rm -f conftest.err conftest.$ac_ext
3228
3229   # OK, works on sane cases.  Now check whether non-existent headers
3230   # can be detected and how.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #include <ac_nonexistent.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   # Broken: success on invalid input.
3258 continue
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Passes both tests.
3264 ac_preproc_ok=:
3265 break
3266 fi
3267 rm -f conftest.err conftest.$ac_ext
3268
3269 done
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then
3273   break
3274 fi
3275
3276     done
3277     ac_cv_prog_CPP=$CPP
3278
3279 fi
3280   CPP=$ac_cv_prog_CPP
3281 else
3282   ac_cv_prog_CPP=$CPP
3283 fi
3284 echo "$as_me:$LINENO: result: $CPP" >&5
3285 echo "${ECHO_T}$CPP" >&6
3286 ac_preproc_ok=false
3287 for ac_c_preproc_warn_flag in '' yes
3288 do
3289   # Use a header file that comes with gcc, so configuring glibc
3290   # with a fresh cross-compiler works.
3291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292   # <limits.h> exists even on freestanding compilers.
3293   # On the NeXT, cc -E runs the code through the compiler's parser,
3294   # not just through cpp. "Syntax error" is here to catch this case.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #ifdef __STDC__
3302 # include <limits.h>
3303 #else
3304 # include <assert.h>
3305 #endif
3306                      Syntax error
3307 _ACEOF
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } >/dev/null; then
3316   if test -s conftest.err; then
3317     ac_cpp_err=$ac_c_preproc_warn_flag
3318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319   else
3320     ac_cpp_err=
3321   fi
3322 else
3323   ac_cpp_err=yes
3324 fi
3325 if test -z "$ac_cpp_err"; then
3326   :
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331   # Broken: fails on valid input.
3332 continue
3333 fi
3334 rm -f conftest.err conftest.$ac_ext
3335
3336   # OK, works on sane cases.  Now check whether non-existent headers
3337   # can be detected and how.
3338   cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h.  */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h.  */
3344 #include <ac_nonexistent.h>
3345 _ACEOF
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348   ac_status=$?
3349   grep -v '^ *+' conftest.er1 >conftest.err
3350   rm -f conftest.er1
3351   cat conftest.err >&5
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); } >/dev/null; then
3354   if test -s conftest.err; then
3355     ac_cpp_err=$ac_c_preproc_warn_flag
3356     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357   else
3358     ac_cpp_err=
3359   fi
3360 else
3361   ac_cpp_err=yes
3362 fi
3363 if test -z "$ac_cpp_err"; then
3364   # Broken: success on invalid input.
3365 continue
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370   # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3373 fi
3374 rm -f conftest.err conftest.$ac_ext
3375
3376 done
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3380   :
3381 else
3382   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&2;}
3386    { (exit 1); exit 1; }; }
3387 fi
3388
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 if test -n "$ac_tool_prefix"; then
3401   for ac_prog in gcc
3402   do
3403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   if test -n "$CC"; then
3411   ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418   for ac_exec_ext in '' $ac_executable_extensions; do
3419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425 done
3426
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431   echo "$as_me:$LINENO: result: $CC" >&5
3432 echo "${ECHO_T}$CC" >&6
3433 else
3434   echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3436 fi
3437
3438     test -n "$CC" && break
3439   done
3440 fi
3441 if test -z "$CC"; then
3442   ac_ct_CC=$CC
3443   for ac_prog in gcc
3444 do
3445   # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   if test -n "$ac_ct_CC"; then
3453   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for ac_exec_ext in '' $ac_executable_extensions; do
3461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_prog_ac_ct_CC="$ac_prog"
3463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467 done
3468
3469 fi
3470 fi
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6
3475 else
3476   echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478 fi
3479
3480   test -n "$ac_ct_CC" && break
3481 done
3482
3483   CC=$ac_ct_CC
3484 fi
3485
3486
3487 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491    { (exit 1); exit 1; }; }
3492
3493 # Provide some information about the compiler.
3494 echo "$as_me:$LINENO:" \
3495      "checking for C compiler version" >&5
3496 ac_compiler=`set X $ac_compile; echo $2`
3497 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498   (eval $ac_compiler --version </dev/null >&5) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503   (eval $ac_compiler -v </dev/null >&5) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3508   (eval $ac_compiler -V </dev/null >&5) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512
3513 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529        choke me
3530 #endif
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538   (eval $ac_compile) 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } &&
3545          { ac_try='test -z "$ac_c_werror_flag"
3546                          || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest.$ac_objext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   ac_compiler_gnu=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ac_compiler_gnu=no
3564 fi
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568 fi
3569 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 CFLAGS="-g"
3575 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597   (eval $ac_compile) 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } &&
3604          { ac_try='test -z "$ac_c_werror_flag"
3605                          || test ! -s conftest.err'
3606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607   (eval $ac_try) 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; } &&
3611          { ac_try='test -s conftest.$ac_objext'
3612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613   (eval $ac_try) 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; }; then
3617   ac_cv_prog_cc_g=yes
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 ac_cv_prog_cc_g=no
3623 fi
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628 if test "$ac_test_CFLAGS" = set; then
3629   CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631   if test "$GCC" = yes; then
3632     CFLAGS="-g -O2"
3633   else
3634     CFLAGS="-g"
3635   fi
3636 else
3637   if test "$GCC" = yes; then
3638     CFLAGS="-O2"
3639   else
3640     CFLAGS=
3641   fi
3642 fi
3643 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   ac_cv_prog_cc_stdc=no
3649 ac_save_CC=$CC
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664      char **p;
3665      int i;
3666 {
3667   return p[i];
3668 }
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3670 {
3671   char *s;
3672   va_list v;
3673   va_start (v,p);
3674   s = g (p, va_arg (v,int));
3675   va_end (v);
3676   return s;
3677 }
3678
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3680    function prototypes and stuff, but not '\xHH' hex character constants.
3681    These don't provoke an error unfortunately, instead are silently treated
3682    as 'x'.  The following induces an error, until -std1 is added to get
3683    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3684    array size at least.  It's necessary to write '\x00'==0 to get something
3685    that's true only with -std1.  */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 int argc;
3693 char **argv;
3694 int
3695 main ()
3696 {
3697 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 # Don't try gcc -ansi; that turns off useful extensions and
3703 # breaks some systems' header files.
3704 # AIX                   -qlanglvl=ansi
3705 # Ultrix and OSF/1      -std1
3706 # HP-UX 10.20 and later -Ae
3707 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3708 # SVR4                  -Xc -D__EXTENSIONS__
3709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 do
3711   CC="$ac_save_CC $ac_arg"
3712   rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714   (eval $ac_compile) 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } &&
3721          { ac_try='test -z "$ac_c_werror_flag"
3722                          || test ! -s conftest.err'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; } &&
3728          { ac_try='test -s conftest.$ac_objext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   ac_cv_prog_cc_stdc=$ac_arg
3735 break
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 fi
3741 rm -f conftest.err conftest.$ac_objext
3742 done
3743 rm -f conftest.$ac_ext conftest.$ac_objext
3744 CC=$ac_save_CC
3745
3746 fi
3747
3748 case "x$ac_cv_prog_cc_stdc" in
3749   x|xno)
3750     echo "$as_me:$LINENO: result: none needed" >&5
3751 echo "${ECHO_T}none needed" >&6 ;;
3752   *)
3753     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755     CC="$CC $ac_cv_prog_cc_stdc" ;;
3756 esac
3757
3758 # Some people use a C++ compiler to compile C.  Since we use `exit',
3759 # in C++ we need to declare it.  In case someone uses the same compiler
3760 # for both compiling C and C++ we need to have the C++ compiler decide
3761 # the declaration of exit, since it's the most demanding environment.
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #ifndef __cplusplus
3764   choke me
3765 #endif
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769   (eval $ac_compile) 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } &&
3776          { ac_try='test -z "$ac_c_werror_flag"
3777                          || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest.$ac_objext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   for ac_declaration in \
3790    '' \
3791    'extern "C" void std::exit (int) throw (); using std::exit;' \
3792    'extern "C" void std::exit (int); using std::exit;' \
3793    'extern "C" void exit (int) throw ();' \
3794    'extern "C" void exit (int);' \
3795    'void exit (int);'
3796 do
3797   cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 $ac_declaration
3804 #include <stdlib.h>
3805 int
3806 main ()
3807 {
3808 exit (42);
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815   (eval $ac_compile) 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } &&
3822          { ac_try='test -z "$ac_c_werror_flag"
3823                          || test ! -s conftest.err'
3824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825   (eval $ac_try) 2>&5
3826   ac_status=$?
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); }; } &&
3829          { ac_try='test -s conftest.$ac_objext'
3830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831   (eval $ac_try) 2>&5
3832   ac_status=$?
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }; }; then
3835   :
3836 else
3837   echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 continue
3841 fi
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843   cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 $ac_declaration
3850 int
3851 main ()
3852 {
3853 exit (42);
3854   ;
3855   return 0;
3856 }
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_c_werror_flag"
3868                          || test ! -s conftest.err'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   break
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 fi
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 done
3888 rm -f conftest*
3889 if test -n "$ac_declaration"; then
3890   echo '#ifdef __cplusplus' >>confdefs.h
3891   echo $ac_declaration      >>confdefs.h
3892   echo '#endif'             >>confdefs.h
3893 fi
3894
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 fi
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907 ac_ext=cc
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913   for ac_prog in $CCC g++
3914   do
3915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -n "$CXX"; then
3923   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930   for ac_exec_ext in '' $ac_executable_extensions; do
3931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937 done
3938
3939 fi
3940 fi
3941 CXX=$ac_cv_prog_CXX
3942 if test -n "$CXX"; then
3943   echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950     test -n "$CXX" && break
3951   done
3952 fi
3953 if test -z "$CXX"; then
3954   ac_ct_CXX=$CXX
3955   for ac_prog in $CCC g++
3956 do
3957   # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$ac_ct_CXX"; then
3965   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_ac_ct_CXX="$ac_prog"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992   test -n "$ac_ct_CXX" && break
3993 done
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996   CXX=$ac_ct_CXX
3997 fi
3998
3999
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002      "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005   (eval $ac_compiler --version </dev/null >&5) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010   (eval $ac_compiler -v </dev/null >&5) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015   (eval $ac_compiler -V </dev/null >&5) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }
4019
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035 #ifndef __GNUC__
4036        choke me
4037 #endif
4038
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_cxx_werror_flag"
4053                          || test ! -s conftest.err'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ac_compiler_gnu=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_compiler_gnu=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075 fi
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4081 CXXFLAGS="-g"
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_cxx_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   ac_cv_prog_cxx_g=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_prog_cxx_g=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136   CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138   if test "$GXX" = yes; then
4139     CXXFLAGS="-g -O2"
4140   else
4141     CXXFLAGS="-g"
4142   fi
4143 else
4144   if test "$GXX" = yes; then
4145     CXXFLAGS="-O2"
4146   else
4147     CXXFLAGS=
4148   fi
4149 fi
4150 for ac_declaration in \
4151    '' \
4152    'extern "C" void std::exit (int) throw (); using std::exit;' \
4153    'extern "C" void std::exit (int); using std::exit;' \
4154    'extern "C" void exit (int) throw ();' \
4155    'extern "C" void exit (int);' \
4156    'void exit (int);'
4157 do
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 $ac_declaration
4165 #include <stdlib.h>
4166 int
4167 main ()
4168 {
4169 exit (42);
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176   (eval $ac_compile) 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_cxx_werror_flag"
4184                          || test ! -s conftest.err'
4185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186   (eval $ac_try) 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; } &&
4190          { ac_try='test -s conftest.$ac_objext'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; }; then
4196   :
4197 else
4198   echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 $ac_declaration
4211 int
4212 main ()
4213 {
4214 exit (42);
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221   (eval $ac_compile) 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } &&
4228          { ac_try='test -z "$ac_cxx_werror_flag"
4229                          || test ! -s conftest.err'
4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; } &&
4235          { ac_try='test -s conftest.$ac_objext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   break
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 fi
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 done
4249 rm -f conftest*
4250 if test -n "$ac_declaration"; then
4251   echo '#ifdef __cplusplus' >>confdefs.h
4252   echo $ac_declaration      >>confdefs.h
4253   echo '#endif'             >>confdefs.h
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 echo "$as_me:$LINENO: checking " >&5
4263 echo $ECHO_N "checking ... $ECHO_C" >&6
4264 if test "${ac_cv_has_flex+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   for ac_prog in flex lex
4268 do
4269   # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_LEX+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   if test -n "$LEX"; then
4277   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_prog_LEX="$ac_prog"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293 fi
4294 fi
4295 LEX=$ac_cv_prog_LEX
4296 if test -n "$LEX"; then
4297   echo "$as_me:$LINENO: result: $LEX" >&5
4298 echo "${ECHO_T}$LEX" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$LEX" && break
4305 done
4306 test -n "$LEX" || LEX=":"
4307
4308 if test -z "$LEXLIB"
4309 then
4310   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   ac_check_lib_save_LIBS=$LIBS
4316 LIBS="-lfl  $LIBS"
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323
4324 /* Override any gcc2 internal prototype to avoid an error.  */
4325 #ifdef __cplusplus
4326 extern "C"
4327 #endif
4328 /* We use char because int might match the return type of a gcc2
4329    builtin and then its argument prototype would still apply.  */
4330 char yywrap ();
4331 int
4332 main ()
4333 {
4334 yywrap ();
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341   (eval $ac_link) 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag"
4349                          || test ! -s conftest.err'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest$ac_exeext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_cv_lib_fl_yywrap=yes
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_lib_fl_yywrap=no
4367 fi
4368 rm -f conftest.err conftest.$ac_objext \
4369       conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4371 fi
4372 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374 if test $ac_cv_lib_fl_yywrap = yes; then
4375   LEXLIB="-lfl"
4376 else
4377   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   ac_check_lib_save_LIBS=$LIBS
4383 LIBS="-ll  $LIBS"
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390
4391 /* Override any gcc2 internal prototype to avoid an error.  */
4392 #ifdef __cplusplus
4393 extern "C"
4394 #endif
4395 /* We use char because int might match the return type of a gcc2
4396    builtin and then its argument prototype would still apply.  */
4397 char yywrap ();
4398 int
4399 main ()
4400 {
4401 yywrap ();
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408   (eval $ac_link) 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } &&
4415          { ac_try='test -z "$ac_c_werror_flag"
4416                          || test ! -s conftest.err'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; } &&
4422          { ac_try='test -s conftest$ac_exeext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_cv_lib_l_yywrap=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_cv_lib_l_yywrap=no
4434 fi
4435 rm -f conftest.err conftest.$ac_objext \
4436       conftest$ac_exeext conftest.$ac_ext
4437 LIBS=$ac_check_lib_save_LIBS
4438 fi
4439 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441 if test $ac_cv_lib_l_yywrap = yes; then
4442   LEXLIB="-ll"
4443 fi
4444
4445 fi
4446
4447 fi
4448
4449 if test "x$LEX" != "x:"; then
4450   echo "$as_me:$LINENO: checking lex output file root" >&5
4451 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452 if test "${ac_cv_prog_lex_root+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   # The minimal lex program is just a single line: %%.  But some broken lexes
4456 # (Solaris, I think it was) want two %% lines, so accommodate them.
4457 cat >conftest.l <<_ACEOF
4458 %%
4459 %%
4460 _ACEOF
4461 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462   (eval $LEX conftest.l) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }
4466 if test -f lex.yy.c; then
4467   ac_cv_prog_lex_root=lex.yy
4468 elif test -f lexyy.c; then
4469   ac_cv_prog_lex_root=lexyy
4470 else
4471   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473    { (exit 1); exit 1; }; }
4474 fi
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4478 rm -f conftest.l
4479 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4480
4481 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   # POSIX says lex can declare yytext either as a pointer or an array; the
4487 # default is implementation-dependent. Figure out which it is, since
4488 # not all implementations provide the %pointer and %array declarations.
4489 ac_cv_prog_lex_yytext_pointer=no
4490 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4491 ac_save_LIBS=$LIBS
4492 LIBS="$LIBS $LEXLIB"
4493 cat >conftest.$ac_ext <<_ACEOF
4494 `cat $LEX_OUTPUT_ROOT.c`
4495 _ACEOF
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498   (eval $ac_link) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"
4506                          || test ! -s conftest.err'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   ac_cv_prog_lex_yytext_pointer=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 fi
4524 rm -f conftest.err conftest.$ac_objext \
4525       conftest$ac_exeext conftest.$ac_ext
4526 LIBS=$ac_save_LIBS
4527 rm -f "${LEX_OUTPUT_ROOT}.c"
4528
4529 fi
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4533
4534 cat >>confdefs.h <<\_ACEOF
4535 #define YYTEXT_POINTER 1
4536 _ACEOF
4537
4538 fi
4539
4540 fi
4541
4542 fi
4543 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544 echo "${ECHO_T}$ac_cv_has_flex" >&6
4545 if test "$LEX" != "flex"; then
4546   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547 echo "$as_me: error: flex not found but required" >&2;}
4548    { (exit 1); exit 1; }; }
4549 else
4550   FLEX=flex
4551
4552 fi
4553
4554 echo "$as_me:$LINENO: checking " >&5
4555 echo $ECHO_N "checking ... $ECHO_C" >&6
4556 if test "${llvm_cv_has_bison+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   for ac_prog in 'bison -y' byacc
4560 do
4561   # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_YACC+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   if test -n "$YACC"; then
4569   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576   for ac_exec_ext in '' $ac_executable_extensions; do
4577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578     ac_cv_prog_YACC="$ac_prog"
4579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580     break 2
4581   fi
4582 done
4583 done
4584
4585 fi
4586 fi
4587 YACC=$ac_cv_prog_YACC
4588 if test -n "$YACC"; then
4589   echo "$as_me:$LINENO: result: $YACC" >&5
4590 echo "${ECHO_T}$YACC" >&6
4591 else
4592   echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596   test -n "$YACC" && break
4597 done
4598 test -n "$YACC" || YACC="yacc"
4599
4600 fi
4601 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4603 if test "$YACC" != "bison -y"; then
4604   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605 echo "$as_me: error: bison not found but required" >&2;}
4606    { (exit 1); exit 1; }; }
4607 else
4608   BISON=bison
4609
4610 fi
4611
4612 echo "$as_me:$LINENO: checking for GNU make" >&5
4613 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614 if test "${llvm_cv_gnu_make_command+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   llvm_cv_gnu_make_command=''
4618  for a in "$MAKE" make gmake gnumake ; do
4619   if test -z "$a" ; then continue ; fi ;
4620   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4621   then
4622    llvm_cv_gnu_make_command=$a ;
4623    break;
4624   fi
4625  done
4626 fi
4627 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4630    ifGNUmake='' ;
4631  else
4632    ifGNUmake='#' ;
4633    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634 echo "${ECHO_T}\"Not found\"" >&6;
4635  fi
4636
4637
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640 LN_S=$as_ln_s
4641 if test "$LN_S" = "ln -s"; then
4642   echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644 else
4645   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4647 fi
4648
4649 # Extract the first word of "cmp", so it can be a program name with args.
4650 set dummy cmp; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_path_CMP+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case $CMP in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674
4675   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4676   ;;
4677 esac
4678 fi
4679 CMP=$ac_cv_path_CMP
4680
4681 if test -n "$CMP"; then
4682   echo "$as_me:$LINENO: result: $CMP" >&5
4683 echo "${ECHO_T}$CMP" >&6
4684 else
4685   echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4687 fi
4688
4689 # Extract the first word of "cp", so it can be a program name with args.
4690 set dummy cp; ac_word=$2
4691 echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_CP+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   case $CP in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714
4715   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4716   ;;
4717 esac
4718 fi
4719 CP=$ac_cv_path_CP
4720
4721 if test -n "$CP"; then
4722   echo "$as_me:$LINENO: result: $CP" >&5
4723 echo "${ECHO_T}$CP" >&6
4724 else
4725   echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6
4727 fi
4728
4729 # Extract the first word of "date", so it can be a program name with args.
4730 set dummy date; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_path_DATE+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   case $DATE in
4737   [\\/]* | ?:[\\/]*)
4738   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4739   ;;
4740   *)
4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746   for ac_exec_ext in '' $ac_executable_extensions; do
4747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754
4755   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4756   ;;
4757 esac
4758 fi
4759 DATE=$ac_cv_path_DATE
4760
4761 if test -n "$DATE"; then
4762   echo "$as_me:$LINENO: result: $DATE" >&5
4763 echo "${ECHO_T}$DATE" >&6
4764 else
4765   echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4767 fi
4768
4769 # Extract the first word of "find", so it can be a program name with args.
4770 set dummy find; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_path_FIND+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   case $FIND in
4777   [\\/]* | ?:[\\/]*)
4778   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4779   ;;
4780   *)
4781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786   for ac_exec_ext in '' $ac_executable_extensions; do
4787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794
4795   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4796   ;;
4797 esac
4798 fi
4799 FIND=$ac_cv_path_FIND
4800
4801 if test -n "$FIND"; then
4802   echo "$as_me:$LINENO: result: $FIND" >&5
4803 echo "${ECHO_T}$FIND" >&6
4804 else
4805   echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4807 fi
4808
4809 # Extract the first word of "grep", so it can be a program name with args.
4810 set dummy grep; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_path_GREP+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   case $GREP in
4817   [\\/]* | ?:[\\/]*)
4818   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4819   ;;
4820   *)
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834
4835   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4836   ;;
4837 esac
4838 fi
4839 GREP=$ac_cv_path_GREP
4840
4841 if test -n "$GREP"; then
4842   echo "$as_me:$LINENO: result: $GREP" >&5
4843 echo "${ECHO_T}$GREP" >&6
4844 else
4845   echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 fi
4848
4849 # Extract the first word of "mkdir", so it can be a program name with args.
4850 set dummy mkdir; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MKDIR+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   case $MKDIR in
4857   [\\/]* | ?:[\\/]*)
4858   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4859   ;;
4860   *)
4861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874
4875   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4876   ;;
4877 esac
4878 fi
4879 MKDIR=$ac_cv_path_MKDIR
4880
4881 if test -n "$MKDIR"; then
4882   echo "$as_me:$LINENO: result: $MKDIR" >&5
4883 echo "${ECHO_T}$MKDIR" >&6
4884 else
4885   echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889 # Extract the first word of "mv", so it can be a program name with args.
4890 set dummy mv; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MV+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $MV in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914
4915   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4916   ;;
4917 esac
4918 fi
4919 MV=$ac_cv_path_MV
4920
4921 if test -n "$MV"; then
4922   echo "$as_me:$LINENO: result: $MV" >&5
4923 echo "${ECHO_T}$MV" >&6
4924 else
4925   echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929 if test -n "$ac_tool_prefix"; then
4930   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   if test -n "$RANLIB"; then
4938   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945   for ac_exec_ext in '' $ac_executable_extensions; do
4946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952 done
4953
4954 fi
4955 fi
4956 RANLIB=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958   echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4960 else
4961   echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4963 fi
4964
4965 fi
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967   ac_ct_RANLIB=$RANLIB
4968   # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   if test -n "$ac_ct_RANLIB"; then
4976   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for ac_exec_ext in '' $ac_executable_extensions; do
4984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985     ac_cv_prog_ac_ct_RANLIB="ranlib"
4986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990 done
4991
4992   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4993 fi
4994 fi
4995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999 else
5000   echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5002 fi
5003
5004   RANLIB=$ac_ct_RANLIB
5005 else
5006   RANLIB="$ac_cv_prog_RANLIB"
5007 fi
5008
5009 # Extract the first word of "rm", so it can be a program name with args.
5010 set dummy rm; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_RM+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   case $RM in
5017   [\\/]* | ?:[\\/]*)
5018   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034
5035   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5036   ;;
5037 esac
5038 fi
5039 RM=$ac_cv_path_RM
5040
5041 if test -n "$RM"; then
5042   echo "$as_me:$LINENO: result: $RM" >&5
5043 echo "${ECHO_T}$RM" >&6
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047 fi
5048
5049 # Extract the first word of "sed", so it can be a program name with args.
5050 set dummy sed; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_path_SED+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   case $SED in
5057   [\\/]* | ?:[\\/]*)
5058   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5059   ;;
5060   *)
5061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066   for ac_exec_ext in '' $ac_executable_extensions; do
5067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070     break 2
5071   fi
5072 done
5073 done
5074
5075   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5076   ;;
5077 esac
5078 fi
5079 SED=$ac_cv_path_SED
5080
5081 if test -n "$SED"; then
5082   echo "$as_me:$LINENO: result: $SED" >&5
5083 echo "${ECHO_T}$SED" >&6
5084 else
5085   echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 fi
5088
5089 # Extract the first word of "tar", so it can be a program name with args.
5090 set dummy tar; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_path_TAR+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   case $TAR in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114
5115   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5116   ;;
5117 esac
5118 fi
5119 TAR=$ac_cv_path_TAR
5120
5121 if test -n "$TAR"; then
5122   echo "$as_me:$LINENO: result: $TAR" >&5
5123 echo "${ECHO_T}$TAR" >&6
5124 else
5125   echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5127 fi
5128
5129 # Extract the first word of "Graphviz", so it can be a program name with args.
5130 set dummy Graphviz; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   case $GRAPHVIZ in
5137   [\\/]* | ?:[\\/]*)
5138   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5139   ;;
5140   *)
5141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146   for ac_exec_ext in '' $ac_executable_extensions; do
5147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153 done
5154
5155   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5156   ;;
5157 esac
5158 fi
5159 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5160
5161 if test -n "$GRAPHVIZ"; then
5162   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5163 echo "${ECHO_T}$GRAPHVIZ" >&6
5164 else
5165   echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5167 fi
5168
5169 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5170
5171 cat >>confdefs.h <<\_ACEOF
5172 #define HAVE_GRAPHVIZ 1
5173 _ACEOF
5174
5175
5176 cat >>confdefs.h <<_ACEOF
5177 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5178 _ACEOF
5179
5180 fi
5181 # Extract the first word of "gv", so it can be a program name with args.
5182 set dummy gv; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_path_GV+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   case $GV in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_exec_ext in '' $ac_executable_extensions; do
5199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205 done
5206
5207   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5208   ;;
5209 esac
5210 fi
5211 GV=$ac_cv_path_GV
5212
5213 if test -n "$GV"; then
5214   echo "$as_me:$LINENO: result: $GV" >&5
5215 echo "${ECHO_T}$GV" >&6
5216 else
5217   echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5219 fi
5220
5221 if test "$GV" != "echo gv" ; then
5222
5223 cat >>confdefs.h <<\_ACEOF
5224 #define HAVE_GV 1
5225 _ACEOF
5226
5227
5228 cat >>confdefs.h <<_ACEOF
5229 #define LLVM_PATH_GV "$GV"
5230 _ACEOF
5231
5232 fi
5233
5234
5235 # Extract the first word of "perl", so it can be a program name with args.
5236 set dummy perl; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_path_PERL+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   case $PERL in
5243   [\\/]* | ?:[\\/]*)
5244   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5245   ;;
5246   *)
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252   for ac_exec_ext in '' $ac_executable_extensions; do
5253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259 done
5260
5261   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5262   ;;
5263 esac
5264 fi
5265 PERL=$ac_cv_path_PERL
5266
5267 if test -n "$PERL"; then
5268   echo "$as_me:$LINENO: result: $PERL" >&5
5269 echo "${ECHO_T}$PERL" >&6
5270 else
5271   echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5273 fi
5274
5275 if test "$PERL" != "none"; then
5276   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5277 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5278   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5279     echo "$as_me:$LINENO: result: yes" >&5
5280 echo "${ECHO_T}yes" >&6
5281   else
5282     PERL=none
5283     echo "$as_me:$LINENO: result: not found" >&5
5284 echo "${ECHO_T}not found" >&6
5285   fi
5286 fi
5287
5288
5289 if test x"$PERL" = xnone; then
5290    HAVE_PERL=0
5291
5292 else
5293    HAVE_PERL=1
5294
5295 fi
5296
5297 # Find a good install program.  We prefer a C program (faster),
5298 # so one script is as good as another.  But avoid the broken or
5299 # incompatible versions:
5300 # SysV /etc/install, /usr/sbin/install
5301 # SunOS /usr/etc/install
5302 # IRIX /sbin/install
5303 # AIX /bin/install
5304 # AmigaOS /C/install, which installs bootblocks on floppy discs
5305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5308 # OS/2's system install, which has a completely different semantic
5309 # ./install, which can be erroneously created by make from ./install.sh.
5310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5312 if test -z "$INSTALL"; then
5313 if test "${ac_cv_path_install+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319   IFS=$as_save_IFS
5320   test -z "$as_dir" && as_dir=.
5321   # Account for people who put trailing slashes in PATH elements.
5322 case $as_dir/ in
5323   ./ | .// | /cC/* | \
5324   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5325   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5326   /usr/ucb/* ) ;;
5327   *)
5328     # OSF1 and SCO ODT 3.0 have their own names for install.
5329     # Don't use installbsd from OSF since it installs stuff as root
5330     # by default.
5331     for ac_prog in ginstall scoinst install; do
5332       for ac_exec_ext in '' $ac_executable_extensions; do
5333         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5334           if test $ac_prog = install &&
5335             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5336             # AIX install.  It has an incompatible calling convention.
5337             :
5338           elif test $ac_prog = install &&
5339             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5340             # program-specific install script used by HP pwplus--don't use.
5341             :
5342           else
5343             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5344             break 3
5345           fi
5346         fi
5347       done
5348     done
5349     ;;
5350 esac
5351 done
5352
5353
5354 fi
5355   if test "${ac_cv_path_install+set}" = set; then
5356     INSTALL=$ac_cv_path_install
5357   else
5358     # As a last resort, use the slow shell script.  We don't cache a
5359     # path for INSTALL within a source directory, because that will
5360     # break other packages using the cache if that directory is
5361     # removed, or if the path is relative.
5362     INSTALL=$ac_install_sh
5363   fi
5364 fi
5365 echo "$as_me:$LINENO: result: $INSTALL" >&5
5366 echo "${ECHO_T}$INSTALL" >&6
5367
5368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5369 # It thinks the first close brace ends the variable substitution.
5370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5371
5372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5373
5374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5375
5376
5377 # Extract the first word of "bzip2", so it can be a program name with args.
5378 set dummy bzip2; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_path_BZIP2+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384   case $BZIP2 in
5385   [\\/]* | ?:[\\/]*)
5386   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5387   ;;
5388   *)
5389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394   for ac_exec_ext in '' $ac_executable_extensions; do
5395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401 done
5402
5403   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5404   ;;
5405 esac
5406 fi
5407 BZIP2=$ac_cv_path_BZIP2
5408
5409 if test -n "$BZIP2"; then
5410   echo "$as_me:$LINENO: result: $BZIP2" >&5
5411 echo "${ECHO_T}$BZIP2" >&6
5412 else
5413   echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5415 fi
5416
5417 # Extract the first word of "dot", so it can be a program name with args.
5418 set dummy dot; ac_word=$2
5419 echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421 if test "${ac_cv_path_DOT+set}" = set; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424   case $DOT in
5425   [\\/]* | ?:[\\/]*)
5426   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5427   ;;
5428   *)
5429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434   for ac_exec_ext in '' $ac_executable_extensions; do
5435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441 done
5442
5443   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo "Skipped: dot not found""
5444   ;;
5445 esac
5446 fi
5447 DOT=$ac_cv_path_DOT
5448
5449 if test -n "$DOT"; then
5450   echo "$as_me:$LINENO: result: $DOT" >&5
5451 echo "${ECHO_T}$DOT" >&6
5452 else
5453   echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455 fi
5456
5457 # Extract the first word of "doxygen", so it can be a program name with args.
5458 set dummy doxygen; ac_word=$2
5459 echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   case $DOXYGEN in
5465   [\\/]* | ?:[\\/]*)
5466   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5467   ;;
5468   *)
5469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474   for ac_exec_ext in '' $ac_executable_extensions; do
5475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481 done
5482
5483   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5484   ;;
5485 esac
5486 fi
5487 DOXYGEN=$ac_cv_path_DOXYGEN
5488
5489 if test -n "$DOXYGEN"; then
5490   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5491 echo "${ECHO_T}$DOXYGEN" >&6
5492 else
5493   echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6
5495 fi
5496
5497 # Extract the first word of "etags", so it can be a program name with args.
5498 set dummy etags; ac_word=$2
5499 echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501 if test "${ac_cv_path_ETAGS+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   case $ETAGS in
5505   [\\/]* | ?:[\\/]*)
5506   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5507   ;;
5508   *)
5509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514   for ac_exec_ext in '' $ac_executable_extensions; do
5515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518     break 2
5519   fi
5520 done
5521 done
5522
5523   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5524   ;;
5525 esac
5526 fi
5527 ETAGS=$ac_cv_path_ETAGS
5528
5529 if test -n "$ETAGS"; then
5530   echo "$as_me:$LINENO: result: $ETAGS" >&5
5531 echo "${ECHO_T}$ETAGS" >&6
5532 else
5533   echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6
5535 fi
5536
5537 # Extract the first word of "groff", so it can be a program name with args.
5538 set dummy groff; ac_word=$2
5539 echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541 if test "${ac_cv_path_GROFF+set}" = set; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544   case $GROFF in
5545   [\\/]* | ?:[\\/]*)
5546   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5547   ;;
5548   *)
5549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554   for ac_exec_ext in '' $ac_executable_extensions; do
5555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561 done
5562
5563   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5564   ;;
5565 esac
5566 fi
5567 GROFF=$ac_cv_path_GROFF
5568
5569 if test -n "$GROFF"; then
5570   echo "$as_me:$LINENO: result: $GROFF" >&5
5571 echo "${ECHO_T}$GROFF" >&6
5572 else
5573   echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6
5575 fi
5576
5577 # Extract the first word of "gzip", so it can be a program name with args.
5578 set dummy gzip; ac_word=$2
5579 echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581 if test "${ac_cv_path_GZIP+set}" = set; then
5582   echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584   case $GZIP in
5585   [\\/]* | ?:[\\/]*)
5586   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5587   ;;
5588   *)
5589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594   for ac_exec_ext in '' $ac_executable_extensions; do
5595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601 done
5602
5603   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5604   ;;
5605 esac
5606 fi
5607 GZIP=$ac_cv_path_GZIP
5608
5609 if test -n "$GZIP"; then
5610   echo "$as_me:$LINENO: result: $GZIP" >&5
5611 echo "${ECHO_T}$GZIP" >&6
5612 else
5613   echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615 fi
5616
5617 # Extract the first word of "pod2html", so it can be a program name with args.
5618 set dummy pod2html; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_path_POD2HTML+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   case $POD2HTML in
5625   [\\/]* | ?:[\\/]*)
5626   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5627   ;;
5628   *)
5629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634   for ac_exec_ext in '' $ac_executable_extensions; do
5635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641 done
5642
5643   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5644   ;;
5645 esac
5646 fi
5647 POD2HTML=$ac_cv_path_POD2HTML
5648
5649 if test -n "$POD2HTML"; then
5650   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5651 echo "${ECHO_T}$POD2HTML" >&6
5652 else
5653   echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5656
5657 # Extract the first word of "pod2man", so it can be a program name with args.
5658 set dummy pod2man; ac_word=$2
5659 echo "$as_me:$LINENO: checking for $ac_word" >&5
5660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5661 if test "${ac_cv_path_POD2MAN+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   case $POD2MAN in
5665   [\\/]* | ?:[\\/]*)
5666   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5667   ;;
5668   *)
5669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672   IFS=$as_save_IFS
5673   test -z "$as_dir" && as_dir=.
5674   for ac_exec_ext in '' $ac_executable_extensions; do
5675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678     break 2
5679   fi
5680 done
5681 done
5682
5683   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5684   ;;
5685 esac
5686 fi
5687 POD2MAN=$ac_cv_path_POD2MAN
5688
5689 if test -n "$POD2MAN"; then
5690   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5691 echo "${ECHO_T}$POD2MAN" >&6
5692 else
5693   echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5695 fi
5696
5697 # Extract the first word of "runtest", so it can be a program name with args.
5698 set dummy runtest; ac_word=$2
5699 echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701 if test "${ac_cv_path_RUNTEST+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   case $RUNTEST in
5705   [\\/]* | ?:[\\/]*)
5706   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5707   ;;
5708   *)
5709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714   for ac_exec_ext in '' $ac_executable_extensions; do
5715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721 done
5722
5723   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5724   ;;
5725 esac
5726 fi
5727 RUNTEST=$ac_cv_path_RUNTEST
5728
5729 if test -n "$RUNTEST"; then
5730   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5731 echo "${ECHO_T}$RUNTEST" >&6
5732 else
5733   echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5735 fi
5736
5737
5738 no_itcl=true
5739 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5740 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5741
5742 # Check whether --with-tclinclude or --without-tclinclude was given.
5743 if test "${with_tclinclude+set}" = set; then
5744   withval="$with_tclinclude"
5745   with_tclinclude=${withval}
5746 else
5747   with_tclinclude=''
5748 fi;
5749 if test "${ac_cv_path_tclsh+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752
5753 if test x"${with_tclinclude}" != x ; then
5754   if test -f ${with_tclinclude}/tclsh ; then
5755     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5756   elif test -f ${with_tclinclude}/src/tclsh ; then
5757     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5758   else
5759     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5760 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5761    { (exit 1); exit 1; }; }
5762   fi
5763 fi
5764
5765 if test x"${ac_cv_path_tclsh}" = x ; then
5766   echo "$as_me:$LINENO: result: none" >&5
5767 echo "${ECHO_T}none" >&6
5768   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
5769 do
5770   # Extract the first word of "$ac_prog", so it can be a program name with args.
5771 set dummy $ac_prog; ac_word=$2
5772 echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774 if test "${ac_cv_path_TCLSH+set}" = set; then
5775   echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777   case $TCLSH in
5778   [\\/]* | ?:[\\/]*)
5779   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5780   ;;
5781   *)
5782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787   for ac_exec_ext in '' $ac_executable_extensions; do
5788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794 done
5795
5796   ;;
5797 esac
5798 fi
5799 TCLSH=$ac_cv_path_TCLSH
5800
5801 if test -n "$TCLSH"; then
5802   echo "$as_me:$LINENO: result: $TCLSH" >&5
5803 echo "${ECHO_T}$TCLSH" >&6
5804 else
5805   echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6
5807 fi
5808
5809   test -n "$TCLSH" && break
5810 done
5811
5812   if test x"${TCLSH}" = x ; then
5813     ac_cv_path_tclsh='';
5814   else
5815     ac_cv_path_tclsh="${TCLSH}";
5816   fi
5817 else
5818   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5819 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5820   TCLSH="${ac_cv_path_tclsh}"
5821
5822 fi
5823
5824 fi
5825
5826 # Extract the first word of "zip", so it can be a program name with args.
5827 set dummy zip; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_path_ZIP+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   case $ZIP in
5834   [\\/]* | ?:[\\/]*)
5835   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5836   ;;
5837   *)
5838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841   IFS=$as_save_IFS
5842   test -z "$as_dir" && as_dir=.
5843   for ac_exec_ext in '' $ac_executable_extensions; do
5844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847     break 2
5848   fi
5849 done
5850 done
5851
5852   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5853   ;;
5854 esac
5855 fi
5856 ZIP=$ac_cv_path_ZIP
5857
5858 if test -n "$ZIP"; then
5859   echo "$as_me:$LINENO: result: $ZIP" >&5
5860 echo "${ECHO_T}$ZIP" >&6
5861 else
5862   echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5864 fi
5865
5866
5867 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5868 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5869 if test "${llvm_cv_link_use_r+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872    ac_ext=c
5873 ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
5878   oldcflags="$CFLAGS"
5879   CFLAGS="$CFLAGS -Wl,-R."
5880   cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886
5887 int
5888 main ()
5889 {
5890 int main() { return 0; }
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897   (eval $ac_link) 2>conftest.er1
5898   ac_status=$?
5899   grep -v '^ *+' conftest.er1 >conftest.err
5900   rm -f conftest.er1
5901   cat conftest.err >&5
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -z "$ac_c_werror_flag"
5905                          || test ! -s conftest.err'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; } &&
5911          { ac_try='test -s conftest$ac_exeext'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; }; then
5917   llvm_cv_link_use_r=yes
5918 else
5919   echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922 llvm_cv_link_use_r=no
5923 fi
5924 rm -f conftest.err conftest.$ac_objext \
5925       conftest$ac_exeext conftest.$ac_ext
5926   CFLAGS="$oldcflags"
5927   ac_ext=c
5928 ac_cpp='$CPP $CPPFLAGS'
5929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932
5933
5934 fi
5935 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5936 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5937 if test "$llvm_cv_link_use_r" = yes ; then
5938
5939 cat >>confdefs.h <<\_ACEOF
5940 #define HAVE_LINK_R 1
5941 _ACEOF
5942
5943   fi
5944
5945
5946
5947
5948 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5949 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5950 if test "${ac_cv_c_const+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959
5960 int
5961 main ()
5962 {
5963 /* FIXME: Include the comments suggested by Paul. */
5964 #ifndef __cplusplus
5965   /* Ultrix mips cc rejects this.  */
5966   typedef int charset[2];
5967   const charset x;
5968   /* SunOS 4.1.1 cc rejects this.  */
5969   char const *const *ccp;
5970   char **p;
5971   /* NEC SVR4.0.2 mips cc rejects this.  */
5972   struct point {int x, y;};
5973   static struct point const zero = {0,0};
5974   /* AIX XL C 1.02.0.0 rejects this.
5975      It does not let you subtract one const X* pointer from another in
5976      an arm of an if-expression whose if-part is not a constant
5977      expression */
5978   const char *g = "string";
5979   ccp = &g + (g ? g-g : 0);
5980   /* HPUX 7.0 cc rejects these. */
5981   ++ccp;
5982   p = (char**) ccp;
5983   ccp = (char const *const *) p;
5984   { /* SCO 3.2v4 cc rejects this.  */
5985     char *t;
5986     char const *s = 0 ? (char *) 0 : (char const *) 0;
5987
5988     *t++ = 0;
5989   }
5990   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5991     int x[] = {25, 17};
5992     const int *foo = &x[0];
5993     ++foo;
5994   }
5995   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5996     typedef const int *iptr;
5997     iptr p = 0;
5998     ++p;
5999   }
6000   { /* AIX XL C 1.02.0.0 rejects this saying
6001        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6002     struct s { int j; const int *ap[3]; };
6003     struct s *b; b->j = 5;
6004   }
6005   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6006     const int foo = 10;
6007   }
6008 #endif
6009
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 rm -f conftest.$ac_objext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016   (eval $ac_compile) 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -z "$ac_c_werror_flag"
6024                          || test ! -s conftest.err'
6025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026   (eval $ac_try) 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); }; } &&
6030          { ac_try='test -s conftest.$ac_objext'
6031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032   (eval $ac_try) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; }; then
6036   ac_cv_c_const=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ac_cv_c_const=no
6042 fi
6043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6046 echo "${ECHO_T}$ac_cv_c_const" >&6
6047 if test $ac_cv_c_const = no; then
6048
6049 cat >>confdefs.h <<\_ACEOF
6050 #define const
6051 _ACEOF
6052
6053 fi
6054
6055
6056 echo "$as_me:$LINENO: checking for egrep" >&5
6057 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6058 if test "${ac_cv_prog_egrep+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6062     then ac_cv_prog_egrep='grep -E'
6063     else ac_cv_prog_egrep='egrep'
6064     fi
6065 fi
6066 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6067 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6068  EGREP=$ac_cv_prog_egrep
6069
6070
6071 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6072 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6073 if test "${ac_cv_header_stdc+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h.  */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h.  */
6082 #include <stdlib.h>
6083 #include <stdarg.h>
6084 #include <string.h>
6085 #include <float.h>
6086
6087 int
6088 main ()
6089 {
6090
6091   ;
6092   return 0;
6093 }
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097   (eval $ac_compile) 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } &&
6104          { ac_try='test -z "$ac_c_werror_flag"
6105                          || test ! -s conftest.err'
6106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107   (eval $ac_try) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; } &&
6111          { ac_try='test -s conftest.$ac_objext'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; }; then
6117   ac_cv_header_stdc=yes
6118 else
6119   echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 ac_cv_header_stdc=no
6123 fi
6124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6125
6126 if test $ac_cv_header_stdc = yes; then
6127   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6128   cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134 #include <string.h>
6135
6136 _ACEOF
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138   $EGREP "memchr" >/dev/null 2>&1; then
6139   :
6140 else
6141   ac_cv_header_stdc=no
6142 fi
6143 rm -f conftest*
6144
6145 fi
6146
6147 if test $ac_cv_header_stdc = yes; then
6148   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6149   cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h.  */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h.  */
6155 #include <stdlib.h>
6156
6157 _ACEOF
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159   $EGREP "free" >/dev/null 2>&1; then
6160   :
6161 else
6162   ac_cv_header_stdc=no
6163 fi
6164 rm -f conftest*
6165
6166 fi
6167
6168 if test $ac_cv_header_stdc = yes; then
6169   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6170   if test "$cross_compiling" = yes; then
6171   :
6172 else
6173   cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179 #include <ctype.h>
6180 #if ((' ' & 0x0FF) == 0x020)
6181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6183 #else
6184 # define ISLOWER(c) \
6185                    (('a' <= (c) && (c) <= 'i') \
6186                      || ('j' <= (c) && (c) <= 'r') \
6187                      || ('s' <= (c) && (c) <= 'z'))
6188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6189 #endif
6190
6191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6192 int
6193 main ()
6194 {
6195   int i;
6196   for (i = 0; i < 256; i++)
6197     if (XOR (islower (i), ISLOWER (i))
6198         || toupper (i) != TOUPPER (i))
6199       exit(2);
6200   exit (0);
6201 }
6202 _ACEOF
6203 rm -f conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205   (eval $ac_link) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210   (eval $ac_try) 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }; }; then
6214   :
6215 else
6216   echo "$as_me: program exited with status $ac_status" >&5
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ( exit $ac_status )
6221 ac_cv_header_stdc=no
6222 fi
6223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6224 fi
6225 fi
6226 fi
6227 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6228 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6229 if test $ac_cv_header_stdc = yes; then
6230
6231 cat >>confdefs.h <<\_ACEOF
6232 #define STDC_HEADERS 1
6233 _ACEOF
6234
6235 fi
6236
6237
6238
6239
6240
6241
6242 ac_header_dirent=no
6243 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6244   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6245 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6246 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h.  */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h.  */
6256 #include <sys/types.h>
6257 #include <$ac_hdr>
6258
6259 int
6260 main ()
6261 {
6262 if ((DIR *) 0)
6263 return 0;
6264   ;
6265   return 0;
6266 }
6267 _ACEOF
6268 rm -f conftest.$ac_objext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270   (eval $ac_compile) 2>conftest.er1
6271   ac_status=$?
6272   grep -v '^ *+' conftest.er1 >conftest.err
6273   rm -f conftest.er1
6274   cat conftest.err >&5
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); } &&
6277          { ac_try='test -z "$ac_c_werror_flag"
6278                          || test ! -s conftest.err'
6279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280   (eval $ac_try) 2>&5
6281   ac_status=$?
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); }; } &&
6284          { ac_try='test -s conftest.$ac_objext'
6285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286   (eval $ac_try) 2>&5
6287   ac_status=$?
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); }; }; then
6290   eval "$as_ac_Header=yes"
6291 else
6292   echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 eval "$as_ac_Header=no"
6296 fi
6297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298 fi
6299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6302   cat >>confdefs.h <<_ACEOF
6303 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6304 _ACEOF
6305
6306 ac_header_dirent=$ac_hdr; break
6307 fi
6308
6309 done
6310 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6311 if test $ac_header_dirent = dirent.h; then
6312   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6313 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6314 if test "${ac_cv_search_opendir+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   ac_func_search_save_LIBS=$LIBS
6318 ac_cv_search_opendir=no
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325
6326 /* Override any gcc2 internal prototype to avoid an error.  */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331    builtin and then its argument prototype would still apply.  */
6332 char opendir ();
6333 int
6334 main ()
6335 {
6336 opendir ();
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -z "$ac_c_werror_flag"
6351                          || test ! -s conftest.err'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   ac_cv_search_opendir="none required"
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 fi
6369 rm -f conftest.err conftest.$ac_objext \
6370       conftest$ac_exeext conftest.$ac_ext
6371 if test "$ac_cv_search_opendir" = no; then
6372   for ac_lib in dir; do
6373     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6374     cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380
6381 /* Override any gcc2 internal prototype to avoid an error.  */
6382 #ifdef __cplusplus
6383 extern "C"
6384 #endif
6385 /* We use char because int might match the return type of a gcc2
6386    builtin and then its argument prototype would still apply.  */
6387 char opendir ();
6388 int
6389 main ()
6390 {
6391 opendir ();
6392   ;
6393   return 0;
6394 }
6395 _ACEOF
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6398   (eval $ac_link) 2>conftest.er1
6399   ac_status=$?
6400   grep -v '^ *+' conftest.er1 >conftest.err
6401   rm -f conftest.er1
6402   cat conftest.err >&5
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); } &&
6405          { ac_try='test -z "$ac_c_werror_flag"
6406                          || test ! -s conftest.err'
6407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408   (eval $ac_try) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; } &&
6412          { ac_try='test -s conftest$ac_exeext'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; }; then
6418   ac_cv_search_opendir="-l$ac_lib"
6419 break
6420 else
6421   echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 fi
6425 rm -f conftest.err conftest.$ac_objext \
6426       conftest$ac_exeext conftest.$ac_ext
6427   done
6428 fi
6429 LIBS=$ac_func_search_save_LIBS
6430 fi
6431 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6432 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6433 if test "$ac_cv_search_opendir" != no; then
6434   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6435
6436 fi
6437
6438 else
6439   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6440 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6441 if test "${ac_cv_search_opendir+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   ac_func_search_save_LIBS=$LIBS
6445 ac_cv_search_opendir=no
6446 cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h.  */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h.  */
6452
6453 /* Override any gcc2 internal prototype to avoid an error.  */
6454 #ifdef __cplusplus
6455 extern "C"
6456 #endif
6457 /* We use char because int might match the return type of a gcc2
6458    builtin and then its argument prototype would still apply.  */
6459 char opendir ();
6460 int
6461 main ()
6462 {
6463 opendir ();
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470   (eval $ac_link) 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -z "$ac_c_werror_flag"
6478                          || test ! -s conftest.err'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; } &&
6484          { ac_try='test -s conftest$ac_exeext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_cv_search_opendir="none required"
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 fi
6496 rm -f conftest.err conftest.$ac_objext \
6497       conftest$ac_exeext conftest.$ac_ext
6498 if test "$ac_cv_search_opendir" = no; then
6499   for ac_lib in x; do
6500     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6501     cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h.  */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h.  */
6507
6508 /* Override any gcc2 internal prototype to avoid an error.  */
6509 #ifdef __cplusplus
6510 extern "C"
6511 #endif
6512 /* We use char because int might match the return type of a gcc2
6513    builtin and then its argument prototype would still apply.  */
6514 char opendir ();
6515 int
6516 main ()
6517 {
6518 opendir ();
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525   (eval $ac_link) 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } &&
6532          { ac_try='test -z "$ac_c_werror_flag"
6533                          || test ! -s conftest.err'
6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535   (eval $ac_try) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; } &&
6539          { ac_try='test -s conftest$ac_exeext'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; }; then
6545   ac_cv_search_opendir="-l$ac_lib"
6546 break
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 fi
6552 rm -f conftest.err conftest.$ac_objext \
6553       conftest$ac_exeext conftest.$ac_ext
6554   done
6555 fi
6556 LIBS=$ac_func_search_save_LIBS
6557 fi
6558 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6559 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6560 if test "$ac_cv_search_opendir" != no; then
6561   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6562
6563 fi
6564
6565 fi
6566
6567 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6578                   inttypes.h stdint.h unistd.h
6579 do
6580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6581 echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592 $ac_includes_default
6593
6594 #include <$ac_header>
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598   (eval $ac_compile) 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } &&
6605          { ac_try='test -z "$ac_c_werror_flag"
6606                          || test ! -s conftest.err'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; } &&
6612          { ac_try='test -s conftest.$ac_objext'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618   eval "$as_ac_Header=yes"
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 eval "$as_ac_Header=no"
6624 fi
6625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626 fi
6627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630   cat >>confdefs.h <<_ACEOF
6631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632 _ACEOF
6633
6634 fi
6635
6636 done
6637
6638
6639
6640 for ac_header in dlfcn.h
6641 do
6642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644   echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 fi
6649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6651 else
6652   # Is the header compilable?
6653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h.  */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h.  */
6661 $ac_includes_default
6662 #include <$ac_header>
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666   (eval $ac_compile) 2>conftest.er1
6667   ac_status=$?
6668   grep -v '^ *+' conftest.er1 >conftest.err
6669   rm -f conftest.er1
6670   cat conftest.err >&5
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } &&
6673          { ac_try='test -z "$ac_c_werror_flag"
6674                          || test ! -s conftest.err'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; } &&
6680          { ac_try='test -s conftest.$ac_objext'
6681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682   (eval $ac_try) 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; }; then
6686   ac_header_compiler=yes
6687 else
6688   echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 ac_header_compiler=no
6692 fi
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6695 echo "${ECHO_T}$ac_header_compiler" >&6
6696
6697 # Is the header present?
6698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h.  */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h.  */
6706 #include <$ac_header>
6707 _ACEOF
6708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6710   ac_status=$?
6711   grep -v '^ *+' conftest.er1 >conftest.err
6712   rm -f conftest.er1
6713   cat conftest.err >&5
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); } >/dev/null; then
6716   if test -s conftest.err; then
6717     ac_cpp_err=$ac_c_preproc_warn_flag
6718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6719   else
6720     ac_cpp_err=
6721   fi
6722 else
6723   ac_cpp_err=yes
6724 fi
6725 if test -z "$ac_cpp_err"; then
6726   ac_header_preproc=yes
6727 else
6728   echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731   ac_header_preproc=no
6732 fi
6733 rm -f conftest.err conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6735 echo "${ECHO_T}$ac_header_preproc" >&6
6736
6737 # So?  What about this header?
6738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6739   yes:no: )
6740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6744     ac_header_preproc=yes
6745     ;;
6746   no:yes:* )
6747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6759     (
6760       cat <<\_ASBOX
6761 ## ----------------------------------- ##
6762 ## Report this to llvmbugs@cs.uiuc.edu ##
6763 ## ----------------------------------- ##
6764 _ASBOX
6765     ) |
6766       sed "s/^/$as_me: WARNING:     /" >&2
6767     ;;
6768 esac
6769 echo "$as_me:$LINENO: checking for $ac_header" >&5
6770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   eval "$as_ac_Header=\$ac_header_preproc"
6775 fi
6776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6778
6779 fi
6780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6781   cat >>confdefs.h <<_ACEOF
6782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6783 _ACEOF
6784
6785 fi
6786
6787 done
6788
6789 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6790 if test "${enable_ltdl_install+set}" = set; then
6791   enableval="$enable_ltdl_install"
6792
6793 fi;
6794
6795
6796
6797 if test x"${enable_ltdl_install-no}" != xno; then
6798   INSTALL_LTDL_TRUE=
6799   INSTALL_LTDL_FALSE='#'
6800 else
6801   INSTALL_LTDL_TRUE='#'
6802   INSTALL_LTDL_FALSE=
6803 fi
6804
6805
6806
6807 if test x"${enable_ltdl_convenience-no}" != xno; then
6808   CONVENIENCE_LTDL_TRUE=
6809   CONVENIENCE_LTDL_FALSE='#'
6810 else
6811   CONVENIENCE_LTDL_TRUE='#'
6812   CONVENIENCE_LTDL_FALSE=
6813 fi
6814
6815
6816 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6817 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6818 library_names_spec=
6819 libname_spec='lib$name'
6820 soname_spec=
6821 shrext_cmds=".so"
6822 postinstall_cmds=
6823 postuninstall_cmds=
6824 finish_cmds=
6825 finish_eval=
6826 shlibpath_var=
6827 shlibpath_overrides_runpath=unknown
6828 version_type=none
6829 dynamic_linker="$host_os ld.so"
6830 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6831 if test "$GCC" = yes; then
6832   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6833   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6834     # if the path contains ";" then we assume it to be the separator
6835     # otherwise default to the standard path separator (i.e. ":") - it is
6836     # assumed that no part of a normal pathname contains ";" but that should
6837     # okay in the real world where ";" in dirpaths is itself problematic.
6838     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6839   else
6840     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6841   fi
6842 else
6843   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6844 fi
6845 need_lib_prefix=unknown
6846 hardcode_into_libs=no
6847
6848 # when you set need_version to no, make sure it does not cause -set_version
6849 # flags to be left without arguments
6850 need_version=unknown
6851
6852 case $host_os in
6853 aix3*)
6854   version_type=linux
6855   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6856   shlibpath_var=LIBPATH
6857
6858   # AIX 3 has no versioning support, so we append a major version to the name.
6859   soname_spec='${libname}${release}${shared_ext}$major'
6860   ;;
6861
6862 aix4* | aix5*)
6863   version_type=linux
6864   need_lib_prefix=no
6865   need_version=no
6866   hardcode_into_libs=yes
6867   if test "$host_cpu" = ia64; then
6868     # AIX 5 supports IA64
6869     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6870     shlibpath_var=LD_LIBRARY_PATH
6871   else
6872     # With GCC up to 2.95.x, collect2 would create an import file
6873     # for dependence libraries.  The import file would start with
6874     # the line `#! .'.  This would cause the generated library to
6875     # depend on `.', always an invalid library.  This was fixed in
6876     # development snapshots of GCC prior to 3.0.
6877     case $host_os in
6878       aix4 | aix4.[01] | aix4.[01].*)
6879       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6880            echo ' yes '
6881            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6882         :
6883       else
6884         can_build_shared=no
6885       fi
6886       ;;
6887     esac
6888     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6889     # soname into executable. Probably we can add versioning support to
6890     # collect2, so additional links can be useful in future.
6891     if test "$aix_use_runtimelinking" = yes; then
6892       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6893       # instead of lib<name>.a to let people know that these are not
6894       # typical AIX shared libraries.
6895       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6896     else
6897       # We preserve .a as extension for shared libraries through AIX4.2
6898       # and later when we are not doing run time linking.
6899       library_names_spec='${libname}${release}.a $libname.a'
6900       soname_spec='${libname}${release}${shared_ext}$major'
6901     fi
6902     shlibpath_var=LIBPATH
6903   fi
6904   ;;
6905
6906 amigaos*)
6907   library_names_spec='$libname.ixlibrary $libname.a'
6908   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6909   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'
6910   ;;
6911
6912 beos*)
6913   library_names_spec='${libname}${shared_ext}'
6914   dynamic_linker="$host_os ld.so"
6915   shlibpath_var=LIBRARY_PATH
6916   ;;
6917
6918 bsdi[45]*)
6919   version_type=linux
6920   need_version=no
6921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6922   soname_spec='${libname}${release}${shared_ext}$major'
6923   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6924   shlibpath_var=LD_LIBRARY_PATH
6925   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6926   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6927   # the default ld.so.conf also contains /usr/contrib/lib and
6928   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6929   # libtool to hard-code these into programs
6930   ;;
6931
6932 cygwin* | mingw* | pw32*)
6933   version_type=windows
6934   shrext_cmds=".dll"
6935   need_version=no
6936   need_lib_prefix=no
6937
6938   case $GCC,$host_os in
6939   yes,cygwin* | yes,mingw* | yes,pw32*)
6940     library_names_spec='$libname.dll.a'
6941     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6942     postinstall_cmds='base_file=`basename \${file}`~
6943       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6944       dldir=$destdir/`dirname \$dlpath`~
6945       test -d \$dldir || mkdir -p \$dldir~
6946       $install_prog $dir/$dlname \$dldir/$dlname'
6947     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6948       dlpath=$dir/\$dldll~
6949        $rm \$dlpath'
6950     shlibpath_overrides_runpath=yes
6951
6952     case $host_os in
6953     cygwin*)
6954       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6955       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6956       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6957       ;;
6958     mingw*)
6959       # MinGW DLLs use traditional 'lib' prefix
6960       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6961       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6962       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6963         # It is most probably a Windows format PATH printed by
6964         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6965         # path with ; separators, and with drive letters. We can handle the
6966         # drive letters (cygwin fileutils understands them), so leave them,
6967         # especially as we might pass files found there to a mingw objdump,
6968         # which wouldn't understand a cygwinified path. Ahh.
6969         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6970       else
6971         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6972       fi
6973       ;;
6974     pw32*)
6975       # pw32 DLLs use 'pw' prefix rather than 'lib'
6976       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6977       ;;
6978     esac
6979     ;;
6980
6981   *)
6982     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6983     ;;
6984   esac
6985   dynamic_linker='Win32 ld.exe'
6986   # FIXME: first we should search . and the directory the executable is in
6987   shlibpath_var=PATH
6988   ;;
6989
6990 darwin* | rhapsody*)
6991   dynamic_linker="$host_os dyld"
6992   version_type=darwin
6993   need_lib_prefix=no
6994   need_version=no
6995   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6996   soname_spec='${libname}${release}${major}$shared_ext'
6997   shlibpath_overrides_runpath=yes
6998   shlibpath_var=DYLD_LIBRARY_PATH
6999   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7000   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7001   if test "$GCC" = yes; then
7002     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"`
7003   else
7004     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7005   fi
7006   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7007   ;;
7008
7009 dgux*)
7010   version_type=linux
7011   need_lib_prefix=no
7012   need_version=no
7013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7014   soname_spec='${libname}${release}${shared_ext}$major'
7015   shlibpath_var=LD_LIBRARY_PATH
7016   ;;
7017
7018 freebsd1*)
7019   dynamic_linker=no
7020   ;;
7021
7022 kfreebsd*-gnu)
7023   version_type=linux
7024   need_lib_prefix=no
7025   need_version=no
7026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7027   soname_spec='${libname}${release}${shared_ext}$major'
7028   shlibpath_var=LD_LIBRARY_PATH
7029   shlibpath_overrides_runpath=no
7030   hardcode_into_libs=yes
7031   dynamic_linker='GNU ld.so'
7032   ;;
7033
7034 freebsd*)
7035   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7036   version_type=freebsd-$objformat
7037   case $version_type in
7038     freebsd-elf*)
7039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7040       need_version=no
7041       need_lib_prefix=no
7042       ;;
7043     freebsd-*)
7044       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7045       need_version=yes
7046       ;;
7047   esac
7048   shlibpath_var=LD_LIBRARY_PATH
7049   case $host_os in
7050   freebsd2*)
7051     shlibpath_overrides_runpath=yes
7052     ;;
7053   freebsd3.01* | freebsdelf3.01*)
7054     shlibpath_overrides_runpath=yes
7055     hardcode_into_libs=yes
7056     ;;
7057   *) # from 3.2 on
7058     shlibpath_overrides_runpath=no
7059     hardcode_into_libs=yes
7060     ;;
7061   esac
7062   ;;
7063
7064 gnu*)
7065   version_type=linux
7066   need_lib_prefix=no
7067   need_version=no
7068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7069   soname_spec='${libname}${release}${shared_ext}$major'
7070   shlibpath_var=LD_LIBRARY_PATH
7071   hardcode_into_libs=yes
7072   ;;
7073
7074 hpux9* | hpux10* | hpux11*)
7075   # Give a soname corresponding to the major version so that dld.sl refuses to
7076   # link against other versions.
7077   version_type=sunos
7078   need_lib_prefix=no
7079   need_version=no
7080   case "$host_cpu" in
7081   ia64*)
7082     shrext_cmds='.so'
7083     hardcode_into_libs=yes
7084     dynamic_linker="$host_os dld.so"
7085     shlibpath_var=LD_LIBRARY_PATH
7086     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088     soname_spec='${libname}${release}${shared_ext}$major'
7089     if test "X$HPUX_IA64_MODE" = X32; then
7090       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7091     else
7092       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7093     fi
7094     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7095     ;;
7096    hppa*64*)
7097      shrext_cmds='.sl'
7098      hardcode_into_libs=yes
7099      dynamic_linker="$host_os dld.sl"
7100      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7101      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7103      soname_spec='${libname}${release}${shared_ext}$major'
7104      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7105      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7106      ;;
7107    *)
7108     shrext_cmds='.sl'
7109     dynamic_linker="$host_os dld.sl"
7110     shlibpath_var=SHLIB_PATH
7111     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7113     soname_spec='${libname}${release}${shared_ext}$major'
7114     ;;
7115   esac
7116   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7117   postinstall_cmds='chmod 555 $lib'
7118   ;;
7119
7120 irix5* | irix6* | nonstopux*)
7121   case $host_os in
7122     nonstopux*) version_type=nonstopux ;;
7123     *)
7124         if test "$lt_cv_prog_gnu_ld" = yes; then
7125                 version_type=linux
7126         else
7127                 version_type=irix
7128         fi ;;
7129   esac
7130   need_lib_prefix=no
7131   need_version=no
7132   soname_spec='${libname}${release}${shared_ext}$major'
7133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7134   case $host_os in
7135   irix5* | nonstopux*)
7136     libsuff= shlibsuff=
7137     ;;
7138   *)
7139     case $LD in # libtool.m4 will add one of these switches to LD
7140     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7141       libsuff= shlibsuff= libmagic=32-bit;;
7142     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7143       libsuff=32 shlibsuff=N32 libmagic=N32;;
7144     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7145       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7146     *) libsuff= shlibsuff= libmagic=never-match;;
7147     esac
7148     ;;
7149   esac
7150   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7151   shlibpath_overrides_runpath=no
7152   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7153   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7154   hardcode_into_libs=yes
7155   ;;
7156
7157 # No shared lib support for Linux oldld, aout, or coff.
7158 linux*oldld* | linux*aout* | linux*coff*)
7159   dynamic_linker=no
7160   ;;
7161
7162 # This must be Linux ELF.
7163 linux*)
7164   version_type=linux
7165   need_lib_prefix=no
7166   need_version=no
7167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7168   soname_spec='${libname}${release}${shared_ext}$major'
7169   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7170   shlibpath_var=LD_LIBRARY_PATH
7171   shlibpath_overrides_runpath=no
7172   # This implies no fast_install, which is unacceptable.
7173   # Some rework will be needed to allow for fast_install
7174   # before this can be enabled.
7175   hardcode_into_libs=yes
7176
7177   # Append ld.so.conf contents to the search path
7178   if test -f /etc/ld.so.conf; then
7179     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7180     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7181   fi
7182
7183   # We used to test for /lib/ld.so.1 and disable shared libraries on
7184   # powerpc, because MkLinux only supported shared libraries with the
7185   # GNU dynamic linker.  Since this was broken with cross compilers,
7186   # most powerpc-linux boxes support dynamic linking these days and
7187   # people can always --disable-shared, the test was removed, and we
7188   # assume the GNU/Linux dynamic linker is in use.
7189   dynamic_linker='GNU/Linux ld.so'
7190   ;;
7191
7192 knetbsd*-gnu)
7193   version_type=linux
7194   need_lib_prefix=no
7195   need_version=no
7196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7197   soname_spec='${libname}${release}${shared_ext}$major'
7198   shlibpath_var=LD_LIBRARY_PATH
7199   shlibpath_overrides_runpath=no
7200   hardcode_into_libs=yes
7201   dynamic_linker='GNU ld.so'
7202   ;;
7203
7204 netbsd*)
7205   version_type=sunos
7206   need_lib_prefix=no
7207   need_version=no
7208   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7210     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7211     dynamic_linker='NetBSD (a.out) ld.so'
7212   else
7213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7214     soname_spec='${libname}${release}${shared_ext}$major'
7215     dynamic_linker='NetBSD ld.elf_so'
7216   fi
7217   shlibpath_var=LD_LIBRARY_PATH
7218   shlibpath_overrides_runpath=yes
7219   hardcode_into_libs=yes
7220   ;;
7221
7222 newsos6)
7223   version_type=linux
7224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7225   shlibpath_var=LD_LIBRARY_PATH
7226   shlibpath_overrides_runpath=yes
7227   ;;
7228
7229 nto-qnx*)
7230   version_type=linux
7231   need_lib_prefix=no
7232   need_version=no
7233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7234   soname_spec='${libname}${release}${shared_ext}$major'
7235   shlibpath_var=LD_LIBRARY_PATH
7236   shlibpath_overrides_runpath=yes
7237   ;;
7238
7239 openbsd*)
7240   version_type=sunos
7241   need_lib_prefix=no
7242   need_version=no
7243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7244   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7245   shlibpath_var=LD_LIBRARY_PATH
7246   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7247     case $host_os in
7248       openbsd2.[89] | openbsd2.[89].*)
7249         shlibpath_overrides_runpath=no
7250         ;;
7251       *)
7252         shlibpath_overrides_runpath=yes
7253         ;;
7254       esac
7255   else
7256     shlibpath_overrides_runpath=yes
7257   fi
7258   ;;
7259
7260 os2*)
7261   libname_spec='$name'
7262   shrext_cmds=".dll"
7263   need_lib_prefix=no
7264   library_names_spec='$libname${shared_ext} $libname.a'
7265   dynamic_linker='OS/2 ld.exe'
7266   shlibpath_var=LIBPATH
7267   ;;
7268
7269 osf3* | osf4* | osf5*)
7270   version_type=osf
7271   need_lib_prefix=no
7272   need_version=no
7273   soname_spec='${libname}${release}${shared_ext}$major'
7274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7275   shlibpath_var=LD_LIBRARY_PATH
7276   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7277   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7278   ;;
7279
7280 sco3.2v5*)
7281   version_type=osf
7282   soname_spec='${libname}${release}${shared_ext}$major'
7283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284   shlibpath_var=LD_LIBRARY_PATH
7285   ;;
7286
7287 solaris*)
7288   version_type=linux
7289   need_lib_prefix=no
7290   need_version=no
7291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7292   soname_spec='${libname}${release}${shared_ext}$major'
7293   shlibpath_var=LD_LIBRARY_PATH
7294   shlibpath_overrides_runpath=yes
7295   hardcode_into_libs=yes
7296   # ldd complains unless libraries are executable
7297   postinstall_cmds='chmod +x $lib'
7298   ;;
7299
7300 sunos4*)
7301   version_type=sunos
7302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7303   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7304   shlibpath_var=LD_LIBRARY_PATH
7305   shlibpath_overrides_runpath=yes
7306   if test "$with_gnu_ld" = yes; then
7307     need_lib_prefix=no
7308   fi
7309   need_version=yes
7310   ;;
7311
7312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7313   version_type=linux
7314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7315   soname_spec='${libname}${release}${shared_ext}$major'
7316   shlibpath_var=LD_LIBRARY_PATH
7317   case $host_vendor in
7318     sni)
7319       shlibpath_overrides_runpath=no
7320       need_lib_prefix=no
7321       export_dynamic_flag_spec='${wl}-Blargedynsym'
7322       runpath_var=LD_RUN_PATH
7323       ;;
7324     siemens)
7325       need_lib_prefix=no
7326       ;;
7327     motorola)
7328       need_lib_prefix=no
7329       need_version=no
7330       shlibpath_overrides_runpath=no
7331       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7332       ;;
7333   esac
7334   ;;
7335
7336 sysv4*MP*)
7337   if test -d /usr/nec ;then
7338     version_type=linux
7339     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7340     soname_spec='$libname${shared_ext}.$major'
7341     shlibpath_var=LD_LIBRARY_PATH
7342   fi
7343   ;;
7344
7345 uts4*)
7346   version_type=linux
7347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7348   soname_spec='${libname}${release}${shared_ext}$major'
7349   shlibpath_var=LD_LIBRARY_PATH
7350   ;;
7351
7352 *)
7353   dynamic_linker=no
7354   ;;
7355 esac
7356 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7357 echo "${ECHO_T}$dynamic_linker" >&6
7358 test "$dynamic_linker" = no && can_build_shared=no
7359
7360
7361 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7362 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7363 if test "${libltdl_cv_shlibext+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366
7367 module=yes
7368 eval libltdl_cv_shlibext=$shrext_cmds
7369
7370 fi
7371 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7372 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7373 if test -n "$libltdl_cv_shlibext"; then
7374
7375 cat >>confdefs.h <<_ACEOF
7376 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7377 _ACEOF
7378
7379 fi
7380
7381
7382 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7383 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7384 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   libltdl_cv_shlibpath_var="$shlibpath_var"
7388 fi
7389 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7390 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7391 if test -n "$libltdl_cv_shlibpath_var"; then
7392
7393 cat >>confdefs.h <<_ACEOF
7394 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7395 _ACEOF
7396
7397 fi
7398
7399
7400 echo "$as_me:$LINENO: checking for the default library search path" >&5
7401 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7402 if test "${libltdl_cv_sys_search_path+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7406 fi
7407 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7408 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7409 if test -n "$libltdl_cv_sys_search_path"; then
7410   sys_search_path=
7411   for dir in $libltdl_cv_sys_search_path; do
7412     if test -z "$sys_search_path"; then
7413       sys_search_path="$dir"
7414     else
7415       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7416     fi
7417   done
7418
7419 cat >>confdefs.h <<_ACEOF
7420 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7421 _ACEOF
7422
7423 fi
7424
7425 echo "$as_me:$LINENO: checking for objdir" >&5
7426 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7427 if test "${libltdl_cv_objdir+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   libltdl_cv_objdir="$objdir"
7431   if test -n "$objdir"; then
7432     :
7433   else
7434     rm -f .libs 2>/dev/null
7435     mkdir .libs 2>/dev/null
7436     if test -d .libs; then
7437       libltdl_cv_objdir=.libs
7438     else
7439       # MS-DOS does not allow filenames that begin with a dot.
7440       libltdl_cv_objdir=_libs
7441     fi
7442   rmdir .libs 2>/dev/null
7443   fi
7444
7445 fi
7446 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7447 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7448
7449 cat >>confdefs.h <<_ACEOF
7450 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7451 _ACEOF
7452
7453
7454 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7455 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7456 if test "${lt_cv_path_NM+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   if test -n "$NM"; then
7460   # Let the user override the test.
7461   lt_cv_path_NM="$NM"
7462 else
7463   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7464   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7465     IFS="$lt_save_ifs"
7466     test -z "$ac_dir" && ac_dir=.
7467     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7468     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7469       # Check to see if the nm accepts a BSD-compat flag.
7470       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7471       #   nm: unknown option "B" ignored
7472       # Tru64's nm complains that /dev/null is an invalid object file
7473       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7474       */dev/null* | *'Invalid file or object type'*)
7475         lt_cv_path_NM="$tmp_nm -B"
7476         break
7477         ;;
7478       *)
7479         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7480         */dev/null*)
7481           lt_cv_path_NM="$tmp_nm -p"
7482           break
7483           ;;
7484         *)
7485           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7486           continue # so that we can try to find one that supports BSD flags
7487           ;;
7488         esac
7489       esac
7490     fi
7491   done
7492   IFS="$lt_save_ifs"
7493   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7494 fi
7495 fi
7496 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7497 echo "${ECHO_T}$lt_cv_path_NM" >&6
7498 NM="$lt_cv_path_NM"
7499
7500
7501
7502
7503
7504 # Check for command to grab the raw symbol name followed by C symbol from nm.
7505 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7506 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7507 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510
7511 # These are sane defaults that work on at least a few old systems.
7512 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7513
7514 # Character class describing NM global symbol codes.
7515 symcode='[BCDEGRST]'
7516
7517 # Regexp to match symbols that can be accessed directly from C.
7518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7519
7520 # Transform the above into a raw symbol and a C symbol.
7521 symxfrm='\1 \2\3 \3'
7522
7523 # Transform an extracted symbol line into a proper C declaration
7524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7525
7526 # Transform an extracted symbol line into symbol name and symbol address
7527 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'"
7528
7529 # Define system-specific variables.
7530 case $host_os in
7531 aix*)
7532   symcode='[BCDT]'
7533   ;;
7534 cygwin* | mingw* | pw32*)
7535   symcode='[ABCDGISTW]'
7536   ;;
7537 hpux*) # Its linker distinguishes data from code symbols
7538   if test "$host_cpu" = ia64; then
7539     symcode='[ABCDEGRST]'
7540   fi
7541   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7542   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'"
7543   ;;
7544 linux*)
7545   if test "$host_cpu" = ia64; then
7546     symcode='[ABCDGIRSTW]'
7547     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7548     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'"
7549   fi
7550   ;;
7551 irix* | nonstopux*)
7552   symcode='[BCDEGRST]'
7553   ;;
7554 osf*)
7555   symcode='[BCDEGQRST]'
7556   ;;
7557 solaris* | sysv5*)
7558   symcode='[BDRT]'
7559   ;;
7560 sysv4)
7561   symcode='[DFNSTU]'
7562   ;;
7563 esac
7564
7565 # Handle CRLF in mingw tool chain
7566 opt_cr=
7567 case $build_os in
7568 mingw*)
7569   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7570   ;;
7571 esac
7572
7573 # If we're using GNU nm, then use its standard symbol codes.
7574 case `$NM -V 2>&1` in
7575 *GNU* | *'with BFD'*)
7576   symcode='[ABCDGIRSTW]' ;;
7577 esac
7578
7579 # Try without a prefix undercore, then with it.
7580 for ac_symprfx in "" "_"; do
7581
7582   # Write the raw and C identifiers.
7583   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7584
7585   # Check to see that the pipe works correctly.
7586   pipe_works=no
7587
7588   rm -f conftest*
7589   cat > conftest.$ac_ext <<EOF
7590 #ifdef __cplusplus
7591 extern "C" {
7592 #endif
7593 char nm_test_var;
7594 void nm_test_func(){}
7595 #ifdef __cplusplus
7596 }
7597 #endif
7598 int main(){nm_test_var='a';nm_test_func();return(0);}
7599 EOF
7600
7601   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602   (eval $ac_compile) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; then
7606     # Now try to grab the symbols.
7607     nlist=conftest.nm
7608     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7609   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } && test -s "$nlist"; then
7613       # Try sorting and uniquifying the output.
7614       if sort "$nlist" | uniq > "$nlist"T; then
7615         mv -f "$nlist"T "$nlist"
7616       else
7617         rm -f "$nlist"T
7618       fi
7619
7620       # Make sure that we snagged all the symbols we need.
7621       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7622         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7623           cat <<EOF > conftest.$ac_ext
7624 #ifdef __cplusplus
7625 extern "C" {
7626 #endif
7627
7628 EOF
7629           # Now generate the symbol file.
7630           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7631
7632           cat <<EOF >> conftest.$ac_ext
7633 #if defined (__STDC__) && __STDC__
7634 # define lt_ptr_t void *
7635 #else
7636 # define lt_ptr_t char *
7637 # define const
7638 #endif
7639
7640 /* The mapping between symbol names and symbols. */
7641 const struct {
7642   const char *name;
7643   lt_ptr_t address;
7644 }
7645 lt_preloaded_symbols[] =
7646 {
7647 EOF
7648           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7649           cat <<\EOF >> conftest.$ac_ext
7650   {0, (lt_ptr_t) 0}
7651 };
7652
7653 #ifdef __cplusplus
7654 }
7655 #endif
7656 EOF
7657           # Now try linking the two files.
7658           mv conftest.$ac_objext conftstm.$ac_objext
7659           lt_save_LIBS="$LIBS"
7660           lt_save_CFLAGS="$CFLAGS"
7661           LIBS="conftstm.$ac_objext"
7662           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7663           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664   (eval $ac_link) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7668             pipe_works=yes
7669           fi
7670           LIBS="$lt_save_LIBS"
7671           CFLAGS="$lt_save_CFLAGS"
7672         else
7673           echo "cannot find nm_test_func in $nlist" >&5
7674         fi
7675       else
7676         echo "cannot find nm_test_var in $nlist" >&5
7677       fi
7678     else
7679       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7680     fi
7681   else
7682     echo "$progname: failed program was:" >&5
7683     cat conftest.$ac_ext >&5
7684   fi
7685   rm -f conftest* conftst*
7686
7687   # Do not use the global_symbol_pipe unless it works.
7688   if test "$pipe_works" = yes; then
7689     break
7690   else
7691     lt_cv_sys_global_symbol_pipe=
7692   fi
7693 done
7694
7695 fi
7696
7697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7698   lt_cv_sys_global_symbol_to_cdecl=
7699 fi
7700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7701   echo "$as_me:$LINENO: result: failed" >&5
7702 echo "${ECHO_T}failed" >&6
7703 else
7704   echo "$as_me:$LINENO: result: ok" >&5
7705 echo "${ECHO_T}ok" >&6
7706 fi
7707
7708
7709 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7710 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7711 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7715     libltdl_cv_preloaded_symbols=yes
7716   else
7717     libltdl_cv_preloaded_symbols=no
7718   fi
7719
7720 fi
7721 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7722 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7723 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7724
7725 cat >>confdefs.h <<\_ACEOF
7726 #define HAVE_PRELOADED_SYMBOLS 1
7727 _ACEOF
7728
7729 fi
7730
7731 LIBADD_DL=
7732
7733 ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740 echo "$as_me:$LINENO: checking for shl_load" >&5
7741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7742 if test "${ac_cv_func_shl_load+set}" = set; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745   cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h.  */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h.  */
7751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7753 #define shl_load innocuous_shl_load
7754
7755 /* System header to define __stub macros and hopefully few prototypes,
7756     which can conflict with char shl_load (); below.
7757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7758     <limits.h> exists even on freestanding compilers.  */
7759
7760 #ifdef __STDC__
7761 # include <limits.h>
7762 #else
7763 # include <assert.h>
7764 #endif
7765
7766 #undef shl_load
7767
7768 /* Override any gcc2 internal prototype to avoid an error.  */
7769 #ifdef __cplusplus
7770 extern "C"
7771 {
7772 #endif
7773 /* We use char because int might match the return type of a gcc2
7774    builtin and then its argument prototype would still apply.  */
7775 char shl_load ();
7776 /* The GNU C library defines this for functions which it implements
7777     to always fail with ENOSYS.  Some functions are actually named
7778     something starting with __ and the normal name is an alias.  */
7779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7780 choke me
7781 #else
7782 char (*f) () = shl_load;
7783 #endif
7784 #ifdef __cplusplus
7785 }
7786 #endif
7787
7788 int
7789 main ()
7790 {
7791 return f != shl_load;
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798   (eval $ac_link) 2>conftest.er1
7799   ac_status=$?
7800   grep -v '^ *+' conftest.er1 >conftest.err
7801   rm -f conftest.er1
7802   cat conftest.err >&5
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } &&
7805          { ac_try='test -z "$ac_c_werror_flag"
7806                          || test ! -s conftest.err'
7807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808   (eval $ac_try) 2>&5
7809   ac_status=$?
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); }; } &&
7812          { ac_try='test -s conftest$ac_exeext'
7813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814   (eval $ac_try) 2>&5
7815   ac_status=$?
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); }; }; then
7818   ac_cv_func_shl_load=yes
7819 else
7820   echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_cv_func_shl_load=no
7824 fi
7825 rm -f conftest.err conftest.$ac_objext \
7826       conftest$ac_exeext conftest.$ac_ext
7827 fi
7828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7830 if test $ac_cv_func_shl_load = yes; then
7831
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_SHL_LOAD 1
7834 _ACEOF
7835
7836 else
7837   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7838 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7839 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   ac_check_lib_save_LIBS=$LIBS
7843 LIBS="-ldld  $LIBS"
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850
7851 /* Override any gcc2 internal prototype to avoid an error.  */
7852 #ifdef __cplusplus
7853 extern "C"
7854 #endif
7855 /* We use char because int might match the return type of a gcc2
7856    builtin and then its argument prototype would still apply.  */
7857 char shl_load ();
7858 int
7859 main ()
7860 {
7861 shl_load ();
7862   ;
7863   return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7868   (eval $ac_link) 2>conftest.er1
7869   ac_status=$?
7870   grep -v '^ *+' conftest.er1 >conftest.err
7871   rm -f conftest.er1
7872   cat conftest.err >&5
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); } &&
7875          { ac_try='test -z "$ac_c_werror_flag"
7876                          || test ! -s conftest.err'
7877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878   (eval $ac_try) 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; } &&
7882          { ac_try='test -s conftest$ac_exeext'
7883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884   (eval $ac_try) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; }; then
7888   ac_cv_lib_dld_shl_load=yes
7889 else
7890   echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 ac_cv_lib_dld_shl_load=no
7894 fi
7895 rm -f conftest.err conftest.$ac_objext \
7896       conftest$ac_exeext conftest.$ac_ext
7897 LIBS=$ac_check_lib_save_LIBS
7898 fi
7899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7900 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7901 if test $ac_cv_lib_dld_shl_load = yes; then
7902
7903 cat >>confdefs.h <<\_ACEOF
7904 #define HAVE_SHL_LOAD 1
7905 _ACEOF
7906
7907         LIBADD_DL="$LIBADD_DL -ldld"
7908 else
7909   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   ac_check_lib_save_LIBS=$LIBS
7915 LIBS="-ldl  $LIBS"
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922
7923 /* Override any gcc2 internal prototype to avoid an error.  */
7924 #ifdef __cplusplus
7925 extern "C"
7926 #endif
7927 /* We use char because int might match the return type of a gcc2
7928    builtin and then its argument prototype would still apply.  */
7929 char dlopen ();
7930 int
7931 main ()
7932 {
7933 dlopen ();
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940   (eval $ac_link) 2>conftest.er1
7941   ac_status=$?
7942   grep -v '^ *+' conftest.er1 >conftest.err
7943   rm -f conftest.er1
7944   cat conftest.err >&5
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } &&
7947          { ac_try='test -z "$ac_c_werror_flag"
7948                          || test ! -s conftest.err'
7949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950   (eval $ac_try) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; } &&
7954          { ac_try='test -s conftest$ac_exeext'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; }; then
7960   ac_cv_lib_dl_dlopen=yes
7961 else
7962   echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965 ac_cv_lib_dl_dlopen=no
7966 fi
7967 rm -f conftest.err conftest.$ac_objext \
7968       conftest$ac_exeext conftest.$ac_ext
7969 LIBS=$ac_check_lib_save_LIBS
7970 fi
7971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7973 if test $ac_cv_lib_dl_dlopen = yes; then
7974
7975 cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_LIBDL 1
7977 _ACEOF
7978
7979                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7980 else
7981   cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987 #if HAVE_DLFCN_H
7988 #  include <dlfcn.h>
7989 #endif
7990
7991 int
7992 main ()
7993 {
7994 dlopen(0, 0);
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001   (eval $ac_link) 2>conftest.er1
8002   ac_status=$?
8003   grep -v '^ *+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } &&
8008          { ac_try='test -z "$ac_c_werror_flag"
8009                          || test ! -s conftest.err'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; } &&
8015          { ac_try='test -s conftest$ac_exeext'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; }; then
8021
8022 cat >>confdefs.h <<\_ACEOF
8023 #define HAVE_LIBDL 1
8024 _ACEOF
8025  libltdl_cv_func_dlopen="yes"
8026 else
8027   echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8031 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8032 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lsvld  $LIBS"
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043
8044 /* Override any gcc2 internal prototype to avoid an error.  */
8045 #ifdef __cplusplus
8046 extern "C"
8047 #endif
8048 /* We use char because int might match the return type of a gcc2
8049    builtin and then its argument prototype would still apply.  */
8050 char dlopen ();
8051 int
8052 main ()
8053 {
8054 dlopen ();
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061   (eval $ac_link) 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } &&
8068          { ac_try='test -z "$ac_c_werror_flag"
8069                          || test ! -s conftest.err'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; } &&
8075          { ac_try='test -s conftest$ac_exeext'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; }; then
8081   ac_cv_lib_svld_dlopen=yes
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 ac_cv_lib_svld_dlopen=no
8087 fi
8088 rm -f conftest.err conftest.$ac_objext \
8089       conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8091 fi
8092 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8094 if test $ac_cv_lib_svld_dlopen = yes; then
8095
8096 cat >>confdefs.h <<\_ACEOF
8097 #define HAVE_LIBDL 1
8098 _ACEOF
8099
8100                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8101 else
8102   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   ac_check_lib_save_LIBS=$LIBS
8108 LIBS="-ldld  $LIBS"
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115
8116 /* Override any gcc2 internal prototype to avoid an error.  */
8117 #ifdef __cplusplus
8118 extern "C"
8119 #endif
8120 /* We use char because int might match the return type of a gcc2
8121    builtin and then its argument prototype would still apply.  */
8122 char dld_link ();
8123 int
8124 main ()
8125 {
8126 dld_link ();
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133   (eval $ac_link) 2>conftest.er1
8134   ac_status=$?
8135   grep -v '^ *+' conftest.er1 >conftest.err
8136   rm -f conftest.er1
8137   cat conftest.err >&5
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } &&
8140          { ac_try='test -z "$ac_c_werror_flag"
8141                          || test ! -s conftest.err'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; } &&
8147          { ac_try='test -s conftest$ac_exeext'
8148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149   (eval $ac_try) 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; }; then
8153   ac_cv_lib_dld_dld_link=yes
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 ac_cv_lib_dld_dld_link=no
8159 fi
8160 rm -f conftest.err conftest.$ac_objext \
8161       conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8163 fi
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8165 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8166 if test $ac_cv_lib_dld_dld_link = yes; then
8167
8168 cat >>confdefs.h <<\_ACEOF
8169 #define HAVE_DLD 1
8170 _ACEOF
8171
8172                 LIBADD_DL="$LIBADD_DL -ldld"
8173 else
8174   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8175 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8176 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8187 #define _dyld_func_lookup innocuous__dyld_func_lookup
8188
8189 /* System header to define __stub macros and hopefully few prototypes,
8190     which can conflict with char _dyld_func_lookup (); below.
8191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8192     <limits.h> exists even on freestanding compilers.  */
8193
8194 #ifdef __STDC__
8195 # include <limits.h>
8196 #else
8197 # include <assert.h>
8198 #endif
8199
8200 #undef _dyld_func_lookup
8201
8202 /* Override any gcc2 internal prototype to avoid an error.  */
8203 #ifdef __cplusplus
8204 extern "C"
8205 {
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208    builtin and then its argument prototype would still apply.  */
8209 char _dyld_func_lookup ();
8210 /* The GNU C library defines this for functions which it implements
8211     to always fail with ENOSYS.  Some functions are actually named
8212     something starting with __ and the normal name is an alias.  */
8213 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8214 choke me
8215 #else
8216 char (*f) () = _dyld_func_lookup;
8217 #endif
8218 #ifdef __cplusplus
8219 }
8220 #endif
8221
8222 int
8223 main ()
8224 {
8225 return f != _dyld_func_lookup;
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232   (eval $ac_link) 2>conftest.er1
8233   ac_status=$?
8234   grep -v '^ *+' conftest.er1 >conftest.err
8235   rm -f conftest.er1
8236   cat conftest.err >&5
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } &&
8239          { ac_try='test -z "$ac_c_werror_flag"
8240                          || test ! -s conftest.err'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; } &&
8246          { ac_try='test -s conftest$ac_exeext'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; }; then
8252   ac_cv_func__dyld_func_lookup=yes
8253 else
8254   echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8256
8257 ac_cv_func__dyld_func_lookup=no
8258 fi
8259 rm -f conftest.err conftest.$ac_objext \
8260       conftest$ac_exeext conftest.$ac_ext
8261 fi
8262 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8263 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8264 if test $ac_cv_func__dyld_func_lookup = yes; then
8265
8266 cat >>confdefs.h <<\_ACEOF
8267 #define HAVE_DYLD 1
8268 _ACEOF
8269
8270 fi
8271
8272
8273 fi
8274
8275
8276 fi
8277
8278
8279 fi
8280 rm -f conftest.err conftest.$ac_objext \
8281       conftest$ac_exeext conftest.$ac_ext
8282
8283 fi
8284
8285
8286 fi
8287
8288
8289 fi
8290
8291
8292 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8293 then
8294   lt_save_LIBS="$LIBS"
8295   LIBS="$LIBS $LIBADD_DL"
8296
8297 for ac_func in dlerror
8298 do
8299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8300 echo "$as_me:$LINENO: checking for $ac_func" >&5
8301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8302 if eval "test \"\${$as_ac_var+set}\" = set"; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8313 #define $ac_func innocuous_$ac_func
8314
8315 /* System header to define __stub macros and hopefully few prototypes,
8316     which can conflict with char $ac_func (); below.
8317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318     <limits.h> exists even on freestanding compilers.  */
8319
8320 #ifdef __STDC__
8321 # include <limits.h>
8322 #else
8323 # include <assert.h>
8324 #endif
8325
8326 #undef $ac_func
8327
8328 /* Override any gcc2 internal prototype to avoid an error.  */
8329 #ifdef __cplusplus
8330 extern "C"
8331 {
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334    builtin and then its argument prototype would still apply.  */
8335 char $ac_func ();
8336 /* The GNU C library defines this for functions which it implements
8337     to always fail with ENOSYS.  Some functions are actually named
8338     something starting with __ and the normal name is an alias.  */
8339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8340 choke me
8341 #else
8342 char (*f) () = $ac_func;
8343 #endif
8344 #ifdef __cplusplus
8345 }
8346 #endif
8347
8348 int
8349 main ()
8350 {
8351 return f != $ac_func;
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358   (eval $ac_link) 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag"
8366                          || test ! -s conftest.err'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   eval "$as_ac_var=yes"
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 eval "$as_ac_var=no"
8384 fi
8385 rm -f conftest.err conftest.$ac_objext \
8386       conftest$ac_exeext conftest.$ac_ext
8387 fi
8388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8390 if test `eval echo '${'$as_ac_var'}'` = yes; then
8391   cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8393 _ACEOF
8394
8395 fi
8396 done
8397
8398   LIBS="$lt_save_LIBS"
8399 fi
8400 ac_ext=c
8401 ac_cpp='$CPP $CPPFLAGS'
8402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405
8406
8407
8408 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8409 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8410 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   ac_cv_sys_symbol_underscore=no
8414   cat > conftest.$ac_ext <<EOF
8415 void nm_test_func(){}
8416 int main(){nm_test_func;return 0;}
8417 EOF
8418   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8419   (eval $ac_compile) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; then
8423     # Now try to grab the symbols.
8424     ac_nlist=conftest.nm
8425     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8426   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } && test -s "$ac_nlist"; then
8430       # See whether the symbols have a leading underscore.
8431       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8432         ac_cv_sys_symbol_underscore=yes
8433       else
8434         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8435           :
8436         else
8437           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8438         fi
8439       fi
8440     else
8441       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8442     fi
8443   else
8444     echo "configure: failed program was:" >&5
8445     cat conftest.c >&5
8446   fi
8447   rm -rf conftest*
8448
8449 fi
8450 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8451 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8452
8453
8454 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8455   if test x"$libltdl_cv_func_dlopen" = xyes ||
8456      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8457         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8458 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8459 if test "${libltdl_cv_need_uscore+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   libltdl_cv_need_uscore=unknown
8463           save_LIBS="$LIBS"
8464           LIBS="$LIBS $LIBADD_DL"
8465           if test "$cross_compiling" = yes; then :
8466   libltdl_cv_need_uscore=cross
8467 else
8468   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8469   lt_status=$lt_dlunknown
8470   cat > conftest.$ac_ext <<EOF
8471 #line 8471 "configure"
8472 #include "confdefs.h"
8473
8474 #if HAVE_DLFCN_H
8475 #include <dlfcn.h>
8476 #endif
8477
8478 #include <stdio.h>
8479
8480 #ifdef RTLD_GLOBAL
8481 #  define LT_DLGLOBAL           RTLD_GLOBAL
8482 #else
8483 #  ifdef DL_GLOBAL
8484 #    define LT_DLGLOBAL         DL_GLOBAL
8485 #  else
8486 #    define LT_DLGLOBAL         0
8487 #  endif
8488 #endif
8489
8490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8491    find out it does not work in some platform. */
8492 #ifndef LT_DLLAZY_OR_NOW
8493 #  ifdef RTLD_LAZY
8494 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8495 #  else
8496 #    ifdef DL_LAZY
8497 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8498 #    else
8499 #      ifdef RTLD_NOW
8500 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8501 #      else
8502 #        ifdef DL_NOW
8503 #          define LT_DLLAZY_OR_NOW      DL_NOW
8504 #        else
8505 #          define LT_DLLAZY_OR_NOW      0
8506 #        endif
8507 #      endif
8508 #    endif
8509 #  endif
8510 #endif
8511
8512 #ifdef __cplusplus
8513 extern "C" void exit (int);
8514 #endif
8515
8516 void fnord() { int i=42;}
8517 int main ()
8518 {
8519   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8520   int status = $lt_dlunknown;
8521
8522   if (self)
8523     {
8524       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8525       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8526       /* dlclose (self); */
8527     }
8528
8529     exit (status);
8530 }
8531 EOF
8532   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8537     (./conftest; exit; ) 2>/dev/null
8538     lt_status=$?
8539     case x$lt_status in
8540       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8541       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8542       x$lt_unknown|x*)  ;;
8543     esac
8544   else :
8545     # compilation failed
8546
8547   fi
8548 fi
8549 rm -fr conftest*
8550
8551           LIBS="$save_LIBS"
8552
8553 fi
8554 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8555 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8556   fi
8557 fi
8558
8559 if test x"$libltdl_cv_need_uscore" = xyes; then
8560
8561 cat >>confdefs.h <<\_ACEOF
8562 #define NEED_USCORE 1
8563 _ACEOF
8564
8565 fi
8566
8567
8568 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8569 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8570 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   # PORTME does your system automatically load deplibs for dlopen?
8574   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8575   # For now, we just catch OSes we know something about -- in the
8576   # future, we'll try test this programmatically.
8577   libltdl_cv_sys_dlopen_deplibs=unknown
8578   case "$host_os" in
8579   aix3*|aix4.1.*|aix4.2.*)
8580     # Unknown whether this is true for these versions of AIX, but
8581     # we want this `case' here to explicitly catch those versions.
8582     libltdl_cv_sys_dlopen_deplibs=unknown
8583     ;;
8584   aix[45]*)
8585     libltdl_cv_sys_dlopen_deplibs=yes
8586     ;;
8587   darwin*)
8588     # Assuming the user has installed a libdl from somewhere, this is true
8589     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8590     libltdl_cv_sys_dlopen_deplibs=yes
8591     ;;
8592   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8593     # GNU and its variants, using gnu ld.so (Glibc)
8594     libltdl_cv_sys_dlopen_deplibs=yes
8595     ;;
8596   hpux10*|hpux11*)
8597     libltdl_cv_sys_dlopen_deplibs=yes
8598     ;;
8599   irix[12345]*|irix6.[01]*)
8600     # Catch all versions of IRIX before 6.2, and indicate that we don't
8601     # know how it worked for any of those versions.
8602     libltdl_cv_sys_dlopen_deplibs=unknown
8603     ;;
8604   irix*)
8605     # The case above catches anything before 6.2, and it's known that
8606     # at 6.2 and later dlopen does load deplibs.
8607     libltdl_cv_sys_dlopen_deplibs=yes
8608     ;;
8609   netbsd*)
8610     libltdl_cv_sys_dlopen_deplibs=yes
8611     ;;
8612   openbsd*)
8613     libltdl_cv_sys_dlopen_deplibs=yes
8614     ;;
8615   osf[1234]*)
8616     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8617     # it did *not* use an RPATH in a shared library to find objects the
8618     # library depends on, so we explictly say `no'.
8619     libltdl_cv_sys_dlopen_deplibs=no
8620     ;;
8621   osf5.0|osf5.0a|osf5.1)
8622     # dlopen *does* load deplibs and with the right loader patch applied
8623     # it even uses RPATH in a shared library to search for shared objects
8624     # that the library depends on, but there's no easy way to know if that
8625     # patch is installed.  Since this is the case, all we can really
8626     # say is unknown -- it depends on the patch being installed.  If
8627     # it is, this changes to `yes'.  Without it, it would be `no'.
8628     libltdl_cv_sys_dlopen_deplibs=unknown
8629     ;;
8630   osf*)
8631     # the two cases above should catch all versions of osf <= 5.1.  Read
8632     # the comments above for what we know about them.
8633     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8634     # is used to find them so we can finally say `yes'.
8635     libltdl_cv_sys_dlopen_deplibs=yes
8636     ;;
8637   solaris*)
8638     libltdl_cv_sys_dlopen_deplibs=yes
8639     ;;
8640   esac
8641
8642 fi
8643 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8644 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8645 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define LTDL_DLOPEN_DEPLIBS 1
8649 _ACEOF
8650
8651 fi
8652
8653
8654 for ac_header in argz.h
8655 do
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658   echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 fi
8663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8665 else
8666   # Is the header compilable?
8667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675 $ac_includes_default
8676 #include <$ac_header>
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680   (eval $ac_compile) 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -z "$ac_c_werror_flag"
8688                          || test ! -s conftest.err'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; } &&
8694          { ac_try='test -s conftest.$ac_objext'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; }; then
8700   ac_header_compiler=yes
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_header_compiler=no
8706 fi
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709 echo "${ECHO_T}$ac_header_compiler" >&6
8710
8711 # Is the header present?
8712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8715 /* confdefs.h.  */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h.  */
8720 #include <$ac_header>
8721 _ACEOF
8722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } >/dev/null; then
8730   if test -s conftest.err; then
8731     ac_cpp_err=$ac_c_preproc_warn_flag
8732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8733   else
8734     ac_cpp_err=
8735   fi
8736 else
8737   ac_cpp_err=yes
8738 fi
8739 if test -z "$ac_cpp_err"; then
8740   ac_header_preproc=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745   ac_header_preproc=no
8746 fi
8747 rm -f conftest.err conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6
8750
8751 # So?  What about this header?
8752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753   yes:no: )
8754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758     ac_header_preproc=yes
8759     ;;
8760   no:yes:* )
8761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8773     (
8774       cat <<\_ASBOX
8775 ## ----------------------------------- ##
8776 ## Report this to llvmbugs@cs.uiuc.edu ##
8777 ## ----------------------------------- ##
8778 _ASBOX
8779     ) |
8780       sed "s/^/$as_me: WARNING:     /" >&2
8781     ;;
8782 esac
8783 echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   eval "$as_ac_Header=\$ac_header_preproc"
8789 fi
8790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8792
8793 fi
8794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795   cat >>confdefs.h <<_ACEOF
8796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8797 _ACEOF
8798
8799 fi
8800
8801 done
8802
8803
8804 echo "$as_me:$LINENO: checking for error_t" >&5
8805 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8806 if test "${ac_cv_type_error_t+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809   cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h.  */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h.  */
8815 #if HAVE_ARGZ_H
8816 #  include <argz.h>
8817 #endif
8818
8819 int
8820 main ()
8821 {
8822 if ((error_t *) 0)
8823   return 0;
8824 if (sizeof (error_t))
8825   return 0;
8826   ;
8827   return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832   (eval $ac_compile) 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } &&
8839          { ac_try='test -z "$ac_c_werror_flag"
8840                          || test ! -s conftest.err'
8841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842   (eval $ac_try) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); }; } &&
8846          { ac_try='test -s conftest.$ac_objext'
8847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848   (eval $ac_try) 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); }; }; then
8852   ac_cv_type_error_t=yes
8853 else
8854   echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ac_cv_type_error_t=no
8858 fi
8859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8862 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8863 if test $ac_cv_type_error_t = yes; then
8864
8865 cat >>confdefs.h <<_ACEOF
8866 #define HAVE_ERROR_T 1
8867 _ACEOF
8868
8869
8870 else
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define error_t int
8874 _ACEOF
8875
8876 fi
8877
8878
8879
8880
8881
8882
8883
8884 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8885 do
8886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8887 echo "$as_me:$LINENO: checking for $ac_func" >&5
8888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8889 if eval "test \"\${$as_ac_var+set}\" = set"; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8900 #define $ac_func innocuous_$ac_func
8901
8902 /* System header to define __stub macros and hopefully few prototypes,
8903     which can conflict with char $ac_func (); below.
8904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905     <limits.h> exists even on freestanding compilers.  */
8906
8907 #ifdef __STDC__
8908 # include <limits.h>
8909 #else
8910 # include <assert.h>
8911 #endif
8912
8913 #undef $ac_func
8914
8915 /* Override any gcc2 internal prototype to avoid an error.  */
8916 #ifdef __cplusplus
8917 extern "C"
8918 {
8919 #endif
8920 /* We use char because int might match the return type of a gcc2
8921    builtin and then its argument prototype would still apply.  */
8922 char $ac_func ();
8923 /* The GNU C library defines this for functions which it implements
8924     to always fail with ENOSYS.  Some functions are actually named
8925     something starting with __ and the normal name is an alias.  */
8926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8927 choke me
8928 #else
8929 char (*f) () = $ac_func;
8930 #endif
8931 #ifdef __cplusplus
8932 }
8933 #endif
8934
8935 int
8936 main ()
8937 {
8938 return f != $ac_func;
8939   ;
8940   return 0;
8941 }
8942 _ACEOF
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945   (eval $ac_link) 2>conftest.er1
8946   ac_status=$?
8947   grep -v '^ *+' conftest.er1 >conftest.err
8948   rm -f conftest.er1
8949   cat conftest.err >&5
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); } &&
8952          { ac_try='test -z "$ac_c_werror_flag"
8953                          || test ! -s conftest.err'
8954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955   (eval $ac_try) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; } &&
8959          { ac_try='test -s conftest$ac_exeext'
8960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961   (eval $ac_try) 2>&5
8962   ac_status=$?
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); }; }; then
8965   eval "$as_ac_var=yes"
8966 else
8967   echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970 eval "$as_ac_var=no"
8971 fi
8972 rm -f conftest.err conftest.$ac_objext \
8973       conftest$ac_exeext conftest.$ac_ext
8974 fi
8975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8977 if test `eval echo '${'$as_ac_var'}'` = yes; then
8978   cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8980 _ACEOF
8981
8982 fi
8983 done
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9013                   stdio.h unistd.h
9014 do
9015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017   echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 fi
9022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 else
9025   # Is the header compilable?
9026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h.  */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h.  */
9034 $ac_includes_default
9035 #include <$ac_header>
9036 _ACEOF
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039   (eval $ac_compile) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag"
9047                          || test ! -s conftest.err'
9048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049   (eval $ac_try) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; } &&
9053          { ac_try='test -s conftest.$ac_objext'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; }; then
9059   ac_header_compiler=yes
9060 else
9061   echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064 ac_header_compiler=no
9065 fi
9066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9068 echo "${ECHO_T}$ac_header_compiler" >&6
9069
9070 # Is the header present?
9071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9073 cat >conftest.$ac_ext <<_ACEOF
9074 /* confdefs.h.  */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h.  */
9079 #include <$ac_header>
9080 _ACEOF
9081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } >/dev/null; then
9089   if test -s conftest.err; then
9090     ac_cpp_err=$ac_c_preproc_warn_flag
9091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9092   else
9093     ac_cpp_err=
9094   fi
9095 else
9096   ac_cpp_err=yes
9097 fi
9098 if test -z "$ac_cpp_err"; then
9099   ac_header_preproc=yes
9100 else
9101   echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104   ac_header_preproc=no
9105 fi
9106 rm -f conftest.err conftest.$ac_ext
9107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9108 echo "${ECHO_T}$ac_header_preproc" >&6
9109
9110 # So?  What about this header?
9111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9112   yes:no: )
9113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9117     ac_header_preproc=yes
9118     ;;
9119   no:yes:* )
9120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9132     (
9133       cat <<\_ASBOX
9134 ## ----------------------------------- ##
9135 ## Report this to llvmbugs@cs.uiuc.edu ##
9136 ## ----------------------------------- ##
9137 _ASBOX
9138     ) |
9139       sed "s/^/$as_me: WARNING:     /" >&2
9140     ;;
9141 esac
9142 echo "$as_me:$LINENO: checking for $ac_header" >&5
9143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   eval "$as_ac_Header=\$ac_header_preproc"
9148 fi
9149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9151
9152 fi
9153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9154   cat >>confdefs.h <<_ACEOF
9155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9156 _ACEOF
9157
9158 fi
9159
9160 done
9161
9162
9163
9164
9165
9166 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9167 do
9168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170   echo "$as_me:$LINENO: checking for $ac_header" >&5
9171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 fi
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 else
9178   # Is the header compilable?
9179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h.  */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h.  */
9187 $ac_includes_default
9188 #include <$ac_header>
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192   (eval $ac_compile) 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } &&
9199          { ac_try='test -z "$ac_c_werror_flag"
9200                          || test ! -s conftest.err'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; } &&
9206          { ac_try='test -s conftest.$ac_objext'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; }; then
9212   ac_header_compiler=yes
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 ac_header_compiler=no
9218 fi
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9221 echo "${ECHO_T}$ac_header_compiler" >&6
9222
9223 # Is the header present?
9224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h.  */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h.  */
9232 #include <$ac_header>
9233 _ACEOF
9234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9236   ac_status=$?
9237   grep -v '^ *+' conftest.er1 >conftest.err
9238   rm -f conftest.er1
9239   cat conftest.err >&5
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } >/dev/null; then
9242   if test -s conftest.err; then
9243     ac_cpp_err=$ac_c_preproc_warn_flag
9244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9245   else
9246     ac_cpp_err=
9247   fi
9248 else
9249   ac_cpp_err=yes
9250 fi
9251 if test -z "$ac_cpp_err"; then
9252   ac_header_preproc=yes
9253 else
9254   echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257   ac_header_preproc=no
9258 fi
9259 rm -f conftest.err conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261 echo "${ECHO_T}$ac_header_preproc" >&6
9262
9263 # So?  What about this header?
9264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9265   yes:no: )
9266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9270     ac_header_preproc=yes
9271     ;;
9272   no:yes:* )
9273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9285     (
9286       cat <<\_ASBOX
9287 ## ----------------------------------- ##
9288 ## Report this to llvmbugs@cs.uiuc.edu ##
9289 ## ----------------------------------- ##
9290 _ASBOX
9291     ) |
9292       sed "s/^/$as_me: WARNING:     /" >&2
9293     ;;
9294 esac
9295 echo "$as_me:$LINENO: checking for $ac_header" >&5
9296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9298   echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300   eval "$as_ac_Header=\$ac_header_preproc"
9301 fi
9302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9304
9305 fi
9306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9307   cat >>confdefs.h <<_ACEOF
9308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9309 _ACEOF
9310
9311 fi
9312
9313 done
9314
9315
9316
9317 for ac_header in string.h strings.h
9318 do
9319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9321   echo "$as_me:$LINENO: checking for $ac_header" >&5
9322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324   echo $ECHO_N "(cached) $ECHO_C" >&6
9325 fi
9326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328 else
9329   # Is the header compilable?
9330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 $ac_includes_default
9339 #include <$ac_header>
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343   (eval $ac_compile) 2>conftest.er1
9344   ac_status=$?
9345   grep -v '^ *+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } &&
9350          { ac_try='test -z "$ac_c_werror_flag"
9351                          || test ! -s conftest.err'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; } &&
9357          { ac_try='test -s conftest.$ac_objext'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; }; then
9363   ac_header_compiler=yes
9364 else
9365   echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368 ac_header_compiler=no
9369 fi
9370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6
9373
9374 # Is the header present?
9375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <$ac_header>
9384 _ACEOF
9385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9387   ac_status=$?
9388   grep -v '^ *+' conftest.er1 >conftest.err
9389   rm -f conftest.er1
9390   cat conftest.err >&5
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); } >/dev/null; then
9393   if test -s conftest.err; then
9394     ac_cpp_err=$ac_c_preproc_warn_flag
9395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9396   else
9397     ac_cpp_err=
9398   fi
9399 else
9400   ac_cpp_err=yes
9401 fi
9402 if test -z "$ac_cpp_err"; then
9403   ac_header_preproc=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408   ac_header_preproc=no
9409 fi
9410 rm -f conftest.err conftest.$ac_ext
9411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9412 echo "${ECHO_T}$ac_header_preproc" >&6
9413
9414 # So?  What about this header?
9415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416   yes:no: )
9417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9421     ac_header_preproc=yes
9422     ;;
9423   no:yes:* )
9424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9436     (
9437       cat <<\_ASBOX
9438 ## ----------------------------------- ##
9439 ## Report this to llvmbugs@cs.uiuc.edu ##
9440 ## ----------------------------------- ##
9441 _ASBOX
9442     ) |
9443       sed "s/^/$as_me: WARNING:     /" >&2
9444     ;;
9445 esac
9446 echo "$as_me:$LINENO: checking for $ac_header" >&5
9447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   eval "$as_ac_Header=\$ac_header_preproc"
9452 fi
9453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9455
9456 fi
9457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9458   cat >>confdefs.h <<_ACEOF
9459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9460 _ACEOF
9461  break
9462 fi
9463
9464 done
9465
9466
9467
9468
9469 for ac_func in strchr index
9470 do
9471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9472 echo "$as_me:$LINENO: checking for $ac_func" >&5
9473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9474 if eval "test \"\${$as_ac_var+set}\" = set"; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477   cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h.  */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h.  */
9483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9485 #define $ac_func innocuous_$ac_func
9486
9487 /* System header to define __stub macros and hopefully few prototypes,
9488     which can conflict with char $ac_func (); below.
9489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9490     <limits.h> exists even on freestanding compilers.  */
9491
9492 #ifdef __STDC__
9493 # include <limits.h>
9494 #else
9495 # include <assert.h>
9496 #endif
9497
9498 #undef $ac_func
9499
9500 /* Override any gcc2 internal prototype to avoid an error.  */
9501 #ifdef __cplusplus
9502 extern "C"
9503 {
9504 #endif
9505 /* We use char because int might match the return type of a gcc2
9506    builtin and then its argument prototype would still apply.  */
9507 char $ac_func ();
9508 /* The GNU C library defines this for functions which it implements
9509     to always fail with ENOSYS.  Some functions are actually named
9510     something starting with __ and the normal name is an alias.  */
9511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9512 choke me
9513 #else
9514 char (*f) () = $ac_func;
9515 #endif
9516 #ifdef __cplusplus
9517 }
9518 #endif
9519
9520 int
9521 main ()
9522 {
9523 return f != $ac_func;
9524   ;
9525   return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9530   (eval $ac_link) 2>conftest.er1
9531   ac_status=$?
9532   grep -v '^ *+' conftest.er1 >conftest.err
9533   rm -f conftest.er1
9534   cat conftest.err >&5
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } &&
9537          { ac_try='test -z "$ac_c_werror_flag"
9538                          || test ! -s conftest.err'
9539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540   (eval $ac_try) 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; } &&
9544          { ac_try='test -s conftest$ac_exeext'
9545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546   (eval $ac_try) 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; }; then
9550   eval "$as_ac_var=yes"
9551 else
9552   echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 eval "$as_ac_var=no"
9556 fi
9557 rm -f conftest.err conftest.$ac_objext \
9558       conftest$ac_exeext conftest.$ac_ext
9559 fi
9560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9562 if test `eval echo '${'$as_ac_var'}'` = yes; then
9563   cat >>confdefs.h <<_ACEOF
9564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9565 _ACEOF
9566  break
9567 fi
9568 done
9569
9570
9571
9572 for ac_func in strrchr rindex
9573 do
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:$LINENO: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h.  */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h.  */
9586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9588 #define $ac_func innocuous_$ac_func
9589
9590 /* System header to define __stub macros and hopefully few prototypes,
9591     which can conflict with char $ac_func (); below.
9592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593     <limits.h> exists even on freestanding compilers.  */
9594
9595 #ifdef __STDC__
9596 # include <limits.h>
9597 #else
9598 # include <assert.h>
9599 #endif
9600
9601 #undef $ac_func
9602
9603 /* Override any gcc2 internal prototype to avoid an error.  */
9604 #ifdef __cplusplus
9605 extern "C"
9606 {
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609    builtin and then its argument prototype would still apply.  */
9610 char $ac_func ();
9611 /* The GNU C library defines this for functions which it implements
9612     to always fail with ENOSYS.  Some functions are actually named
9613     something starting with __ and the normal name is an alias.  */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9615 choke me
9616 #else
9617 char (*f) () = $ac_func;
9618 #endif
9619 #ifdef __cplusplus
9620 }
9621 #endif
9622
9623 int
9624 main ()
9625 {
9626 return f != $ac_func;
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633   (eval $ac_link) 2>conftest.er1
9634   ac_status=$?
9635   grep -v '^ *+' conftest.er1 >conftest.err
9636   rm -f conftest.er1
9637   cat conftest.err >&5
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } &&
9640          { ac_try='test -z "$ac_c_werror_flag"
9641                          || test ! -s conftest.err'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; } &&
9647          { ac_try='test -s conftest$ac_exeext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   eval "$as_ac_var=yes"
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 eval "$as_ac_var=no"
9659 fi
9660 rm -f conftest.err conftest.$ac_objext \
9661       conftest$ac_exeext conftest.$ac_ext
9662 fi
9663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9665 if test `eval echo '${'$as_ac_var'}'` = yes; then
9666   cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9668 _ACEOF
9669  break
9670 fi
9671 done
9672
9673
9674
9675 for ac_func in memcpy bcopy
9676 do
9677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9678 echo "$as_me:$LINENO: checking for $ac_func" >&5
9679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_var+set}\" = set"; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h.  */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h.  */
9689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9691 #define $ac_func innocuous_$ac_func
9692
9693 /* System header to define __stub macros and hopefully few prototypes,
9694     which can conflict with char $ac_func (); below.
9695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696     <limits.h> exists even on freestanding compilers.  */
9697
9698 #ifdef __STDC__
9699 # include <limits.h>
9700 #else
9701 # include <assert.h>
9702 #endif
9703
9704 #undef $ac_func
9705
9706 /* Override any gcc2 internal prototype to avoid an error.  */
9707 #ifdef __cplusplus
9708 extern "C"
9709 {
9710 #endif
9711 /* We use char because int might match the return type of a gcc2
9712    builtin and then its argument prototype would still apply.  */
9713 char $ac_func ();
9714 /* The GNU C library defines this for functions which it implements
9715     to always fail with ENOSYS.  Some functions are actually named
9716     something starting with __ and the normal name is an alias.  */
9717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9718 choke me
9719 #else
9720 char (*f) () = $ac_func;
9721 #endif
9722 #ifdef __cplusplus
9723 }
9724 #endif
9725
9726 int
9727 main ()
9728 {
9729 return f != $ac_func;
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736   (eval $ac_link) 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag"
9744                          || test ! -s conftest.err'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; } &&
9750          { ac_try='test -s conftest$ac_exeext'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   eval "$as_ac_var=yes"
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 eval "$as_ac_var=no"
9762 fi
9763 rm -f conftest.err conftest.$ac_objext \
9764       conftest$ac_exeext conftest.$ac_ext
9765 fi
9766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9768 if test `eval echo '${'$as_ac_var'}'` = yes; then
9769   cat >>confdefs.h <<_ACEOF
9770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9771 _ACEOF
9772  break
9773 fi
9774 done
9775
9776
9777
9778 for ac_func in memmove strcmp
9779 do
9780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781 echo "$as_me:$LINENO: checking for $ac_func" >&5
9782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783 if eval "test \"\${$as_ac_var+set}\" = set"; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794 #define $ac_func innocuous_$ac_func
9795
9796 /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char $ac_func (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers.  */
9800
9801 #ifdef __STDC__
9802 # include <limits.h>
9803 #else
9804 # include <assert.h>
9805 #endif
9806
9807 #undef $ac_func
9808
9809 /* Override any gcc2 internal prototype to avoid an error.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 {
9813 #endif
9814 /* We use char because int might match the return type of a gcc2
9815    builtin and then its argument prototype would still apply.  */
9816 char $ac_func ();
9817 /* The GNU C library defines this for functions which it implements
9818     to always fail with ENOSYS.  Some functions are actually named
9819     something starting with __ and the normal name is an alias.  */
9820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9821 choke me
9822 #else
9823 char (*f) () = $ac_func;
9824 #endif
9825 #ifdef __cplusplus
9826 }
9827 #endif
9828
9829 int
9830 main ()
9831 {
9832 return f != $ac_func;
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839   (eval $ac_link) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"
9847                          || test ! -s conftest.err'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest$ac_exeext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   eval "$as_ac_var=yes"
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 eval "$as_ac_var=no"
9865 fi
9866 rm -f conftest.err conftest.$ac_objext \
9867       conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872   cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874 _ACEOF
9875
9876 fi
9877 done
9878
9879
9880
9881
9882 for ac_func in closedir opendir readdir
9883 do
9884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9885 echo "$as_me:$LINENO: checking for $ac_func" >&5
9886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9887 if eval "test \"\${$as_ac_var+set}\" = set"; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9898 #define $ac_func innocuous_$ac_func
9899
9900 /* System header to define __stub macros and hopefully few prototypes,
9901     which can conflict with char $ac_func (); below.
9902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903     <limits.h> exists even on freestanding compilers.  */
9904
9905 #ifdef __STDC__
9906 # include <limits.h>
9907 #else
9908 # include <assert.h>
9909 #endif
9910
9911 #undef $ac_func
9912
9913 /* Override any gcc2 internal prototype to avoid an error.  */
9914 #ifdef __cplusplus
9915 extern "C"
9916 {
9917 #endif
9918 /* We use char because int might match the return type of a gcc2
9919    builtin and then its argument prototype would still apply.  */
9920 char $ac_func ();
9921 /* The GNU C library defines this for functions which it implements
9922     to always fail with ENOSYS.  Some functions are actually named
9923     something starting with __ and the normal name is an alias.  */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9925 choke me
9926 #else
9927 char (*f) () = $ac_func;
9928 #endif
9929 #ifdef __cplusplus
9930 }
9931 #endif
9932
9933 int
9934 main ()
9935 {
9936 return f != $ac_func;
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943   (eval $ac_link) 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -z "$ac_c_werror_flag"
9951                          || test ! -s conftest.err'
9952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953   (eval $ac_try) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; } &&
9957          { ac_try='test -s conftest$ac_exeext'
9958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959   (eval $ac_try) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   eval "$as_ac_var=yes"
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 eval "$as_ac_var=no"
9969 fi
9970 rm -f conftest.err conftest.$ac_objext \
9971       conftest$ac_exeext conftest.$ac_ext
9972 fi
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976   cat >>confdefs.h <<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9978 _ACEOF
9979
9980 fi
9981 done
9982
9983
9984 # Check whether --enable-shared or --disable-shared was given.
9985 if test "${enable_shared+set}" = set; then
9986   enableval="$enable_shared"
9987   p=${PACKAGE-default}
9988     case $enableval in
9989     yes) enable_shared=yes ;;
9990     no) enable_shared=no ;;
9991     *)
9992       enable_shared=no
9993       # Look at the argument we got.  We use all the common list separators.
9994       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9995       for pkg in $enableval; do
9996         IFS="$lt_save_ifs"
9997         if test "X$pkg" = "X$p"; then
9998           enable_shared=yes
9999         fi
10000       done
10001       IFS="$lt_save_ifs"
10002       ;;
10003     esac
10004 else
10005   enable_shared=yes
10006 fi;
10007
10008 # Check whether --enable-static or --disable-static was given.
10009 if test "${enable_static+set}" = set; then
10010   enableval="$enable_static"
10011   p=${PACKAGE-default}
10012     case $enableval in
10013     yes) enable_static=yes ;;
10014     no) enable_static=no ;;
10015     *)
10016      enable_static=no
10017       # Look at the argument we got.  We use all the common list separators.
10018       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10019       for pkg in $enableval; do
10020         IFS="$lt_save_ifs"
10021         if test "X$pkg" = "X$p"; then
10022           enable_static=yes
10023         fi
10024       done
10025       IFS="$lt_save_ifs"
10026       ;;
10027     esac
10028 else
10029   enable_static=yes
10030 fi;
10031
10032 # Check whether --enable-fast-install or --disable-fast-install was given.
10033 if test "${enable_fast_install+set}" = set; then
10034   enableval="$enable_fast_install"
10035   p=${PACKAGE-default}
10036     case $enableval in
10037     yes) enable_fast_install=yes ;;
10038     no) enable_fast_install=no ;;
10039     *)
10040       enable_fast_install=no
10041       # Look at the argument we got.  We use all the common list separators.
10042       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10043       for pkg in $enableval; do
10044         IFS="$lt_save_ifs"
10045         if test "X$pkg" = "X$p"; then
10046           enable_fast_install=yes
10047         fi
10048       done
10049       IFS="$lt_save_ifs"
10050       ;;
10051     esac
10052 else
10053   enable_fast_install=yes
10054 fi;
10055
10056 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10057 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10058 if test "${lt_cv_path_SED+set}" = set; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   # Loop through the user's path and test for sed and gsed.
10062 # Then use that list of sed's as ones to test for truncation.
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066   IFS=$as_save_IFS
10067   test -z "$as_dir" && as_dir=.
10068   for lt_ac_prog in sed gsed; do
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10071         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10072       fi
10073     done
10074   done
10075 done
10076 lt_ac_max=0
10077 lt_ac_count=0
10078 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10079 # along with /bin/sed that truncates output.
10080 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10081   test ! -f $lt_ac_sed && break
10082   cat /dev/null > conftest.in
10083   lt_ac_count=0
10084   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10085   # Check for GNU sed and select it if it is found.
10086   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10087     lt_cv_path_SED=$lt_ac_sed
10088     break
10089   fi
10090   while true; do
10091     cat conftest.in conftest.in >conftest.tmp
10092     mv conftest.tmp conftest.in
10093     cp conftest.in conftest.nl
10094     echo >>conftest.nl
10095     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10096     cmp -s conftest.out conftest.nl || break
10097     # 10000 chars as input seems more than enough
10098     test $lt_ac_count -gt 10 && break
10099     lt_ac_count=`expr $lt_ac_count + 1`
10100     if test $lt_ac_count -gt $lt_ac_max; then
10101       lt_ac_max=$lt_ac_count
10102       lt_cv_path_SED=$lt_ac_sed
10103     fi
10104   done
10105 done
10106
10107 fi
10108
10109 SED=$lt_cv_path_SED
10110 echo "$as_me:$LINENO: result: $SED" >&5
10111 echo "${ECHO_T}$SED" >&6
10112
10113
10114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10115 if test "${with_gnu_ld+set}" = set; then
10116   withval="$with_gnu_ld"
10117   test "$withval" = no || with_gnu_ld=yes
10118 else
10119   with_gnu_ld=no
10120 fi;
10121 ac_prog=ld
10122 if test "$GCC" = yes; then
10123   # Check if gcc -print-prog-name=ld gives a path.
10124   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10126   case $host in
10127   *-*-mingw*)
10128     # gcc leaves a trailing carriage return which upsets mingw
10129     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10130   *)
10131     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10132   esac
10133   case $ac_prog in
10134     # Accept absolute paths.
10135     [\\/]* | ?:[\\/]*)
10136       re_direlt='/[^/][^/]*/\.\./'
10137       # Canonicalize the pathname of ld
10138       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10139       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10140         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10141       done
10142       test -z "$LD" && LD="$ac_prog"
10143       ;;
10144   "")
10145     # If it fails, then pretend we aren't using GCC.
10146     ac_prog=ld
10147     ;;
10148   *)
10149     # If it is relative, then search for the first ld in PATH.
10150     with_gnu_ld=unknown
10151     ;;
10152   esac
10153 elif test "$with_gnu_ld" = yes; then
10154   echo "$as_me:$LINENO: checking for GNU ld" >&5
10155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10156 else
10157   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10159 fi
10160 if test "${lt_cv_path_LD+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   if test -z "$LD"; then
10164   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10165   for ac_dir in $PATH; do
10166     IFS="$lt_save_ifs"
10167     test -z "$ac_dir" && ac_dir=.
10168     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10169       lt_cv_path_LD="$ac_dir/$ac_prog"
10170       # Check to see if the program is GNU ld.  I'd rather use --version,
10171       # but apparently some GNU ld's only accept -v.
10172       # Break only if it was the GNU/non-GNU ld that we prefer.
10173       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10174       *GNU* | *'with BFD'*)
10175         test "$with_gnu_ld" != no && break
10176         ;;
10177       *)
10178         test "$with_gnu_ld" != yes && break
10179         ;;
10180       esac
10181     fi
10182   done
10183   IFS="$lt_save_ifs"
10184 else
10185   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10186 fi
10187 fi
10188
10189 LD="$lt_cv_path_LD"
10190 if test -n "$LD"; then
10191   echo "$as_me:$LINENO: result: $LD" >&5
10192 echo "${ECHO_T}$LD" >&6
10193 else
10194   echo "$as_me:$LINENO: result: no" >&5
10195 echo "${ECHO_T}no" >&6
10196 fi
10197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10199    { (exit 1); exit 1; }; }
10200 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10206 case `$LD -v 2>&1 </dev/null` in
10207 *GNU* | *'with BFD'*)
10208   lt_cv_prog_gnu_ld=yes
10209   ;;
10210 *)
10211   lt_cv_prog_gnu_ld=no
10212   ;;
10213 esac
10214 fi
10215 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10217 with_gnu_ld=$lt_cv_prog_gnu_ld
10218
10219
10220 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10221 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10222 if test "${lt_cv_ld_reload_flag+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   lt_cv_ld_reload_flag='-r'
10226 fi
10227 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10228 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10229 reload_flag=$lt_cv_ld_reload_flag
10230 case $reload_flag in
10231 "" | " "*) ;;
10232 *) reload_flag=" $reload_flag" ;;
10233 esac
10234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10235 case $host_os in
10236   darwin*)
10237     if test "$GCC" = yes; then
10238       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10239     else
10240       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10241     fi
10242     ;;
10243 esac
10244
10245 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10246 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10247 if test "${lt_cv_deplibs_check_method+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   lt_cv_file_magic_cmd='$MAGIC_CMD'
10251 lt_cv_file_magic_test_file=
10252 lt_cv_deplibs_check_method='unknown'
10253 # Need to set the preceding variable on all platforms that support
10254 # interlibrary dependencies.
10255 # 'none' -- dependencies not supported.
10256 # `unknown' -- same as none, but documents that we really don't know.
10257 # 'pass_all' -- all dependencies passed with no checks.
10258 # 'test_compile' -- check by making test program.
10259 # 'file_magic [[regex]]' -- check by looking for files in library path
10260 # which responds to the $file_magic_cmd with a given extended regex.
10261 # If you have `file' or equivalent on your system and you're not sure
10262 # whether `pass_all' will *always* work, you probably want this one.
10263
10264 case $host_os in
10265 aix4* | aix5*)
10266   lt_cv_deplibs_check_method=pass_all
10267   ;;
10268
10269 beos*)
10270   lt_cv_deplibs_check_method=pass_all
10271   ;;
10272
10273 bsdi[45]*)
10274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10275   lt_cv_file_magic_cmd='/usr/bin/file -L'
10276   lt_cv_file_magic_test_file=/shlib/libc.so
10277   ;;
10278
10279 cygwin*)
10280   # func_win32_libid is a shell function defined in ltmain.sh
10281   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10282   lt_cv_file_magic_cmd='func_win32_libid'
10283   ;;
10284
10285 mingw* | pw32*)
10286   # Base MSYS/MinGW do not provide the 'file' command needed by
10287   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10288   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10289   lt_cv_file_magic_cmd='$OBJDUMP -f'
10290   ;;
10291
10292 darwin* | rhapsody*)
10293   lt_cv_deplibs_check_method=pass_all
10294   ;;
10295
10296 freebsd* | kfreebsd*-gnu)
10297   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10298     case $host_cpu in
10299     i*86 )
10300       # Not sure whether the presence of OpenBSD here was a mistake.
10301       # Let's accept both of them until this is cleared up.
10302       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10303       lt_cv_file_magic_cmd=/usr/bin/file
10304       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10305       ;;
10306     esac
10307   else
10308     lt_cv_deplibs_check_method=pass_all
10309   fi
10310   ;;
10311
10312 gnu*)
10313   lt_cv_deplibs_check_method=pass_all
10314   ;;
10315
10316 hpux10.20* | hpux11*)
10317   lt_cv_file_magic_cmd=/usr/bin/file
10318   case "$host_cpu" in
10319   ia64*)
10320     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10321     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10322     ;;
10323   hppa*64*)
10324     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]'
10325     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10326     ;;
10327   *)
10328     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10329     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10330     ;;
10331   esac
10332   ;;
10333
10334 irix5* | irix6* | nonstopux*)
10335   case $LD in
10336   *-32|*"-32 ") libmagic=32-bit;;
10337   *-n32|*"-n32 ") libmagic=N32;;
10338   *-64|*"-64 ") libmagic=64-bit;;
10339   *) libmagic=never-match;;
10340   esac
10341   lt_cv_deplibs_check_method=pass_all
10342   ;;
10343
10344 # This must be Linux ELF.
10345 linux*)
10346   lt_cv_deplibs_check_method=pass_all
10347   ;;
10348
10349 netbsd*)
10350   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10351     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10352   else
10353     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10354   fi
10355   ;;
10356
10357 newos6*)
10358   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10359   lt_cv_file_magic_cmd=/usr/bin/file
10360   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10361   ;;
10362
10363 nto-qnx*)
10364   lt_cv_deplibs_check_method=unknown
10365   ;;
10366
10367 openbsd*)
10368   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10369     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10370   else
10371     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10372   fi
10373   ;;
10374
10375 osf3* | osf4* | osf5*)
10376   lt_cv_deplibs_check_method=pass_all
10377   ;;
10378
10379 sco3.2v5*)
10380   lt_cv_deplibs_check_method=pass_all
10381   ;;
10382
10383 solaris*)
10384   lt_cv_deplibs_check_method=pass_all
10385   ;;
10386
10387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10388   case $host_vendor in
10389   motorola)
10390     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]'
10391     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10392     ;;
10393   ncr)
10394     lt_cv_deplibs_check_method=pass_all
10395     ;;
10396   sequent)
10397     lt_cv_file_magic_cmd='/bin/file'
10398     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10399     ;;
10400   sni)
10401     lt_cv_file_magic_cmd='/bin/file'
10402     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10403     lt_cv_file_magic_test_file=/lib/libc.so
10404     ;;
10405   siemens)
10406     lt_cv_deplibs_check_method=pass_all
10407     ;;
10408   esac
10409   ;;
10410
10411 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10412   lt_cv_deplibs_check_method=pass_all
10413   ;;
10414 esac
10415
10416 fi
10417 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10418 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10419 file_magic_cmd=$lt_cv_file_magic_cmd
10420 deplibs_check_method=$lt_cv_deplibs_check_method
10421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10422
10423
10424
10425 # If no C compiler was specified, use CC.
10426 LTCC=${LTCC-"$CC"}
10427
10428 # Allow CC to be a program name with arguments.
10429 compiler=$CC
10430
10431 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10432 if test "${enable_libtool_lock+set}" = set; then
10433   enableval="$enable_libtool_lock"
10434
10435 fi;
10436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10437
10438 # Some flags need to be propagated to the compiler or linker for good
10439 # libtool support.
10440 case $host in
10441 ia64-*-hpux*)
10442   # Find out which ABI we are using.
10443   echo 'int i;' > conftest.$ac_ext
10444   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445   (eval $ac_compile) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; then
10449     case `/usr/bin/file conftest.$ac_objext` in
10450     *ELF-32*)
10451       HPUX_IA64_MODE="32"
10452       ;;
10453     *ELF-64*)
10454       HPUX_IA64_MODE="64"
10455       ;;
10456     esac
10457   fi
10458   rm -rf conftest*
10459   ;;
10460 *-*-irix6*)
10461   # Find out which ABI we are using.
10462   echo '#line 10462 "configure"' > conftest.$ac_ext
10463   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464   (eval $ac_compile) 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; then
10468    if test "$lt_cv_prog_gnu_ld" = yes; then
10469     case `/usr/bin/file conftest.$ac_objext` in
10470     *32-bit*)
10471       LD="${LD-ld} -melf32bsmip"
10472       ;;
10473     *N32*)
10474       LD="${LD-ld} -melf32bmipn32"
10475       ;;
10476     *64-bit*)
10477       LD="${LD-ld} -melf64bmip"
10478       ;;
10479     esac
10480    else
10481     case `/usr/bin/file conftest.$ac_objext` in
10482     *32-bit*)
10483       LD="${LD-ld} -32"
10484       ;;
10485     *N32*)
10486       LD="${LD-ld} -n32"
10487       ;;
10488     *64-bit*)
10489       LD="${LD-ld} -64"
10490       ;;
10491     esac
10492    fi
10493   fi
10494   rm -rf conftest*
10495   ;;
10496
10497 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10498   # Find out which ABI we are using.
10499   echo 'int i;' > conftest.$ac_ext
10500   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501   (eval $ac_compile) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; then
10505     case "`/usr/bin/file conftest.o`" in
10506     *32-bit*)
10507       case $host in
10508         x86_64-*linux*)
10509           LD="${LD-ld} -m elf_i386"
10510           ;;
10511         ppc64-*linux*|powerpc64-*linux*)
10512           LD="${LD-ld} -m elf32ppclinux"
10513           ;;
10514         s390x-*linux*)
10515           LD="${LD-ld} -m elf_s390"
10516           ;;
10517         sparc64-*linux*)
10518           LD="${LD-ld} -m elf32_sparc"
10519           ;;
10520       esac
10521       ;;
10522     *64-bit*)
10523       case $host in
10524         x86_64-*linux*)
10525           LD="${LD-ld} -m elf_x86_64"
10526           ;;
10527         ppc*-*linux*|powerpc*-*linux*)
10528           LD="${LD-ld} -m elf64ppc"
10529           ;;
10530         s390*-*linux*)
10531           LD="${LD-ld} -m elf64_s390"
10532           ;;
10533         sparc*-*linux*)
10534           LD="${LD-ld} -m elf64_sparc"
10535           ;;
10536       esac
10537       ;;
10538     esac
10539   fi
10540   rm -rf conftest*
10541   ;;
10542
10543 *-*-sco3.2v5*)
10544   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10545   SAVE_CFLAGS="$CFLAGS"
10546   CFLAGS="$CFLAGS -belf"
10547   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10548 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10549 if test "${lt_cv_cc_needs_belf+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   ac_ext=c
10553 ac_cpp='$CPP $CPPFLAGS'
10554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557
10558      cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h.  */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h.  */
10564
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568   (eval $ac_link) 2>conftest.er1
10569   ac_status=$?
10570   grep -v '^ *+' conftest.er1 >conftest.err
10571   rm -f conftest.er1
10572   cat conftest.err >&5
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -z "$ac_c_werror_flag"
10576                          || test ! -s conftest.err'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; } &&
10582          { ac_try='test -s conftest$ac_exeext'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; }; then
10588   lt_cv_cc_needs_belf=yes
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 lt_cv_cc_needs_belf=no
10594 fi
10595 rm -f conftest.err conftest.$ac_objext \
10596       conftest$ac_exeext conftest.$ac_ext
10597      ac_ext=c
10598 ac_cpp='$CPP $CPPFLAGS'
10599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10602
10603 fi
10604 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10605 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10606   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10607     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10608     CFLAGS="$SAVE_CFLAGS"
10609   fi
10610   ;;
10611
10612 esac
10613
10614 need_locks="$enable_libtool_lock"
10615
10616
10617
10618
10619 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621     (test "X$CXX" != "Xg++"))) ; then
10622   ac_ext=cc
10623 ac_cpp='$CXXCPP $CPPFLAGS'
10624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10628 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10629 if test -z "$CXXCPP"; then
10630   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633       # Double quotes because CXXCPP needs to be expanded
10634     for CXXCPP in "$CXX -E" "/lib/cpp"
10635     do
10636       ac_preproc_ok=false
10637 for ac_cxx_preproc_warn_flag in '' yes
10638 do
10639   # Use a header file that comes with gcc, so configuring glibc
10640   # with a fresh cross-compiler works.
10641   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642   # <limits.h> exists even on freestanding compilers.
10643   # On the NeXT, cc -E runs the code through the compiler's parser,
10644   # not just through cpp. "Syntax error" is here to catch this case.
10645   cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651 #ifdef __STDC__
10652 # include <limits.h>
10653 #else
10654 # include <assert.h>
10655 #endif
10656                      Syntax error
10657 _ACEOF
10658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10660   ac_status=$?
10661   grep -v '^ *+' conftest.er1 >conftest.err
10662   rm -f conftest.er1
10663   cat conftest.err >&5
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } >/dev/null; then
10666   if test -s conftest.err; then
10667     ac_cpp_err=$ac_cxx_preproc_warn_flag
10668     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10669   else
10670     ac_cpp_err=
10671   fi
10672 else
10673   ac_cpp_err=yes
10674 fi
10675 if test -z "$ac_cpp_err"; then
10676   :
10677 else
10678   echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681   # Broken: fails on valid input.
10682 continue
10683 fi
10684 rm -f conftest.err conftest.$ac_ext
10685
10686   # OK, works on sane cases.  Now check whether non-existent headers
10687   # can be detected and how.
10688   cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h.  */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h.  */
10694 #include <ac_nonexistent.h>
10695 _ACEOF
10696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } >/dev/null; then
10704   if test -s conftest.err; then
10705     ac_cpp_err=$ac_cxx_preproc_warn_flag
10706     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10707   else
10708     ac_cpp_err=
10709   fi
10710 else
10711   ac_cpp_err=yes
10712 fi
10713 if test -z "$ac_cpp_err"; then
10714   # Broken: success on invalid input.
10715 continue
10716 else
10717   echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720   # Passes both tests.
10721 ac_preproc_ok=:
10722 break
10723 fi
10724 rm -f conftest.err conftest.$ac_ext
10725
10726 done
10727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10728 rm -f conftest.err conftest.$ac_ext
10729 if $ac_preproc_ok; then
10730   break
10731 fi
10732
10733     done
10734     ac_cv_prog_CXXCPP=$CXXCPP
10735
10736 fi
10737   CXXCPP=$ac_cv_prog_CXXCPP
10738 else
10739   ac_cv_prog_CXXCPP=$CXXCPP
10740 fi
10741 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10742 echo "${ECHO_T}$CXXCPP" >&6
10743 ac_preproc_ok=false
10744 for ac_cxx_preproc_warn_flag in '' yes
10745 do
10746   # Use a header file that comes with gcc, so configuring glibc
10747   # with a fresh cross-compiler works.
10748   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749   # <limits.h> exists even on freestanding compilers.
10750   # On the NeXT, cc -E runs the code through the compiler's parser,
10751   # not just through cpp. "Syntax error" is here to catch this case.
10752   cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758 #ifdef __STDC__
10759 # include <limits.h>
10760 #else
10761 # include <assert.h>
10762 #endif
10763                      Syntax error
10764 _ACEOF
10765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } >/dev/null; then
10773   if test -s conftest.err; then
10774     ac_cpp_err=$ac_cxx_preproc_warn_flag
10775     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10776   else
10777     ac_cpp_err=
10778   fi
10779 else
10780   ac_cpp_err=yes
10781 fi
10782 if test -z "$ac_cpp_err"; then
10783   :
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788   # Broken: fails on valid input.
10789 continue
10790 fi
10791 rm -f conftest.err conftest.$ac_ext
10792
10793   # OK, works on sane cases.  Now check whether non-existent headers
10794   # can be detected and how.
10795   cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h.  */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h.  */
10801 #include <ac_nonexistent.h>
10802 _ACEOF
10803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10805   ac_status=$?
10806   grep -v '^ *+' conftest.er1 >conftest.err
10807   rm -f conftest.er1
10808   cat conftest.err >&5
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); } >/dev/null; then
10811   if test -s conftest.err; then
10812     ac_cpp_err=$ac_cxx_preproc_warn_flag
10813     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10814   else
10815     ac_cpp_err=
10816   fi
10817 else
10818   ac_cpp_err=yes
10819 fi
10820 if test -z "$ac_cpp_err"; then
10821   # Broken: success on invalid input.
10822 continue
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827   # Passes both tests.
10828 ac_preproc_ok=:
10829 break
10830 fi
10831 rm -f conftest.err conftest.$ac_ext
10832
10833 done
10834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10835 rm -f conftest.err conftest.$ac_ext
10836 if $ac_preproc_ok; then
10837   :
10838 else
10839   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10840 See \`config.log' for more details." >&5
10841 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10842 See \`config.log' for more details." >&2;}
10843    { (exit 1); exit 1; }; }
10844 fi
10845
10846 ac_ext=cc
10847 ac_cpp='$CXXCPP $CPPFLAGS'
10848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10851
10852 fi
10853
10854
10855 ac_ext=f
10856 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10857 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10859 if test -n "$ac_tool_prefix"; then
10860   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10861   do
10862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10864 echo "$as_me:$LINENO: checking for $ac_word" >&5
10865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10866 if test "${ac_cv_prog_F77+set}" = set; then
10867   echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869   if test -n "$F77"; then
10870   ac_cv_prog_F77="$F77" # Let the user override the test.
10871 else
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10874 do
10875   IFS=$as_save_IFS
10876   test -z "$as_dir" && as_dir=.
10877   for ac_exec_ext in '' $ac_executable_extensions; do
10878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10881     break 2
10882   fi
10883 done
10884 done
10885
10886 fi
10887 fi
10888 F77=$ac_cv_prog_F77
10889 if test -n "$F77"; then
10890   echo "$as_me:$LINENO: result: $F77" >&5
10891 echo "${ECHO_T}$F77" >&6
10892 else
10893   echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6
10895 fi
10896
10897     test -n "$F77" && break
10898   done
10899 fi
10900 if test -z "$F77"; then
10901   ac_ct_F77=$F77
10902   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10903 do
10904   # Extract the first word of "$ac_prog", so it can be a program name with args.
10905 set dummy $ac_prog; ac_word=$2
10906 echo "$as_me:$LINENO: checking for $ac_word" >&5
10907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10908 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10909   echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911   if test -n "$ac_ct_F77"; then
10912   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10913 else
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in $PATH
10916 do
10917   IFS=$as_save_IFS
10918   test -z "$as_dir" && as_dir=.
10919   for ac_exec_ext in '' $ac_executable_extensions; do
10920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10921     ac_cv_prog_ac_ct_F77="$ac_prog"
10922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10923     break 2
10924   fi
10925 done
10926 done
10927
10928 fi
10929 fi
10930 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10931 if test -n "$ac_ct_F77"; then
10932   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10933 echo "${ECHO_T}$ac_ct_F77" >&6
10934 else
10935   echo "$as_me:$LINENO: result: no" >&5
10936 echo "${ECHO_T}no" >&6
10937 fi
10938
10939   test -n "$ac_ct_F77" && break
10940 done
10941
10942   F77=$ac_ct_F77
10943 fi
10944
10945
10946 # Provide some information about the compiler.
10947 echo "$as_me:10947:" \
10948      "checking for Fortran 77 compiler version" >&5
10949 ac_compiler=`set X $ac_compile; echo $2`
10950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10951   (eval $ac_compiler --version </dev/null >&5) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }
10955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10956   (eval $ac_compiler -v </dev/null >&5) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }
10960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10961   (eval $ac_compiler -V </dev/null >&5) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); }
10965 rm -f a.out
10966
10967 # If we don't use `.F' as extension, the preprocessor is not run on the
10968 # input file.  (Note that this only needs to work for GNU compilers.)
10969 ac_save_ext=$ac_ext
10970 ac_ext=F
10971 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10972 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10973 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   cat >conftest.$ac_ext <<_ACEOF
10977       program main
10978 #ifndef __GNUC__
10979        choke me
10980 #endif
10981
10982       end
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986   (eval $ac_compile) 2>conftest.er1
10987   ac_status=$?
10988   grep -v '^ *+' conftest.er1 >conftest.err
10989   rm -f conftest.er1
10990   cat conftest.err >&5
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } &&
10993          { ac_try='test -z "$ac_f77_werror_flag"
10994                          || test ! -s conftest.err'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; } &&
11000          { ac_try='test -s conftest.$ac_objext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   ac_compiler_gnu=yes
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 ac_compiler_gnu=no
11012 fi
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11015
11016 fi
11017 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11018 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11019 ac_ext=$ac_save_ext
11020 ac_test_FFLAGS=${FFLAGS+set}
11021 ac_save_FFLAGS=$FFLAGS
11022 FFLAGS=
11023 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11024 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11025 if test "${ac_cv_prog_f77_g+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   FFLAGS=-g
11029 cat >conftest.$ac_ext <<_ACEOF
11030       program main
11031
11032       end
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036   (eval $ac_compile) 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } &&
11043          { ac_try='test -z "$ac_f77_werror_flag"
11044                          || test ! -s conftest.err'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; } &&
11050          { ac_try='test -s conftest.$ac_objext'
11051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052   (eval $ac_try) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; }; then
11056   ac_cv_prog_f77_g=yes
11057 else
11058   echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061 ac_cv_prog_f77_g=no
11062 fi
11063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11064
11065 fi
11066 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11067 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11068 if test "$ac_test_FFLAGS" = set; then
11069   FFLAGS=$ac_save_FFLAGS
11070 elif test $ac_cv_prog_f77_g = yes; then
11071   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11072     FFLAGS="-g -O2"
11073   else
11074     FFLAGS="-g"
11075   fi
11076 else
11077   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11078     FFLAGS="-O2"
11079   else
11080     FFLAGS=
11081   fi
11082 fi
11083
11084 G77=`test $ac_compiler_gnu = yes && echo yes`
11085 ac_ext=c
11086 ac_cpp='$CPP $CPPFLAGS'
11087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11090
11091
11092
11093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11094
11095 # find the maximum length of command line arguments
11096 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11097 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11098 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101     i=0
11102   teststring="ABCD"
11103
11104   case $build_os in
11105   msdosdjgpp*)
11106     # On DJGPP, this test can blow up pretty badly due to problems in libc
11107     # (any single argument exceeding 2000 bytes causes a buffer overrun
11108     # during glob expansion).  Even if it were fixed, the result of this
11109     # check would be larger than it should be.
11110     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11111     ;;
11112
11113   gnu*)
11114     # Under GNU Hurd, this test is not required because there is
11115     # no limit to the length of command line arguments.
11116     # Libtool will interpret -1 as no limit whatsoever
11117     lt_cv_sys_max_cmd_len=-1;
11118     ;;
11119
11120   cygwin* | mingw*)
11121     # On Win9x/ME, this test blows up -- it succeeds, but takes
11122     # about 5 minutes as the teststring grows exponentially.
11123     # Worse, since 9x/ME are not pre-emptively multitasking,
11124     # you end up with a "frozen" computer, even though with patience
11125     # the test eventually succeeds (with a max line length of 256k).
11126     # Instead, let's just punt: use the minimum linelength reported by
11127     # all of the supported platforms: 8192 (on NT/2K/XP).
11128     lt_cv_sys_max_cmd_len=8192;
11129     ;;
11130
11131   amigaos*)
11132     # On AmigaOS with pdksh, this test takes hours, literally.
11133     # So we just punt and use a minimum line length of 8192.
11134     lt_cv_sys_max_cmd_len=8192;
11135     ;;
11136
11137   netbsd* | freebsd* | openbsd* | darwin* )
11138     # This has been around since 386BSD, at least.  Likely further.
11139     if test -x /sbin/sysctl; then
11140       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11141     elif test -x /usr/sbin/sysctl; then
11142       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11143     else
11144       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11145     fi
11146     # And add a safety zone
11147     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11148     ;;
11149
11150  *)
11151     # If test is not a shell built-in, we'll probably end up computing a
11152     # maximum length that is only half of the actual maximum length, but
11153     # we can't tell.
11154     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11155     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11156                = "XX$teststring") >/dev/null 2>&1 &&
11157             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11158             lt_cv_sys_max_cmd_len=$new_result &&
11159             test $i != 17 # 1/2 MB should be enough
11160     do
11161       i=`expr $i + 1`
11162       teststring=$teststring$teststring
11163     done
11164     teststring=
11165     # Add a significant safety factor because C++ compilers can tack on massive
11166     # amounts of additional arguments before passing them to the linker.
11167     # It appears as though 1/2 is a usable value.
11168     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11169     ;;
11170   esac
11171
11172 fi
11173
11174 if test -n $lt_cv_sys_max_cmd_len ; then
11175   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11176 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11177 else
11178   echo "$as_me:$LINENO: result: none" >&5
11179 echo "${ECHO_T}none" >&6
11180 fi
11181
11182
11183
11184
11185 # Check for command to grab the raw symbol name followed by C symbol from nm.
11186 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11187 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11188 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191
11192 # These are sane defaults that work on at least a few old systems.
11193 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11194
11195 # Character class describing NM global symbol codes.
11196 symcode='[BCDEGRST]'
11197
11198 # Regexp to match symbols that can be accessed directly from C.
11199 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11200
11201 # Transform the above into a raw symbol and a C symbol.
11202 symxfrm='\1 \2\3 \3'
11203
11204 # Transform an extracted symbol line into a proper C declaration
11205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11206
11207 # Transform an extracted symbol line into symbol name and symbol address
11208 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'"
11209
11210 # Define system-specific variables.
11211 case $host_os in
11212 aix*)
11213   symcode='[BCDT]'
11214   ;;
11215 cygwin* | mingw* | pw32*)
11216   symcode='[ABCDGISTW]'
11217   ;;
11218 hpux*) # Its linker distinguishes data from code symbols
11219   if test "$host_cpu" = ia64; then
11220     symcode='[ABCDEGRST]'
11221   fi
11222   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11223   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'"
11224   ;;
11225 linux*)
11226   if test "$host_cpu" = ia64; then
11227     symcode='[ABCDGIRSTW]'
11228     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11229     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'"
11230   fi
11231   ;;
11232 irix* | nonstopux*)
11233   symcode='[BCDEGRST]'
11234   ;;
11235 osf*)
11236   symcode='[BCDEGQRST]'
11237   ;;
11238 solaris* | sysv5*)
11239   symcode='[BDRT]'
11240   ;;
11241 sysv4)
11242   symcode='[DFNSTU]'
11243   ;;
11244 esac
11245
11246 # Handle CRLF in mingw tool chain
11247 opt_cr=
11248 case $build_os in
11249 mingw*)
11250   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11251   ;;
11252 esac
11253
11254 # If we're using GNU nm, then use its standard symbol codes.
11255 case `$NM -V 2>&1` in
11256 *GNU* | *'with BFD'*)
11257   symcode='[ABCDGIRSTW]' ;;
11258 esac
11259
11260 # Try without a prefix undercore, then with it.
11261 for ac_symprfx in "" "_"; do
11262
11263   # Write the raw and C identifiers.
11264   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11265
11266   # Check to see that the pipe works correctly.
11267   pipe_works=no
11268
11269   rm -f conftest*
11270   cat > conftest.$ac_ext <<EOF
11271 #ifdef __cplusplus
11272 extern "C" {
11273 #endif
11274 char nm_test_var;
11275 void nm_test_func(){}
11276 #ifdef __cplusplus
11277 }
11278 #endif
11279 int main(){nm_test_var='a';nm_test_func();return(0);}
11280 EOF
11281
11282   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283   (eval $ac_compile) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; then
11287     # Now try to grab the symbols.
11288     nlist=conftest.nm
11289     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11290   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } && test -s "$nlist"; then
11294       # Try sorting and uniquifying the output.
11295       if sort "$nlist" | uniq > "$nlist"T; then
11296         mv -f "$nlist"T "$nlist"
11297       else
11298         rm -f "$nlist"T
11299       fi
11300
11301       # Make sure that we snagged all the symbols we need.
11302       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11303         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11304           cat <<EOF > conftest.$ac_ext
11305 #ifdef __cplusplus
11306 extern "C" {
11307 #endif
11308
11309 EOF
11310           # Now generate the symbol file.
11311           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11312
11313           cat <<EOF >> conftest.$ac_ext
11314 #if defined (__STDC__) && __STDC__
11315 # define lt_ptr_t void *
11316 #else
11317 # define lt_ptr_t char *
11318 # define const
11319 #endif
11320
11321 /* The mapping between symbol names and symbols. */
11322 const struct {
11323   const char *name;
11324   lt_ptr_t address;
11325 }
11326 lt_preloaded_symbols[] =
11327 {
11328 EOF
11329           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11330           cat <<\EOF >> conftest.$ac_ext
11331   {0, (lt_ptr_t) 0}
11332 };
11333
11334 #ifdef __cplusplus
11335 }
11336 #endif
11337 EOF
11338           # Now try linking the two files.
11339           mv conftest.$ac_objext conftstm.$ac_objext
11340           lt_save_LIBS="$LIBS"
11341           lt_save_CFLAGS="$CFLAGS"
11342           LIBS="conftstm.$ac_objext"
11343           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11344           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345   (eval $ac_link) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11349             pipe_works=yes
11350           fi
11351           LIBS="$lt_save_LIBS"
11352           CFLAGS="$lt_save_CFLAGS"
11353         else
11354           echo "cannot find nm_test_func in $nlist" >&5
11355         fi
11356       else
11357         echo "cannot find nm_test_var in $nlist" >&5
11358       fi
11359     else
11360       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11361     fi
11362   else
11363     echo "$progname: failed program was:" >&5
11364     cat conftest.$ac_ext >&5
11365   fi
11366   rm -f conftest* conftst*
11367
11368   # Do not use the global_symbol_pipe unless it works.
11369   if test "$pipe_works" = yes; then
11370     break
11371   else
11372     lt_cv_sys_global_symbol_pipe=
11373   fi
11374 done
11375
11376 fi
11377
11378 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11379   lt_cv_sys_global_symbol_to_cdecl=
11380 fi
11381 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11382   echo "$as_me:$LINENO: result: failed" >&5
11383 echo "${ECHO_T}failed" >&6
11384 else
11385   echo "$as_me:$LINENO: result: ok" >&5
11386 echo "${ECHO_T}ok" >&6
11387 fi
11388
11389 echo "$as_me:$LINENO: checking for objdir" >&5
11390 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11391 if test "${lt_cv_objdir+set}" = set; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   rm -f .libs 2>/dev/null
11395 mkdir .libs 2>/dev/null
11396 if test -d .libs; then
11397   lt_cv_objdir=.libs
11398 else
11399   # MS-DOS does not allow filenames that begin with a dot.
11400   lt_cv_objdir=_libs
11401 fi
11402 rmdir .libs 2>/dev/null
11403 fi
11404 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11405 echo "${ECHO_T}$lt_cv_objdir" >&6
11406 objdir=$lt_cv_objdir
11407
11408
11409
11410
11411
11412 case $host_os in
11413 aix3*)
11414   # AIX sometimes has problems with the GCC collect2 program.  For some
11415   # reason, if we set the COLLECT_NAMES environment variable, the problems
11416   # vanish in a puff of smoke.
11417   if test "X${COLLECT_NAMES+set}" != Xset; then
11418     COLLECT_NAMES=
11419     export COLLECT_NAMES
11420   fi
11421   ;;
11422 esac
11423
11424 # Sed substitution that helps us do robust quoting.  It backslashifies
11425 # metacharacters that are still active within double-quoted strings.
11426 Xsed='sed -e s/^X//'
11427 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11428
11429 # Same as above, but do not quote variable references.
11430 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11431
11432 # Sed substitution to delay expansion of an escaped shell variable in a
11433 # double_quote_subst'ed string.
11434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11435
11436 # Sed substitution to avoid accidental globbing in evaled expressions
11437 no_glob_subst='s/\*/\\\*/g'
11438
11439 # Constants:
11440 rm="rm -f"
11441
11442 # Global variables:
11443 default_ofile=mklib
11444 can_build_shared=yes
11445
11446 # All known linkers require a `.a' archive for static linking (except M$VC,
11447 # which needs '.lib').
11448 libext=a
11449 ltmain="$ac_aux_dir/ltmain.sh"
11450 ofile="$default_ofile"
11451 with_gnu_ld="$lt_cv_prog_gnu_ld"
11452
11453 if test -n "$ac_tool_prefix"; then
11454   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11455 set dummy ${ac_tool_prefix}ar; ac_word=$2
11456 echo "$as_me:$LINENO: checking for $ac_word" >&5
11457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11458 if test "${ac_cv_prog_AR+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   if test -n "$AR"; then
11462   ac_cv_prog_AR="$AR" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11466 do
11467   IFS=$as_save_IFS
11468   test -z "$as_dir" && as_dir=.
11469   for ac_exec_ext in '' $ac_executable_extensions; do
11470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471     ac_cv_prog_AR="${ac_tool_prefix}ar"
11472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11473     break 2
11474   fi
11475 done
11476 done
11477
11478 fi
11479 fi
11480 AR=$ac_cv_prog_AR
11481 if test -n "$AR"; then
11482   echo "$as_me:$LINENO: result: $AR" >&5
11483 echo "${ECHO_T}$AR" >&6
11484 else
11485   echo "$as_me:$LINENO: result: no" >&5
11486 echo "${ECHO_T}no" >&6
11487 fi
11488
11489 fi
11490 if test -z "$ac_cv_prog_AR"; then
11491   ac_ct_AR=$AR
11492   # Extract the first word of "ar", so it can be a program name with args.
11493 set dummy ar; ac_word=$2
11494 echo "$as_me:$LINENO: checking for $ac_word" >&5
11495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11496 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499   if test -n "$ac_ct_AR"; then
11500   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11501 else
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11504 do
11505   IFS=$as_save_IFS
11506   test -z "$as_dir" && as_dir=.
11507   for ac_exec_ext in '' $ac_executable_extensions; do
11508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509     ac_cv_prog_ac_ct_AR="ar"
11510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11511     break 2
11512   fi
11513 done
11514 done
11515
11516   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11517 fi
11518 fi
11519 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11520 if test -n "$ac_ct_AR"; then
11521   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11522 echo "${ECHO_T}$ac_ct_AR" >&6
11523 else
11524   echo "$as_me:$LINENO: result: no" >&5
11525 echo "${ECHO_T}no" >&6
11526 fi
11527
11528   AR=$ac_ct_AR
11529 else
11530   AR="$ac_cv_prog_AR"
11531 fi
11532
11533 if test -n "$ac_tool_prefix"; then
11534   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11536 echo "$as_me:$LINENO: checking for $ac_word" >&5
11537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11538 if test "${ac_cv_prog_RANLIB+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   if test -n "$RANLIB"; then
11542   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11543 else
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11546 do
11547   IFS=$as_save_IFS
11548   test -z "$as_dir" && as_dir=.
11549   for ac_exec_ext in '' $ac_executable_extensions; do
11550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11551     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11553     break 2
11554   fi
11555 done
11556 done
11557
11558 fi
11559 fi
11560 RANLIB=$ac_cv_prog_RANLIB
11561 if test -n "$RANLIB"; then
11562   echo "$as_me:$LINENO: result: $RANLIB" >&5
11563 echo "${ECHO_T}$RANLIB" >&6
11564 else
11565   echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6
11567 fi
11568
11569 fi
11570 if test -z "$ac_cv_prog_RANLIB"; then
11571   ac_ct_RANLIB=$RANLIB
11572   # Extract the first word of "ranlib", so it can be a program name with args.
11573 set dummy ranlib; ac_word=$2
11574 echo "$as_me:$LINENO: checking for $ac_word" >&5
11575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   if test -n "$ac_ct_RANLIB"; then
11580   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11581 else
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11584 do
11585   IFS=$as_save_IFS
11586   test -z "$as_dir" && as_dir=.
11587   for ac_exec_ext in '' $ac_executable_extensions; do
11588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589     ac_cv_prog_ac_ct_RANLIB="ranlib"
11590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591     break 2
11592   fi
11593 done
11594 done
11595
11596   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11597 fi
11598 fi
11599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11600 if test -n "$ac_ct_RANLIB"; then
11601   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11602 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11603 else
11604   echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6
11606 fi
11607
11608   RANLIB=$ac_ct_RANLIB
11609 else
11610   RANLIB="$ac_cv_prog_RANLIB"
11611 fi
11612
11613 if test -n "$ac_tool_prefix"; then
11614   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11615 set dummy ${ac_tool_prefix}strip; ac_word=$2
11616 echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11618 if test "${ac_cv_prog_STRIP+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   if test -n "$STRIP"; then
11622   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11623 else
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11626 do
11627   IFS=$as_save_IFS
11628   test -z "$as_dir" && as_dir=.
11629   for ac_exec_ext in '' $ac_executable_extensions; do
11630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11633     break 2
11634   fi
11635 done
11636 done
11637
11638 fi
11639 fi
11640 STRIP=$ac_cv_prog_STRIP
11641 if test -n "$STRIP"; then
11642   echo "$as_me:$LINENO: result: $STRIP" >&5
11643 echo "${ECHO_T}$STRIP" >&6
11644 else
11645   echo "$as_me:$LINENO: result: no" >&5
11646 echo "${ECHO_T}no" >&6
11647 fi
11648
11649 fi
11650 if test -z "$ac_cv_prog_STRIP"; then
11651   ac_ct_STRIP=$STRIP
11652   # Extract the first word of "strip", so it can be a program name with args.
11653 set dummy strip; ac_word=$2
11654 echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11656 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   if test -n "$ac_ct_STRIP"; then
11660   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11664 do
11665   IFS=$as_save_IFS
11666   test -z "$as_dir" && as_dir=.
11667   for ac_exec_ext in '' $ac_executable_extensions; do
11668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669     ac_cv_prog_ac_ct_STRIP="strip"
11670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11671     break 2
11672   fi
11673 done
11674 done
11675
11676   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11677 fi
11678 fi
11679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11680 if test -n "$ac_ct_STRIP"; then
11681   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11682 echo "${ECHO_T}$ac_ct_STRIP" >&6
11683 else
11684   echo "$as_me:$LINENO: result: no" >&5
11685 echo "${ECHO_T}no" >&6
11686 fi
11687
11688   STRIP=$ac_ct_STRIP
11689 else
11690   STRIP="$ac_cv_prog_STRIP"
11691 fi
11692
11693
11694 old_CC="$CC"
11695 old_CFLAGS="$CFLAGS"
11696
11697 # Set sane defaults for various variables
11698 test -z "$AR" && AR=ar
11699 test -z "$AR_FLAGS" && AR_FLAGS=cru
11700 test -z "$AS" && AS=as
11701 test -z "$CC" && CC=cc
11702 test -z "$LTCC" && LTCC=$CC
11703 test -z "$DLLTOOL" && DLLTOOL=dlltool
11704 test -z "$LD" && LD=ld
11705 test -z "$LN_S" && LN_S="ln -s"
11706 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11707 test -z "$NM" && NM=nm
11708 test -z "$SED" && SED=sed
11709 test -z "$OBJDUMP" && OBJDUMP=objdump
11710 test -z "$RANLIB" && RANLIB=:
11711 test -z "$STRIP" && STRIP=:
11712 test -z "$ac_objext" && ac_objext=o
11713
11714 # Determine commands to create old-style static archives.
11715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11716 old_postinstall_cmds='chmod 644 $oldlib'
11717 old_postuninstall_cmds=
11718
11719 if test -n "$RANLIB"; then
11720   case $host_os in
11721   openbsd*)
11722     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11723     ;;
11724   *)
11725     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11726     ;;
11727   esac
11728   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11729 fi
11730
11731 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11732
11733 # Only perform the check for file, if the check method requires it
11734 case $deplibs_check_method in
11735 file_magic*)
11736   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11737     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11738 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11739 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742   case $MAGIC_CMD in
11743 [\\/*] |  ?:[\\/]*)
11744   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11745   ;;
11746 *)
11747   lt_save_MAGIC_CMD="$MAGIC_CMD"
11748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11749   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11750   for ac_dir in $ac_dummy; do
11751     IFS="$lt_save_ifs"
11752     test -z "$ac_dir" && ac_dir=.
11753     if test -f $ac_dir/${ac_tool_prefix}file; then
11754       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11755       if test -n "$file_magic_test_file"; then
11756         case $deplibs_check_method in
11757         "file_magic "*)
11758           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11759           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11761             $EGREP "$file_magic_regex" > /dev/null; then
11762             :
11763           else
11764             cat <<EOF 1>&2
11765
11766 *** Warning: the command libtool uses to detect shared libraries,
11767 *** $file_magic_cmd, produces output that libtool cannot recognize.
11768 *** The result is that libtool may fail to recognize shared libraries
11769 *** as such.  This will affect the creation of libtool libraries that
11770 *** depend on shared libraries, but programs linked with such libtool
11771 *** libraries will work regardless of this problem.  Nevertheless, you
11772 *** may want to report the problem to your system manager and/or to
11773 *** bug-libtool@gnu.org
11774
11775 EOF
11776           fi ;;
11777         esac
11778       fi
11779       break
11780     fi
11781   done
11782   IFS="$lt_save_ifs"
11783   MAGIC_CMD="$lt_save_MAGIC_CMD"
11784   ;;
11785 esac
11786 fi
11787
11788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11789 if test -n "$MAGIC_CMD"; then
11790   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11791 echo "${ECHO_T}$MAGIC_CMD" >&6
11792 else
11793   echo "$as_me:$LINENO: result: no" >&5
11794 echo "${ECHO_T}no" >&6
11795 fi
11796
11797 if test -z "$lt_cv_path_MAGIC_CMD"; then
11798   if test -n "$ac_tool_prefix"; then
11799     echo "$as_me:$LINENO: checking for file" >&5
11800 echo $ECHO_N "checking for file... $ECHO_C" >&6
11801 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   case $MAGIC_CMD in
11805 [\\/*] |  ?:[\\/]*)
11806   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11807   ;;
11808 *)
11809   lt_save_MAGIC_CMD="$MAGIC_CMD"
11810   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11811   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11812   for ac_dir in $ac_dummy; do
11813     IFS="$lt_save_ifs"
11814     test -z "$ac_dir" && ac_dir=.
11815     if test -f $ac_dir/file; then
11816       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11817       if test -n "$file_magic_test_file"; then
11818         case $deplibs_check_method in
11819         "file_magic "*)
11820           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11821           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11822           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11823             $EGREP "$file_magic_regex" > /dev/null; then
11824             :
11825           else
11826             cat <<EOF 1>&2
11827
11828 *** Warning: the command libtool uses to detect shared libraries,
11829 *** $file_magic_cmd, produces output that libtool cannot recognize.
11830 *** The result is that libtool may fail to recognize shared libraries
11831 *** as such.  This will affect the creation of libtool libraries that
11832 *** depend on shared libraries, but programs linked with such libtool
11833 *** libraries will work regardless of this problem.  Nevertheless, you
11834 *** may want to report the problem to your system manager and/or to
11835 *** bug-libtool@gnu.org
11836
11837 EOF
11838           fi ;;
11839         esac
11840       fi
11841       break
11842     fi
11843   done
11844   IFS="$lt_save_ifs"
11845   MAGIC_CMD="$lt_save_MAGIC_CMD"
11846   ;;
11847 esac
11848 fi
11849
11850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11851 if test -n "$MAGIC_CMD"; then
11852   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11853 echo "${ECHO_T}$MAGIC_CMD" >&6
11854 else
11855   echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11857 fi
11858
11859   else
11860     MAGIC_CMD=:
11861   fi
11862 fi
11863
11864   fi
11865   ;;
11866 esac
11867
11868 enable_dlopen=yes
11869 enable_win32_dll=no
11870
11871 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11872 if test "${enable_libtool_lock+set}" = set; then
11873   enableval="$enable_libtool_lock"
11874
11875 fi;
11876 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11877
11878
11879 # Check whether --with-pic or --without-pic was given.
11880 if test "${with_pic+set}" = set; then
11881   withval="$with_pic"
11882   pic_mode="$withval"
11883 else
11884   pic_mode=default
11885 fi;
11886 test -z "$pic_mode" && pic_mode=default
11887
11888 # Use C for the default configuration in the libtool script
11889 tagname=
11890 lt_save_CC="$CC"
11891 ac_ext=c
11892 ac_cpp='$CPP $CPPFLAGS'
11893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11896
11897
11898 # Source file extension for C test sources.
11899 ac_ext=c
11900
11901 # Object file extension for compiled C test sources.
11902 objext=o
11903 objext=$objext
11904
11905 # Code to be used in simple compile tests
11906 lt_simple_compile_test_code="int some_variable = 0;\n"
11907
11908 # Code to be used in simple link tests
11909 lt_simple_link_test_code='int main(){return(0);}\n'
11910
11911
11912 # If no C compiler was specified, use CC.
11913 LTCC=${LTCC-"$CC"}
11914
11915 # Allow CC to be a program name with arguments.
11916 compiler=$CC
11917
11918
11919 #
11920 # Check for any special shared library compilation flags.
11921 #
11922 lt_prog_cc_shlib=
11923 if test "$GCC" = no; then
11924   case $host_os in
11925   sco3.2v5*)
11926     lt_prog_cc_shlib='-belf'
11927     ;;
11928   esac
11929 fi
11930 if test -n "$lt_prog_cc_shlib"; then
11931   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11932 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11933   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11934   else
11935     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11936 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11937     lt_cv_prog_cc_can_build_shared=no
11938   fi
11939 fi
11940
11941
11942 #
11943 # Check to make sure the static flag actually works.
11944 #
11945 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11946 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11947 if test "${lt_prog_compiler_static_works+set}" = set; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   lt_prog_compiler_static_works=no
11951    save_LDFLAGS="$LDFLAGS"
11952    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11953    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11954    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11955      # The compiler can only warn and ignore the option if not recognized
11956      # So say no if there are warnings
11957      if test -s conftest.err; then
11958        # Append any errors to the config.log.
11959        cat conftest.err 1>&5
11960      else
11961        lt_prog_compiler_static_works=yes
11962      fi
11963    fi
11964    $rm conftest*
11965    LDFLAGS="$save_LDFLAGS"
11966
11967 fi
11968 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11969 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11970
11971 if test x"$lt_prog_compiler_static_works" = xyes; then
11972     :
11973 else
11974     lt_prog_compiler_static=
11975 fi
11976
11977
11978
11979
11980 lt_prog_compiler_no_builtin_flag=
11981
11982 if test "$GCC" = yes; then
11983   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11984
11985
11986 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11987 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11988 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11989   echo $ECHO_N "(cached) $ECHO_C" >&6
11990 else
11991   lt_cv_prog_compiler_rtti_exceptions=no
11992   ac_outfile=conftest.$ac_objext
11993    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11994    lt_compiler_flag="-fno-rtti -fno-exceptions"
11995    # Insert the option either (1) after the last *FLAGS variable, or
11996    # (2) before a word containing "conftest.", or (3) at the end.
11997    # Note that $ac_compile itself does not contain backslashes and begins
11998    # with a dollar sign (not a hyphen), so the echo should work correctly.
11999    # The option is referenced via a variable to avoid confusing sed.
12000    lt_compile=`echo "$ac_compile" | $SED \
12001    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003    -e 's:$: $lt_compiler_flag:'`
12004    (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
12005    (eval "$lt_compile" 2>conftest.err)
12006    ac_status=$?
12007    cat conftest.err >&5
12008    echo "$as_me:12008: \$? = $ac_status" >&5
12009    if (exit $ac_status) && test -s "$ac_outfile"; then
12010      # The compiler can only warn and ignore the option if not recognized
12011      # So say no if there are warnings
12012      if test ! -s conftest.err; then
12013        lt_cv_prog_compiler_rtti_exceptions=yes
12014      fi
12015    fi
12016    $rm conftest*
12017
12018 fi
12019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12020 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12021
12022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12023     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12024 else
12025     :
12026 fi
12027
12028 fi
12029
12030 lt_prog_compiler_wl=
12031 lt_prog_compiler_pic=
12032 lt_prog_compiler_static=
12033
12034 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12036
12037   if test "$GCC" = yes; then
12038     lt_prog_compiler_wl='-Wl,'
12039     lt_prog_compiler_static='-static'
12040
12041     case $host_os in
12042       aix*)
12043       # All AIX code is PIC.
12044       if test "$host_cpu" = ia64; then
12045         # AIX 5 now supports IA64 processor
12046         lt_prog_compiler_static='-Bstatic'
12047       fi
12048       ;;
12049
12050     amigaos*)
12051       # FIXME: we need at least 68020 code to build shared libraries, but
12052       # adding the `-m68020' flag to GCC prevents building anything better,
12053       # like `-m68040'.
12054       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12055       ;;
12056
12057     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12058       # PIC is the default for these OSes.
12059       ;;
12060
12061     mingw* | pw32* | os2*)
12062       # This hack is so that the source file can tell whether it is being
12063       # built for inclusion in a dll (and should export symbols for example).
12064       lt_prog_compiler_pic='-DDLL_EXPORT'
12065       ;;
12066
12067     darwin* | rhapsody*)
12068       # PIC is the default on this platform
12069       # Common symbols not allowed in MH_DYLIB files
12070       lt_prog_compiler_pic='-fno-common'
12071       ;;
12072
12073     msdosdjgpp*)
12074       # Just because we use GCC doesn't mean we suddenly get shared libraries
12075       # on systems that don't support them.
12076       lt_prog_compiler_can_build_shared=no
12077       enable_shared=no
12078       ;;
12079
12080     sysv4*MP*)
12081       if test -d /usr/nec; then
12082         lt_prog_compiler_pic=-Kconform_pic
12083       fi
12084       ;;
12085
12086     hpux*)
12087       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088       # not for PA HP-UX.
12089       case "$host_cpu" in
12090       hppa*64*|ia64*)
12091         # +Z the default
12092         ;;
12093       *)
12094         lt_prog_compiler_pic='-fPIC'
12095         ;;
12096       esac
12097       ;;
12098
12099     *)
12100       lt_prog_compiler_pic='-fPIC'
12101       ;;
12102     esac
12103   else
12104     # PORTME Check for flag to pass linker flags through the system compiler.
12105     case $host_os in
12106     aix*)
12107       lt_prog_compiler_wl='-Wl,'
12108       if test "$host_cpu" = ia64; then
12109         # AIX 5 now supports IA64 processor
12110         lt_prog_compiler_static='-Bstatic'
12111       else
12112         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12113       fi
12114       ;;
12115       darwin*)
12116         # PIC is the default on this platform
12117         # Common symbols not allowed in MH_DYLIB files
12118        case "$cc_basename" in
12119          xlc*)
12120          lt_prog_compiler_pic='-qnocommon'
12121          lt_prog_compiler_wl='-Wl,'
12122          ;;
12123        esac
12124        ;;
12125
12126     mingw* | pw32* | os2*)
12127       # This hack is so that the source file can tell whether it is being
12128       # built for inclusion in a dll (and should export symbols for example).
12129       lt_prog_compiler_pic='-DDLL_EXPORT'
12130       ;;
12131
12132     hpux9* | hpux10* | hpux11*)
12133       lt_prog_compiler_wl='-Wl,'
12134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12135       # not for PA HP-UX.
12136       case "$host_cpu" in
12137       hppa*64*|ia64*)
12138         # +Z the default
12139         ;;
12140       *)
12141         lt_prog_compiler_pic='+Z'
12142         ;;
12143       esac
12144       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12145       lt_prog_compiler_static='${wl}-a ${wl}archive'
12146       ;;
12147
12148     irix5* | irix6* | nonstopux*)
12149       lt_prog_compiler_wl='-Wl,'
12150       # PIC (with -KPIC) is the default.
12151       lt_prog_compiler_static='-non_shared'
12152       ;;
12153
12154     newsos6)
12155       lt_prog_compiler_pic='-KPIC'
12156       lt_prog_compiler_static='-Bstatic'
12157       ;;
12158
12159     linux*)
12160       case $CC in
12161       icc* | ecc*)
12162         lt_prog_compiler_wl='-Wl,'
12163         lt_prog_compiler_pic='-KPIC'
12164         lt_prog_compiler_static='-static'
12165         ;;
12166       ccc*)
12167         lt_prog_compiler_wl='-Wl,'
12168         # All Alpha code is PIC.
12169         lt_prog_compiler_static='-non_shared'
12170         ;;
12171       esac
12172       ;;
12173
12174     osf3* | osf4* | osf5*)
12175       lt_prog_compiler_wl='-Wl,'
12176       # All OSF/1 code is PIC.
12177       lt_prog_compiler_static='-non_shared'
12178       ;;
12179
12180     sco3.2v5*)
12181       lt_prog_compiler_pic='-Kpic'
12182       lt_prog_compiler_static='-dn'
12183       ;;
12184
12185     solaris*)
12186       lt_prog_compiler_wl='-Wl,'
12187       lt_prog_compiler_pic='-KPIC'
12188       lt_prog_compiler_static='-Bstatic'
12189       ;;
12190
12191     sunos4*)
12192       lt_prog_compiler_wl='-Qoption ld '
12193       lt_prog_compiler_pic='-PIC'
12194       lt_prog_compiler_static='-Bstatic'
12195       ;;
12196
12197     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12198       lt_prog_compiler_wl='-Wl,'
12199       lt_prog_compiler_pic='-KPIC'
12200       lt_prog_compiler_static='-Bstatic'
12201       ;;
12202
12203     sysv4*MP*)
12204       if test -d /usr/nec ;then
12205         lt_prog_compiler_pic='-Kconform_pic'
12206         lt_prog_compiler_static='-Bstatic'
12207       fi
12208       ;;
12209
12210     uts4*)
12211       lt_prog_compiler_pic='-pic'
12212       lt_prog_compiler_static='-Bstatic'
12213       ;;
12214
12215     *)
12216       lt_prog_compiler_can_build_shared=no
12217       ;;
12218     esac
12219   fi
12220
12221 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12222 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12223
12224 #
12225 # Check to make sure the PIC flag actually works.
12226 #
12227 if test -n "$lt_prog_compiler_pic"; then
12228
12229 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12230 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12231 if test "${lt_prog_compiler_pic_works+set}" = set; then
12232   echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234   lt_prog_compiler_pic_works=no
12235   ac_outfile=conftest.$ac_objext
12236    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12237    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12238    # Insert the option either (1) after the last *FLAGS variable, or
12239    # (2) before a word containing "conftest.", or (3) at the end.
12240    # Note that $ac_compile itself does not contain backslashes and begins
12241    # with a dollar sign (not a hyphen), so the echo should work correctly.
12242    # The option is referenced via a variable to avoid confusing sed.
12243    lt_compile=`echo "$ac_compile" | $SED \
12244    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12245    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12246    -e 's:$: $lt_compiler_flag:'`
12247    (eval echo "\"\$as_me:12247: $lt_compile\"" >&5)
12248    (eval "$lt_compile" 2>conftest.err)
12249    ac_status=$?
12250    cat conftest.err >&5
12251    echo "$as_me:12251: \$? = $ac_status" >&5
12252    if (exit $ac_status) && test -s "$ac_outfile"; then
12253      # The compiler can only warn and ignore the option if not recognized
12254      # So say no if there are warnings
12255      if test ! -s conftest.err; then
12256        lt_prog_compiler_pic_works=yes
12257      fi
12258    fi
12259    $rm conftest*
12260
12261 fi
12262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12263 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12264
12265 if test x"$lt_prog_compiler_pic_works" = xyes; then
12266     case $lt_prog_compiler_pic in
12267      "" | " "*) ;;
12268      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12269      esac
12270 else
12271     lt_prog_compiler_pic=
12272      lt_prog_compiler_can_build_shared=no
12273 fi
12274
12275 fi
12276 case "$host_os" in
12277   # For platforms which do not support PIC, -DPIC is meaningless:
12278   *djgpp*)
12279     lt_prog_compiler_pic=
12280     ;;
12281   *)
12282     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12283     ;;
12284 esac
12285
12286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12288 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12289   echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291   lt_cv_prog_compiler_c_o=no
12292    $rm -r conftest 2>/dev/null
12293    mkdir conftest
12294    cd conftest
12295    mkdir out
12296    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12297
12298    lt_compiler_flag="-o out/conftest2.$ac_objext"
12299    # Insert the option either (1) after the last *FLAGS variable, or
12300    # (2) before a word containing "conftest.", or (3) at the end.
12301    # Note that $ac_compile itself does not contain backslashes and begins
12302    # with a dollar sign (not a hyphen), so the echo should work correctly.
12303    lt_compile=`echo "$ac_compile" | $SED \
12304    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12306    -e 's:$: $lt_compiler_flag:'`
12307    (eval echo "\"\$as_me:12307: $lt_compile\"" >&5)
12308    (eval "$lt_compile" 2>out/conftest.err)
12309    ac_status=$?
12310    cat out/conftest.err >&5
12311    echo "$as_me:12311: \$? = $ac_status" >&5
12312    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12313    then
12314      # The compiler can only warn and ignore the option if not recognized
12315      # So say no if there are warnings
12316      if test ! -s out/conftest.err; then
12317        lt_cv_prog_compiler_c_o=yes
12318      fi
12319    fi
12320    chmod u+w .
12321    $rm conftest*
12322    # SGI C++ compiler will create directory out/ii_files/ for
12323    # template instantiation
12324    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12325    $rm out/* && rmdir out
12326    cd ..
12327    rmdir conftest
12328    $rm conftest*
12329
12330 fi
12331 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12332 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12333
12334
12335 hard_links="nottested"
12336 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12337   # do not overwrite the value of need_locks provided by the user
12338   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12339 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12340   hard_links=yes
12341   $rm conftest*
12342   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12343   touch conftest.a
12344   ln conftest.a conftest.b 2>&5 || hard_links=no
12345   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12346   echo "$as_me:$LINENO: result: $hard_links" >&5
12347 echo "${ECHO_T}$hard_links" >&6
12348   if test "$hard_links" = no; then
12349     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12350 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12351     need_locks=warn
12352   fi
12353 else
12354   need_locks=no
12355 fi
12356
12357 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12358 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12359
12360   runpath_var=
12361   allow_undefined_flag=
12362   enable_shared_with_static_runtimes=no
12363   archive_cmds=
12364   archive_expsym_cmds=
12365   old_archive_From_new_cmds=
12366   old_archive_from_expsyms_cmds=
12367   export_dynamic_flag_spec=
12368   whole_archive_flag_spec=
12369   thread_safe_flag_spec=
12370   hardcode_libdir_flag_spec=
12371   hardcode_libdir_flag_spec_ld=
12372   hardcode_libdir_separator=
12373   hardcode_direct=no
12374   hardcode_minus_L=no
12375   hardcode_shlibpath_var=unsupported
12376   link_all_deplibs=unknown
12377   hardcode_automatic=no
12378   module_cmds=
12379   module_expsym_cmds=
12380   always_export_symbols=no
12381   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12382   # include_expsyms should be a list of space-separated symbols to be *always*
12383   # included in the symbol list
12384   include_expsyms=
12385   # exclude_expsyms can be an extended regexp of symbols to exclude
12386   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12387   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12388   # as well as any symbol that contains `d'.
12389   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12390   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12391   # platforms (ab)use it in PIC code, but their linkers get confused if
12392   # the symbol is explicitly referenced.  Since portable code cannot
12393   # rely on this symbol name, it's probably fine to never include it in
12394   # preloaded symbol tables.
12395   extract_expsyms_cmds=
12396
12397   case $host_os in
12398   cygwin* | mingw* | pw32*)
12399     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12400     # When not using gcc, we currently assume that we are using
12401     # Microsoft Visual C++.
12402     if test "$GCC" != yes; then
12403       with_gnu_ld=no
12404     fi
12405     ;;
12406   openbsd*)
12407     with_gnu_ld=no
12408     ;;
12409   esac
12410
12411   ld_shlibs=yes
12412   if test "$with_gnu_ld" = yes; then
12413     # If archive_cmds runs LD, not CC, wlarc should be empty
12414     wlarc='${wl}'
12415
12416     # See if GNU ld supports shared libraries.
12417     case $host_os in
12418     aix3* | aix4* | aix5*)
12419       # On AIX/PPC, the GNU linker is very broken
12420       if test "$host_cpu" != ia64; then
12421         ld_shlibs=no
12422         cat <<EOF 1>&2
12423
12424 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12425 *** to be unable to reliably create shared libraries on AIX.
12426 *** Therefore, libtool is disabling shared libraries support.  If you
12427 *** really care for shared libraries, you may want to modify your PATH
12428 *** so that a non-GNU linker is found, and then restart.
12429
12430 EOF
12431       fi
12432       ;;
12433
12434     amigaos*)
12435       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)'
12436       hardcode_libdir_flag_spec='-L$libdir'
12437       hardcode_minus_L=yes
12438
12439       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12440       # that the semantics of dynamic libraries on AmigaOS, at least up
12441       # to version 4, is to share data among multiple programs linked
12442       # with the same dynamic library.  Since this doesn't match the
12443       # behavior of shared libraries on other platforms, we can't use
12444       # them.
12445       ld_shlibs=no
12446       ;;
12447
12448     beos*)
12449       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12450         allow_undefined_flag=unsupported
12451         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12452         # support --undefined.  This deserves some investigation.  FIXME
12453         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12454       else
12455         ld_shlibs=no
12456       fi
12457       ;;
12458
12459     cygwin* | mingw* | pw32*)
12460       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12461       # as there is no search path for DLLs.
12462       hardcode_libdir_flag_spec='-L$libdir'
12463       allow_undefined_flag=unsupported
12464       always_export_symbols=no
12465       enable_shared_with_static_runtimes=yes
12466       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12467
12468       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12469         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12470         # If the export-symbols file already is a .def file (1st line
12471         # is EXPORTS), use it as is; otherwise, prepend...
12472         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12473           cp $export_symbols $output_objdir/$soname.def;
12474         else
12475           echo EXPORTS > $output_objdir/$soname.def;
12476           cat $export_symbols >> $output_objdir/$soname.def;
12477         fi~
12478         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12479       else
12480         ld_shlibs=no
12481       fi
12482       ;;
12483
12484     netbsd*)
12485       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12486         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12487         wlarc=
12488       else
12489         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12491       fi
12492       ;;
12493
12494     solaris* | sysv5*)
12495       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12496         ld_shlibs=no
12497         cat <<EOF 1>&2
12498
12499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12500 *** create shared libraries on Solaris systems.  Therefore, libtool
12501 *** is disabling shared libraries support.  We urge you to upgrade GNU
12502 *** binutils to release 2.9.1 or newer.  Another option is to modify
12503 *** your PATH or compiler configuration so that the native linker is
12504 *** used, and then restart.
12505
12506 EOF
12507       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12508         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12510       else
12511         ld_shlibs=no
12512       fi
12513       ;;
12514
12515     sunos4*)
12516       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12517       wlarc=
12518       hardcode_direct=yes
12519       hardcode_shlibpath_var=no
12520       ;;
12521
12522   linux*)
12523     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12524         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12525         archive_cmds="$tmp_archive_cmds"
12526       supports_anon_versioning=no
12527       case `$LD -v 2>/dev/null` in
12528         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12529         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12530         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12531         *\ 2.11.*) ;; # other 2.11 versions
12532         *) supports_anon_versioning=yes ;;
12533       esac
12534       if test $supports_anon_versioning = yes; then
12535         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12537 $echo "local: *; };" >> $output_objdir/$libname.ver~
12538         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12539       else
12540         archive_expsym_cmds="$tmp_archive_cmds"
12541       fi
12542     else
12543       ld_shlibs=no
12544     fi
12545     ;;
12546
12547     *)
12548       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12549         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12550         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12551       else
12552         ld_shlibs=no
12553       fi
12554       ;;
12555     esac
12556
12557     if test "$ld_shlibs" = yes; then
12558       runpath_var=LD_RUN_PATH
12559       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12560       export_dynamic_flag_spec='${wl}--export-dynamic'
12561       # ancient GNU ld didn't support --whole-archive et. al.
12562       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12563         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12564       else
12565         whole_archive_flag_spec=
12566       fi
12567     fi
12568   else
12569     # PORTME fill in a description of your system's linker (not GNU ld)
12570     case $host_os in
12571     aix3*)
12572       allow_undefined_flag=unsupported
12573       always_export_symbols=yes
12574       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'
12575       # Note: this linker hardcodes the directories in LIBPATH if there
12576       # are no directories specified by -L.
12577       hardcode_minus_L=yes
12578       if test "$GCC" = yes && test -z "$link_static_flag"; then
12579         # Neither direct hardcoding nor static linking is supported with a
12580         # broken collect2.
12581         hardcode_direct=unsupported
12582       fi
12583       ;;
12584
12585     aix4* | aix5*)
12586       if test "$host_cpu" = ia64; then
12587         # On IA64, the linker does run time linking by default, so we don't
12588         # have to do anything special.
12589         aix_use_runtimelinking=no
12590         exp_sym_flag='-Bexport'
12591         no_entry_flag=""
12592       else
12593         # If we're using GNU nm, then we don't want the "-C" option.
12594         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12595         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12596           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'
12597         else
12598           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'
12599         fi
12600         aix_use_runtimelinking=no
12601
12602         # Test if we are trying to use run time linking or normal
12603         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12604         # need to do runtime linking.
12605         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12606           for ld_flag in $LDFLAGS; do
12607           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12608             aix_use_runtimelinking=yes
12609             break
12610           fi
12611           done
12612         esac
12613
12614         exp_sym_flag='-bexport'
12615         no_entry_flag='-bnoentry'
12616       fi
12617
12618       # When large executables or shared objects are built, AIX ld can
12619       # have problems creating the table of contents.  If linking a library
12620       # or program results in "error TOC overflow" add -mminimal-toc to
12621       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12622       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12623
12624       archive_cmds=''
12625       hardcode_direct=yes
12626       hardcode_libdir_separator=':'
12627       link_all_deplibs=yes
12628
12629       if test "$GCC" = yes; then
12630         case $host_os in aix4.012|aix4.012.*)
12631         # We only want to do this on AIX 4.2 and lower, the check
12632         # below for broken collect2 doesn't work under 4.3+
12633           collect2name=`${CC} -print-prog-name=collect2`
12634           if test -f "$collect2name" && \
12635            strings "$collect2name" | grep resolve_lib_name >/dev/null
12636           then
12637           # We have reworked collect2
12638           hardcode_direct=yes
12639           else
12640           # We have old collect2
12641           hardcode_direct=unsupported
12642           # It fails to find uninstalled libraries when the uninstalled
12643           # path is not listed in the libpath.  Setting hardcode_minus_L
12644           # to unsupported forces relinking
12645           hardcode_minus_L=yes
12646           hardcode_libdir_flag_spec='-L$libdir'
12647           hardcode_libdir_separator=
12648           fi
12649         esac
12650         shared_flag='-shared'
12651       else
12652         # not using gcc
12653         if test "$host_cpu" = ia64; then
12654         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12655         # chokes on -Wl,-G. The following line is correct:
12656           shared_flag='-G'
12657         else
12658         if test "$aix_use_runtimelinking" = yes; then
12659             shared_flag='${wl}-G'
12660           else
12661             shared_flag='${wl}-bM:SRE'
12662         fi
12663         fi
12664       fi
12665
12666       # It seems that -bexpall does not export symbols beginning with
12667       # underscore (_), so it is better to generate a list of symbols to export.
12668       always_export_symbols=yes
12669       if test "$aix_use_runtimelinking" = yes; then
12670         # Warning - without using the other runtime loading flags (-brtl),
12671         # -berok will link without error, but may produce a broken library.
12672         allow_undefined_flag='-berok'
12673        # Determine the default libpath from the value encoded in an empty executable.
12674        cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680
12681 int
12682 main ()
12683 {
12684
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691   (eval $ac_link) 2>conftest.er1
12692   ac_status=$?
12693   grep -v '^ *+' conftest.er1 >conftest.err
12694   rm -f conftest.er1
12695   cat conftest.err >&5
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); } &&
12698          { ac_try='test -z "$ac_c_werror_flag"
12699                          || test ! -s conftest.err'
12700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701   (eval $ac_try) 2>&5
12702   ac_status=$?
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); }; } &&
12705          { ac_try='test -s conftest$ac_exeext'
12706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707   (eval $ac_try) 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; }; then
12711
12712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12713 }'`
12714 # Check for a 64-bit object if we didn't find anything.
12715 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; }
12716 }'`; fi
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 fi
12722 rm -f conftest.err conftest.$ac_objext \
12723       conftest$ac_exeext conftest.$ac_ext
12724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12725
12726        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12727         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"
12728        else
12729         if test "$host_cpu" = ia64; then
12730           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12731           allow_undefined_flag="-z nodefs"
12732           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"
12733         else
12734          # Determine the default libpath from the value encoded in an empty executable.
12735          cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h.  */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h.  */
12741
12742 int
12743 main ()
12744 {
12745
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752   (eval $ac_link) 2>conftest.er1
12753   ac_status=$?
12754   grep -v '^ *+' conftest.er1 >conftest.err
12755   rm -f conftest.er1
12756   cat conftest.err >&5
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } &&
12759          { ac_try='test -z "$ac_c_werror_flag"
12760                          || test ! -s conftest.err'
12761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762   (eval $ac_try) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; } &&
12766          { ac_try='test -s conftest$ac_exeext'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772
12773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12774 }'`
12775 # Check for a 64-bit object if we didn't find anything.
12776 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; }
12777 }'`; fi
12778 else
12779   echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782 fi
12783 rm -f conftest.err conftest.$ac_objext \
12784       conftest$ac_exeext conftest.$ac_ext
12785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12786
12787          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12788           # Warning - without using the other run time loading flags,
12789           # -berok will link without error, but may produce a broken library.
12790           no_undefined_flag=' ${wl}-bernotok'
12791           allow_undefined_flag=' ${wl}-berok'
12792           # -bexpall does not export symbols beginning with underscore (_)
12793           always_export_symbols=yes
12794           # Exported symbols can be pulled into shared objects from archives
12795           whole_archive_flag_spec=' '
12796           archive_cmds_need_lc=yes
12797           # This is similar to how AIX traditionally builds it's shared libraries.
12798           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'
12799         fi
12800       fi
12801       ;;
12802
12803     amigaos*)
12804       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)'
12805       hardcode_libdir_flag_spec='-L$libdir'
12806       hardcode_minus_L=yes
12807       # see comment about different semantics on the GNU ld section
12808       ld_shlibs=no
12809       ;;
12810
12811     bsdi[45]*)
12812       export_dynamic_flag_spec=-rdynamic
12813       ;;
12814
12815     cygwin* | mingw* | pw32*)
12816       # When not using gcc, we currently assume that we are using
12817       # Microsoft Visual C++.
12818       # hardcode_libdir_flag_spec is actually meaningless, as there is
12819       # no search path for DLLs.
12820       hardcode_libdir_flag_spec=' '
12821       allow_undefined_flag=unsupported
12822       # Tell ltmain to make .lib files, not .a files.
12823       libext=lib
12824       # Tell ltmain to make .dll files, not .so files.
12825       shrext_cmds=".dll"
12826       # FIXME: Setting linknames here is a bad hack.
12827       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12828       # The linker will automatically build a .lib file if we build a DLL.
12829       old_archive_From_new_cmds='true'
12830       # FIXME: Should let the user specify the lib program.
12831       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12832       fix_srcfile_path='`cygpath -w "$srcfile"`'
12833       enable_shared_with_static_runtimes=yes
12834       ;;
12835
12836     darwin* | rhapsody*)
12837       case "$host_os" in
12838         rhapsody* | darwin1.[012])
12839          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12840          ;;
12841        *) # Darwin 1.3 on
12842          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12843            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12844          else
12845            case ${MACOSX_DEPLOYMENT_TARGET} in
12846              10.[012])
12847                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12848                ;;
12849              10.*)
12850                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12851                ;;
12852            esac
12853          fi
12854          ;;
12855       esac
12856       archive_cmds_need_lc=no
12857       hardcode_direct=no
12858       hardcode_automatic=yes
12859       hardcode_shlibpath_var=unsupported
12860       whole_archive_flag_spec=''
12861       link_all_deplibs=yes
12862     if test "$GCC" = yes ; then
12863         output_verbose_link_cmd='echo'
12864         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12865       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12866       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12867       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}'
12868       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}'
12869     else
12870       case "$cc_basename" in
12871         xlc*)
12872          output_verbose_link_cmd='echo'
12873          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12874          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12875           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12876          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}'
12877           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}'
12878           ;;
12879        *)
12880          ld_shlibs=no
12881           ;;
12882       esac
12883     fi
12884       ;;
12885
12886     dgux*)
12887       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888       hardcode_libdir_flag_spec='-L$libdir'
12889       hardcode_shlibpath_var=no
12890       ;;
12891
12892     freebsd1*)
12893       ld_shlibs=no
12894       ;;
12895
12896     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12897     # support.  Future versions do this automatically, but an explicit c++rt0.o
12898     # does not break anything, and helps significantly (at the cost of a little
12899     # extra space).
12900     freebsd2.2*)
12901       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12902       hardcode_libdir_flag_spec='-R$libdir'
12903       hardcode_direct=yes
12904       hardcode_shlibpath_var=no
12905       ;;
12906
12907     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12908     freebsd2*)
12909       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12910       hardcode_direct=yes
12911       hardcode_minus_L=yes
12912       hardcode_shlibpath_var=no
12913       ;;
12914
12915     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12916     freebsd* | kfreebsd*-gnu)
12917       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12918       hardcode_libdir_flag_spec='-R$libdir'
12919       hardcode_direct=yes
12920       hardcode_shlibpath_var=no
12921       ;;
12922
12923     hpux9*)
12924       if test "$GCC" = yes; then
12925         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'
12926       else
12927         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'
12928       fi
12929       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12930       hardcode_libdir_separator=:
12931       hardcode_direct=yes
12932
12933       # hardcode_minus_L: Not really in the search PATH,
12934       # but as the default location of the library.
12935       hardcode_minus_L=yes
12936       export_dynamic_flag_spec='${wl}-E'
12937       ;;
12938
12939     hpux10* | hpux11*)
12940       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12941         case "$host_cpu" in
12942         hppa*64*|ia64*)
12943           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12944           ;;
12945         *)
12946           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12947           ;;
12948         esac
12949       else
12950         case "$host_cpu" in
12951         hppa*64*|ia64*)
12952           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12953           ;;
12954         *)
12955           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12956           ;;
12957         esac
12958       fi
12959       if test "$with_gnu_ld" = no; then
12960         case "$host_cpu" in
12961         hppa*64*)
12962           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12963           hardcode_libdir_flag_spec_ld='+b $libdir'
12964           hardcode_libdir_separator=:
12965           hardcode_direct=no
12966           hardcode_shlibpath_var=no
12967           ;;
12968         ia64*)
12969           hardcode_libdir_flag_spec='-L$libdir'
12970           hardcode_direct=no
12971           hardcode_shlibpath_var=no
12972
12973           # hardcode_minus_L: Not really in the search PATH,
12974           # but as the default location of the library.
12975           hardcode_minus_L=yes
12976           ;;
12977         *)
12978           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12979           hardcode_libdir_separator=:
12980           hardcode_direct=yes
12981           export_dynamic_flag_spec='${wl}-E'
12982
12983           # hardcode_minus_L: Not really in the search PATH,
12984           # but as the default location of the library.
12985           hardcode_minus_L=yes
12986           ;;
12987         esac
12988       fi
12989       ;;
12990
12991     irix5* | irix6* | nonstopux*)
12992       if test "$GCC" = yes; then
12993         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'
12994       else
12995         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'
12996         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12997       fi
12998       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12999       hardcode_libdir_separator=:
13000       link_all_deplibs=yes
13001       ;;
13002
13003     netbsd*)
13004       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13005         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13006       else
13007         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13008       fi
13009       hardcode_libdir_flag_spec='-R$libdir'
13010       hardcode_direct=yes
13011       hardcode_shlibpath_var=no
13012       ;;
13013
13014     newsos6)
13015       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13016       hardcode_direct=yes
13017       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13018       hardcode_libdir_separator=:
13019       hardcode_shlibpath_var=no
13020       ;;
13021
13022     openbsd*)
13023       hardcode_direct=yes
13024       hardcode_shlibpath_var=no
13025       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13026         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13027         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13028         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13029         export_dynamic_flag_spec='${wl}-E'
13030       else
13031        case $host_os in
13032          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13033            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13034            hardcode_libdir_flag_spec='-R$libdir'
13035            ;;
13036          *)
13037            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13038            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13039            ;;
13040        esac
13041       fi
13042       ;;
13043
13044     os2*)
13045       hardcode_libdir_flag_spec='-L$libdir'
13046       hardcode_minus_L=yes
13047       allow_undefined_flag=unsupported
13048       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'
13049       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13050       ;;
13051
13052     osf3*)
13053       if test "$GCC" = yes; then
13054         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13055         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'
13056       else
13057         allow_undefined_flag=' -expect_unresolved \*'
13058         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'
13059       fi
13060       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13061       hardcode_libdir_separator=:
13062       ;;
13063
13064     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13065       if test "$GCC" = yes; then
13066         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13067         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'
13068         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13069       else
13070         allow_undefined_flag=' -expect_unresolved \*'
13071         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'
13072         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13073         $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'
13074
13075         # Both c and cxx compiler support -rpath directly
13076         hardcode_libdir_flag_spec='-rpath $libdir'
13077       fi
13078       hardcode_libdir_separator=:
13079       ;;
13080
13081     sco3.2v5*)
13082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13083       hardcode_shlibpath_var=no
13084       export_dynamic_flag_spec='${wl}-Bexport'
13085       runpath_var=LD_RUN_PATH
13086       hardcode_runpath_var=yes
13087       ;;
13088
13089     solaris*)
13090       no_undefined_flag=' -z text'
13091       if test "$GCC" = yes; then
13092         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13093         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13094           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13095       else
13096         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13097         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13098         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13099       fi
13100       hardcode_libdir_flag_spec='-R$libdir'
13101       hardcode_shlibpath_var=no
13102       case $host_os in
13103       solaris2.[0-5] | solaris2.[0-5].*) ;;
13104       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13105         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13106       esac
13107       link_all_deplibs=yes
13108       ;;
13109
13110     sunos4*)
13111       if test "x$host_vendor" = xsequent; then
13112         # Use $CC to link under sequent, because it throws in some extra .o
13113         # files that make .init and .fini sections work.
13114         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13115       else
13116         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13117       fi
13118       hardcode_libdir_flag_spec='-L$libdir'
13119       hardcode_direct=yes
13120       hardcode_minus_L=yes
13121       hardcode_shlibpath_var=no
13122       ;;
13123
13124     sysv4)
13125       case $host_vendor in
13126         sni)
13127           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13128           hardcode_direct=yes # is this really true???
13129         ;;
13130         siemens)
13131           ## LD is ld it makes a PLAMLIB
13132           ## CC just makes a GrossModule.
13133           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13134           reload_cmds='$CC -r -o $output$reload_objs'
13135           hardcode_direct=no
13136         ;;
13137         motorola)
13138           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13139           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13140         ;;
13141       esac
13142       runpath_var='LD_RUN_PATH'
13143       hardcode_shlibpath_var=no
13144       ;;
13145
13146     sysv4.3*)
13147       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13148       hardcode_shlibpath_var=no
13149       export_dynamic_flag_spec='-Bexport'
13150       ;;
13151
13152     sysv4*MP*)
13153       if test -d /usr/nec; then
13154         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13155         hardcode_shlibpath_var=no
13156         runpath_var=LD_RUN_PATH
13157         hardcode_runpath_var=yes
13158         ld_shlibs=yes
13159       fi
13160       ;;
13161
13162     sysv4.2uw2*)
13163       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13164       hardcode_direct=yes
13165       hardcode_minus_L=no
13166       hardcode_shlibpath_var=no
13167       hardcode_runpath_var=yes
13168       runpath_var=LD_RUN_PATH
13169       ;;
13170
13171    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13172       no_undefined_flag='${wl}-z ${wl}text'
13173       if test "$GCC" = yes; then
13174         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13175       else
13176         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13177       fi
13178       runpath_var='LD_RUN_PATH'
13179       hardcode_shlibpath_var=no
13180       ;;
13181
13182     sysv5*)
13183       no_undefined_flag=' -z text'
13184       # $CC -shared without GNU ld will not create a library from C++
13185       # object files and a static libstdc++, better avoid it by now
13186       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13187       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13188                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13189       hardcode_libdir_flag_spec=
13190       hardcode_shlibpath_var=no
13191       runpath_var='LD_RUN_PATH'
13192       ;;
13193
13194     uts4*)
13195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13196       hardcode_libdir_flag_spec='-L$libdir'
13197       hardcode_shlibpath_var=no
13198       ;;
13199
13200     *)
13201       ld_shlibs=no
13202       ;;
13203     esac
13204   fi
13205
13206 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13207 echo "${ECHO_T}$ld_shlibs" >&6
13208 test "$ld_shlibs" = no && can_build_shared=no
13209
13210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13211 if test "$GCC" = yes; then
13212   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13213 fi
13214
13215 #
13216 # Do we need to explicitly link libc?
13217 #
13218 case "x$archive_cmds_need_lc" in
13219 x|xyes)
13220   # Assume -lc should be added
13221   archive_cmds_need_lc=yes
13222
13223   if test "$enable_shared" = yes && test "$GCC" = yes; then
13224     case $archive_cmds in
13225     *'~'*)
13226       # FIXME: we may have to deal with multi-command sequences.
13227       ;;
13228     '$CC '*)
13229       # Test whether the compiler implicitly links with -lc since on some
13230       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13231       # to ld, don't add -lc before -lgcc.
13232       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13234       $rm conftest*
13235       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13236
13237       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } 2>conftest.err; then
13242         soname=conftest
13243         lib=conftest
13244         libobjs=conftest.$ac_objext
13245         deplibs=
13246         wl=$lt_prog_compiler_wl
13247         compiler_flags=-v
13248         linker_flags=-v
13249         verstring=
13250         output_objdir=.
13251         libname=conftest
13252         lt_save_allow_undefined_flag=$allow_undefined_flag
13253         allow_undefined_flag=
13254         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13255   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }
13259         then
13260           archive_cmds_need_lc=no
13261         else
13262           archive_cmds_need_lc=yes
13263         fi
13264         allow_undefined_flag=$lt_save_allow_undefined_flag
13265       else
13266         cat conftest.err 1>&5
13267       fi
13268       $rm conftest*
13269       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13270 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13271       ;;
13272     esac
13273   fi
13274   ;;
13275 esac
13276
13277 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13279 library_names_spec=
13280 libname_spec='lib$name'
13281 soname_spec=
13282 shrext_cmds=".so"
13283 postinstall_cmds=
13284 postuninstall_cmds=
13285 finish_cmds=
13286 finish_eval=
13287 shlibpath_var=
13288 shlibpath_overrides_runpath=unknown
13289 version_type=none
13290 dynamic_linker="$host_os ld.so"
13291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13292 if test "$GCC" = yes; then
13293   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13294   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13295     # if the path contains ";" then we assume it to be the separator
13296     # otherwise default to the standard path separator (i.e. ":") - it is
13297     # assumed that no part of a normal pathname contains ";" but that should
13298     # okay in the real world where ";" in dirpaths is itself problematic.
13299     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13300   else
13301     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13302   fi
13303 else
13304   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13305 fi
13306 need_lib_prefix=unknown
13307 hardcode_into_libs=no
13308
13309 # when you set need_version to no, make sure it does not cause -set_version
13310 # flags to be left without arguments
13311 need_version=unknown
13312
13313 case $host_os in
13314 aix3*)
13315   version_type=linux
13316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13317   shlibpath_var=LIBPATH
13318
13319   # AIX 3 has no versioning support, so we append a major version to the name.
13320   soname_spec='${libname}${release}${shared_ext}$major'
13321   ;;
13322
13323 aix4* | aix5*)
13324   version_type=linux
13325   need_lib_prefix=no
13326   need_version=no
13327   hardcode_into_libs=yes
13328   if test "$host_cpu" = ia64; then
13329     # AIX 5 supports IA64
13330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13331     shlibpath_var=LD_LIBRARY_PATH
13332   else
13333     # With GCC up to 2.95.x, collect2 would create an import file
13334     # for dependence libraries.  The import file would start with
13335     # the line `#! .'.  This would cause the generated library to
13336     # depend on `.', always an invalid library.  This was fixed in
13337     # development snapshots of GCC prior to 3.0.
13338     case $host_os in
13339       aix4 | aix4.[01] | aix4.[01].*)
13340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13341            echo ' yes '
13342            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13343         :
13344       else
13345         can_build_shared=no
13346       fi
13347       ;;
13348     esac
13349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13350     # soname into executable. Probably we can add versioning support to
13351     # collect2, so additional links can be useful in future.
13352     if test "$aix_use_runtimelinking" = yes; then
13353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13354       # instead of lib<name>.a to let people know that these are not
13355       # typical AIX shared libraries.
13356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357     else
13358       # We preserve .a as extension for shared libraries through AIX4.2
13359       # and later when we are not doing run time linking.
13360       library_names_spec='${libname}${release}.a $libname.a'
13361       soname_spec='${libname}${release}${shared_ext}$major'
13362     fi
13363     shlibpath_var=LIBPATH
13364   fi
13365   ;;
13366
13367 amigaos*)
13368   library_names_spec='$libname.ixlibrary $libname.a'
13369   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13370   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'
13371   ;;
13372
13373 beos*)
13374   library_names_spec='${libname}${shared_ext}'
13375   dynamic_linker="$host_os ld.so"
13376   shlibpath_var=LIBRARY_PATH
13377   ;;
13378
13379 bsdi[45]*)
13380   version_type=linux
13381   need_version=no
13382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383   soname_spec='${libname}${release}${shared_ext}$major'
13384   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13385   shlibpath_var=LD_LIBRARY_PATH
13386   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13387   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13388   # the default ld.so.conf also contains /usr/contrib/lib and
13389   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13390   # libtool to hard-code these into programs
13391   ;;
13392
13393 cygwin* | mingw* | pw32*)
13394   version_type=windows
13395   shrext_cmds=".dll"
13396   need_version=no
13397   need_lib_prefix=no
13398
13399   case $GCC,$host_os in
13400   yes,cygwin* | yes,mingw* | yes,pw32*)
13401     library_names_spec='$libname.dll.a'
13402     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13403     postinstall_cmds='base_file=`basename \${file}`~
13404       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13405       dldir=$destdir/`dirname \$dlpath`~
13406       test -d \$dldir || mkdir -p \$dldir~
13407       $install_prog $dir/$dlname \$dldir/$dlname'
13408     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13409       dlpath=$dir/\$dldll~
13410        $rm \$dlpath'
13411     shlibpath_overrides_runpath=yes
13412
13413     case $host_os in
13414     cygwin*)
13415       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13416       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13417       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13418       ;;
13419     mingw*)
13420       # MinGW DLLs use traditional 'lib' prefix
13421       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13422       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13423       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13424         # It is most probably a Windows format PATH printed by
13425         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13426         # path with ; separators, and with drive letters. We can handle the
13427         # drive letters (cygwin fileutils understands them), so leave them,
13428         # especially as we might pass files found there to a mingw objdump,
13429         # which wouldn't understand a cygwinified path. Ahh.
13430         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13431       else
13432         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13433       fi
13434       ;;
13435     pw32*)
13436       # pw32 DLLs use 'pw' prefix rather than 'lib'
13437       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13438       ;;
13439     esac
13440     ;;
13441
13442   *)
13443     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13444     ;;
13445   esac
13446   dynamic_linker='Win32 ld.exe'
13447   # FIXME: first we should search . and the directory the executable is in
13448   shlibpath_var=PATH
13449   ;;
13450
13451 darwin* | rhapsody*)
13452   dynamic_linker="$host_os dyld"
13453   version_type=darwin
13454   need_lib_prefix=no
13455   need_version=no
13456   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13457   soname_spec='${libname}${release}${major}$shared_ext'
13458   shlibpath_overrides_runpath=yes
13459   shlibpath_var=DYLD_LIBRARY_PATH
13460   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13461   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13462   if test "$GCC" = yes; then
13463     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"`
13464   else
13465     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13466   fi
13467   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13468   ;;
13469
13470 dgux*)
13471   version_type=linux
13472   need_lib_prefix=no
13473   need_version=no
13474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13475   soname_spec='${libname}${release}${shared_ext}$major'
13476   shlibpath_var=LD_LIBRARY_PATH
13477   ;;
13478
13479 freebsd1*)
13480   dynamic_linker=no
13481   ;;
13482
13483 kfreebsd*-gnu)
13484   version_type=linux
13485   need_lib_prefix=no
13486   need_version=no
13487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13488   soname_spec='${libname}${release}${shared_ext}$major'
13489   shlibpath_var=LD_LIBRARY_PATH
13490   shlibpath_overrides_runpath=no
13491   hardcode_into_libs=yes
13492   dynamic_linker='GNU ld.so'
13493   ;;
13494
13495 freebsd*)
13496   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13497   version_type=freebsd-$objformat
13498   case $version_type in
13499     freebsd-elf*)
13500       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13501       need_version=no
13502       need_lib_prefix=no
13503       ;;
13504     freebsd-*)
13505       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13506       need_version=yes
13507       ;;
13508   esac
13509   shlibpath_var=LD_LIBRARY_PATH
13510   case $host_os in
13511   freebsd2*)
13512     shlibpath_overrides_runpath=yes
13513     ;;
13514   freebsd3.01* | freebsdelf3.01*)
13515     shlibpath_overrides_runpath=yes
13516     hardcode_into_libs=yes
13517     ;;
13518   *) # from 3.2 on
13519     shlibpath_overrides_runpath=no
13520     hardcode_into_libs=yes
13521     ;;
13522   esac
13523   ;;
13524
13525 gnu*)
13526   version_type=linux
13527   need_lib_prefix=no
13528   need_version=no
13529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13530   soname_spec='${libname}${release}${shared_ext}$major'
13531   shlibpath_var=LD_LIBRARY_PATH
13532   hardcode_into_libs=yes
13533   ;;
13534
13535 hpux9* | hpux10* | hpux11*)
13536   # Give a soname corresponding to the major version so that dld.sl refuses to
13537   # link against other versions.
13538   version_type=sunos
13539   need_lib_prefix=no
13540   need_version=no
13541   case "$host_cpu" in
13542   ia64*)
13543     shrext_cmds='.so'
13544     hardcode_into_libs=yes
13545     dynamic_linker="$host_os dld.so"
13546     shlibpath_var=LD_LIBRARY_PATH
13547     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549     soname_spec='${libname}${release}${shared_ext}$major'
13550     if test "X$HPUX_IA64_MODE" = X32; then
13551       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13552     else
13553       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13554     fi
13555     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13556     ;;
13557    hppa*64*)
13558      shrext_cmds='.sl'
13559      hardcode_into_libs=yes
13560      dynamic_linker="$host_os dld.sl"
13561      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13562      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13563      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564      soname_spec='${libname}${release}${shared_ext}$major'
13565      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13566      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13567      ;;
13568    *)
13569     shrext_cmds='.sl'
13570     dynamic_linker="$host_os dld.sl"
13571     shlibpath_var=SHLIB_PATH
13572     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574     soname_spec='${libname}${release}${shared_ext}$major'
13575     ;;
13576   esac
13577   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13578   postinstall_cmds='chmod 555 $lib'
13579   ;;
13580
13581 irix5* | irix6* | nonstopux*)
13582   case $host_os in
13583     nonstopux*) version_type=nonstopux ;;
13584     *)
13585         if test "$lt_cv_prog_gnu_ld" = yes; then
13586                 version_type=linux
13587         else
13588                 version_type=irix
13589         fi ;;
13590   esac
13591   need_lib_prefix=no
13592   need_version=no
13593   soname_spec='${libname}${release}${shared_ext}$major'
13594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13595   case $host_os in
13596   irix5* | nonstopux*)
13597     libsuff= shlibsuff=
13598     ;;
13599   *)
13600     case $LD in # libtool.m4 will add one of these switches to LD
13601     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13602       libsuff= shlibsuff= libmagic=32-bit;;
13603     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13604       libsuff=32 shlibsuff=N32 libmagic=N32;;
13605     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13606       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13607     *) libsuff= shlibsuff= libmagic=never-match;;
13608     esac
13609     ;;
13610   esac
13611   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13612   shlibpath_overrides_runpath=no
13613   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13614   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13615   hardcode_into_libs=yes
13616   ;;
13617
13618 # No shared lib support for Linux oldld, aout, or coff.
13619 linux*oldld* | linux*aout* | linux*coff*)
13620   dynamic_linker=no
13621   ;;
13622
13623 # This must be Linux ELF.
13624 linux*)
13625   version_type=linux
13626   need_lib_prefix=no
13627   need_version=no
13628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13629   soname_spec='${libname}${release}${shared_ext}$major'
13630   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13631   shlibpath_var=LD_LIBRARY_PATH
13632   shlibpath_overrides_runpath=no
13633   # This implies no fast_install, which is unacceptable.
13634   # Some rework will be needed to allow for fast_install
13635   # before this can be enabled.
13636   hardcode_into_libs=yes
13637
13638   # Append ld.so.conf contents to the search path
13639   if test -f /etc/ld.so.conf; then
13640     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13641     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13642   fi
13643
13644   # We used to test for /lib/ld.so.1 and disable shared libraries on
13645   # powerpc, because MkLinux only supported shared libraries with the
13646   # GNU dynamic linker.  Since this was broken with cross compilers,
13647   # most powerpc-linux boxes support dynamic linking these days and
13648   # people can always --disable-shared, the test was removed, and we
13649   # assume the GNU/Linux dynamic linker is in use.
13650   dynamic_linker='GNU/Linux ld.so'
13651   ;;
13652
13653 knetbsd*-gnu)
13654   version_type=linux
13655   need_lib_prefix=no
13656   need_version=no
13657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13658   soname_spec='${libname}${release}${shared_ext}$major'
13659   shlibpath_var=LD_LIBRARY_PATH
13660   shlibpath_overrides_runpath=no
13661   hardcode_into_libs=yes
13662   dynamic_linker='GNU ld.so'
13663   ;;
13664
13665 netbsd*)
13666   version_type=sunos
13667   need_lib_prefix=no
13668   need_version=no
13669   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13671     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13672     dynamic_linker='NetBSD (a.out) ld.so'
13673   else
13674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13675     soname_spec='${libname}${release}${shared_ext}$major'
13676     dynamic_linker='NetBSD ld.elf_so'
13677   fi
13678   shlibpath_var=LD_LIBRARY_PATH
13679   shlibpath_overrides_runpath=yes
13680   hardcode_into_libs=yes
13681   ;;
13682
13683 newsos6)
13684   version_type=linux
13685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686   shlibpath_var=LD_LIBRARY_PATH
13687   shlibpath_overrides_runpath=yes
13688   ;;
13689
13690 nto-qnx*)
13691   version_type=linux
13692   need_lib_prefix=no
13693   need_version=no
13694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13695   soname_spec='${libname}${release}${shared_ext}$major'
13696   shlibpath_var=LD_LIBRARY_PATH
13697   shlibpath_overrides_runpath=yes
13698   ;;
13699
13700 openbsd*)
13701   version_type=sunos
13702   need_lib_prefix=no
13703   need_version=no
13704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13705   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13706   shlibpath_var=LD_LIBRARY_PATH
13707   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13708     case $host_os in
13709       openbsd2.[89] | openbsd2.[89].*)
13710         shlibpath_overrides_runpath=no
13711         ;;
13712       *)
13713         shlibpath_overrides_runpath=yes
13714         ;;
13715       esac
13716   else
13717     shlibpath_overrides_runpath=yes
13718   fi
13719   ;;
13720
13721 os2*)
13722   libname_spec='$name'
13723   shrext_cmds=".dll"
13724   need_lib_prefix=no
13725   library_names_spec='$libname${shared_ext} $libname.a'
13726   dynamic_linker='OS/2 ld.exe'
13727   shlibpath_var=LIBPATH
13728   ;;
13729
13730 osf3* | osf4* | osf5*)
13731   version_type=osf
13732   need_lib_prefix=no
13733   need_version=no
13734   soname_spec='${libname}${release}${shared_ext}$major'
13735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736   shlibpath_var=LD_LIBRARY_PATH
13737   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13738   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13739   ;;
13740
13741 sco3.2v5*)
13742   version_type=osf
13743   soname_spec='${libname}${release}${shared_ext}$major'
13744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745   shlibpath_var=LD_LIBRARY_PATH
13746   ;;
13747
13748 solaris*)
13749   version_type=linux
13750   need_lib_prefix=no
13751   need_version=no
13752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13753   soname_spec='${libname}${release}${shared_ext}$major'
13754   shlibpath_var=LD_LIBRARY_PATH
13755   shlibpath_overrides_runpath=yes
13756   hardcode_into_libs=yes
13757   # ldd complains unless libraries are executable
13758   postinstall_cmds='chmod +x $lib'
13759   ;;
13760
13761 sunos4*)
13762   version_type=sunos
13763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13764   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13765   shlibpath_var=LD_LIBRARY_PATH
13766   shlibpath_overrides_runpath=yes
13767   if test "$with_gnu_ld" = yes; then
13768     need_lib_prefix=no
13769   fi
13770   need_version=yes
13771   ;;
13772
13773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13774   version_type=linux
13775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776   soname_spec='${libname}${release}${shared_ext}$major'
13777   shlibpath_var=LD_LIBRARY_PATH
13778   case $host_vendor in
13779     sni)
13780       shlibpath_overrides_runpath=no
13781       need_lib_prefix=no
13782       export_dynamic_flag_spec='${wl}-Blargedynsym'
13783       runpath_var=LD_RUN_PATH
13784       ;;
13785     siemens)
13786       need_lib_prefix=no
13787       ;;
13788     motorola)
13789       need_lib_prefix=no
13790       need_version=no
13791       shlibpath_overrides_runpath=no
13792       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13793       ;;
13794   esac
13795   ;;
13796
13797 sysv4*MP*)
13798   if test -d /usr/nec ;then
13799     version_type=linux
13800     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13801     soname_spec='$libname${shared_ext}.$major'
13802     shlibpath_var=LD_LIBRARY_PATH
13803   fi
13804   ;;
13805
13806 uts4*)
13807   version_type=linux
13808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13809   soname_spec='${libname}${release}${shared_ext}$major'
13810   shlibpath_var=LD_LIBRARY_PATH
13811   ;;
13812
13813 *)
13814   dynamic_linker=no
13815   ;;
13816 esac
13817 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13818 echo "${ECHO_T}$dynamic_linker" >&6
13819 test "$dynamic_linker" = no && can_build_shared=no
13820
13821 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13823 hardcode_action=
13824 if test -n "$hardcode_libdir_flag_spec" || \
13825    test -n "$runpath_var" || \
13826    test "X$hardcode_automatic" = "Xyes" ; then
13827
13828   # We can hardcode non-existant directories.
13829   if test "$hardcode_direct" != no &&
13830      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13831      # have to relink, otherwise we might link with an installed library
13832      # when we should be linking with a yet-to-be-installed one
13833      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13834      test "$hardcode_minus_L" != no; then
13835     # Linking always hardcodes the temporary library directory.
13836     hardcode_action=relink
13837   else
13838     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13839     hardcode_action=immediate
13840   fi
13841 else
13842   # We cannot hardcode anything, or else we can only hardcode existing
13843   # directories.
13844   hardcode_action=unsupported
13845 fi
13846 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13847 echo "${ECHO_T}$hardcode_action" >&6
13848
13849 if test "$hardcode_action" = relink; then
13850   # Fast installation is not supported
13851   enable_fast_install=no
13852 elif test "$shlibpath_overrides_runpath" = yes ||
13853      test "$enable_shared" = no; then
13854   # Fast installation is not necessary
13855   enable_fast_install=needless
13856 fi
13857
13858 striplib=
13859 old_striplib=
13860 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13861 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13862 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13863   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13864   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13865   echo "$as_me:$LINENO: result: yes" >&5
13866 echo "${ECHO_T}yes" >&6
13867 else
13868 # FIXME - insert some real tests, host_os isn't really good enough
13869   case $host_os in
13870    darwin*)
13871        if test -n "$STRIP" ; then
13872          striplib="$STRIP -x"
13873          echo "$as_me:$LINENO: result: yes" >&5
13874 echo "${ECHO_T}yes" >&6
13875        else
13876   echo "$as_me:$LINENO: result: no" >&5
13877 echo "${ECHO_T}no" >&6
13878 fi
13879        ;;
13880    *)
13881   echo "$as_me:$LINENO: result: no" >&5
13882 echo "${ECHO_T}no" >&6
13883     ;;
13884   esac
13885 fi
13886
13887 if test "x$enable_dlopen" != xyes; then
13888   enable_dlopen=unknown
13889   enable_dlopen_self=unknown
13890   enable_dlopen_self_static=unknown
13891 else
13892   lt_cv_dlopen=no
13893   lt_cv_dlopen_libs=
13894
13895   case $host_os in
13896   beos*)
13897     lt_cv_dlopen="load_add_on"
13898     lt_cv_dlopen_libs=
13899     lt_cv_dlopen_self=yes
13900     ;;
13901
13902   mingw* | pw32*)
13903     lt_cv_dlopen="LoadLibrary"
13904     lt_cv_dlopen_libs=
13905    ;;
13906
13907   cygwin*)
13908     lt_cv_dlopen="dlopen"
13909     lt_cv_dlopen_libs=
13910    ;;
13911
13912   darwin*)
13913   # if libdl is installed we need to link against it
13914     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   ac_check_lib_save_LIBS=$LIBS
13920 LIBS="-ldl  $LIBS"
13921 cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h.  */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h.  */
13927
13928 /* Override any gcc2 internal prototype to avoid an error.  */
13929 #ifdef __cplusplus
13930 extern "C"
13931 #endif
13932 /* We use char because int might match the return type of a gcc2
13933    builtin and then its argument prototype would still apply.  */
13934 char dlopen ();
13935 int
13936 main ()
13937 {
13938 dlopen ();
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext conftest$ac_exeext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13945   (eval $ac_link) 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } &&
13952          { ac_try='test -z "$ac_c_werror_flag"
13953                          || test ! -s conftest.err'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; } &&
13959          { ac_try='test -s conftest$ac_exeext'
13960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961   (eval $ac_try) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965   ac_cv_lib_dl_dlopen=yes
13966 else
13967   echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_cv_lib_dl_dlopen=no
13971 fi
13972 rm -f conftest.err conftest.$ac_objext \
13973       conftest$ac_exeext conftest.$ac_ext
13974 LIBS=$ac_check_lib_save_LIBS
13975 fi
13976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13978 if test $ac_cv_lib_dl_dlopen = yes; then
13979   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13980 else
13981
13982     lt_cv_dlopen="dyld"
13983     lt_cv_dlopen_libs=
13984     lt_cv_dlopen_self=yes
13985
13986 fi
13987
13988    ;;
13989
13990   *)
13991     echo "$as_me:$LINENO: checking for shl_load" >&5
13992 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13993 if test "${ac_cv_func_shl_load+set}" = set; then
13994   echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996   cat >conftest.$ac_ext <<_ACEOF
13997 /* confdefs.h.  */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h.  */
14002 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14004 #define shl_load innocuous_shl_load
14005
14006 /* System header to define __stub macros and hopefully few prototypes,
14007     which can conflict with char shl_load (); below.
14008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14009     <limits.h> exists even on freestanding compilers.  */
14010
14011 #ifdef __STDC__
14012 # include <limits.h>
14013 #else
14014 # include <assert.h>
14015 #endif
14016
14017 #undef shl_load
14018
14019 /* Override any gcc2 internal prototype to avoid an error.  */
14020 #ifdef __cplusplus
14021 extern "C"
14022 {
14023 #endif
14024 /* We use char because int might match the return type of a gcc2
14025    builtin and then its argument prototype would still apply.  */
14026 char shl_load ();
14027 /* The GNU C library defines this for functions which it implements
14028     to always fail with ENOSYS.  Some functions are actually named
14029     something starting with __ and the normal name is an alias.  */
14030 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14031 choke me
14032 #else
14033 char (*f) () = shl_load;
14034 #endif
14035 #ifdef __cplusplus
14036 }
14037 #endif
14038
14039 int
14040 main ()
14041 {
14042 return f != shl_load;
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest.$ac_objext conftest$ac_exeext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049   (eval $ac_link) 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } &&
14056          { ac_try='test -z "$ac_c_werror_flag"
14057                          || test ! -s conftest.err'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; } &&
14063          { ac_try='test -s conftest$ac_exeext'
14064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065   (eval $ac_try) 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; }; then
14069   ac_cv_func_shl_load=yes
14070 else
14071   echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14073
14074 ac_cv_func_shl_load=no
14075 fi
14076 rm -f conftest.err conftest.$ac_objext \
14077       conftest$ac_exeext conftest.$ac_ext
14078 fi
14079 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14080 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14081 if test $ac_cv_func_shl_load = yes; then
14082   lt_cv_dlopen="shl_load"
14083 else
14084   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14085 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14086 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14087   echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089   ac_check_lib_save_LIBS=$LIBS
14090 LIBS="-ldld  $LIBS"
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097
14098 /* Override any gcc2 internal prototype to avoid an error.  */
14099 #ifdef __cplusplus
14100 extern "C"
14101 #endif
14102 /* We use char because int might match the return type of a gcc2
14103    builtin and then its argument prototype would still apply.  */
14104 char shl_load ();
14105 int
14106 main ()
14107 {
14108 shl_load ();
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115   (eval $ac_link) 2>conftest.er1
14116   ac_status=$?
14117   grep -v '^ *+' conftest.er1 >conftest.err
14118   rm -f conftest.er1
14119   cat conftest.err >&5
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); } &&
14122          { ac_try='test -z "$ac_c_werror_flag"
14123                          || test ! -s conftest.err'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; } &&
14129          { ac_try='test -s conftest$ac_exeext'
14130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131   (eval $ac_try) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }; then
14135   ac_cv_lib_dld_shl_load=yes
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140 ac_cv_lib_dld_shl_load=no
14141 fi
14142 rm -f conftest.err conftest.$ac_objext \
14143       conftest$ac_exeext conftest.$ac_ext
14144 LIBS=$ac_check_lib_save_LIBS
14145 fi
14146 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14147 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14148 if test $ac_cv_lib_dld_shl_load = yes; then
14149   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14150 else
14151   echo "$as_me:$LINENO: checking for dlopen" >&5
14152 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14153 if test "${ac_cv_func_dlopen+set}" = set; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156   cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h.  */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h.  */
14162 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14164 #define dlopen innocuous_dlopen
14165
14166 /* System header to define __stub macros and hopefully few prototypes,
14167     which can conflict with char dlopen (); below.
14168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14169     <limits.h> exists even on freestanding compilers.  */
14170
14171 #ifdef __STDC__
14172 # include <limits.h>
14173 #else
14174 # include <assert.h>
14175 #endif
14176
14177 #undef dlopen
14178
14179 /* Override any gcc2 internal prototype to avoid an error.  */
14180 #ifdef __cplusplus
14181 extern "C"
14182 {
14183 #endif
14184 /* We use char because int might match the return type of a gcc2
14185    builtin and then its argument prototype would still apply.  */
14186 char dlopen ();
14187 /* The GNU C library defines this for functions which it implements
14188     to always fail with ENOSYS.  Some functions are actually named
14189     something starting with __ and the normal name is an alias.  */
14190 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14191 choke me
14192 #else
14193 char (*f) () = dlopen;
14194 #endif
14195 #ifdef __cplusplus
14196 }
14197 #endif
14198
14199 int
14200 main ()
14201 {
14202 return f != dlopen;
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 rm -f conftest.$ac_objext conftest$ac_exeext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14209   (eval $ac_link) 2>conftest.er1
14210   ac_status=$?
14211   grep -v '^ *+' conftest.er1 >conftest.err
14212   rm -f conftest.er1
14213   cat conftest.err >&5
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } &&
14216          { ac_try='test -z "$ac_c_werror_flag"
14217                          || test ! -s conftest.err'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; } &&
14223          { ac_try='test -s conftest$ac_exeext'
14224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225   (eval $ac_try) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; }; then
14229   ac_cv_func_dlopen=yes
14230 else
14231   echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234 ac_cv_func_dlopen=no
14235 fi
14236 rm -f conftest.err conftest.$ac_objext \
14237       conftest$ac_exeext conftest.$ac_ext
14238 fi
14239 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14240 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14241 if test $ac_cv_func_dlopen = yes; then
14242   lt_cv_dlopen="dlopen"
14243 else
14244   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14245 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   ac_check_lib_save_LIBS=$LIBS
14250 LIBS="-ldl  $LIBS"
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257
14258 /* Override any gcc2 internal prototype to avoid an error.  */
14259 #ifdef __cplusplus
14260 extern "C"
14261 #endif
14262 /* We use char because int might match the return type of a gcc2
14263    builtin and then its argument prototype would still apply.  */
14264 char dlopen ();
14265 int
14266 main ()
14267 {
14268 dlopen ();
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275   (eval $ac_link) 2>conftest.er1
14276   ac_status=$?
14277   grep -v '^ *+' conftest.er1 >conftest.err
14278   rm -f conftest.er1
14279   cat conftest.err >&5
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); } &&
14282          { ac_try='test -z "$ac_c_werror_flag"
14283                          || test ! -s conftest.err'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; } &&
14289          { ac_try='test -s conftest$ac_exeext'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295   ac_cv_lib_dl_dlopen=yes
14296 else
14297   echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300 ac_cv_lib_dl_dlopen=no
14301 fi
14302 rm -f conftest.err conftest.$ac_objext \
14303       conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14305 fi
14306 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14308 if test $ac_cv_lib_dl_dlopen = yes; then
14309   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14310 else
14311   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14312 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   ac_check_lib_save_LIBS=$LIBS
14317 LIBS="-lsvld  $LIBS"
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324
14325 /* Override any gcc2 internal prototype to avoid an error.  */
14326 #ifdef __cplusplus
14327 extern "C"
14328 #endif
14329 /* We use char because int might match the return type of a gcc2
14330    builtin and then its argument prototype would still apply.  */
14331 char dlopen ();
14332 int
14333 main ()
14334 {
14335 dlopen ();
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342   (eval $ac_link) 2>conftest.er1
14343   ac_status=$?
14344   grep -v '^ *+' conftest.er1 >conftest.err
14345   rm -f conftest.er1
14346   cat conftest.err >&5
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } &&
14349          { ac_try='test -z "$ac_c_werror_flag"
14350                          || test ! -s conftest.err'
14351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352   (eval $ac_try) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); }; } &&
14356          { ac_try='test -s conftest$ac_exeext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   ac_cv_lib_svld_dlopen=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 ac_cv_lib_svld_dlopen=no
14368 fi
14369 rm -f conftest.err conftest.$ac_objext \
14370       conftest$ac_exeext conftest.$ac_ext
14371 LIBS=$ac_check_lib_save_LIBS
14372 fi
14373 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14374 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14375 if test $ac_cv_lib_svld_dlopen = yes; then
14376   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14377 else
14378   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14379 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14380 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   ac_check_lib_save_LIBS=$LIBS
14384 LIBS="-ldld  $LIBS"
14385 cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h.  */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h.  */
14391
14392 /* Override any gcc2 internal prototype to avoid an error.  */
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 /* We use char because int might match the return type of a gcc2
14397    builtin and then its argument prototype would still apply.  */
14398 char dld_link ();
14399 int
14400 main ()
14401 {
14402 dld_link ();
14403   ;
14404   return 0;
14405 }
14406 _ACEOF
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409   (eval $ac_link) 2>conftest.er1
14410   ac_status=$?
14411   grep -v '^ *+' conftest.er1 >conftest.err
14412   rm -f conftest.er1
14413   cat conftest.err >&5
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } &&
14416          { ac_try='test -z "$ac_c_werror_flag"
14417                          || test ! -s conftest.err'
14418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419   (eval $ac_try) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; } &&
14423          { ac_try='test -s conftest$ac_exeext'
14424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425   (eval $ac_try) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; }; then
14429   ac_cv_lib_dld_dld_link=yes
14430 else
14431   echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 ac_cv_lib_dld_dld_link=no
14435 fi
14436 rm -f conftest.err conftest.$ac_objext \
14437       conftest$ac_exeext conftest.$ac_ext
14438 LIBS=$ac_check_lib_save_LIBS
14439 fi
14440 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14441 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14442 if test $ac_cv_lib_dld_dld_link = yes; then
14443   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14444 fi
14445
14446
14447 fi
14448
14449
14450 fi
14451
14452
14453 fi
14454
14455
14456 fi
14457
14458
14459 fi
14460
14461     ;;
14462   esac
14463
14464   if test "x$lt_cv_dlopen" != xno; then
14465     enable_dlopen=yes
14466   else
14467     enable_dlopen=no
14468   fi
14469
14470   case $lt_cv_dlopen in
14471   dlopen)
14472     save_CPPFLAGS="$CPPFLAGS"
14473     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14474
14475     save_LDFLAGS="$LDFLAGS"
14476     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14477
14478     save_LIBS="$LIBS"
14479     LIBS="$lt_cv_dlopen_libs $LIBS"
14480
14481     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14482 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14483 if test "${lt_cv_dlopen_self+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486           if test "$cross_compiling" = yes; then :
14487   lt_cv_dlopen_self=cross
14488 else
14489   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14490   lt_status=$lt_dlunknown
14491   cat > conftest.$ac_ext <<EOF
14492 #line 14492 "configure"
14493 #include "confdefs.h"
14494
14495 #if HAVE_DLFCN_H
14496 #include <dlfcn.h>
14497 #endif
14498
14499 #include <stdio.h>
14500
14501 #ifdef RTLD_GLOBAL
14502 #  define LT_DLGLOBAL           RTLD_GLOBAL
14503 #else
14504 #  ifdef DL_GLOBAL
14505 #    define LT_DLGLOBAL         DL_GLOBAL
14506 #  else
14507 #    define LT_DLGLOBAL         0
14508 #  endif
14509 #endif
14510
14511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14512    find out it does not work in some platform. */
14513 #ifndef LT_DLLAZY_OR_NOW
14514 #  ifdef RTLD_LAZY
14515 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14516 #  else
14517 #    ifdef DL_LAZY
14518 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14519 #    else
14520 #      ifdef RTLD_NOW
14521 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14522 #      else
14523 #        ifdef DL_NOW
14524 #          define LT_DLLAZY_OR_NOW      DL_NOW
14525 #        else
14526 #          define LT_DLLAZY_OR_NOW      0
14527 #        endif
14528 #      endif
14529 #    endif
14530 #  endif
14531 #endif
14532
14533 #ifdef __cplusplus
14534 extern "C" void exit (int);
14535 #endif
14536
14537 void fnord() { int i=42;}
14538 int main ()
14539 {
14540   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14541   int status = $lt_dlunknown;
14542
14543   if (self)
14544     {
14545       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14546       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14547       /* dlclose (self); */
14548     }
14549
14550     exit (status);
14551 }
14552 EOF
14553   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14554   (eval $ac_link) 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14558     (./conftest; exit; ) 2>/dev/null
14559     lt_status=$?
14560     case x$lt_status in
14561       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14562       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14563       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14564     esac
14565   else :
14566     # compilation failed
14567     lt_cv_dlopen_self=no
14568   fi
14569 fi
14570 rm -fr conftest*
14571
14572
14573 fi
14574 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14575 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14576
14577     if test "x$lt_cv_dlopen_self" = xyes; then
14578       LDFLAGS="$LDFLAGS $link_static_flag"
14579       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14580 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14581 if test "${lt_cv_dlopen_self_static+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584           if test "$cross_compiling" = yes; then :
14585   lt_cv_dlopen_self_static=cross
14586 else
14587   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14588   lt_status=$lt_dlunknown
14589   cat > conftest.$ac_ext <<EOF
14590 #line 14590 "configure"
14591 #include "confdefs.h"
14592
14593 #if HAVE_DLFCN_H
14594 #include <dlfcn.h>
14595 #endif
14596
14597 #include <stdio.h>
14598
14599 #ifdef RTLD_GLOBAL
14600 #  define LT_DLGLOBAL           RTLD_GLOBAL
14601 #else
14602 #  ifdef DL_GLOBAL
14603 #    define LT_DLGLOBAL         DL_GLOBAL
14604 #  else
14605 #    define LT_DLGLOBAL         0
14606 #  endif
14607 #endif
14608
14609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14610    find out it does not work in some platform. */
14611 #ifndef LT_DLLAZY_OR_NOW
14612 #  ifdef RTLD_LAZY
14613 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14614 #  else
14615 #    ifdef DL_LAZY
14616 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14617 #    else
14618 #      ifdef RTLD_NOW
14619 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14620 #      else
14621 #        ifdef DL_NOW
14622 #          define LT_DLLAZY_OR_NOW      DL_NOW
14623 #        else
14624 #          define LT_DLLAZY_OR_NOW      0
14625 #        endif
14626 #      endif
14627 #    endif
14628 #  endif
14629 #endif
14630
14631 #ifdef __cplusplus
14632 extern "C" void exit (int);
14633 #endif
14634
14635 void fnord() { int i=42;}
14636 int main ()
14637 {
14638   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14639   int status = $lt_dlunknown;
14640
14641   if (self)
14642     {
14643       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14644       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14645       /* dlclose (self); */
14646     }
14647
14648     exit (status);
14649 }
14650 EOF
14651   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652   (eval $ac_link) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14656     (./conftest; exit; ) 2>/dev/null
14657     lt_status=$?
14658     case x$lt_status in
14659       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14660       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14661       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14662     esac
14663   else :
14664     # compilation failed
14665     lt_cv_dlopen_self_static=no
14666   fi
14667 fi
14668 rm -fr conftest*
14669
14670
14671 fi
14672 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14673 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14674     fi
14675
14676     CPPFLAGS="$save_CPPFLAGS"
14677     LDFLAGS="$save_LDFLAGS"
14678     LIBS="$save_LIBS"
14679     ;;
14680   esac
14681
14682   case $lt_cv_dlopen_self in
14683   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14684   *) enable_dlopen_self=unknown ;;
14685   esac
14686
14687   case $lt_cv_dlopen_self_static in
14688   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14689   *) enable_dlopen_self_static=unknown ;;
14690   esac
14691 fi
14692
14693
14694 # Report which librarie types wil actually be built
14695 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14696 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14697 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14698 echo "${ECHO_T}$can_build_shared" >&6
14699
14700 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14701 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14702 test "$can_build_shared" = "no" && enable_shared=no
14703
14704 # On AIX, shared libraries and static libraries use the same namespace, and
14705 # are all built from PIC.
14706 case "$host_os" in
14707 aix3*)
14708   test "$enable_shared" = yes && enable_static=no
14709   if test -n "$RANLIB"; then
14710     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14711     postinstall_cmds='$RANLIB $lib'
14712   fi
14713   ;;
14714
14715 aix4* | aix5*)
14716   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14717     test "$enable_shared" = yes && enable_static=no
14718   fi
14719     ;;
14720 esac
14721 echo "$as_me:$LINENO: result: $enable_shared" >&5
14722 echo "${ECHO_T}$enable_shared" >&6
14723
14724 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14725 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14726 # Make sure either enable_shared or enable_static is yes.
14727 test "$enable_shared" = yes || enable_static=yes
14728 echo "$as_me:$LINENO: result: $enable_static" >&5
14729 echo "${ECHO_T}$enable_static" >&6
14730
14731 # The else clause should only fire when bootstrapping the
14732 # libtool distribution, otherwise you forgot to ship ltmain.sh
14733 # with your package, and you will get complaints that there are
14734 # no rules to generate ltmain.sh.
14735 if test -f "$ltmain"; then
14736   # See if we are running on zsh, and set the options which allow our commands through
14737   # without removal of \ escapes.
14738   if test -n "${ZSH_VERSION+set}" ; then
14739     setopt NO_GLOB_SUBST
14740   fi
14741   # Now quote all the things that may contain metacharacters while being
14742   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14743   # variables and quote the copies for generation of the libtool script.
14744   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14745     SED SHELL STRIP \
14746     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14747     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14748     deplibs_check_method reload_flag reload_cmds need_locks \
14749     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14750     lt_cv_sys_global_symbol_to_c_name_address \
14751     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14752     old_postinstall_cmds old_postuninstall_cmds \
14753     compiler \
14754     CC \
14755     LD \
14756     lt_prog_compiler_wl \
14757     lt_prog_compiler_pic \
14758     lt_prog_compiler_static \
14759     lt_prog_compiler_no_builtin_flag \
14760     export_dynamic_flag_spec \
14761     thread_safe_flag_spec \
14762     whole_archive_flag_spec \
14763     enable_shared_with_static_runtimes \
14764     old_archive_cmds \
14765     old_archive_from_new_cmds \
14766     predep_objects \
14767     postdep_objects \
14768     predeps \
14769     postdeps \
14770     compiler_lib_search_path \
14771     archive_cmds \
14772     archive_expsym_cmds \
14773     postinstall_cmds \
14774     postuninstall_cmds \
14775     old_archive_from_expsyms_cmds \
14776     allow_undefined_flag \
14777     no_undefined_flag \
14778     export_symbols_cmds \
14779     hardcode_libdir_flag_spec \
14780     hardcode_libdir_flag_spec_ld \
14781     hardcode_libdir_separator \
14782     hardcode_automatic \
14783     module_cmds \
14784     module_expsym_cmds \
14785     lt_cv_prog_compiler_c_o \
14786     exclude_expsyms \
14787     include_expsyms; do
14788
14789     case $var in
14790     old_archive_cmds | \
14791     old_archive_from_new_cmds | \
14792     archive_cmds | \
14793     archive_expsym_cmds | \
14794     module_cmds | \
14795     module_expsym_cmds | \
14796     old_archive_from_expsyms_cmds | \
14797     export_symbols_cmds | \
14798     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14799     postinstall_cmds | postuninstall_cmds | \
14800     old_postinstall_cmds | old_postuninstall_cmds | \
14801     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14802       # Double-quote double-evaled strings.
14803       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14804       ;;
14805     *)
14806       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14807       ;;
14808     esac
14809   done
14810
14811   case $lt_echo in
14812   *'\$0 --fallback-echo"')
14813     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14814     ;;
14815   esac
14816
14817 cfgfile="${ofile}T"
14818   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14819   $rm -f "$cfgfile"
14820   { echo "$as_me:$LINENO: creating $ofile" >&5
14821 echo "$as_me: creating $ofile" >&6;}
14822
14823   cat <<__EOF__ >> "$cfgfile"
14824 #! $SHELL
14825
14826 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14827 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14828 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14829 #
14830 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14831 # Free Software Foundation, Inc.
14832 #
14833 # This file is part of GNU Libtool:
14834 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14835 #
14836 # This program is free software; you can redistribute it and/or modify
14837 # it under the terms of the GNU General Public License as published by
14838 # the Free Software Foundation; either version 2 of the License, or
14839 # (at your option) any later version.
14840 #
14841 # This program is distributed in the hope that it will be useful, but
14842 # WITHOUT ANY WARRANTY; without even the implied warranty of
14843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14844 # General Public License for more details.
14845 #
14846 # You should have received a copy of the GNU General Public License
14847 # along with this program; if not, write to the Free Software
14848 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14849 #
14850 # As a special exception to the GNU General Public License, if you
14851 # distribute this file as part of a program that contains a
14852 # configuration script generated by Autoconf, you may include it under
14853 # the same distribution terms that you use for the rest of that program.
14854
14855 # A sed program that does not truncate output.
14856 SED=$lt_SED
14857
14858 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14859 Xsed="$SED -e s/^X//"
14860
14861 # The HP-UX ksh and POSIX shell print the target directory to stdout
14862 # if CDPATH is set.
14863 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14864
14865 # The names of the tagged configurations supported by this script.
14866 available_tags=
14867
14868 # ### BEGIN LIBTOOL CONFIG
14869
14870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14871
14872 # Shell to use when invoking shell scripts.
14873 SHELL=$lt_SHELL
14874
14875 # Whether or not to build shared libraries.
14876 build_libtool_libs=$enable_shared
14877
14878 # Whether or not to build static libraries.
14879 build_old_libs=$enable_static
14880
14881 # Whether or not to add -lc for building shared libraries.
14882 build_libtool_need_lc=$archive_cmds_need_lc
14883
14884 # Whether or not to disallow shared libs when runtime libs are static
14885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14886
14887 # Whether or not to optimize for fast installation.
14888 fast_install=$enable_fast_install
14889
14890 # The host system.
14891 host_alias=$host_alias
14892 host=$host
14893
14894 # An echo program that does not interpret backslashes.
14895 echo=$lt_echo
14896
14897 # The archiver.
14898 AR=$lt_AR
14899 AR_FLAGS=$lt_AR_FLAGS
14900
14901 # A C compiler.
14902 LTCC=$lt_LTCC
14903
14904 # A language-specific compiler.
14905 CC=$lt_compiler
14906
14907 # Is the compiler the GNU C compiler?
14908 with_gcc=$GCC
14909
14910 # An ERE matcher.
14911 EGREP=$lt_EGREP
14912
14913 # The linker used to build libraries.
14914 LD=$lt_LD
14915
14916 # Whether we need hard or soft links.
14917 LN_S=$lt_LN_S
14918
14919 # A BSD-compatible nm program.
14920 NM=$lt_NM
14921
14922 # A symbol stripping program
14923 STRIP=$lt_STRIP
14924
14925 # Used to examine libraries when file_magic_cmd begins "file"
14926 MAGIC_CMD=$MAGIC_CMD
14927
14928 # Used on cygwin: DLL creation program.
14929 DLLTOOL="$DLLTOOL"
14930
14931 # Used on cygwin: object dumper.
14932 OBJDUMP="$OBJDUMP"
14933
14934 # Used on cygwin: assembler.
14935 AS="$AS"
14936
14937 # The name of the directory that contains temporary libtool files.
14938 objdir=$objdir
14939
14940 # How to create reloadable object files.
14941 reload_flag=$lt_reload_flag
14942 reload_cmds=$lt_reload_cmds
14943
14944 # How to pass a linker flag through the compiler.
14945 wl=$lt_lt_prog_compiler_wl
14946
14947 # Object file suffix (normally "o").
14948 objext="$ac_objext"
14949
14950 # Old archive suffix (normally "a").
14951 libext="$libext"
14952
14953 # Shared library suffix (normally ".so").
14954 shrext_cmds='$shrext_cmds'
14955
14956 # Executable file suffix (normally "").
14957 exeext="$exeext"
14958
14959 # Additional compiler flags for building library objects.
14960 pic_flag=$lt_lt_prog_compiler_pic
14961 pic_mode=$pic_mode
14962
14963 # What is the maximum length of a command?
14964 max_cmd_len=$lt_cv_sys_max_cmd_len
14965
14966 # Does compiler simultaneously support -c and -o options?
14967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14968
14969 # Must we lock files when doing compilation ?
14970 need_locks=$lt_need_locks
14971
14972 # Do we need the lib prefix for modules?
14973 need_lib_prefix=$need_lib_prefix
14974
14975 # Do we need a version for libraries?
14976 need_version=$need_version
14977
14978 # Whether dlopen is supported.
14979 dlopen_support=$enable_dlopen
14980
14981 # Whether dlopen of programs is supported.
14982 dlopen_self=$enable_dlopen_self
14983
14984 # Whether dlopen of statically linked programs is supported.
14985 dlopen_self_static=$enable_dlopen_self_static
14986
14987 # Compiler flag to prevent dynamic linking.
14988 link_static_flag=$lt_lt_prog_compiler_static
14989
14990 # Compiler flag to turn off builtin functions.
14991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14992
14993 # Compiler flag to allow reflexive dlopens.
14994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14995
14996 # Compiler flag to generate shared objects directly from archives.
14997 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14998
14999 # Compiler flag to generate thread-safe objects.
15000 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15001
15002 # Library versioning type.
15003 version_type=$version_type
15004
15005 # Format of library name prefix.
15006 libname_spec=$lt_libname_spec
15007
15008 # List of archive names.  First name is the real one, the rest are links.
15009 # The last name is the one that the linker finds with -lNAME.
15010 library_names_spec=$lt_library_names_spec
15011
15012 # The coded name of the library, if different from the real name.
15013 soname_spec=$lt_soname_spec
15014
15015 # Commands used to build and install an old-style archive.
15016 RANLIB=$lt_RANLIB
15017 old_archive_cmds=$lt_old_archive_cmds
15018 old_postinstall_cmds=$lt_old_postinstall_cmds
15019 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15020
15021 # Create an old-style archive from a shared archive.
15022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15023
15024 # Create a temporary old-style archive to link instead of a shared archive.
15025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15026
15027 # Commands used to build and install a shared archive.
15028 archive_cmds=$lt_archive_cmds
15029 archive_expsym_cmds=$lt_archive_expsym_cmds
15030 postinstall_cmds=$lt_postinstall_cmds
15031 postuninstall_cmds=$lt_postuninstall_cmds
15032
15033 # Commands used to build a loadable module (assumed same as above if empty)
15034 module_cmds=$lt_module_cmds
15035 module_expsym_cmds=$lt_module_expsym_cmds
15036
15037 # Commands to strip libraries.
15038 old_striplib=$lt_old_striplib
15039 striplib=$lt_striplib
15040
15041 # Dependencies to place before the objects being linked to create a
15042 # shared library.
15043 predep_objects=$lt_predep_objects
15044
15045 # Dependencies to place after the objects being linked to create a
15046 # shared library.
15047 postdep_objects=$lt_postdep_objects
15048
15049 # Dependencies to place before the objects being linked to create a
15050 # shared library.
15051 predeps=$lt_predeps
15052
15053 # Dependencies to place after the objects being linked to create a
15054 # shared library.
15055 postdeps=$lt_postdeps
15056
15057 # The library search path used internally by the compiler when linking
15058 # a shared library.
15059 compiler_lib_search_path=$lt_compiler_lib_search_path
15060
15061 # Method to check whether dependent libraries are shared objects.
15062 deplibs_check_method=$lt_deplibs_check_method
15063
15064 # Command to use when deplibs_check_method == file_magic.
15065 file_magic_cmd=$lt_file_magic_cmd
15066
15067 # Flag that allows shared libraries with undefined symbols to be built.
15068 allow_undefined_flag=$lt_allow_undefined_flag
15069
15070 # Flag that forces no undefined symbols.
15071 no_undefined_flag=$lt_no_undefined_flag
15072
15073 # Commands used to finish a libtool library installation in a directory.
15074 finish_cmds=$lt_finish_cmds
15075
15076 # Same as above, but a single script fragment to be evaled but not shown.
15077 finish_eval=$lt_finish_eval
15078
15079 # Take the output of nm and produce a listing of raw symbols and C names.
15080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15081
15082 # Transform the output of nm in a proper C declaration
15083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15084
15085 # Transform the output of nm in a C name address pair
15086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15087
15088 # This is the shared library runtime path variable.
15089 runpath_var=$runpath_var
15090
15091 # This is the shared library path variable.
15092 shlibpath_var=$shlibpath_var
15093
15094 # Is shlibpath searched before the hard-coded library search path?
15095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15096
15097 # How to hardcode a shared library path into an executable.
15098 hardcode_action=$hardcode_action
15099
15100 # Whether we should hardcode library paths into libraries.
15101 hardcode_into_libs=$hardcode_into_libs
15102
15103 # Flag to hardcode \$libdir into a binary during linking.
15104 # This must work even if \$libdir does not exist.
15105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15106
15107 # If ld is used when linking, flag to hardcode \$libdir into
15108 # a binary during linking. This must work even if \$libdir does
15109 # not exist.
15110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15111
15112 # Whether we need a single -rpath flag with a separated argument.
15113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15114
15115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15116 # resulting binary.
15117 hardcode_direct=$hardcode_direct
15118
15119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15120 # resulting binary.
15121 hardcode_minus_L=$hardcode_minus_L
15122
15123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15124 # the resulting binary.
15125 hardcode_shlibpath_var=$hardcode_shlibpath_var
15126
15127 # Set to yes if building a shared library automatically hardcodes DIR into the library
15128 # and all subsequent libraries and executables linked against it.
15129 hardcode_automatic=$hardcode_automatic
15130
15131 # Variables whose values should be saved in libtool wrapper scripts and
15132 # restored at relink time.
15133 variables_saved_for_relink="$variables_saved_for_relink"
15134
15135 # Whether libtool must link a program against all its dependency libraries.
15136 link_all_deplibs=$link_all_deplibs
15137
15138 # Compile-time system search path for libraries
15139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15140
15141 # Run-time system search path for libraries
15142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15143
15144 # Fix the shell variable \$srcfile for the compiler.
15145 fix_srcfile_path="$fix_srcfile_path"
15146
15147 # Set to yes if exported symbols are required.
15148 always_export_symbols=$always_export_symbols
15149
15150 # The commands to list exported symbols.
15151 export_symbols_cmds=$lt_export_symbols_cmds
15152
15153 # The commands to extract the exported symbol list from a shared archive.
15154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15155
15156 # Symbols that should not be listed in the preloaded symbols.
15157 exclude_expsyms=$lt_exclude_expsyms
15158
15159 # Symbols that must always be exported.
15160 include_expsyms=$lt_include_expsyms
15161
15162 # ### END LIBTOOL CONFIG
15163
15164 __EOF__
15165
15166
15167   case $host_os in
15168   aix3*)
15169     cat <<\EOF >> "$cfgfile"
15170
15171 # AIX sometimes has problems with the GCC collect2 program.  For some
15172 # reason, if we set the COLLECT_NAMES environment variable, the problems
15173 # vanish in a puff of smoke.
15174 if test "X${COLLECT_NAMES+set}" != Xset; then
15175   COLLECT_NAMES=
15176   export COLLECT_NAMES
15177 fi
15178 EOF
15179     ;;
15180   esac
15181
15182   # We use sed instead of cat because bash on DJGPP gets confused if
15183   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15184   # text mode, it properly converts lines to CR/LF.  This bash problem
15185   # is reportedly fixed, but why not run on old versions too?
15186   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15187
15188   mv -f "$cfgfile" "$ofile" || \
15189     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15190   chmod +x "$ofile"
15191
15192 else
15193   # If there is no Makefile yet, we rely on a make rule to execute
15194   # `config.status --recheck' to rerun these tests and create the
15195   # libtool script then.
15196   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15197   if test -f "$ltmain_in"; then
15198     test -f Makefile && make "$ltmain"
15199   fi
15200 fi
15201
15202
15203 ac_ext=c
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209 CC="$lt_save_CC"
15210
15211
15212 # Check whether --with-tags or --without-tags was given.
15213 if test "${with_tags+set}" = set; then
15214   withval="$with_tags"
15215   tagnames="$withval"
15216 fi;
15217
15218 if test -f "$ltmain" && test -n "$tagnames"; then
15219   if test ! -f "${ofile}"; then
15220     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15221 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15222   fi
15223
15224   if test -z "$LTCC"; then
15225     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15226     if test -z "$LTCC"; then
15227       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15228 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15229     else
15230       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15231 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15232     fi
15233   fi
15234
15235   # Extract list of available tagged configurations in $ofile.
15236   # Note that this assumes the entire list is on one line.
15237   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15238
15239   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15240   for tagname in $tagnames; do
15241     IFS="$lt_save_ifs"
15242     # Check whether tagname contains only valid characters
15243     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15244     "") ;;
15245     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15246 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15247    { (exit 1); exit 1; }; }
15248         ;;
15249     esac
15250
15251     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15252     then
15253       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15254 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15255    { (exit 1); exit 1; }; }
15256     fi
15257
15258     # Update the list of available tags.
15259     if test -n "$tagname"; then
15260       echo appending configuration tag "$tagname" to $ofile
15261
15262       case $tagname in
15263       CXX)
15264         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15265             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15266             (test "X$CXX" != "Xg++"))) ; then
15267           ac_ext=cc
15268 ac_cpp='$CXXCPP $CPPFLAGS'
15269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15272
15273
15274
15275
15276 archive_cmds_need_lc_CXX=no
15277 allow_undefined_flag_CXX=
15278 always_export_symbols_CXX=no
15279 archive_expsym_cmds_CXX=
15280 export_dynamic_flag_spec_CXX=
15281 hardcode_direct_CXX=no
15282 hardcode_libdir_flag_spec_CXX=
15283 hardcode_libdir_flag_spec_ld_CXX=
15284 hardcode_libdir_separator_CXX=
15285 hardcode_minus_L_CXX=no
15286 hardcode_automatic_CXX=no
15287 module_cmds_CXX=
15288 module_expsym_cmds_CXX=
15289 link_all_deplibs_CXX=unknown
15290 old_archive_cmds_CXX=$old_archive_cmds
15291 no_undefined_flag_CXX=
15292 whole_archive_flag_spec_CXX=
15293 enable_shared_with_static_runtimes_CXX=no
15294
15295 # Dependencies to place before and after the object being linked:
15296 predep_objects_CXX=
15297 postdep_objects_CXX=
15298 predeps_CXX=
15299 postdeps_CXX=
15300 compiler_lib_search_path_CXX=
15301
15302 # Source file extension for C++ test sources.
15303 ac_ext=cc
15304
15305 # Object file extension for compiled C++ test sources.
15306 objext=o
15307 objext_CXX=$objext
15308
15309 # Code to be used in simple compile tests
15310 lt_simple_compile_test_code="int some_variable = 0;\n"
15311
15312 # Code to be used in simple link tests
15313 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15314
15315 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15316
15317 # If no C compiler was specified, use CC.
15318 LTCC=${LTCC-"$CC"}
15319
15320 # Allow CC to be a program name with arguments.
15321 compiler=$CC
15322
15323
15324 # Allow CC to be a program name with arguments.
15325 lt_save_CC=$CC
15326 lt_save_LD=$LD
15327 lt_save_GCC=$GCC
15328 GCC=$GXX
15329 lt_save_with_gnu_ld=$with_gnu_ld
15330 lt_save_path_LD=$lt_cv_path_LD
15331 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15332   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15333 else
15334   unset lt_cv_prog_gnu_ld
15335 fi
15336 if test -n "${lt_cv_path_LDCXX+set}"; then
15337   lt_cv_path_LD=$lt_cv_path_LDCXX
15338 else
15339   unset lt_cv_path_LD
15340 fi
15341 test -z "${LDCXX+set}" || LD=$LDCXX
15342 CC=${CXX-"c++"}
15343 compiler=$CC
15344 compiler_CXX=$CC
15345 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15346
15347 # We don't want -fno-exception wen compiling C++ code, so set the
15348 # no_builtin_flag separately
15349 if test "$GXX" = yes; then
15350   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15351 else
15352   lt_prog_compiler_no_builtin_flag_CXX=
15353 fi
15354
15355 if test "$GXX" = yes; then
15356   # Set up default GNU C++ configuration
15357
15358
15359 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15360 if test "${with_gnu_ld+set}" = set; then
15361   withval="$with_gnu_ld"
15362   test "$withval" = no || with_gnu_ld=yes
15363 else
15364   with_gnu_ld=no
15365 fi;
15366 ac_prog=ld
15367 if test "$GCC" = yes; then
15368   # Check if gcc -print-prog-name=ld gives a path.
15369   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15370 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15371   case $host in
15372   *-*-mingw*)
15373     # gcc leaves a trailing carriage return which upsets mingw
15374     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15375   *)
15376     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15377   esac
15378   case $ac_prog in
15379     # Accept absolute paths.
15380     [\\/]* | ?:[\\/]*)
15381       re_direlt='/[^/][^/]*/\.\./'
15382       # Canonicalize the pathname of ld
15383       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15384       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15385         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15386       done
15387       test -z "$LD" && LD="$ac_prog"
15388       ;;
15389   "")
15390     # If it fails, then pretend we aren't using GCC.
15391     ac_prog=ld
15392     ;;
15393   *)
15394     # If it is relative, then search for the first ld in PATH.
15395     with_gnu_ld=unknown
15396     ;;
15397   esac
15398 elif test "$with_gnu_ld" = yes; then
15399   echo "$as_me:$LINENO: checking for GNU ld" >&5
15400 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15401 else
15402   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15403 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15404 fi
15405 if test "${lt_cv_path_LD+set}" = set; then
15406   echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408   if test -z "$LD"; then
15409   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15410   for ac_dir in $PATH; do
15411     IFS="$lt_save_ifs"
15412     test -z "$ac_dir" && ac_dir=.
15413     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15414       lt_cv_path_LD="$ac_dir/$ac_prog"
15415       # Check to see if the program is GNU ld.  I'd rather use --version,
15416       # but apparently some GNU ld's only accept -v.
15417       # Break only if it was the GNU/non-GNU ld that we prefer.
15418       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15419       *GNU* | *'with BFD'*)
15420         test "$with_gnu_ld" != no && break
15421         ;;
15422       *)
15423         test "$with_gnu_ld" != yes && break
15424         ;;
15425       esac
15426     fi
15427   done
15428   IFS="$lt_save_ifs"
15429 else
15430   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15431 fi
15432 fi
15433
15434 LD="$lt_cv_path_LD"
15435 if test -n "$LD"; then
15436   echo "$as_me:$LINENO: result: $LD" >&5
15437 echo "${ECHO_T}$LD" >&6
15438 else
15439   echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6
15441 fi
15442 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15443 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15444    { (exit 1); exit 1; }; }
15445 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15446 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15447 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15451 case `$LD -v 2>&1 </dev/null` in
15452 *GNU* | *'with BFD'*)
15453   lt_cv_prog_gnu_ld=yes
15454   ;;
15455 *)
15456   lt_cv_prog_gnu_ld=no
15457   ;;
15458 esac
15459 fi
15460 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15461 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15462 with_gnu_ld=$lt_cv_prog_gnu_ld
15463
15464
15465
15466   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15467   # archiving commands below assume that GNU ld is being used.
15468   if test "$with_gnu_ld" = yes; then
15469     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15470     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'
15471
15472     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15473     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15474
15475     # If archive_cmds runs LD, not CC, wlarc should be empty
15476     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15477     #     investigate it a little bit more. (MM)
15478     wlarc='${wl}'
15479
15480     # ancient GNU ld didn't support --whole-archive et. al.
15481     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15482         grep 'no-whole-archive' > /dev/null; then
15483       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15484     else
15485       whole_archive_flag_spec_CXX=
15486     fi
15487   else
15488     with_gnu_ld=no
15489     wlarc=
15490
15491     # A generic and very simple default shared library creation
15492     # command for GNU C++ for the case where it uses the native
15493     # linker, instead of GNU ld.  If possible, this setting should
15494     # overridden to take advantage of the native linker features on
15495     # the platform it is being used on.
15496     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15497   fi
15498
15499   # Commands to make compiler produce verbose output that lists
15500   # what "hidden" libraries, object files and flags are used when
15501   # linking a shared library.
15502   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15503
15504 else
15505   GXX=no
15506   with_gnu_ld=no
15507   wlarc=
15508 fi
15509
15510 # PORTME: fill in a description of your system's C++ link characteristics
15511 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15513 ld_shlibs_CXX=yes
15514 case $host_os in
15515   aix3*)
15516     # FIXME: insert proper C++ library support
15517     ld_shlibs_CXX=no
15518     ;;
15519   aix4* | aix5*)
15520     if test "$host_cpu" = ia64; then
15521       # On IA64, the linker does run time linking by default, so we don't
15522       # have to do anything special.
15523       aix_use_runtimelinking=no
15524       exp_sym_flag='-Bexport'
15525       no_entry_flag=""
15526     else
15527       aix_use_runtimelinking=no
15528
15529       # Test if we are trying to use run time linking or normal
15530       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15531       # need to do runtime linking.
15532       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15533         for ld_flag in $LDFLAGS; do
15534           case $ld_flag in
15535           *-brtl*)
15536             aix_use_runtimelinking=yes
15537             break
15538             ;;
15539           esac
15540         done
15541       esac
15542
15543       exp_sym_flag='-bexport'
15544       no_entry_flag='-bnoentry'
15545     fi
15546
15547     # When large executables or shared objects are built, AIX ld can
15548     # have problems creating the table of contents.  If linking a library
15549     # or program results in "error TOC overflow" add -mminimal-toc to
15550     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15551     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15552
15553     archive_cmds_CXX=''
15554     hardcode_direct_CXX=yes
15555     hardcode_libdir_separator_CXX=':'
15556     link_all_deplibs_CXX=yes
15557
15558     if test "$GXX" = yes; then
15559       case $host_os in aix4.012|aix4.012.*)
15560       # We only want to do this on AIX 4.2 and lower, the check
15561       # below for broken collect2 doesn't work under 4.3+
15562         collect2name=`${CC} -print-prog-name=collect2`
15563         if test -f "$collect2name" && \
15564            strings "$collect2name" | grep resolve_lib_name >/dev/null
15565         then
15566           # We have reworked collect2
15567           hardcode_direct_CXX=yes
15568         else
15569           # We have old collect2
15570           hardcode_direct_CXX=unsupported
15571           # It fails to find uninstalled libraries when the uninstalled
15572           # path is not listed in the libpath.  Setting hardcode_minus_L
15573           # to unsupported forces relinking
15574           hardcode_minus_L_CXX=yes
15575           hardcode_libdir_flag_spec_CXX='-L$libdir'
15576           hardcode_libdir_separator_CXX=
15577         fi
15578       esac
15579       shared_flag='-shared'
15580     else
15581       # not using gcc
15582       if test "$host_cpu" = ia64; then
15583         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15584         # chokes on -Wl,-G. The following line is correct:
15585         shared_flag='-G'
15586       else
15587         if test "$aix_use_runtimelinking" = yes; then
15588           shared_flag='${wl}-G'
15589         else
15590           shared_flag='${wl}-bM:SRE'
15591         fi
15592       fi
15593     fi
15594
15595     # It seems that -bexpall does not export symbols beginning with
15596     # underscore (_), so it is better to generate a list of symbols to export.
15597     always_export_symbols_CXX=yes
15598     if test "$aix_use_runtimelinking" = yes; then
15599       # Warning - without using the other runtime loading flags (-brtl),
15600       # -berok will link without error, but may produce a broken library.
15601       allow_undefined_flag_CXX='-berok'
15602       # Determine the default libpath from the value encoded in an empty executable.
15603       cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h.  */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h.  */
15609
15610 int
15611 main ()
15612 {
15613
15614   ;
15615   return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620   (eval $ac_link) 2>conftest.er1
15621   ac_status=$?
15622   grep -v '^ *+' conftest.er1 >conftest.err
15623   rm -f conftest.er1
15624   cat conftest.err >&5
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); } &&
15627          { ac_try='test -z "$ac_cxx_werror_flag"
15628                          || test ! -s conftest.err'
15629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630   (eval $ac_try) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; } &&
15634          { ac_try='test -s conftest$ac_exeext'
15635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636   (eval $ac_try) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }; then
15640
15641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15642 }'`
15643 # Check for a 64-bit object if we didn't find anything.
15644 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; }
15645 }'`; fi
15646 else
15647   echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15649
15650 fi
15651 rm -f conftest.err conftest.$ac_objext \
15652       conftest$ac_exeext conftest.$ac_ext
15653 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15654
15655       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15656
15657       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"
15658      else
15659       if test "$host_cpu" = ia64; then
15660         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15661         allow_undefined_flag_CXX="-z nodefs"
15662         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"
15663       else
15664         # Determine the default libpath from the value encoded in an empty executable.
15665         cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671
15672 int
15673 main ()
15674 {
15675
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>conftest.er1
15683   ac_status=$?
15684   grep -v '^ *+' conftest.er1 >conftest.err
15685   rm -f conftest.er1
15686   cat conftest.err >&5
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } &&
15689          { ac_try='test -z "$ac_cxx_werror_flag"
15690                          || test ! -s conftest.err'
15691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692   (eval $ac_try) 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; } &&
15696          { ac_try='test -s conftest$ac_exeext'
15697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698   (eval $ac_try) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; }; then
15702
15703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15704 }'`
15705 # Check for a 64-bit object if we didn't find anything.
15706 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; }
15707 }'`; fi
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 fi
15713 rm -f conftest.err conftest.$ac_objext \
15714       conftest$ac_exeext conftest.$ac_ext
15715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15716
15717         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15718         # Warning - without using the other run time loading flags,
15719         # -berok will link without error, but may produce a broken library.
15720         no_undefined_flag_CXX=' ${wl}-bernotok'
15721         allow_undefined_flag_CXX=' ${wl}-berok'
15722         # -bexpall does not export symbols beginning with underscore (_)
15723         always_export_symbols_CXX=yes
15724         # Exported symbols can be pulled into shared objects from archives
15725         whole_archive_flag_spec_CXX=' '
15726         archive_cmds_need_lc_CXX=yes
15727         # This is similar to how AIX traditionally builds it's shared libraries.
15728         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'
15729       fi
15730     fi
15731     ;;
15732   chorus*)
15733     case $cc_basename in
15734       *)
15735         # FIXME: insert proper C++ library support
15736         ld_shlibs_CXX=no
15737         ;;
15738     esac
15739     ;;
15740
15741
15742   cygwin* | mingw* | pw32*)
15743     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15744     # as there is no search path for DLLs.
15745     hardcode_libdir_flag_spec_CXX='-L$libdir'
15746     allow_undefined_flag_CXX=unsupported
15747     always_export_symbols_CXX=no
15748     enable_shared_with_static_runtimes_CXX=yes
15749
15750     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15751       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'
15752       # If the export-symbols file already is a .def file (1st line
15753       # is EXPORTS), use it as is; otherwise, prepend...
15754       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15755         cp $export_symbols $output_objdir/$soname.def;
15756       else
15757         echo EXPORTS > $output_objdir/$soname.def;
15758         cat $export_symbols >> $output_objdir/$soname.def;
15759       fi~
15760       $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'
15761     else
15762       ld_shlibs_CXX=no
15763     fi
15764   ;;
15765       darwin* | rhapsody*)
15766         case "$host_os" in
15767         rhapsody* | darwin1.[012])
15768          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15769          ;;
15770        *) # Darwin 1.3 on
15771          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15772            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15773          else
15774            case ${MACOSX_DEPLOYMENT_TARGET} in
15775              10.[012])
15776                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15777                ;;
15778              10.*)
15779                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15780                ;;
15781            esac
15782          fi
15783          ;;
15784         esac
15785       archive_cmds_need_lc_CXX=no
15786       hardcode_direct_CXX=no
15787       hardcode_automatic_CXX=yes
15788       hardcode_shlibpath_var_CXX=unsupported
15789       whole_archive_flag_spec_CXX=''
15790       link_all_deplibs_CXX=yes
15791
15792     if test "$GXX" = yes ; then
15793       lt_int_apple_cc_single_mod=no
15794       output_verbose_link_cmd='echo'
15795       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15796        lt_int_apple_cc_single_mod=yes
15797       fi
15798       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15799        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15800       else
15801           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'
15802         fi
15803         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15804         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15805           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15806             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}'
15807           else
15808             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}'
15809           fi
15810             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}'
15811       else
15812       case "$cc_basename" in
15813         xlc*)
15814          output_verbose_link_cmd='echo'
15815           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'
15816           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15817           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15818           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}'
15819           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}'
15820           ;;
15821        *)
15822          ld_shlibs_CXX=no
15823           ;;
15824       esac
15825       fi
15826         ;;
15827
15828   dgux*)
15829     case $cc_basename in
15830       ec++)
15831         # FIXME: insert proper C++ library support
15832         ld_shlibs_CXX=no
15833         ;;
15834       ghcx)
15835         # Green Hills C++ Compiler
15836         # FIXME: insert proper C++ library support
15837         ld_shlibs_CXX=no
15838         ;;
15839       *)
15840         # FIXME: insert proper C++ library support
15841         ld_shlibs_CXX=no
15842         ;;
15843     esac
15844     ;;
15845   freebsd12*)
15846     # C++ shared libraries reported to be fairly broken before switch to ELF
15847     ld_shlibs_CXX=no
15848     ;;
15849   freebsd-elf*)
15850     archive_cmds_need_lc_CXX=no
15851     ;;
15852   freebsd* | kfreebsd*-gnu)
15853     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15854     # conventions
15855     ld_shlibs_CXX=yes
15856     ;;
15857   gnu*)
15858     ;;
15859   hpux9*)
15860     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15861     hardcode_libdir_separator_CXX=:
15862     export_dynamic_flag_spec_CXX='${wl}-E'
15863     hardcode_direct_CXX=yes
15864     hardcode_minus_L_CXX=yes # Not in the search PATH,
15865                                 # but as the default
15866                                 # location of the library.
15867
15868     case $cc_basename in
15869     CC)
15870       # FIXME: insert proper C++ library support
15871       ld_shlibs_CXX=no
15872       ;;
15873     aCC)
15874       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'
15875       # Commands to make compiler produce verbose output that lists
15876       # what "hidden" libraries, object files and flags are used when
15877       # linking a shared library.
15878       #
15879       # There doesn't appear to be a way to prevent this compiler from
15880       # explicitly linking system object files so we need to strip them
15881       # from the output so that they don't get included in the library
15882       # dependencies.
15883       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'
15884       ;;
15885     *)
15886       if test "$GXX" = yes; then
15887         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'
15888       else
15889         # FIXME: insert proper C++ library support
15890         ld_shlibs_CXX=no
15891       fi
15892       ;;
15893     esac
15894     ;;
15895   hpux10*|hpux11*)
15896     if test $with_gnu_ld = no; then
15897       case "$host_cpu" in
15898       hppa*64*)
15899         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15900         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15901         hardcode_libdir_separator_CXX=:
15902         ;;
15903       ia64*)
15904         hardcode_libdir_flag_spec_CXX='-L$libdir'
15905         ;;
15906       *)
15907         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15908         hardcode_libdir_separator_CXX=:
15909         export_dynamic_flag_spec_CXX='${wl}-E'
15910         ;;
15911       esac
15912     fi
15913     case "$host_cpu" in
15914     hppa*64*)
15915       hardcode_direct_CXX=no
15916       hardcode_shlibpath_var_CXX=no
15917       ;;
15918     ia64*)
15919       hardcode_direct_CXX=no
15920       hardcode_shlibpath_var_CXX=no
15921       hardcode_minus_L_CXX=yes # Not in the search PATH,
15922                                               # but as the default
15923                                               # location of the library.
15924       ;;
15925     *)
15926       hardcode_direct_CXX=yes
15927       hardcode_minus_L_CXX=yes # Not in the search PATH,
15928                                               # but as the default
15929                                               # location of the library.
15930       ;;
15931     esac
15932
15933     case $cc_basename in
15934       CC)
15935         # FIXME: insert proper C++ library support
15936         ld_shlibs_CXX=no
15937         ;;
15938       aCC)
15939         case "$host_cpu" in
15940         hppa*64*|ia64*)
15941           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15942           ;;
15943         *)
15944           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15945           ;;
15946         esac
15947         # Commands to make compiler produce verbose output that lists
15948         # what "hidden" libraries, object files and flags are used when
15949         # linking a shared library.
15950         #
15951         # There doesn't appear to be a way to prevent this compiler from
15952         # explicitly linking system object files so we need to strip them
15953         # from the output so that they don't get included in the library
15954         # dependencies.
15955         output_verbose_link_cmd='templist=`($CC -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'
15956         ;;
15957       *)
15958         if test "$GXX" = yes; then
15959           if test $with_gnu_ld = no; then
15960             case "$host_cpu" in
15961             ia64*|hppa*64*)
15962               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15963               ;;
15964             *)
15965               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'
15966               ;;
15967             esac
15968           fi
15969         else
15970           # FIXME: insert proper C++ library support
15971           ld_shlibs_CXX=no
15972         fi
15973         ;;
15974     esac
15975     ;;
15976   irix5* | irix6*)
15977     case $cc_basename in
15978       CC)
15979         # SGI C++
15980         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'
15981
15982         # Archives containing C++ object files must be created using
15983         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15984         # necessary to make sure instantiated templates are included
15985         # in the archive.
15986         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15987         ;;
15988       *)
15989         if test "$GXX" = yes; then
15990           if test "$with_gnu_ld" = no; then
15991             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'
15992           else
15993             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'
15994           fi
15995         fi
15996         link_all_deplibs_CXX=yes
15997         ;;
15998     esac
15999     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16000     hardcode_libdir_separator_CXX=:
16001     ;;
16002   linux*)
16003     case $cc_basename in
16004       KCC)
16005         # Kuck and Associates, Inc. (KAI) C++ Compiler
16006
16007         # KCC will only create a shared library if the output file
16008         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16009         # to its proper name (with version) after linking.
16010         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'
16011         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'
16012         # Commands to make compiler produce verbose output that lists
16013         # what "hidden" libraries, object files and flags are used when
16014         # linking a shared library.
16015         #
16016         # There doesn't appear to be a way to prevent this compiler from
16017         # explicitly linking system object files so we need to strip them
16018         # from the output so that they don't get included in the library
16019         # dependencies.
16020         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'
16021
16022         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16023         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16024
16025         # Archives containing C++ object files must be created using
16026         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16027         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16028         ;;
16029       icpc)
16030         # Intel C++
16031         with_gnu_ld=yes
16032         # version 8.0 and above of icpc choke on multiply defined symbols
16033         # if we add $predep_objects and $postdep_objects, however 7.1 and
16034         # earlier do not add the objects themselves.
16035         case `$CC -V 2>&1` in
16036         *"Version 7."*)
16037           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038           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'
16039           ;;
16040         *)  # Version 8.0 or newer
16041           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043           ;;
16044         esac
16045         archive_cmds_need_lc_CXX=no
16046         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16047         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16048         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16049         ;;
16050       cxx)
16051         # Compaq C++
16052         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053         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'
16054
16055         runpath_var=LD_RUN_PATH
16056         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16057         hardcode_libdir_separator_CXX=:
16058
16059         # Commands to make compiler produce verbose output that lists
16060         # what "hidden" libraries, object files and flags are used when
16061         # linking a shared library.
16062         #
16063         # There doesn't appear to be a way to prevent this compiler from
16064         # explicitly linking system object files so we need to strip them
16065         # from the output so that they don't get included in the library
16066         # dependencies.
16067         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'
16068         ;;
16069     esac
16070     ;;
16071   lynxos*)
16072     # FIXME: insert proper C++ library support
16073     ld_shlibs_CXX=no
16074     ;;
16075   m88k*)
16076     # FIXME: insert proper C++ library support
16077     ld_shlibs_CXX=no
16078     ;;
16079   mvs*)
16080     case $cc_basename in
16081       cxx)
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   netbsd*)
16092     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16093       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16094       wlarc=
16095       hardcode_libdir_flag_spec_CXX='-R$libdir'
16096       hardcode_direct_CXX=yes
16097       hardcode_shlibpath_var_CXX=no
16098     fi
16099     # Workaround some broken pre-1.5 toolchains
16100     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16101     ;;
16102   openbsd2*)
16103     # C++ shared libraries are fairly broken
16104     ld_shlibs_CXX=no
16105     ;;
16106   openbsd*)
16107     hardcode_direct_CXX=yes
16108     hardcode_shlibpath_var_CXX=no
16109     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16110     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16111     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16112       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16113       export_dynamic_flag_spec_CXX='${wl}-E'
16114       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16115     fi
16116     output_verbose_link_cmd='echo'
16117     ;;
16118   osf3*)
16119     case $cc_basename in
16120       KCC)
16121         # Kuck and Associates, Inc. (KAI) C++ Compiler
16122
16123         # KCC will only create a shared library if the output file
16124         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16125         # to its proper name (with version) after linking.
16126         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'
16127
16128         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16129         hardcode_libdir_separator_CXX=:
16130
16131         # Archives containing C++ object files must be created using
16132         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16133         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16134
16135         ;;
16136       RCC)
16137         # Rational C++ 2.4.1
16138         # FIXME: insert proper C++ library support
16139         ld_shlibs_CXX=no
16140         ;;
16141       cxx)
16142         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16143         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'
16144
16145         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16146         hardcode_libdir_separator_CXX=:
16147
16148         # Commands to make compiler produce verbose output that lists
16149         # what "hidden" libraries, object files and flags are used when
16150         # linking a shared library.
16151         #
16152         # There doesn't appear to be a way to prevent this compiler from
16153         # explicitly linking system object files so we need to strip them
16154         # from the output so that they don't get included in the library
16155         # dependencies.
16156         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'
16157         ;;
16158       *)
16159         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16160           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16161           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'
16162
16163           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16164           hardcode_libdir_separator_CXX=:
16165
16166           # Commands to make compiler produce verbose output that lists
16167           # what "hidden" libraries, object files and flags are used when
16168           # linking a shared library.
16169           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16170
16171         else
16172           # FIXME: insert proper C++ library support
16173           ld_shlibs_CXX=no
16174         fi
16175         ;;
16176     esac
16177     ;;
16178   osf4* | osf5*)
16179     case $cc_basename in
16180       KCC)
16181         # Kuck and Associates, Inc. (KAI) C++ Compiler
16182
16183         # KCC will only create a shared library if the output file
16184         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16185         # to its proper name (with version) after linking.
16186         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'
16187
16188         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16189         hardcode_libdir_separator_CXX=:
16190
16191         # Archives containing C++ object files must be created using
16192         # the KAI C++ compiler.
16193         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16194         ;;
16195       RCC)
16196         # Rational C++ 2.4.1
16197         # FIXME: insert proper C++ library support
16198         ld_shlibs_CXX=no
16199         ;;
16200       cxx)
16201         allow_undefined_flag_CXX=' -expect_unresolved \*'
16202         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'
16203         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16204           echo "-hidden">> $lib.exp~
16205           $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~
16206           $rm $lib.exp'
16207
16208         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16209         hardcode_libdir_separator_CXX=:
16210
16211         # Commands to make compiler produce verbose output that lists
16212         # what "hidden" libraries, object files and flags are used when
16213         # linking a shared library.
16214         #
16215         # There doesn't appear to be a way to prevent this compiler from
16216         # explicitly linking system object files so we need to strip them
16217         # from the output so that they don't get included in the library
16218         # dependencies.
16219         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'
16220         ;;
16221       *)
16222         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16223           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16224          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'
16225
16226           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16227           hardcode_libdir_separator_CXX=:
16228
16229           # Commands to make compiler produce verbose output that lists
16230           # what "hidden" libraries, object files and flags are used when
16231           # linking a shared library.
16232           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16233
16234         else
16235           # FIXME: insert proper C++ library support
16236           ld_shlibs_CXX=no
16237         fi
16238         ;;
16239     esac
16240     ;;
16241   psos*)
16242     # FIXME: insert proper C++ library support
16243     ld_shlibs_CXX=no
16244     ;;
16245   sco*)
16246     archive_cmds_need_lc_CXX=no
16247     case $cc_basename in
16248       CC)
16249         # FIXME: insert proper C++ library support
16250         ld_shlibs_CXX=no
16251         ;;
16252       *)
16253         # FIXME: insert proper C++ library support
16254         ld_shlibs_CXX=no
16255         ;;
16256     esac
16257     ;;
16258   sunos4*)
16259     case $cc_basename in
16260       CC)
16261         # Sun C++ 4.x
16262         # FIXME: insert proper C++ library support
16263         ld_shlibs_CXX=no
16264         ;;
16265       lcc)
16266         # Lucid
16267         # FIXME: insert proper C++ library support
16268         ld_shlibs_CXX=no
16269         ;;
16270       *)
16271         # FIXME: insert proper C++ library support
16272         ld_shlibs_CXX=no
16273         ;;
16274     esac
16275     ;;
16276   solaris*)
16277     case $cc_basename in
16278       CC)
16279         # Sun C++ 4.2, 5.x and Centerline C++
16280         no_undefined_flag_CXX=' -zdefs'
16281         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16282         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16283         $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'
16284
16285         hardcode_libdir_flag_spec_CXX='-R$libdir'
16286         hardcode_shlibpath_var_CXX=no
16287         case $host_os in
16288           solaris2.0-5 | solaris2.0-5.*) ;;
16289           *)
16290             # The C++ compiler is used as linker so we must use $wl
16291             # flag to pass the commands to the underlying system
16292             # linker.
16293             # Supported since Solaris 2.6 (maybe 2.5.1?)
16294             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16295             ;;
16296         esac
16297         link_all_deplibs_CXX=yes
16298
16299         # Commands to make compiler produce verbose output that lists
16300         # what "hidden" libraries, object files and flags are used when
16301         # linking a shared library.
16302         #
16303         # There doesn't appear to be a way to prevent this compiler from
16304         # explicitly linking system object files so we need to strip them
16305         # from the output so that they don't get included in the library
16306         # dependencies.
16307         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'
16308
16309         # Archives containing C++ object files must be created using
16310         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16311         # necessary to make sure instantiated templates are included
16312         # in the archive.
16313         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16314         ;;
16315       gcx)
16316         # Green Hills C++ Compiler
16317         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16318
16319         # The C++ compiler must be used to create the archive.
16320         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16321         ;;
16322       *)
16323         # GNU C++ compiler with Solaris linker
16324         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16325           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16326           if $CC --version | grep -v '^2\.7' > /dev/null; then
16327             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16328             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16329                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16330
16331             # Commands to make compiler produce verbose output that lists
16332             # what "hidden" libraries, object files and flags are used when
16333             # linking a shared library.
16334             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16335           else
16336             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16337             # platform.
16338             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16339             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16340                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16341
16342             # Commands to make compiler produce verbose output that lists
16343             # what "hidden" libraries, object files and flags are used when
16344             # linking a shared library.
16345             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16346           fi
16347
16348           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16349         fi
16350         ;;
16351     esac
16352     ;;
16353   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16354     archive_cmds_need_lc_CXX=no
16355     ;;
16356   tandem*)
16357     case $cc_basename in
16358       NCC)
16359         # NonStop-UX NCC 3.20
16360         # FIXME: insert proper C++ library support
16361         ld_shlibs_CXX=no
16362         ;;
16363       *)
16364         # FIXME: insert proper C++ library support
16365         ld_shlibs_CXX=no
16366         ;;
16367     esac
16368     ;;
16369   vxworks*)
16370     # FIXME: insert proper C++ library support
16371     ld_shlibs_CXX=no
16372     ;;
16373   *)
16374     # FIXME: insert proper C++ library support
16375     ld_shlibs_CXX=no
16376     ;;
16377 esac
16378 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16379 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16380 test "$ld_shlibs_CXX" = no && can_build_shared=no
16381
16382 GCC_CXX="$GXX"
16383 LD_CXX="$LD"
16384
16385
16386 cat > conftest.$ac_ext <<EOF
16387 class Foo
16388 {
16389 public:
16390   Foo (void) { a = 0; }
16391 private:
16392   int a;
16393 };
16394 EOF
16395
16396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16397   (eval $ac_compile) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; then
16401   # Parse the compiler output and extract the necessary
16402   # objects, libraries and library flags.
16403
16404   # Sentinel used to keep track of whether or not we are before
16405   # the conftest object file.
16406   pre_test_object_deps_done=no
16407
16408   # The `*' in the case matches for architectures that use `case' in
16409   # $output_verbose_cmd can trigger glob expansion during the loop
16410   # eval without this substitution.
16411   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16412
16413   for p in `eval $output_verbose_link_cmd`; do
16414     case $p in
16415
16416     -L* | -R* | -l*)
16417        # Some compilers place space between "-{L,R}" and the path.
16418        # Remove the space.
16419        if test $p = "-L" \
16420           || test $p = "-R"; then
16421          prev=$p
16422          continue
16423        else
16424          prev=
16425        fi
16426
16427        if test "$pre_test_object_deps_done" = no; then
16428          case $p in
16429          -L* | -R*)
16430            # Internal compiler library paths should come after those
16431            # provided the user.  The postdeps already come after the
16432            # user supplied libs so there is no need to process them.
16433            if test -z "$compiler_lib_search_path_CXX"; then
16434              compiler_lib_search_path_CXX="${prev}${p}"
16435            else
16436              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16437            fi
16438            ;;
16439          # The "-l" case would never come before the object being
16440          # linked, so don't bother handling this case.
16441          esac
16442        else
16443          if test -z "$postdeps_CXX"; then
16444            postdeps_CXX="${prev}${p}"
16445          else
16446            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16447          fi
16448        fi
16449        ;;
16450
16451     *.$objext)
16452        # This assumes that the test object file only shows up
16453        # once in the compiler output.
16454        if test "$p" = "conftest.$objext"; then
16455          pre_test_object_deps_done=yes
16456          continue
16457        fi
16458
16459        if test "$pre_test_object_deps_done" = no; then
16460          if test -z "$predep_objects_CXX"; then
16461            predep_objects_CXX="$p"
16462          else
16463            predep_objects_CXX="$predep_objects_CXX $p"
16464          fi
16465        else
16466          if test -z "$postdep_objects_CXX"; then
16467            postdep_objects_CXX="$p"
16468          else
16469            postdep_objects_CXX="$postdep_objects_CXX $p"
16470          fi
16471        fi
16472        ;;
16473
16474     *) ;; # Ignore the rest.
16475
16476     esac
16477   done
16478
16479   # Clean up.
16480   rm -f a.out a.exe
16481 else
16482   echo "libtool.m4: error: problem compiling CXX test program"
16483 fi
16484
16485 $rm -f confest.$objext
16486
16487 case " $postdeps_CXX " in
16488 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16489 esac
16490
16491 lt_prog_compiler_wl_CXX=
16492 lt_prog_compiler_pic_CXX=
16493 lt_prog_compiler_static_CXX=
16494
16495 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16497
16498   # C++ specific cases for pic, static, wl, etc.
16499   if test "$GXX" = yes; then
16500     lt_prog_compiler_wl_CXX='-Wl,'
16501     lt_prog_compiler_static_CXX='-static'
16502
16503     case $host_os in
16504     aix*)
16505       # All AIX code is PIC.
16506       if test "$host_cpu" = ia64; then
16507         # AIX 5 now supports IA64 processor
16508         lt_prog_compiler_static_CXX='-Bstatic'
16509       fi
16510       ;;
16511     amigaos*)
16512       # FIXME: we need at least 68020 code to build shared libraries, but
16513       # adding the `-m68020' flag to GCC prevents building anything better,
16514       # like `-m68040'.
16515       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16516       ;;
16517     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16518       # PIC is the default for these OSes.
16519       ;;
16520     mingw* | os2* | pw32*)
16521       # This hack is so that the source file can tell whether it is being
16522       # built for inclusion in a dll (and should export symbols for example).
16523       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16524       ;;
16525     darwin* | rhapsody*)
16526       # PIC is the default on this platform
16527       # Common symbols not allowed in MH_DYLIB files
16528       lt_prog_compiler_pic_CXX='-fno-common'
16529       ;;
16530     *djgpp*)
16531       # DJGPP does not support shared libraries at all
16532       lt_prog_compiler_pic_CXX=
16533       ;;
16534     sysv4*MP*)
16535       if test -d /usr/nec; then
16536         lt_prog_compiler_pic_CXX=-Kconform_pic
16537       fi
16538       ;;
16539     hpux*)
16540       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16541       # not for PA HP-UX.
16542       case "$host_cpu" in
16543       hppa*64*|ia64*)
16544         ;;
16545       *)
16546         lt_prog_compiler_pic_CXX='-fPIC'
16547         ;;
16548       esac
16549       ;;
16550     *)
16551       lt_prog_compiler_pic_CXX='-fPIC'
16552       ;;
16553     esac
16554   else
16555     case $host_os in
16556       aix4* | aix5*)
16557         # All AIX code is PIC.
16558         if test "$host_cpu" = ia64; then
16559           # AIX 5 now supports IA64 processor
16560           lt_prog_compiler_static_CXX='-Bstatic'
16561         else
16562           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16563         fi
16564         ;;
16565       chorus*)
16566         case $cc_basename in
16567         cxch68)
16568           # Green Hills C++ Compiler
16569           # _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"
16570           ;;
16571         esac
16572         ;;
16573        darwin*)
16574          # PIC is the default on this platform
16575          # Common symbols not allowed in MH_DYLIB files
16576          case "$cc_basename" in
16577            xlc*)
16578            lt_prog_compiler_pic_CXX='-qnocommon'
16579            lt_prog_compiler_wl_CXX='-Wl,'
16580            ;;
16581          esac
16582        ;;
16583       dgux*)
16584         case $cc_basename in
16585           ec++)
16586             lt_prog_compiler_pic_CXX='-KPIC'
16587             ;;
16588           ghcx)
16589             # Green Hills C++ Compiler
16590             lt_prog_compiler_pic_CXX='-pic'
16591             ;;
16592           *)
16593             ;;
16594         esac
16595         ;;
16596       freebsd* | kfreebsd*-gnu)
16597         # FreeBSD uses GNU C++
16598         ;;
16599       hpux9* | hpux10* | hpux11*)
16600         case $cc_basename in
16601           CC)
16602             lt_prog_compiler_wl_CXX='-Wl,'
16603             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16604             if test "$host_cpu" != ia64; then
16605               lt_prog_compiler_pic_CXX='+Z'
16606             fi
16607             ;;
16608           aCC)
16609             lt_prog_compiler_wl_CXX='-Wl,'
16610             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16611             case "$host_cpu" in
16612             hppa*64*|ia64*)
16613               # +Z the default
16614               ;;
16615             *)
16616               lt_prog_compiler_pic_CXX='+Z'
16617               ;;
16618             esac
16619             ;;
16620           *)
16621             ;;
16622         esac
16623         ;;
16624       irix5* | irix6* | nonstopux*)
16625         case $cc_basename in
16626           CC)
16627             lt_prog_compiler_wl_CXX='-Wl,'
16628             lt_prog_compiler_static_CXX='-non_shared'
16629             # CC pic flag -KPIC is the default.
16630             ;;
16631           *)
16632             ;;
16633         esac
16634         ;;
16635       linux*)
16636         case $cc_basename in
16637           KCC)
16638             # KAI C++ Compiler
16639             lt_prog_compiler_wl_CXX='--backend -Wl,'
16640             lt_prog_compiler_pic_CXX='-fPIC'
16641             ;;
16642           icpc)
16643             # Intel C++
16644             lt_prog_compiler_wl_CXX='-Wl,'
16645             lt_prog_compiler_pic_CXX='-KPIC'
16646             lt_prog_compiler_static_CXX='-static'
16647             ;;
16648           cxx)
16649             # Compaq C++
16650             # Make sure the PIC flag is empty.  It appears that all Alpha
16651             # Linux and Compaq Tru64 Unix objects are PIC.
16652             lt_prog_compiler_pic_CXX=
16653             lt_prog_compiler_static_CXX='-non_shared'
16654             ;;
16655           *)
16656             ;;
16657         esac
16658         ;;
16659       lynxos*)
16660         ;;
16661       m88k*)
16662         ;;
16663       mvs*)
16664         case $cc_basename in
16665           cxx)
16666             lt_prog_compiler_pic_CXX='-W c,exportall'
16667             ;;
16668           *)
16669             ;;
16670         esac
16671         ;;
16672       netbsd*)
16673         ;;
16674       osf3* | osf4* | osf5*)
16675         case $cc_basename in
16676           KCC)
16677             lt_prog_compiler_wl_CXX='--backend -Wl,'
16678             ;;
16679           RCC)
16680             # Rational C++ 2.4.1
16681             lt_prog_compiler_pic_CXX='-pic'
16682             ;;
16683           cxx)
16684             # Digital/Compaq C++
16685             lt_prog_compiler_wl_CXX='-Wl,'
16686             # Make sure the PIC flag is empty.  It appears that all Alpha
16687             # Linux and Compaq Tru64 Unix objects are PIC.
16688             lt_prog_compiler_pic_CXX=
16689             lt_prog_compiler_static_CXX='-non_shared'
16690             ;;
16691           *)
16692             ;;
16693         esac
16694         ;;
16695       psos*)
16696         ;;
16697       sco*)
16698         case $cc_basename in
16699           CC)
16700             lt_prog_compiler_pic_CXX='-fPIC'
16701             ;;
16702           *)
16703             ;;
16704         esac
16705         ;;
16706       solaris*)
16707         case $cc_basename in
16708           CC)
16709             # Sun C++ 4.2, 5.x and Centerline C++
16710             lt_prog_compiler_pic_CXX='-KPIC'
16711             lt_prog_compiler_static_CXX='-Bstatic'
16712             lt_prog_compiler_wl_CXX='-Qoption ld '
16713             ;;
16714           gcx)
16715             # Green Hills C++ Compiler
16716             lt_prog_compiler_pic_CXX='-PIC'
16717             ;;
16718           *)
16719             ;;
16720         esac
16721         ;;
16722       sunos4*)
16723         case $cc_basename in
16724           CC)
16725             # Sun C++ 4.x
16726             lt_prog_compiler_pic_CXX='-pic'
16727             lt_prog_compiler_static_CXX='-Bstatic'
16728             ;;
16729           lcc)
16730             # Lucid
16731             lt_prog_compiler_pic_CXX='-pic'
16732             ;;
16733           *)
16734             ;;
16735         esac
16736         ;;
16737       tandem*)
16738         case $cc_basename in
16739           NCC)
16740             # NonStop-UX NCC 3.20
16741             lt_prog_compiler_pic_CXX='-KPIC'
16742             ;;
16743           *)
16744             ;;
16745         esac
16746         ;;
16747       unixware*)
16748         ;;
16749       vxworks*)
16750         ;;
16751       *)
16752         lt_prog_compiler_can_build_shared_CXX=no
16753         ;;
16754     esac
16755   fi
16756
16757 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16758 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16759
16760 #
16761 # Check to make sure the PIC flag actually works.
16762 #
16763 if test -n "$lt_prog_compiler_pic_CXX"; then
16764
16765 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16766 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16767 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770   lt_prog_compiler_pic_works_CXX=no
16771   ac_outfile=conftest.$ac_objext
16772    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16773    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16774    # Insert the option either (1) after the last *FLAGS variable, or
16775    # (2) before a word containing "conftest.", or (3) at the end.
16776    # Note that $ac_compile itself does not contain backslashes and begins
16777    # with a dollar sign (not a hyphen), so the echo should work correctly.
16778    # The option is referenced via a variable to avoid confusing sed.
16779    lt_compile=`echo "$ac_compile" | $SED \
16780    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16781    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16782    -e 's:$: $lt_compiler_flag:'`
16783    (eval echo "\"\$as_me:16783: $lt_compile\"" >&5)
16784    (eval "$lt_compile" 2>conftest.err)
16785    ac_status=$?
16786    cat conftest.err >&5
16787    echo "$as_me:16787: \$? = $ac_status" >&5
16788    if (exit $ac_status) && test -s "$ac_outfile"; then
16789      # The compiler can only warn and ignore the option if not recognized
16790      # So say no if there are warnings
16791      if test ! -s conftest.err; then
16792        lt_prog_compiler_pic_works_CXX=yes
16793      fi
16794    fi
16795    $rm conftest*
16796
16797 fi
16798 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16799 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16800
16801 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16802     case $lt_prog_compiler_pic_CXX in
16803      "" | " "*) ;;
16804      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16805      esac
16806 else
16807     lt_prog_compiler_pic_CXX=
16808      lt_prog_compiler_can_build_shared_CXX=no
16809 fi
16810
16811 fi
16812 case "$host_os" in
16813   # For platforms which do not support PIC, -DPIC is meaningless:
16814   *djgpp*)
16815     lt_prog_compiler_pic_CXX=
16816     ;;
16817   *)
16818     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16819     ;;
16820 esac
16821
16822 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16824 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   lt_cv_prog_compiler_c_o_CXX=no
16828    $rm -r conftest 2>/dev/null
16829    mkdir conftest
16830    cd conftest
16831    mkdir out
16832    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16833
16834    lt_compiler_flag="-o out/conftest2.$ac_objext"
16835    # Insert the option either (1) after the last *FLAGS variable, or
16836    # (2) before a word containing "conftest.", or (3) at the end.
16837    # Note that $ac_compile itself does not contain backslashes and begins
16838    # with a dollar sign (not a hyphen), so the echo should work correctly.
16839    lt_compile=`echo "$ac_compile" | $SED \
16840    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16841    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842    -e 's:$: $lt_compiler_flag:'`
16843    (eval echo "\"\$as_me:16843: $lt_compile\"" >&5)
16844    (eval "$lt_compile" 2>out/conftest.err)
16845    ac_status=$?
16846    cat out/conftest.err >&5
16847    echo "$as_me:16847: \$? = $ac_status" >&5
16848    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16849    then
16850      # The compiler can only warn and ignore the option if not recognized
16851      # So say no if there are warnings
16852      if test ! -s out/conftest.err; then
16853        lt_cv_prog_compiler_c_o_CXX=yes
16854      fi
16855    fi
16856    chmod u+w .
16857    $rm conftest*
16858    # SGI C++ compiler will create directory out/ii_files/ for
16859    # template instantiation
16860    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16861    $rm out/* && rmdir out
16862    cd ..
16863    rmdir conftest
16864    $rm conftest*
16865
16866 fi
16867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16869
16870
16871 hard_links="nottested"
16872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16873   # do not overwrite the value of need_locks provided by the user
16874   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16876   hard_links=yes
16877   $rm conftest*
16878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879   touch conftest.a
16880   ln conftest.a conftest.b 2>&5 || hard_links=no
16881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16882   echo "$as_me:$LINENO: result: $hard_links" >&5
16883 echo "${ECHO_T}$hard_links" >&6
16884   if test "$hard_links" = no; then
16885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16887     need_locks=warn
16888   fi
16889 else
16890   need_locks=no
16891 fi
16892
16893 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16895
16896   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16897   case $host_os in
16898   aix4* | aix5*)
16899     # If we're using GNU nm, then we don't want the "-C" option.
16900     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16901     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16902       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'
16903     else
16904       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'
16905     fi
16906     ;;
16907   pw32*)
16908     export_symbols_cmds_CXX="$ltdll_cmds"
16909   ;;
16910   cygwin* | mingw*)
16911     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16912   ;;
16913   *)
16914     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16915   ;;
16916   esac
16917
16918 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16919 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16920 test "$ld_shlibs_CXX" = no && can_build_shared=no
16921
16922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16923 if test "$GCC" = yes; then
16924   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16925 fi
16926
16927 #
16928 # Do we need to explicitly link libc?
16929 #
16930 case "x$archive_cmds_need_lc_CXX" in
16931 x|xyes)
16932   # Assume -lc should be added
16933   archive_cmds_need_lc_CXX=yes
16934
16935   if test "$enable_shared" = yes && test "$GCC" = yes; then
16936     case $archive_cmds_CXX in
16937     *'~'*)
16938       # FIXME: we may have to deal with multi-command sequences.
16939       ;;
16940     '$CC '*)
16941       # Test whether the compiler implicitly links with -lc since on some
16942       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16943       # to ld, don't add -lc before -lgcc.
16944       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16945 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16946       $rm conftest*
16947       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16948
16949       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950   (eval $ac_compile) 2>&5
16951   ac_status=$?
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } 2>conftest.err; then
16954         soname=conftest
16955         lib=conftest
16956         libobjs=conftest.$ac_objext
16957         deplibs=
16958         wl=$lt_prog_compiler_wl_CXX
16959         compiler_flags=-v
16960         linker_flags=-v
16961         verstring=
16962         output_objdir=.
16963         libname=conftest
16964         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16965         allow_undefined_flag_CXX=
16966         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16967   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }
16971         then
16972           archive_cmds_need_lc_CXX=no
16973         else
16974           archive_cmds_need_lc_CXX=yes
16975         fi
16976         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16977       else
16978         cat conftest.err 1>&5
16979       fi
16980       $rm conftest*
16981       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16982 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16983       ;;
16984     esac
16985   fi
16986   ;;
16987 esac
16988
16989 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16991 library_names_spec=
16992 libname_spec='lib$name'
16993 soname_spec=
16994 shrext_cmds=".so"
16995 postinstall_cmds=
16996 postuninstall_cmds=
16997 finish_cmds=
16998 finish_eval=
16999 shlibpath_var=
17000 shlibpath_overrides_runpath=unknown
17001 version_type=none
17002 dynamic_linker="$host_os ld.so"
17003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17004 if test "$GCC" = yes; then
17005   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17007     # if the path contains ";" then we assume it to be the separator
17008     # otherwise default to the standard path separator (i.e. ":") - it is
17009     # assumed that no part of a normal pathname contains ";" but that should
17010     # okay in the real world where ";" in dirpaths is itself problematic.
17011     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17012   else
17013     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17014   fi
17015 else
17016   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17017 fi
17018 need_lib_prefix=unknown
17019 hardcode_into_libs=no
17020
17021 # when you set need_version to no, make sure it does not cause -set_version
17022 # flags to be left without arguments
17023 need_version=unknown
17024
17025 case $host_os in
17026 aix3*)
17027   version_type=linux
17028   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17029   shlibpath_var=LIBPATH
17030
17031   # AIX 3 has no versioning support, so we append a major version to the name.
17032   soname_spec='${libname}${release}${shared_ext}$major'
17033   ;;
17034
17035 aix4* | aix5*)
17036   version_type=linux
17037   need_lib_prefix=no
17038   need_version=no
17039   hardcode_into_libs=yes
17040   if test "$host_cpu" = ia64; then
17041     # AIX 5 supports IA64
17042     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17043     shlibpath_var=LD_LIBRARY_PATH
17044   else
17045     # With GCC up to 2.95.x, collect2 would create an import file
17046     # for dependence libraries.  The import file would start with
17047     # the line `#! .'.  This would cause the generated library to
17048     # depend on `.', always an invalid library.  This was fixed in
17049     # development snapshots of GCC prior to 3.0.
17050     case $host_os in
17051       aix4 | aix4.[01] | aix4.[01].*)
17052       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17053            echo ' yes '
17054            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17055         :
17056       else
17057         can_build_shared=no
17058       fi
17059       ;;
17060     esac
17061     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17062     # soname into executable. Probably we can add versioning support to
17063     # collect2, so additional links can be useful in future.
17064     if test "$aix_use_runtimelinking" = yes; then
17065       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17066       # instead of lib<name>.a to let people know that these are not
17067       # typical AIX shared libraries.
17068       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069     else
17070       # We preserve .a as extension for shared libraries through AIX4.2
17071       # and later when we are not doing run time linking.
17072       library_names_spec='${libname}${release}.a $libname.a'
17073       soname_spec='${libname}${release}${shared_ext}$major'
17074     fi
17075     shlibpath_var=LIBPATH
17076   fi
17077   ;;
17078
17079 amigaos*)
17080   library_names_spec='$libname.ixlibrary $libname.a'
17081   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17082   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'
17083   ;;
17084
17085 beos*)
17086   library_names_spec='${libname}${shared_ext}'
17087   dynamic_linker="$host_os ld.so"
17088   shlibpath_var=LIBRARY_PATH
17089   ;;
17090
17091 bsdi[45]*)
17092   version_type=linux
17093   need_version=no
17094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17095   soname_spec='${libname}${release}${shared_ext}$major'
17096   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17097   shlibpath_var=LD_LIBRARY_PATH
17098   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17099   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17100   # the default ld.so.conf also contains /usr/contrib/lib and
17101   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17102   # libtool to hard-code these into programs
17103   ;;
17104
17105 cygwin* | mingw* | pw32*)
17106   version_type=windows
17107   shrext_cmds=".dll"
17108   need_version=no
17109   need_lib_prefix=no
17110
17111   case $GCC,$host_os in
17112   yes,cygwin* | yes,mingw* | yes,pw32*)
17113     library_names_spec='$libname.dll.a'
17114     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17115     postinstall_cmds='base_file=`basename \${file}`~
17116       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17117       dldir=$destdir/`dirname \$dlpath`~
17118       test -d \$dldir || mkdir -p \$dldir~
17119       $install_prog $dir/$dlname \$dldir/$dlname'
17120     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17121       dlpath=$dir/\$dldll~
17122        $rm \$dlpath'
17123     shlibpath_overrides_runpath=yes
17124
17125     case $host_os in
17126     cygwin*)
17127       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17128       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17129       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17130       ;;
17131     mingw*)
17132       # MinGW DLLs use traditional 'lib' prefix
17133       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17134       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17135       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17136         # It is most probably a Windows format PATH printed by
17137         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17138         # path with ; separators, and with drive letters. We can handle the
17139         # drive letters (cygwin fileutils understands them), so leave them,
17140         # especially as we might pass files found there to a mingw objdump,
17141         # which wouldn't understand a cygwinified path. Ahh.
17142         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17143       else
17144         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17145       fi
17146       ;;
17147     pw32*)
17148       # pw32 DLLs use 'pw' prefix rather than 'lib'
17149       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17150       ;;
17151     esac
17152     ;;
17153
17154   *)
17155     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17156     ;;
17157   esac
17158   dynamic_linker='Win32 ld.exe'
17159   # FIXME: first we should search . and the directory the executable is in
17160   shlibpath_var=PATH
17161   ;;
17162
17163 darwin* | rhapsody*)
17164   dynamic_linker="$host_os dyld"
17165   version_type=darwin
17166   need_lib_prefix=no
17167   need_version=no
17168   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17169   soname_spec='${libname}${release}${major}$shared_ext'
17170   shlibpath_overrides_runpath=yes
17171   shlibpath_var=DYLD_LIBRARY_PATH
17172   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17173   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17174   if test "$GCC" = yes; then
17175     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"`
17176   else
17177     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17178   fi
17179   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17180   ;;
17181
17182 dgux*)
17183   version_type=linux
17184   need_lib_prefix=no
17185   need_version=no
17186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17187   soname_spec='${libname}${release}${shared_ext}$major'
17188   shlibpath_var=LD_LIBRARY_PATH
17189   ;;
17190
17191 freebsd1*)
17192   dynamic_linker=no
17193   ;;
17194
17195 kfreebsd*-gnu)
17196   version_type=linux
17197   need_lib_prefix=no
17198   need_version=no
17199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200   soname_spec='${libname}${release}${shared_ext}$major'
17201   shlibpath_var=LD_LIBRARY_PATH
17202   shlibpath_overrides_runpath=no
17203   hardcode_into_libs=yes
17204   dynamic_linker='GNU ld.so'
17205   ;;
17206
17207 freebsd*)
17208   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17209   version_type=freebsd-$objformat
17210   case $version_type in
17211     freebsd-elf*)
17212       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17213       need_version=no
17214       need_lib_prefix=no
17215       ;;
17216     freebsd-*)
17217       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17218       need_version=yes
17219       ;;
17220   esac
17221   shlibpath_var=LD_LIBRARY_PATH
17222   case $host_os in
17223   freebsd2*)
17224     shlibpath_overrides_runpath=yes
17225     ;;
17226   freebsd3.01* | freebsdelf3.01*)
17227     shlibpath_overrides_runpath=yes
17228     hardcode_into_libs=yes
17229     ;;
17230   *) # from 3.2 on
17231     shlibpath_overrides_runpath=no
17232     hardcode_into_libs=yes
17233     ;;
17234   esac
17235   ;;
17236
17237 gnu*)
17238   version_type=linux
17239   need_lib_prefix=no
17240   need_version=no
17241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17242   soname_spec='${libname}${release}${shared_ext}$major'
17243   shlibpath_var=LD_LIBRARY_PATH
17244   hardcode_into_libs=yes
17245   ;;
17246
17247 hpux9* | hpux10* | hpux11*)
17248   # Give a soname corresponding to the major version so that dld.sl refuses to
17249   # link against other versions.
17250   version_type=sunos
17251   need_lib_prefix=no
17252   need_version=no
17253   case "$host_cpu" in
17254   ia64*)
17255     shrext_cmds='.so'
17256     hardcode_into_libs=yes
17257     dynamic_linker="$host_os dld.so"
17258     shlibpath_var=LD_LIBRARY_PATH
17259     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261     soname_spec='${libname}${release}${shared_ext}$major'
17262     if test "X$HPUX_IA64_MODE" = X32; then
17263       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17264     else
17265       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17266     fi
17267     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17268     ;;
17269    hppa*64*)
17270      shrext_cmds='.sl'
17271      hardcode_into_libs=yes
17272      dynamic_linker="$host_os dld.sl"
17273      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17274      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276      soname_spec='${libname}${release}${shared_ext}$major'
17277      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17278      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17279      ;;
17280    *)
17281     shrext_cmds='.sl'
17282     dynamic_linker="$host_os dld.sl"
17283     shlibpath_var=SHLIB_PATH
17284     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286     soname_spec='${libname}${release}${shared_ext}$major'
17287     ;;
17288   esac
17289   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17290   postinstall_cmds='chmod 555 $lib'
17291   ;;
17292
17293 irix5* | irix6* | nonstopux*)
17294   case $host_os in
17295     nonstopux*) version_type=nonstopux ;;
17296     *)
17297         if test "$lt_cv_prog_gnu_ld" = yes; then
17298                 version_type=linux
17299         else
17300                 version_type=irix
17301         fi ;;
17302   esac
17303   need_lib_prefix=no
17304   need_version=no
17305   soname_spec='${libname}${release}${shared_ext}$major'
17306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17307   case $host_os in
17308   irix5* | nonstopux*)
17309     libsuff= shlibsuff=
17310     ;;
17311   *)
17312     case $LD in # libtool.m4 will add one of these switches to LD
17313     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17314       libsuff= shlibsuff= libmagic=32-bit;;
17315     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17316       libsuff=32 shlibsuff=N32 libmagic=N32;;
17317     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17318       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17319     *) libsuff= shlibsuff= libmagic=never-match;;
17320     esac
17321     ;;
17322   esac
17323   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17324   shlibpath_overrides_runpath=no
17325   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17326   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17327   hardcode_into_libs=yes
17328   ;;
17329
17330 # No shared lib support for Linux oldld, aout, or coff.
17331 linux*oldld* | linux*aout* | linux*coff*)
17332   dynamic_linker=no
17333   ;;
17334
17335 # This must be Linux ELF.
17336 linux*)
17337   version_type=linux
17338   need_lib_prefix=no
17339   need_version=no
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341   soname_spec='${libname}${release}${shared_ext}$major'
17342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17343   shlibpath_var=LD_LIBRARY_PATH
17344   shlibpath_overrides_runpath=no
17345   # This implies no fast_install, which is unacceptable.
17346   # Some rework will be needed to allow for fast_install
17347   # before this can be enabled.
17348   hardcode_into_libs=yes
17349
17350   # Append ld.so.conf contents to the search path
17351   if test -f /etc/ld.so.conf; then
17352     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17353     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17354   fi
17355
17356   # We used to test for /lib/ld.so.1 and disable shared libraries on
17357   # powerpc, because MkLinux only supported shared libraries with the
17358   # GNU dynamic linker.  Since this was broken with cross compilers,
17359   # most powerpc-linux boxes support dynamic linking these days and
17360   # people can always --disable-shared, the test was removed, and we
17361   # assume the GNU/Linux dynamic linker is in use.
17362   dynamic_linker='GNU/Linux ld.so'
17363   ;;
17364
17365 knetbsd*-gnu)
17366   version_type=linux
17367   need_lib_prefix=no
17368   need_version=no
17369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   shlibpath_var=LD_LIBRARY_PATH
17372   shlibpath_overrides_runpath=no
17373   hardcode_into_libs=yes
17374   dynamic_linker='GNU ld.so'
17375   ;;
17376
17377 netbsd*)
17378   version_type=sunos
17379   need_lib_prefix=no
17380   need_version=no
17381   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17383     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17384     dynamic_linker='NetBSD (a.out) ld.so'
17385   else
17386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17387     soname_spec='${libname}${release}${shared_ext}$major'
17388     dynamic_linker='NetBSD ld.elf_so'
17389   fi
17390   shlibpath_var=LD_LIBRARY_PATH
17391   shlibpath_overrides_runpath=yes
17392   hardcode_into_libs=yes
17393   ;;
17394
17395 newsos6)
17396   version_type=linux
17397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398   shlibpath_var=LD_LIBRARY_PATH
17399   shlibpath_overrides_runpath=yes
17400   ;;
17401
17402 nto-qnx*)
17403   version_type=linux
17404   need_lib_prefix=no
17405   need_version=no
17406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17407   soname_spec='${libname}${release}${shared_ext}$major'
17408   shlibpath_var=LD_LIBRARY_PATH
17409   shlibpath_overrides_runpath=yes
17410   ;;
17411
17412 openbsd*)
17413   version_type=sunos
17414   need_lib_prefix=no
17415   need_version=no
17416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17418   shlibpath_var=LD_LIBRARY_PATH
17419   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17420     case $host_os in
17421       openbsd2.[89] | openbsd2.[89].*)
17422         shlibpath_overrides_runpath=no
17423         ;;
17424       *)
17425         shlibpath_overrides_runpath=yes
17426         ;;
17427       esac
17428   else
17429     shlibpath_overrides_runpath=yes
17430   fi
17431   ;;
17432
17433 os2*)
17434   libname_spec='$name'
17435   shrext_cmds=".dll"
17436   need_lib_prefix=no
17437   library_names_spec='$libname${shared_ext} $libname.a'
17438   dynamic_linker='OS/2 ld.exe'
17439   shlibpath_var=LIBPATH
17440   ;;
17441
17442 osf3* | osf4* | osf5*)
17443   version_type=osf
17444   need_lib_prefix=no
17445   need_version=no
17446   soname_spec='${libname}${release}${shared_ext}$major'
17447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17448   shlibpath_var=LD_LIBRARY_PATH
17449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17451   ;;
17452
17453 sco3.2v5*)
17454   version_type=osf
17455   soname_spec='${libname}${release}${shared_ext}$major'
17456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457   shlibpath_var=LD_LIBRARY_PATH
17458   ;;
17459
17460 solaris*)
17461   version_type=linux
17462   need_lib_prefix=no
17463   need_version=no
17464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465   soname_spec='${libname}${release}${shared_ext}$major'
17466   shlibpath_var=LD_LIBRARY_PATH
17467   shlibpath_overrides_runpath=yes
17468   hardcode_into_libs=yes
17469   # ldd complains unless libraries are executable
17470   postinstall_cmds='chmod +x $lib'
17471   ;;
17472
17473 sunos4*)
17474   version_type=sunos
17475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17477   shlibpath_var=LD_LIBRARY_PATH
17478   shlibpath_overrides_runpath=yes
17479   if test "$with_gnu_ld" = yes; then
17480     need_lib_prefix=no
17481   fi
17482   need_version=yes
17483   ;;
17484
17485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17486   version_type=linux
17487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17488   soname_spec='${libname}${release}${shared_ext}$major'
17489   shlibpath_var=LD_LIBRARY_PATH
17490   case $host_vendor in
17491     sni)
17492       shlibpath_overrides_runpath=no
17493       need_lib_prefix=no
17494       export_dynamic_flag_spec='${wl}-Blargedynsym'
17495       runpath_var=LD_RUN_PATH
17496       ;;
17497     siemens)
17498       need_lib_prefix=no
17499       ;;
17500     motorola)
17501       need_lib_prefix=no
17502       need_version=no
17503       shlibpath_overrides_runpath=no
17504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17505       ;;
17506   esac
17507   ;;
17508
17509 sysv4*MP*)
17510   if test -d /usr/nec ;then
17511     version_type=linux
17512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17513     soname_spec='$libname${shared_ext}.$major'
17514     shlibpath_var=LD_LIBRARY_PATH
17515   fi
17516   ;;
17517
17518 uts4*)
17519   version_type=linux
17520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521   soname_spec='${libname}${release}${shared_ext}$major'
17522   shlibpath_var=LD_LIBRARY_PATH
17523   ;;
17524
17525 *)
17526   dynamic_linker=no
17527   ;;
17528 esac
17529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17530 echo "${ECHO_T}$dynamic_linker" >&6
17531 test "$dynamic_linker" = no && can_build_shared=no
17532
17533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17535 hardcode_action_CXX=
17536 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17537    test -n "$runpath_var_CXX" || \
17538    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17539
17540   # We can hardcode non-existant directories.
17541   if test "$hardcode_direct_CXX" != no &&
17542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17543      # have to relink, otherwise we might link with an installed library
17544      # when we should be linking with a yet-to-be-installed one
17545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17546      test "$hardcode_minus_L_CXX" != no; then
17547     # Linking always hardcodes the temporary library directory.
17548     hardcode_action_CXX=relink
17549   else
17550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17551     hardcode_action_CXX=immediate
17552   fi
17553 else
17554   # We cannot hardcode anything, or else we can only hardcode existing
17555   # directories.
17556   hardcode_action_CXX=unsupported
17557 fi
17558 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17559 echo "${ECHO_T}$hardcode_action_CXX" >&6
17560
17561 if test "$hardcode_action_CXX" = relink; then
17562   # Fast installation is not supported
17563   enable_fast_install=no
17564 elif test "$shlibpath_overrides_runpath" = yes ||
17565      test "$enable_shared" = no; then
17566   # Fast installation is not necessary
17567   enable_fast_install=needless
17568 fi
17569
17570 striplib=
17571 old_striplib=
17572 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17575   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17576   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17577   echo "$as_me:$LINENO: result: yes" >&5
17578 echo "${ECHO_T}yes" >&6
17579 else
17580 # FIXME - insert some real tests, host_os isn't really good enough
17581   case $host_os in
17582    darwin*)
17583        if test -n "$STRIP" ; then
17584          striplib="$STRIP -x"
17585          echo "$as_me:$LINENO: result: yes" >&5
17586 echo "${ECHO_T}yes" >&6
17587        else
17588   echo "$as_me:$LINENO: result: no" >&5
17589 echo "${ECHO_T}no" >&6
17590 fi
17591        ;;
17592    *)
17593   echo "$as_me:$LINENO: result: no" >&5
17594 echo "${ECHO_T}no" >&6
17595     ;;
17596   esac
17597 fi
17598
17599 if test "x$enable_dlopen" != xyes; then
17600   enable_dlopen=unknown
17601   enable_dlopen_self=unknown
17602   enable_dlopen_self_static=unknown
17603 else
17604   lt_cv_dlopen=no
17605   lt_cv_dlopen_libs=
17606
17607   case $host_os in
17608   beos*)
17609     lt_cv_dlopen="load_add_on"
17610     lt_cv_dlopen_libs=
17611     lt_cv_dlopen_self=yes
17612     ;;
17613
17614   mingw* | pw32*)
17615     lt_cv_dlopen="LoadLibrary"
17616     lt_cv_dlopen_libs=
17617    ;;
17618
17619   cygwin*)
17620     lt_cv_dlopen="dlopen"
17621     lt_cv_dlopen_libs=
17622    ;;
17623
17624   darwin*)
17625   # if libdl is installed we need to link against it
17626     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   ac_check_lib_save_LIBS=$LIBS
17632 LIBS="-ldl  $LIBS"
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639
17640 /* Override any gcc2 internal prototype to avoid an error.  */
17641 #ifdef __cplusplus
17642 extern "C"
17643 #endif
17644 /* We use char because int might match the return type of a gcc2
17645    builtin and then its argument prototype would still apply.  */
17646 char dlopen ();
17647 int
17648 main ()
17649 {
17650 dlopen ();
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17657   (eval $ac_link) 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_cxx_werror_flag"
17665                          || test ! -s conftest.err'
17666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667   (eval $ac_try) 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); }; } &&
17671          { ac_try='test -s conftest$ac_exeext'
17672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673   (eval $ac_try) 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; }; then
17677   ac_cv_lib_dl_dlopen=yes
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682 ac_cv_lib_dl_dlopen=no
17683 fi
17684 rm -f conftest.err conftest.$ac_objext \
17685       conftest$ac_exeext conftest.$ac_ext
17686 LIBS=$ac_check_lib_save_LIBS
17687 fi
17688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17690 if test $ac_cv_lib_dl_dlopen = yes; then
17691   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17692 else
17693
17694     lt_cv_dlopen="dyld"
17695     lt_cv_dlopen_libs=
17696     lt_cv_dlopen_self=yes
17697
17698 fi
17699
17700    ;;
17701
17702   *)
17703     echo "$as_me:$LINENO: checking for shl_load" >&5
17704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17705 if test "${ac_cv_func_shl_load+set}" = set; then
17706   echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708   cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17716 #define shl_load innocuous_shl_load
17717
17718 /* System header to define __stub macros and hopefully few prototypes,
17719     which can conflict with char shl_load (); below.
17720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17721     <limits.h> exists even on freestanding compilers.  */
17722
17723 #ifdef __STDC__
17724 # include <limits.h>
17725 #else
17726 # include <assert.h>
17727 #endif
17728
17729 #undef shl_load
17730
17731 /* Override any gcc2 internal prototype to avoid an error.  */
17732 #ifdef __cplusplus
17733 extern "C"
17734 {
17735 #endif
17736 /* We use char because int might match the return type of a gcc2
17737    builtin and then its argument prototype would still apply.  */
17738 char shl_load ();
17739 /* The GNU C library defines this for functions which it implements
17740     to always fail with ENOSYS.  Some functions are actually named
17741     something starting with __ and the normal name is an alias.  */
17742 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17743 choke me
17744 #else
17745 char (*f) () = shl_load;
17746 #endif
17747 #ifdef __cplusplus
17748 }
17749 #endif
17750
17751 int
17752 main ()
17753 {
17754 return f != shl_load;
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761   (eval $ac_link) 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } &&
17768          { ac_try='test -z "$ac_cxx_werror_flag"
17769                          || test ! -s conftest.err'
17770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771   (eval $ac_try) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; } &&
17775          { ac_try='test -s conftest$ac_exeext'
17776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777   (eval $ac_try) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }; }; then
17781   ac_cv_func_shl_load=yes
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786 ac_cv_func_shl_load=no
17787 fi
17788 rm -f conftest.err conftest.$ac_objext \
17789       conftest$ac_exeext conftest.$ac_ext
17790 fi
17791 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17793 if test $ac_cv_func_shl_load = yes; then
17794   lt_cv_dlopen="shl_load"
17795 else
17796   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17799   echo $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801   ac_check_lib_save_LIBS=$LIBS
17802 LIBS="-ldld  $LIBS"
17803 cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h.  */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h.  */
17809
17810 /* Override any gcc2 internal prototype to avoid an error.  */
17811 #ifdef __cplusplus
17812 extern "C"
17813 #endif
17814 /* We use char because int might match the return type of a gcc2
17815    builtin and then its argument prototype would still apply.  */
17816 char shl_load ();
17817 int
17818 main ()
17819 {
17820 shl_load ();
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17827   (eval $ac_link) 2>conftest.er1
17828   ac_status=$?
17829   grep -v '^ *+' conftest.er1 >conftest.err
17830   rm -f conftest.er1
17831   cat conftest.err >&5
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); } &&
17834          { ac_try='test -z "$ac_cxx_werror_flag"
17835                          || test ! -s conftest.err'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; } &&
17841          { ac_try='test -s conftest$ac_exeext'
17842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843   (eval $ac_try) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; }; then
17847   ac_cv_lib_dld_shl_load=yes
17848 else
17849   echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 ac_cv_lib_dld_shl_load=no
17853 fi
17854 rm -f conftest.err conftest.$ac_objext \
17855       conftest$ac_exeext conftest.$ac_ext
17856 LIBS=$ac_check_lib_save_LIBS
17857 fi
17858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17860 if test $ac_cv_lib_dld_shl_load = yes; then
17861   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17862 else
17863   echo "$as_me:$LINENO: checking for dlopen" >&5
17864 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17865 if test "${ac_cv_func_dlopen+set}" = set; then
17866   echo $ECHO_N "(cached) $ECHO_C" >&6
17867 else
17868   cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17876 #define dlopen innocuous_dlopen
17877
17878 /* System header to define __stub macros and hopefully few prototypes,
17879     which can conflict with char dlopen (); below.
17880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881     <limits.h> exists even on freestanding compilers.  */
17882
17883 #ifdef __STDC__
17884 # include <limits.h>
17885 #else
17886 # include <assert.h>
17887 #endif
17888
17889 #undef dlopen
17890
17891 /* Override any gcc2 internal prototype to avoid an error.  */
17892 #ifdef __cplusplus
17893 extern "C"
17894 {
17895 #endif
17896 /* We use char because int might match the return type of a gcc2
17897    builtin and then its argument prototype would still apply.  */
17898 char dlopen ();
17899 /* The GNU C library defines this for functions which it implements
17900     to always fail with ENOSYS.  Some functions are actually named
17901     something starting with __ and the normal name is an alias.  */
17902 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17903 choke me
17904 #else
17905 char (*f) () = dlopen;
17906 #endif
17907 #ifdef __cplusplus
17908 }
17909 #endif
17910
17911 int
17912 main ()
17913 {
17914 return f != dlopen;
17915   ;
17916   return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17921   (eval $ac_link) 2>conftest.er1
17922   ac_status=$?
17923   grep -v '^ *+' conftest.er1 >conftest.err
17924   rm -f conftest.er1
17925   cat conftest.err >&5
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); } &&
17928          { ac_try='test -z "$ac_cxx_werror_flag"
17929                          || test ! -s conftest.err'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; } &&
17935          { ac_try='test -s conftest$ac_exeext'
17936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937   (eval $ac_try) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); }; }; then
17941   ac_cv_func_dlopen=yes
17942 else
17943   echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ac_cv_func_dlopen=no
17947 fi
17948 rm -f conftest.err conftest.$ac_objext \
17949       conftest$ac_exeext conftest.$ac_ext
17950 fi
17951 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17953 if test $ac_cv_func_dlopen = yes; then
17954   lt_cv_dlopen="dlopen"
17955 else
17956   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961   ac_check_lib_save_LIBS=$LIBS
17962 LIBS="-ldl  $LIBS"
17963 cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h.  */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h.  */
17969
17970 /* Override any gcc2 internal prototype to avoid an error.  */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 /* We use char because int might match the return type of a gcc2
17975    builtin and then its argument prototype would still apply.  */
17976 char dlopen ();
17977 int
17978 main ()
17979 {
17980 dlopen ();
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987   (eval $ac_link) 2>conftest.er1
17988   ac_status=$?
17989   grep -v '^ *+' conftest.er1 >conftest.err
17990   rm -f conftest.er1
17991   cat conftest.err >&5
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); } &&
17994          { ac_try='test -z "$ac_cxx_werror_flag"
17995                          || test ! -s conftest.err'
17996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997   (eval $ac_try) 2>&5
17998   ac_status=$?
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); }; } &&
18001          { ac_try='test -s conftest$ac_exeext'
18002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003   (eval $ac_try) 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; }; then
18007   ac_cv_lib_dl_dlopen=yes
18008 else
18009   echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 ac_cv_lib_dl_dlopen=no
18013 fi
18014 rm -f conftest.err conftest.$ac_objext \
18015       conftest$ac_exeext conftest.$ac_ext
18016 LIBS=$ac_check_lib_save_LIBS
18017 fi
18018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18020 if test $ac_cv_lib_dl_dlopen = yes; then
18021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18022 else
18023   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18024 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18026   echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028   ac_check_lib_save_LIBS=$LIBS
18029 LIBS="-lsvld  $LIBS"
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h.  */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h.  */
18036
18037 /* Override any gcc2 internal prototype to avoid an error.  */
18038 #ifdef __cplusplus
18039 extern "C"
18040 #endif
18041 /* We use char because int might match the return type of a gcc2
18042    builtin and then its argument prototype would still apply.  */
18043 char dlopen ();
18044 int
18045 main ()
18046 {
18047 dlopen ();
18048   ;
18049   return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext conftest$ac_exeext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18054   (eval $ac_link) 2>conftest.er1
18055   ac_status=$?
18056   grep -v '^ *+' conftest.er1 >conftest.err
18057   rm -f conftest.er1
18058   cat conftest.err >&5
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); } &&
18061          { ac_try='test -z "$ac_cxx_werror_flag"
18062                          || test ! -s conftest.err'
18063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064   (eval $ac_try) 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); }; } &&
18068          { ac_try='test -s conftest$ac_exeext'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; }; then
18074   ac_cv_lib_svld_dlopen=yes
18075 else
18076   echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18078
18079 ac_cv_lib_svld_dlopen=no
18080 fi
18081 rm -f conftest.err conftest.$ac_objext \
18082       conftest$ac_exeext conftest.$ac_ext
18083 LIBS=$ac_check_lib_save_LIBS
18084 fi
18085 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18087 if test $ac_cv_lib_svld_dlopen = yes; then
18088   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18089 else
18090   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18093   echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095   ac_check_lib_save_LIBS=$LIBS
18096 LIBS="-ldld  $LIBS"
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h.  */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h.  */
18103
18104 /* Override any gcc2 internal prototype to avoid an error.  */
18105 #ifdef __cplusplus
18106 extern "C"
18107 #endif
18108 /* We use char because int might match the return type of a gcc2
18109    builtin and then its argument prototype would still apply.  */
18110 char dld_link ();
18111 int
18112 main ()
18113 {
18114 dld_link ();
18115   ;
18116   return 0;
18117 }
18118 _ACEOF
18119 rm -f conftest.$ac_objext conftest$ac_exeext
18120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121   (eval $ac_link) 2>conftest.er1
18122   ac_status=$?
18123   grep -v '^ *+' conftest.er1 >conftest.err
18124   rm -f conftest.er1
18125   cat conftest.err >&5
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); } &&
18128          { ac_try='test -z "$ac_cxx_werror_flag"
18129                          || test ! -s conftest.err'
18130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131   (eval $ac_try) 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); }; } &&
18135          { ac_try='test -s conftest$ac_exeext'
18136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137   (eval $ac_try) 2>&5
18138   ac_status=$?
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); }; }; then
18141   ac_cv_lib_dld_dld_link=yes
18142 else
18143   echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146 ac_cv_lib_dld_dld_link=no
18147 fi
18148 rm -f conftest.err conftest.$ac_objext \
18149       conftest$ac_exeext conftest.$ac_ext
18150 LIBS=$ac_check_lib_save_LIBS
18151 fi
18152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18154 if test $ac_cv_lib_dld_dld_link = yes; then
18155   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18156 fi
18157
18158
18159 fi
18160
18161
18162 fi
18163
18164
18165 fi
18166
18167
18168 fi
18169
18170
18171 fi
18172
18173     ;;
18174   esac
18175
18176   if test "x$lt_cv_dlopen" != xno; then
18177     enable_dlopen=yes
18178   else
18179     enable_dlopen=no
18180   fi
18181
18182   case $lt_cv_dlopen in
18183   dlopen)
18184     save_CPPFLAGS="$CPPFLAGS"
18185     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18186
18187     save_LDFLAGS="$LDFLAGS"
18188     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18189
18190     save_LIBS="$LIBS"
18191     LIBS="$lt_cv_dlopen_libs $LIBS"
18192
18193     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18195 if test "${lt_cv_dlopen_self+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198           if test "$cross_compiling" = yes; then :
18199   lt_cv_dlopen_self=cross
18200 else
18201   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18202   lt_status=$lt_dlunknown
18203   cat > conftest.$ac_ext <<EOF
18204 #line 18204 "configure"
18205 #include "confdefs.h"
18206
18207 #if HAVE_DLFCN_H
18208 #include <dlfcn.h>
18209 #endif
18210
18211 #include <stdio.h>
18212
18213 #ifdef RTLD_GLOBAL
18214 #  define LT_DLGLOBAL           RTLD_GLOBAL
18215 #else
18216 #  ifdef DL_GLOBAL
18217 #    define LT_DLGLOBAL         DL_GLOBAL
18218 #  else
18219 #    define LT_DLGLOBAL         0
18220 #  endif
18221 #endif
18222
18223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18224    find out it does not work in some platform. */
18225 #ifndef LT_DLLAZY_OR_NOW
18226 #  ifdef RTLD_LAZY
18227 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18228 #  else
18229 #    ifdef DL_LAZY
18230 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18231 #    else
18232 #      ifdef RTLD_NOW
18233 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18234 #      else
18235 #        ifdef DL_NOW
18236 #          define LT_DLLAZY_OR_NOW      DL_NOW
18237 #        else
18238 #          define LT_DLLAZY_OR_NOW      0
18239 #        endif
18240 #      endif
18241 #    endif
18242 #  endif
18243 #endif
18244
18245 #ifdef __cplusplus
18246 extern "C" void exit (int);
18247 #endif
18248
18249 void fnord() { int i=42;}
18250 int main ()
18251 {
18252   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18253   int status = $lt_dlunknown;
18254
18255   if (self)
18256     {
18257       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18258       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18259       /* dlclose (self); */
18260     }
18261
18262     exit (status);
18263 }
18264 EOF
18265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266   (eval $ac_link) 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18270     (./conftest; exit; ) 2>/dev/null
18271     lt_status=$?
18272     case x$lt_status in
18273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18275       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18276     esac
18277   else :
18278     # compilation failed
18279     lt_cv_dlopen_self=no
18280   fi
18281 fi
18282 rm -fr conftest*
18283
18284
18285 fi
18286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18288
18289     if test "x$lt_cv_dlopen_self" = xyes; then
18290       LDFLAGS="$LDFLAGS $link_static_flag"
18291       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18293 if test "${lt_cv_dlopen_self_static+set}" = set; then
18294   echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296           if test "$cross_compiling" = yes; then :
18297   lt_cv_dlopen_self_static=cross
18298 else
18299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18300   lt_status=$lt_dlunknown
18301   cat > conftest.$ac_ext <<EOF
18302 #line 18302 "configure"
18303 #include "confdefs.h"
18304
18305 #if HAVE_DLFCN_H
18306 #include <dlfcn.h>
18307 #endif
18308
18309 #include <stdio.h>
18310
18311 #ifdef RTLD_GLOBAL
18312 #  define LT_DLGLOBAL           RTLD_GLOBAL
18313 #else
18314 #  ifdef DL_GLOBAL
18315 #    define LT_DLGLOBAL         DL_GLOBAL
18316 #  else
18317 #    define LT_DLGLOBAL         0
18318 #  endif
18319 #endif
18320
18321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18322    find out it does not work in some platform. */
18323 #ifndef LT_DLLAZY_OR_NOW
18324 #  ifdef RTLD_LAZY
18325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18326 #  else
18327 #    ifdef DL_LAZY
18328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18329 #    else
18330 #      ifdef RTLD_NOW
18331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18332 #      else
18333 #        ifdef DL_NOW
18334 #          define LT_DLLAZY_OR_NOW      DL_NOW
18335 #        else
18336 #          define LT_DLLAZY_OR_NOW      0
18337 #        endif
18338 #      endif
18339 #    endif
18340 #  endif
18341 #endif
18342
18343 #ifdef __cplusplus
18344 extern "C" void exit (int);
18345 #endif
18346
18347 void fnord() { int i=42;}
18348 int main ()
18349 {
18350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18351   int status = $lt_dlunknown;
18352
18353   if (self)
18354     {
18355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18357       /* dlclose (self); */
18358     }
18359
18360     exit (status);
18361 }
18362 EOF
18363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364   (eval $ac_link) 2>&5
18365   ac_status=$?
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18368     (./conftest; exit; ) 2>/dev/null
18369     lt_status=$?
18370     case x$lt_status in
18371       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18372       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18373       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18374     esac
18375   else :
18376     # compilation failed
18377     lt_cv_dlopen_self_static=no
18378   fi
18379 fi
18380 rm -fr conftest*
18381
18382
18383 fi
18384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18386     fi
18387
18388     CPPFLAGS="$save_CPPFLAGS"
18389     LDFLAGS="$save_LDFLAGS"
18390     LIBS="$save_LIBS"
18391     ;;
18392   esac
18393
18394   case $lt_cv_dlopen_self in
18395   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18396   *) enable_dlopen_self=unknown ;;
18397   esac
18398
18399   case $lt_cv_dlopen_self_static in
18400   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18401   *) enable_dlopen_self_static=unknown ;;
18402   esac
18403 fi
18404
18405
18406 # The else clause should only fire when bootstrapping the
18407 # libtool distribution, otherwise you forgot to ship ltmain.sh
18408 # with your package, and you will get complaints that there are
18409 # no rules to generate ltmain.sh.
18410 if test -f "$ltmain"; then
18411   # See if we are running on zsh, and set the options which allow our commands through
18412   # without removal of \ escapes.
18413   if test -n "${ZSH_VERSION+set}" ; then
18414     setopt NO_GLOB_SUBST
18415   fi
18416   # Now quote all the things that may contain metacharacters while being
18417   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18418   # variables and quote the copies for generation of the libtool script.
18419   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18420     SED SHELL STRIP \
18421     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18422     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18423     deplibs_check_method reload_flag reload_cmds need_locks \
18424     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18425     lt_cv_sys_global_symbol_to_c_name_address \
18426     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18427     old_postinstall_cmds old_postuninstall_cmds \
18428     compiler_CXX \
18429     CC_CXX \
18430     LD_CXX \
18431     lt_prog_compiler_wl_CXX \
18432     lt_prog_compiler_pic_CXX \
18433     lt_prog_compiler_static_CXX \
18434     lt_prog_compiler_no_builtin_flag_CXX \
18435     export_dynamic_flag_spec_CXX \
18436     thread_safe_flag_spec_CXX \
18437     whole_archive_flag_spec_CXX \
18438     enable_shared_with_static_runtimes_CXX \
18439     old_archive_cmds_CXX \
18440     old_archive_from_new_cmds_CXX \
18441     predep_objects_CXX \
18442     postdep_objects_CXX \
18443     predeps_CXX \
18444     postdeps_CXX \
18445     compiler_lib_search_path_CXX \
18446     archive_cmds_CXX \
18447     archive_expsym_cmds_CXX \
18448     postinstall_cmds_CXX \
18449     postuninstall_cmds_CXX \
18450     old_archive_from_expsyms_cmds_CXX \
18451     allow_undefined_flag_CXX \
18452     no_undefined_flag_CXX \
18453     export_symbols_cmds_CXX \
18454     hardcode_libdir_flag_spec_CXX \
18455     hardcode_libdir_flag_spec_ld_CXX \
18456     hardcode_libdir_separator_CXX \
18457     hardcode_automatic_CXX \
18458     module_cmds_CXX \
18459     module_expsym_cmds_CXX \
18460     lt_cv_prog_compiler_c_o_CXX \
18461     exclude_expsyms_CXX \
18462     include_expsyms_CXX; do
18463
18464     case $var in
18465     old_archive_cmds_CXX | \
18466     old_archive_from_new_cmds_CXX | \
18467     archive_cmds_CXX | \
18468     archive_expsym_cmds_CXX | \
18469     module_cmds_CXX | \
18470     module_expsym_cmds_CXX | \
18471     old_archive_from_expsyms_cmds_CXX | \
18472     export_symbols_cmds_CXX | \
18473     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18474     postinstall_cmds | postuninstall_cmds | \
18475     old_postinstall_cmds | old_postuninstall_cmds | \
18476     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18477       # Double-quote double-evaled strings.
18478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18479       ;;
18480     *)
18481       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18482       ;;
18483     esac
18484   done
18485
18486   case $lt_echo in
18487   *'\$0 --fallback-echo"')
18488     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18489     ;;
18490   esac
18491
18492 cfgfile="$ofile"
18493
18494   cat <<__EOF__ >> "$cfgfile"
18495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18496
18497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18498
18499 # Shell to use when invoking shell scripts.
18500 SHELL=$lt_SHELL
18501
18502 # Whether or not to build shared libraries.
18503 build_libtool_libs=$enable_shared
18504
18505 # Whether or not to build static libraries.
18506 build_old_libs=$enable_static
18507
18508 # Whether or not to add -lc for building shared libraries.
18509 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18510
18511 # Whether or not to disallow shared libs when runtime libs are static
18512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18513
18514 # Whether or not to optimize for fast installation.
18515 fast_install=$enable_fast_install
18516
18517 # The host system.
18518 host_alias=$host_alias
18519 host=$host
18520
18521 # An echo program that does not interpret backslashes.
18522 echo=$lt_echo
18523
18524 # The archiver.
18525 AR=$lt_AR
18526 AR_FLAGS=$lt_AR_FLAGS
18527
18528 # A C compiler.
18529 LTCC=$lt_LTCC
18530
18531 # A language-specific compiler.
18532 CC=$lt_compiler_CXX
18533
18534 # Is the compiler the GNU C compiler?
18535 with_gcc=$GCC_CXX
18536
18537 # An ERE matcher.
18538 EGREP=$lt_EGREP
18539
18540 # The linker used to build libraries.
18541 LD=$lt_LD_CXX
18542
18543 # Whether we need hard or soft links.
18544 LN_S=$lt_LN_S
18545
18546 # A BSD-compatible nm program.
18547 NM=$lt_NM
18548
18549 # A symbol stripping program
18550 STRIP=$lt_STRIP
18551
18552 # Used to examine libraries when file_magic_cmd begins "file"
18553 MAGIC_CMD=$MAGIC_CMD
18554
18555 # Used on cygwin: DLL creation program.
18556 DLLTOOL="$DLLTOOL"
18557
18558 # Used on cygwin: object dumper.
18559 OBJDUMP="$OBJDUMP"
18560
18561 # Used on cygwin: assembler.
18562 AS="$AS"
18563
18564 # The name of the directory that contains temporary libtool files.
18565 objdir=$objdir
18566
18567 # How to create reloadable object files.
18568 reload_flag=$lt_reload_flag
18569 reload_cmds=$lt_reload_cmds
18570
18571 # How to pass a linker flag through the compiler.
18572 wl=$lt_lt_prog_compiler_wl_CXX
18573
18574 # Object file suffix (normally "o").
18575 objext="$ac_objext"
18576
18577 # Old archive suffix (normally "a").
18578 libext="$libext"
18579
18580 # Shared library suffix (normally ".so").
18581 shrext_cmds='$shrext_cmds'
18582
18583 # Executable file suffix (normally "").
18584 exeext="$exeext"
18585
18586 # Additional compiler flags for building library objects.
18587 pic_flag=$lt_lt_prog_compiler_pic_CXX
18588 pic_mode=$pic_mode
18589
18590 # What is the maximum length of a command?
18591 max_cmd_len=$lt_cv_sys_max_cmd_len
18592
18593 # Does compiler simultaneously support -c and -o options?
18594 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18595
18596 # Must we lock files when doing compilation ?
18597 need_locks=$lt_need_locks
18598
18599 # Do we need the lib prefix for modules?
18600 need_lib_prefix=$need_lib_prefix
18601
18602 # Do we need a version for libraries?
18603 need_version=$need_version
18604
18605 # Whether dlopen is supported.
18606 dlopen_support=$enable_dlopen
18607
18608 # Whether dlopen of programs is supported.
18609 dlopen_self=$enable_dlopen_self
18610
18611 # Whether dlopen of statically linked programs is supported.
18612 dlopen_self_static=$enable_dlopen_self_static
18613
18614 # Compiler flag to prevent dynamic linking.
18615 link_static_flag=$lt_lt_prog_compiler_static_CXX
18616
18617 # Compiler flag to turn off builtin functions.
18618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18619
18620 # Compiler flag to allow reflexive dlopens.
18621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18622
18623 # Compiler flag to generate shared objects directly from archives.
18624 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18625
18626 # Compiler flag to generate thread-safe objects.
18627 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18628
18629 # Library versioning type.
18630 version_type=$version_type
18631
18632 # Format of library name prefix.
18633 libname_spec=$lt_libname_spec
18634
18635 # List of archive names.  First name is the real one, the rest are links.
18636 # The last name is the one that the linker finds with -lNAME.
18637 library_names_spec=$lt_library_names_spec
18638
18639 # The coded name of the library, if different from the real name.
18640 soname_spec=$lt_soname_spec
18641
18642 # Commands used to build and install an old-style archive.
18643 RANLIB=$lt_RANLIB
18644 old_archive_cmds=$lt_old_archive_cmds_CXX
18645 old_postinstall_cmds=$lt_old_postinstall_cmds
18646 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18647
18648 # Create an old-style archive from a shared archive.
18649 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18650
18651 # Create a temporary old-style archive to link instead of a shared archive.
18652 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18653
18654 # Commands used to build and install a shared archive.
18655 archive_cmds=$lt_archive_cmds_CXX
18656 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18657 postinstall_cmds=$lt_postinstall_cmds
18658 postuninstall_cmds=$lt_postuninstall_cmds
18659
18660 # Commands used to build a loadable module (assumed same as above if empty)
18661 module_cmds=$lt_module_cmds_CXX
18662 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18663
18664 # Commands to strip libraries.
18665 old_striplib=$lt_old_striplib
18666 striplib=$lt_striplib
18667
18668 # Dependencies to place before the objects being linked to create a
18669 # shared library.
18670 predep_objects=$lt_predep_objects_CXX
18671
18672 # Dependencies to place after the objects being linked to create a
18673 # shared library.
18674 postdep_objects=$lt_postdep_objects_CXX
18675
18676 # Dependencies to place before the objects being linked to create a
18677 # shared library.
18678 predeps=$lt_predeps_CXX
18679
18680 # Dependencies to place after the objects being linked to create a
18681 # shared library.
18682 postdeps=$lt_postdeps_CXX
18683
18684 # The library search path used internally by the compiler when linking
18685 # a shared library.
18686 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18687
18688 # Method to check whether dependent libraries are shared objects.
18689 deplibs_check_method=$lt_deplibs_check_method
18690
18691 # Command to use when deplibs_check_method == file_magic.
18692 file_magic_cmd=$lt_file_magic_cmd
18693
18694 # Flag that allows shared libraries with undefined symbols to be built.
18695 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18696
18697 # Flag that forces no undefined symbols.
18698 no_undefined_flag=$lt_no_undefined_flag_CXX
18699
18700 # Commands used to finish a libtool library installation in a directory.
18701 finish_cmds=$lt_finish_cmds
18702
18703 # Same as above, but a single script fragment to be evaled but not shown.
18704 finish_eval=$lt_finish_eval
18705
18706 # Take the output of nm and produce a listing of raw symbols and C names.
18707 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18708
18709 # Transform the output of nm in a proper C declaration
18710 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18711
18712 # Transform the output of nm in a C name address pair
18713 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18714
18715 # This is the shared library runtime path variable.
18716 runpath_var=$runpath_var
18717
18718 # This is the shared library path variable.
18719 shlibpath_var=$shlibpath_var
18720
18721 # Is shlibpath searched before the hard-coded library search path?
18722 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18723
18724 # How to hardcode a shared library path into an executable.
18725 hardcode_action=$hardcode_action_CXX
18726
18727 # Whether we should hardcode library paths into libraries.
18728 hardcode_into_libs=$hardcode_into_libs
18729
18730 # Flag to hardcode \$libdir into a binary during linking.
18731 # This must work even if \$libdir does not exist.
18732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18733
18734 # If ld is used when linking, flag to hardcode \$libdir into
18735 # a binary during linking. This must work even if \$libdir does
18736 # not exist.
18737 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18738
18739 # Whether we need a single -rpath flag with a separated argument.
18740 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18741
18742 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18743 # resulting binary.
18744 hardcode_direct=$hardcode_direct_CXX
18745
18746 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18747 # resulting binary.
18748 hardcode_minus_L=$hardcode_minus_L_CXX
18749
18750 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18751 # the resulting binary.
18752 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18753
18754 # Set to yes if building a shared library automatically hardcodes DIR into the library
18755 # and all subsequent libraries and executables linked against it.
18756 hardcode_automatic=$hardcode_automatic_CXX
18757
18758 # Variables whose values should be saved in libtool wrapper scripts and
18759 # restored at relink time.
18760 variables_saved_for_relink="$variables_saved_for_relink"
18761
18762 # Whether libtool must link a program against all its dependency libraries.
18763 link_all_deplibs=$link_all_deplibs_CXX
18764
18765 # Compile-time system search path for libraries
18766 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18767
18768 # Run-time system search path for libraries
18769 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18770
18771 # Fix the shell variable \$srcfile for the compiler.
18772 fix_srcfile_path="$fix_srcfile_path_CXX"
18773
18774 # Set to yes if exported symbols are required.
18775 always_export_symbols=$always_export_symbols_CXX
18776
18777 # The commands to list exported symbols.
18778 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18779
18780 # The commands to extract the exported symbol list from a shared archive.
18781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18782
18783 # Symbols that should not be listed in the preloaded symbols.
18784 exclude_expsyms=$lt_exclude_expsyms_CXX
18785
18786 # Symbols that must always be exported.
18787 include_expsyms=$lt_include_expsyms_CXX
18788
18789 # ### END LIBTOOL TAG CONFIG: $tagname
18790
18791 __EOF__
18792
18793
18794 else
18795   # If there is no Makefile yet, we rely on a make rule to execute
18796   # `config.status --recheck' to rerun these tests and create the
18797   # libtool script then.
18798   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18799   if test -f "$ltmain_in"; then
18800     test -f Makefile && make "$ltmain"
18801   fi
18802 fi
18803
18804
18805 ac_ext=c
18806 ac_cpp='$CPP $CPPFLAGS'
18807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18810
18811 CC=$lt_save_CC
18812 LDCXX=$LD
18813 LD=$lt_save_LD
18814 GCC=$lt_save_GCC
18815 with_gnu_ldcxx=$with_gnu_ld
18816 with_gnu_ld=$lt_save_with_gnu_ld
18817 lt_cv_path_LDCXX=$lt_cv_path_LD
18818 lt_cv_path_LD=$lt_save_path_LD
18819 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18820 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18821
18822         else
18823           tagname=""
18824         fi
18825         ;;
18826
18827       F77)
18828         if test -n "$F77" && test "X$F77" != "Xno"; then
18829
18830 ac_ext=f
18831 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18832 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18834
18835
18836 archive_cmds_need_lc_F77=no
18837 allow_undefined_flag_F77=
18838 always_export_symbols_F77=no
18839 archive_expsym_cmds_F77=
18840 export_dynamic_flag_spec_F77=
18841 hardcode_direct_F77=no
18842 hardcode_libdir_flag_spec_F77=
18843 hardcode_libdir_flag_spec_ld_F77=
18844 hardcode_libdir_separator_F77=
18845 hardcode_minus_L_F77=no
18846 hardcode_automatic_F77=no
18847 module_cmds_F77=
18848 module_expsym_cmds_F77=
18849 link_all_deplibs_F77=unknown
18850 old_archive_cmds_F77=$old_archive_cmds
18851 no_undefined_flag_F77=
18852 whole_archive_flag_spec_F77=
18853 enable_shared_with_static_runtimes_F77=no
18854
18855 # Source file extension for f77 test sources.
18856 ac_ext=f
18857
18858 # Object file extension for compiled f77 test sources.
18859 objext=o
18860 objext_F77=$objext
18861
18862 # Code to be used in simple compile tests
18863 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18864
18865 # Code to be used in simple link tests
18866 lt_simple_link_test_code="      program t\n      end\n"
18867
18868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18869
18870 # If no C compiler was specified, use CC.
18871 LTCC=${LTCC-"$CC"}
18872
18873 # Allow CC to be a program name with arguments.
18874 compiler=$CC
18875
18876
18877 # Allow CC to be a program name with arguments.
18878 lt_save_CC="$CC"
18879 CC=${F77-"f77"}
18880 compiler=$CC
18881 compiler_F77=$CC
18882 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18883
18884 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18885 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18886 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18887 echo "${ECHO_T}$can_build_shared" >&6
18888
18889 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18890 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18891 test "$can_build_shared" = "no" && enable_shared=no
18892
18893 # On AIX, shared libraries and static libraries use the same namespace, and
18894 # are all built from PIC.
18895 case "$host_os" in
18896 aix3*)
18897   test "$enable_shared" = yes && enable_static=no
18898   if test -n "$RANLIB"; then
18899     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18900     postinstall_cmds='$RANLIB $lib'
18901   fi
18902   ;;
18903 aix4* | aix5*)
18904   test "$enable_shared" = yes && enable_static=no
18905   ;;
18906 esac
18907 echo "$as_me:$LINENO: result: $enable_shared" >&5
18908 echo "${ECHO_T}$enable_shared" >&6
18909
18910 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18911 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18912 # Make sure either enable_shared or enable_static is yes.
18913 test "$enable_shared" = yes || enable_static=yes
18914 echo "$as_me:$LINENO: result: $enable_static" >&5
18915 echo "${ECHO_T}$enable_static" >&6
18916
18917 test "$ld_shlibs_F77" = no && can_build_shared=no
18918
18919 GCC_F77="$G77"
18920 LD_F77="$LD"
18921
18922 lt_prog_compiler_wl_F77=
18923 lt_prog_compiler_pic_F77=
18924 lt_prog_compiler_static_F77=
18925
18926 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18928
18929   if test "$GCC" = yes; then
18930     lt_prog_compiler_wl_F77='-Wl,'
18931     lt_prog_compiler_static_F77='-static'
18932
18933     case $host_os in
18934       aix*)
18935       # All AIX code is PIC.
18936       if test "$host_cpu" = ia64; then
18937         # AIX 5 now supports IA64 processor
18938         lt_prog_compiler_static_F77='-Bstatic'
18939       fi
18940       ;;
18941
18942     amigaos*)
18943       # FIXME: we need at least 68020 code to build shared libraries, but
18944       # adding the `-m68020' flag to GCC prevents building anything better,
18945       # like `-m68040'.
18946       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18947       ;;
18948
18949     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18950       # PIC is the default for these OSes.
18951       ;;
18952
18953     mingw* | pw32* | os2*)
18954       # This hack is so that the source file can tell whether it is being
18955       # built for inclusion in a dll (and should export symbols for example).
18956       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18957       ;;
18958
18959     darwin* | rhapsody*)
18960       # PIC is the default on this platform
18961       # Common symbols not allowed in MH_DYLIB files
18962       lt_prog_compiler_pic_F77='-fno-common'
18963       ;;
18964
18965     msdosdjgpp*)
18966       # Just because we use GCC doesn't mean we suddenly get shared libraries
18967       # on systems that don't support them.
18968       lt_prog_compiler_can_build_shared_F77=no
18969       enable_shared=no
18970       ;;
18971
18972     sysv4*MP*)
18973       if test -d /usr/nec; then
18974         lt_prog_compiler_pic_F77=-Kconform_pic
18975       fi
18976       ;;
18977
18978     hpux*)
18979       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18980       # not for PA HP-UX.
18981       case "$host_cpu" in
18982       hppa*64*|ia64*)
18983         # +Z the default
18984         ;;
18985       *)
18986         lt_prog_compiler_pic_F77='-fPIC'
18987         ;;
18988       esac
18989       ;;
18990
18991     *)
18992       lt_prog_compiler_pic_F77='-fPIC'
18993       ;;
18994     esac
18995   else
18996     # PORTME Check for flag to pass linker flags through the system compiler.
18997     case $host_os in
18998     aix*)
18999       lt_prog_compiler_wl_F77='-Wl,'
19000       if test "$host_cpu" = ia64; then
19001         # AIX 5 now supports IA64 processor
19002         lt_prog_compiler_static_F77='-Bstatic'
19003       else
19004         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19005       fi
19006       ;;
19007       darwin*)
19008         # PIC is the default on this platform
19009         # Common symbols not allowed in MH_DYLIB files
19010        case "$cc_basename" in
19011          xlc*)
19012          lt_prog_compiler_pic_F77='-qnocommon'
19013          lt_prog_compiler_wl_F77='-Wl,'
19014          ;;
19015        esac
19016        ;;
19017
19018     mingw* | pw32* | os2*)
19019       # This hack is so that the source file can tell whether it is being
19020       # built for inclusion in a dll (and should export symbols for example).
19021       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19022       ;;
19023
19024     hpux9* | hpux10* | hpux11*)
19025       lt_prog_compiler_wl_F77='-Wl,'
19026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19027       # not for PA HP-UX.
19028       case "$host_cpu" in
19029       hppa*64*|ia64*)
19030         # +Z the default
19031         ;;
19032       *)
19033         lt_prog_compiler_pic_F77='+Z'
19034         ;;
19035       esac
19036       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19037       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19038       ;;
19039
19040     irix5* | irix6* | nonstopux*)
19041       lt_prog_compiler_wl_F77='-Wl,'
19042       # PIC (with -KPIC) is the default.
19043       lt_prog_compiler_static_F77='-non_shared'
19044       ;;
19045
19046     newsos6)
19047       lt_prog_compiler_pic_F77='-KPIC'
19048       lt_prog_compiler_static_F77='-Bstatic'
19049       ;;
19050
19051     linux*)
19052       case $CC in
19053       icc* | ecc*)
19054         lt_prog_compiler_wl_F77='-Wl,'
19055         lt_prog_compiler_pic_F77='-KPIC'
19056         lt_prog_compiler_static_F77='-static'
19057         ;;
19058       ccc*)
19059         lt_prog_compiler_wl_F77='-Wl,'
19060         # All Alpha code is PIC.
19061         lt_prog_compiler_static_F77='-non_shared'
19062         ;;
19063       esac
19064       ;;
19065
19066     osf3* | osf4* | osf5*)
19067       lt_prog_compiler_wl_F77='-Wl,'
19068       # All OSF/1 code is PIC.
19069       lt_prog_compiler_static_F77='-non_shared'
19070       ;;
19071
19072     sco3.2v5*)
19073       lt_prog_compiler_pic_F77='-Kpic'
19074       lt_prog_compiler_static_F77='-dn'
19075       ;;
19076
19077     solaris*)
19078       lt_prog_compiler_wl_F77='-Wl,'
19079       lt_prog_compiler_pic_F77='-KPIC'
19080       lt_prog_compiler_static_F77='-Bstatic'
19081       ;;
19082
19083     sunos4*)
19084       lt_prog_compiler_wl_F77='-Qoption ld '
19085       lt_prog_compiler_pic_F77='-PIC'
19086       lt_prog_compiler_static_F77='-Bstatic'
19087       ;;
19088
19089     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19090       lt_prog_compiler_wl_F77='-Wl,'
19091       lt_prog_compiler_pic_F77='-KPIC'
19092       lt_prog_compiler_static_F77='-Bstatic'
19093       ;;
19094
19095     sysv4*MP*)
19096       if test -d /usr/nec ;then
19097         lt_prog_compiler_pic_F77='-Kconform_pic'
19098         lt_prog_compiler_static_F77='-Bstatic'
19099       fi
19100       ;;
19101
19102     uts4*)
19103       lt_prog_compiler_pic_F77='-pic'
19104       lt_prog_compiler_static_F77='-Bstatic'
19105       ;;
19106
19107     *)
19108       lt_prog_compiler_can_build_shared_F77=no
19109       ;;
19110     esac
19111   fi
19112
19113 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19114 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19115
19116 #
19117 # Check to make sure the PIC flag actually works.
19118 #
19119 if test -n "$lt_prog_compiler_pic_F77"; then
19120
19121 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19123 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19124   echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126   lt_prog_compiler_pic_works_F77=no
19127   ac_outfile=conftest.$ac_objext
19128    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19129    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19130    # Insert the option either (1) after the last *FLAGS variable, or
19131    # (2) before a word containing "conftest.", or (3) at the end.
19132    # Note that $ac_compile itself does not contain backslashes and begins
19133    # with a dollar sign (not a hyphen), so the echo should work correctly.
19134    # The option is referenced via a variable to avoid confusing sed.
19135    lt_compile=`echo "$ac_compile" | $SED \
19136    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19138    -e 's:$: $lt_compiler_flag:'`
19139    (eval echo "\"\$as_me:19139: $lt_compile\"" >&5)
19140    (eval "$lt_compile" 2>conftest.err)
19141    ac_status=$?
19142    cat conftest.err >&5
19143    echo "$as_me:19143: \$? = $ac_status" >&5
19144    if (exit $ac_status) && test -s "$ac_outfile"; then
19145      # The compiler can only warn and ignore the option if not recognized
19146      # So say no if there are warnings
19147      if test ! -s conftest.err; then
19148        lt_prog_compiler_pic_works_F77=yes
19149      fi
19150    fi
19151    $rm conftest*
19152
19153 fi
19154 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19155 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19156
19157 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19158     case $lt_prog_compiler_pic_F77 in
19159      "" | " "*) ;;
19160      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19161      esac
19162 else
19163     lt_prog_compiler_pic_F77=
19164      lt_prog_compiler_can_build_shared_F77=no
19165 fi
19166
19167 fi
19168 case "$host_os" in
19169   # For platforms which do not support PIC, -DPIC is meaningless:
19170   *djgpp*)
19171     lt_prog_compiler_pic_F77=
19172     ;;
19173   *)
19174     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19175     ;;
19176 esac
19177
19178 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19179 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19180 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19181   echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183   lt_cv_prog_compiler_c_o_F77=no
19184    $rm -r conftest 2>/dev/null
19185    mkdir conftest
19186    cd conftest
19187    mkdir out
19188    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19189
19190    lt_compiler_flag="-o out/conftest2.$ac_objext"
19191    # Insert the option either (1) after the last *FLAGS variable, or
19192    # (2) before a word containing "conftest.", or (3) at the end.
19193    # Note that $ac_compile itself does not contain backslashes and begins
19194    # with a dollar sign (not a hyphen), so the echo should work correctly.
19195    lt_compile=`echo "$ac_compile" | $SED \
19196    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19197    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19198    -e 's:$: $lt_compiler_flag:'`
19199    (eval echo "\"\$as_me:19199: $lt_compile\"" >&5)
19200    (eval "$lt_compile" 2>out/conftest.err)
19201    ac_status=$?
19202    cat out/conftest.err >&5
19203    echo "$as_me:19203: \$? = $ac_status" >&5
19204    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19205    then
19206      # The compiler can only warn and ignore the option if not recognized
19207      # So say no if there are warnings
19208      if test ! -s out/conftest.err; then
19209        lt_cv_prog_compiler_c_o_F77=yes
19210      fi
19211    fi
19212    chmod u+w .
19213    $rm conftest*
19214    # SGI C++ compiler will create directory out/ii_files/ for
19215    # template instantiation
19216    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19217    $rm out/* && rmdir out
19218    cd ..
19219    rmdir conftest
19220    $rm conftest*
19221
19222 fi
19223 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19224 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19225
19226
19227 hard_links="nottested"
19228 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19229   # do not overwrite the value of need_locks provided by the user
19230   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19231 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19232   hard_links=yes
19233   $rm conftest*
19234   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19235   touch conftest.a
19236   ln conftest.a conftest.b 2>&5 || hard_links=no
19237   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19238   echo "$as_me:$LINENO: result: $hard_links" >&5
19239 echo "${ECHO_T}$hard_links" >&6
19240   if test "$hard_links" = no; then
19241     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19242 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19243     need_locks=warn
19244   fi
19245 else
19246   need_locks=no
19247 fi
19248
19249 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19250 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19251
19252   runpath_var=
19253   allow_undefined_flag_F77=
19254   enable_shared_with_static_runtimes_F77=no
19255   archive_cmds_F77=
19256   archive_expsym_cmds_F77=
19257   old_archive_From_new_cmds_F77=
19258   old_archive_from_expsyms_cmds_F77=
19259   export_dynamic_flag_spec_F77=
19260   whole_archive_flag_spec_F77=
19261   thread_safe_flag_spec_F77=
19262   hardcode_libdir_flag_spec_F77=
19263   hardcode_libdir_flag_spec_ld_F77=
19264   hardcode_libdir_separator_F77=
19265   hardcode_direct_F77=no
19266   hardcode_minus_L_F77=no
19267   hardcode_shlibpath_var_F77=unsupported
19268   link_all_deplibs_F77=unknown
19269   hardcode_automatic_F77=no
19270   module_cmds_F77=
19271   module_expsym_cmds_F77=
19272   always_export_symbols_F77=no
19273   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19274   # include_expsyms should be a list of space-separated symbols to be *always*
19275   # included in the symbol list
19276   include_expsyms_F77=
19277   # exclude_expsyms can be an extended regexp of symbols to exclude
19278   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19279   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19280   # as well as any symbol that contains `d'.
19281   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19282   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19283   # platforms (ab)use it in PIC code, but their linkers get confused if
19284   # the symbol is explicitly referenced.  Since portable code cannot
19285   # rely on this symbol name, it's probably fine to never include it in
19286   # preloaded symbol tables.
19287   extract_expsyms_cmds=
19288
19289   case $host_os in
19290   cygwin* | mingw* | pw32*)
19291     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19292     # When not using gcc, we currently assume that we are using
19293     # Microsoft Visual C++.
19294     if test "$GCC" != yes; then
19295       with_gnu_ld=no
19296     fi
19297     ;;
19298   openbsd*)
19299     with_gnu_ld=no
19300     ;;
19301   esac
19302
19303   ld_shlibs_F77=yes
19304   if test "$with_gnu_ld" = yes; then
19305     # If archive_cmds runs LD, not CC, wlarc should be empty
19306     wlarc='${wl}'
19307
19308     # See if GNU ld supports shared libraries.
19309     case $host_os in
19310     aix3* | aix4* | aix5*)
19311       # On AIX/PPC, the GNU linker is very broken
19312       if test "$host_cpu" != ia64; then
19313         ld_shlibs_F77=no
19314         cat <<EOF 1>&2
19315
19316 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19317 *** to be unable to reliably create shared libraries on AIX.
19318 *** Therefore, libtool is disabling shared libraries support.  If you
19319 *** really care for shared libraries, you may want to modify your PATH
19320 *** so that a non-GNU linker is found, and then restart.
19321
19322 EOF
19323       fi
19324       ;;
19325
19326     amigaos*)
19327       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)'
19328       hardcode_libdir_flag_spec_F77='-L$libdir'
19329       hardcode_minus_L_F77=yes
19330
19331       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19332       # that the semantics of dynamic libraries on AmigaOS, at least up
19333       # to version 4, is to share data among multiple programs linked
19334       # with the same dynamic library.  Since this doesn't match the
19335       # behavior of shared libraries on other platforms, we can't use
19336       # them.
19337       ld_shlibs_F77=no
19338       ;;
19339
19340     beos*)
19341       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19342         allow_undefined_flag_F77=unsupported
19343         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19344         # support --undefined.  This deserves some investigation.  FIXME
19345         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346       else
19347         ld_shlibs_F77=no
19348       fi
19349       ;;
19350
19351     cygwin* | mingw* | pw32*)
19352       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19353       # as there is no search path for DLLs.
19354       hardcode_libdir_flag_spec_F77='-L$libdir'
19355       allow_undefined_flag_F77=unsupported
19356       always_export_symbols_F77=no
19357       enable_shared_with_static_runtimes_F77=yes
19358       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19359
19360       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19361         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19362         # If the export-symbols file already is a .def file (1st line
19363         # is EXPORTS), use it as is; otherwise, prepend...
19364         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19365           cp $export_symbols $output_objdir/$soname.def;
19366         else
19367           echo EXPORTS > $output_objdir/$soname.def;
19368           cat $export_symbols >> $output_objdir/$soname.def;
19369         fi~
19370         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19371       else
19372         ld_shlibs=no
19373       fi
19374       ;;
19375
19376     netbsd*)
19377       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19378         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19379         wlarc=
19380       else
19381         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19382         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19383       fi
19384       ;;
19385
19386     solaris* | sysv5*)
19387       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19388         ld_shlibs_F77=no
19389         cat <<EOF 1>&2
19390
19391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19392 *** create shared libraries on Solaris systems.  Therefore, libtool
19393 *** is disabling shared libraries support.  We urge you to upgrade GNU
19394 *** binutils to release 2.9.1 or newer.  Another option is to modify
19395 *** your PATH or compiler configuration so that the native linker is
19396 *** used, and then restart.
19397
19398 EOF
19399       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19400         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19401         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19402       else
19403         ld_shlibs_F77=no
19404       fi
19405       ;;
19406
19407     sunos4*)
19408       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19409       wlarc=
19410       hardcode_direct_F77=yes
19411       hardcode_shlibpath_var_F77=no
19412       ;;
19413
19414   linux*)
19415     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19416         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19417         archive_cmds_F77="$tmp_archive_cmds"
19418       supports_anon_versioning=no
19419       case `$LD -v 2>/dev/null` in
19420         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19421         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19422         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19423         *\ 2.11.*) ;; # other 2.11 versions
19424         *) supports_anon_versioning=yes ;;
19425       esac
19426       if test $supports_anon_versioning = yes; then
19427         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19428 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19429 $echo "local: *; };" >> $output_objdir/$libname.ver~
19430         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19431       else
19432         archive_expsym_cmds_F77="$tmp_archive_cmds"
19433       fi
19434     else
19435       ld_shlibs_F77=no
19436     fi
19437     ;;
19438
19439     *)
19440       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19441         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19442         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19443       else
19444         ld_shlibs_F77=no
19445       fi
19446       ;;
19447     esac
19448
19449     if test "$ld_shlibs_F77" = yes; then
19450       runpath_var=LD_RUN_PATH
19451       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19452       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19453       # ancient GNU ld didn't support --whole-archive et. al.
19454       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19455         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19456       else
19457         whole_archive_flag_spec_F77=
19458       fi
19459     fi
19460   else
19461     # PORTME fill in a description of your system's linker (not GNU ld)
19462     case $host_os in
19463     aix3*)
19464       allow_undefined_flag_F77=unsupported
19465       always_export_symbols_F77=yes
19466       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'
19467       # Note: this linker hardcodes the directories in LIBPATH if there
19468       # are no directories specified by -L.
19469       hardcode_minus_L_F77=yes
19470       if test "$GCC" = yes && test -z "$link_static_flag"; then
19471         # Neither direct hardcoding nor static linking is supported with a
19472         # broken collect2.
19473         hardcode_direct_F77=unsupported
19474       fi
19475       ;;
19476
19477     aix4* | aix5*)
19478       if test "$host_cpu" = ia64; then
19479         # On IA64, the linker does run time linking by default, so we don't
19480         # have to do anything special.
19481         aix_use_runtimelinking=no
19482         exp_sym_flag='-Bexport'
19483         no_entry_flag=""
19484       else
19485         # If we're using GNU nm, then we don't want the "-C" option.
19486         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19487         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19488           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'
19489         else
19490           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'
19491         fi
19492         aix_use_runtimelinking=no
19493
19494         # Test if we are trying to use run time linking or normal
19495         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19496         # need to do runtime linking.
19497         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19498           for ld_flag in $LDFLAGS; do
19499           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19500             aix_use_runtimelinking=yes
19501             break
19502           fi
19503           done
19504         esac
19505
19506         exp_sym_flag='-bexport'
19507         no_entry_flag='-bnoentry'
19508       fi
19509
19510       # When large executables or shared objects are built, AIX ld can
19511       # have problems creating the table of contents.  If linking a library
19512       # or program results in "error TOC overflow" add -mminimal-toc to
19513       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19514       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19515
19516       archive_cmds_F77=''
19517       hardcode_direct_F77=yes
19518       hardcode_libdir_separator_F77=':'
19519       link_all_deplibs_F77=yes
19520
19521       if test "$GCC" = yes; then
19522         case $host_os in aix4.012|aix4.012.*)
19523         # We only want to do this on AIX 4.2 and lower, the check
19524         # below for broken collect2 doesn't work under 4.3+
19525           collect2name=`${CC} -print-prog-name=collect2`
19526           if test -f "$collect2name" && \
19527            strings "$collect2name" | grep resolve_lib_name >/dev/null
19528           then
19529           # We have reworked collect2
19530           hardcode_direct_F77=yes
19531           else
19532           # We have old collect2
19533           hardcode_direct_F77=unsupported
19534           # It fails to find uninstalled libraries when the uninstalled
19535           # path is not listed in the libpath.  Setting hardcode_minus_L
19536           # to unsupported forces relinking
19537           hardcode_minus_L_F77=yes
19538           hardcode_libdir_flag_spec_F77='-L$libdir'
19539           hardcode_libdir_separator_F77=
19540           fi
19541         esac
19542         shared_flag='-shared'
19543       else
19544         # not using gcc
19545         if test "$host_cpu" = ia64; then
19546         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19547         # chokes on -Wl,-G. The following line is correct:
19548           shared_flag='-G'
19549         else
19550         if test "$aix_use_runtimelinking" = yes; then
19551             shared_flag='${wl}-G'
19552           else
19553             shared_flag='${wl}-bM:SRE'
19554         fi
19555         fi
19556       fi
19557
19558       # It seems that -bexpall does not export symbols beginning with
19559       # underscore (_), so it is better to generate a list of symbols to export.
19560       always_export_symbols_F77=yes
19561       if test "$aix_use_runtimelinking" = yes; then
19562         # Warning - without using the other runtime loading flags (-brtl),
19563         # -berok will link without error, but may produce a broken library.
19564         allow_undefined_flag_F77='-berok'
19565        # Determine the default libpath from the value encoded in an empty executable.
19566        cat >conftest.$ac_ext <<_ACEOF
19567       program main
19568
19569       end
19570 _ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19573   (eval $ac_link) 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -z "$ac_f77_werror_flag"
19581                          || test ! -s conftest.err'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest$ac_exeext'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; }; then
19593
19594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19595 }'`
19596 # Check for a 64-bit object if we didn't find anything.
19597 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; }
19598 }'`; fi
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 fi
19604 rm -f conftest.err conftest.$ac_objext \
19605       conftest$ac_exeext conftest.$ac_ext
19606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19607
19608        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19609         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"
19610        else
19611         if test "$host_cpu" = ia64; then
19612           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19613           allow_undefined_flag_F77="-z nodefs"
19614           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"
19615         else
19616          # Determine the default libpath from the value encoded in an empty executable.
19617          cat >conftest.$ac_ext <<_ACEOF
19618       program main
19619
19620       end
19621 _ACEOF
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19624   (eval $ac_link) 2>conftest.er1
19625   ac_status=$?
19626   grep -v '^ *+' conftest.er1 >conftest.err
19627   rm -f conftest.er1
19628   cat conftest.err >&5
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); } &&
19631          { ac_try='test -z "$ac_f77_werror_flag"
19632                          || test ! -s conftest.err'
19633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634   (eval $ac_try) 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; } &&
19638          { ac_try='test -s conftest$ac_exeext'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; }; then
19644
19645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19646 }'`
19647 # Check for a 64-bit object if we didn't find anything.
19648 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; }
19649 }'`; fi
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 fi
19655 rm -f conftest.err conftest.$ac_objext \
19656       conftest$ac_exeext conftest.$ac_ext
19657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19658
19659          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19660           # Warning - without using the other run time loading flags,
19661           # -berok will link without error, but may produce a broken library.
19662           no_undefined_flag_F77=' ${wl}-bernotok'
19663           allow_undefined_flag_F77=' ${wl}-berok'
19664           # -bexpall does not export symbols beginning with underscore (_)
19665           always_export_symbols_F77=yes
19666           # Exported symbols can be pulled into shared objects from archives
19667           whole_archive_flag_spec_F77=' '
19668           archive_cmds_need_lc_F77=yes
19669           # This is similar to how AIX traditionally builds it's shared libraries.
19670           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'
19671         fi
19672       fi
19673       ;;
19674
19675     amigaos*)
19676       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)'
19677       hardcode_libdir_flag_spec_F77='-L$libdir'
19678       hardcode_minus_L_F77=yes
19679       # see comment about different semantics on the GNU ld section
19680       ld_shlibs_F77=no
19681       ;;
19682
19683     bsdi[45]*)
19684       export_dynamic_flag_spec_F77=-rdynamic
19685       ;;
19686
19687     cygwin* | mingw* | pw32*)
19688       # When not using gcc, we currently assume that we are using
19689       # Microsoft Visual C++.
19690       # hardcode_libdir_flag_spec is actually meaningless, as there is
19691       # no search path for DLLs.
19692       hardcode_libdir_flag_spec_F77=' '
19693       allow_undefined_flag_F77=unsupported
19694       # Tell ltmain to make .lib files, not .a files.
19695       libext=lib
19696       # Tell ltmain to make .dll files, not .so files.
19697       shrext_cmds=".dll"
19698       # FIXME: Setting linknames here is a bad hack.
19699       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19700       # The linker will automatically build a .lib file if we build a DLL.
19701       old_archive_From_new_cmds_F77='true'
19702       # FIXME: Should let the user specify the lib program.
19703       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19704       fix_srcfile_path='`cygpath -w "$srcfile"`'
19705       enable_shared_with_static_runtimes_F77=yes
19706       ;;
19707
19708     darwin* | rhapsody*)
19709       case "$host_os" in
19710         rhapsody* | darwin1.[012])
19711          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19712          ;;
19713        *) # Darwin 1.3 on
19714          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19715            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19716          else
19717            case ${MACOSX_DEPLOYMENT_TARGET} in
19718              10.[012])
19719                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19720                ;;
19721              10.*)
19722                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19723                ;;
19724            esac
19725          fi
19726          ;;
19727       esac
19728       archive_cmds_need_lc_F77=no
19729       hardcode_direct_F77=no
19730       hardcode_automatic_F77=yes
19731       hardcode_shlibpath_var_F77=unsupported
19732       whole_archive_flag_spec_F77=''
19733       link_all_deplibs_F77=yes
19734     if test "$GCC" = yes ; then
19735         output_verbose_link_cmd='echo'
19736         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19737       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19738       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19739       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}'
19740       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}'
19741     else
19742       case "$cc_basename" in
19743         xlc*)
19744          output_verbose_link_cmd='echo'
19745          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19746          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19747           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19748          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}'
19749           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}'
19750           ;;
19751        *)
19752          ld_shlibs_F77=no
19753           ;;
19754       esac
19755     fi
19756       ;;
19757
19758     dgux*)
19759       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19760       hardcode_libdir_flag_spec_F77='-L$libdir'
19761       hardcode_shlibpath_var_F77=no
19762       ;;
19763
19764     freebsd1*)
19765       ld_shlibs_F77=no
19766       ;;
19767
19768     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19769     # support.  Future versions do this automatically, but an explicit c++rt0.o
19770     # does not break anything, and helps significantly (at the cost of a little
19771     # extra space).
19772     freebsd2.2*)
19773       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19774       hardcode_libdir_flag_spec_F77='-R$libdir'
19775       hardcode_direct_F77=yes
19776       hardcode_shlibpath_var_F77=no
19777       ;;
19778
19779     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19780     freebsd2*)
19781       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19782       hardcode_direct_F77=yes
19783       hardcode_minus_L_F77=yes
19784       hardcode_shlibpath_var_F77=no
19785       ;;
19786
19787     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19788     freebsd* | kfreebsd*-gnu)
19789       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19790       hardcode_libdir_flag_spec_F77='-R$libdir'
19791       hardcode_direct_F77=yes
19792       hardcode_shlibpath_var_F77=no
19793       ;;
19794
19795     hpux9*)
19796       if test "$GCC" = yes; then
19797         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'
19798       else
19799         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'
19800       fi
19801       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19802       hardcode_libdir_separator_F77=:
19803       hardcode_direct_F77=yes
19804
19805       # hardcode_minus_L: Not really in the search PATH,
19806       # but as the default location of the library.
19807       hardcode_minus_L_F77=yes
19808       export_dynamic_flag_spec_F77='${wl}-E'
19809       ;;
19810
19811     hpux10* | hpux11*)
19812       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19813         case "$host_cpu" in
19814         hppa*64*|ia64*)
19815           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19816           ;;
19817         *)
19818           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19819           ;;
19820         esac
19821       else
19822         case "$host_cpu" in
19823         hppa*64*|ia64*)
19824           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19825           ;;
19826         *)
19827           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19828           ;;
19829         esac
19830       fi
19831       if test "$with_gnu_ld" = no; then
19832         case "$host_cpu" in
19833         hppa*64*)
19834           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19835           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19836           hardcode_libdir_separator_F77=:
19837           hardcode_direct_F77=no
19838           hardcode_shlibpath_var_F77=no
19839           ;;
19840         ia64*)
19841           hardcode_libdir_flag_spec_F77='-L$libdir'
19842           hardcode_direct_F77=no
19843           hardcode_shlibpath_var_F77=no
19844
19845           # hardcode_minus_L: Not really in the search PATH,
19846           # but as the default location of the library.
19847           hardcode_minus_L_F77=yes
19848           ;;
19849         *)
19850           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19851           hardcode_libdir_separator_F77=:
19852           hardcode_direct_F77=yes
19853           export_dynamic_flag_spec_F77='${wl}-E'
19854
19855           # hardcode_minus_L: Not really in the search PATH,
19856           # but as the default location of the library.
19857           hardcode_minus_L_F77=yes
19858           ;;
19859         esac
19860       fi
19861       ;;
19862
19863     irix5* | irix6* | nonstopux*)
19864       if test "$GCC" = yes; then
19865         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'
19866       else
19867         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'
19868         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19869       fi
19870       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19871       hardcode_libdir_separator_F77=:
19872       link_all_deplibs_F77=yes
19873       ;;
19874
19875     netbsd*)
19876       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19877         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19878       else
19879         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19880       fi
19881       hardcode_libdir_flag_spec_F77='-R$libdir'
19882       hardcode_direct_F77=yes
19883       hardcode_shlibpath_var_F77=no
19884       ;;
19885
19886     newsos6)
19887       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19888       hardcode_direct_F77=yes
19889       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19890       hardcode_libdir_separator_F77=:
19891       hardcode_shlibpath_var_F77=no
19892       ;;
19893
19894     openbsd*)
19895       hardcode_direct_F77=yes
19896       hardcode_shlibpath_var_F77=no
19897       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19898         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19899         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19900         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19901         export_dynamic_flag_spec_F77='${wl}-E'
19902       else
19903        case $host_os in
19904          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19905            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19906            hardcode_libdir_flag_spec_F77='-R$libdir'
19907            ;;
19908          *)
19909            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19910            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19911            ;;
19912        esac
19913       fi
19914       ;;
19915
19916     os2*)
19917       hardcode_libdir_flag_spec_F77='-L$libdir'
19918       hardcode_minus_L_F77=yes
19919       allow_undefined_flag_F77=unsupported
19920       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'
19921       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19922       ;;
19923
19924     osf3*)
19925       if test "$GCC" = yes; then
19926         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19927         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'
19928       else
19929         allow_undefined_flag_F77=' -expect_unresolved \*'
19930         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'
19931       fi
19932       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19933       hardcode_libdir_separator_F77=:
19934       ;;
19935
19936     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19937       if test "$GCC" = yes; then
19938         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19939         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'
19940         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19941       else
19942         allow_undefined_flag_F77=' -expect_unresolved \*'
19943         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'
19944         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~
19945         $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'
19946
19947         # Both c and cxx compiler support -rpath directly
19948         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19949       fi
19950       hardcode_libdir_separator_F77=:
19951       ;;
19952
19953     sco3.2v5*)
19954       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19955       hardcode_shlibpath_var_F77=no
19956       export_dynamic_flag_spec_F77='${wl}-Bexport'
19957       runpath_var=LD_RUN_PATH
19958       hardcode_runpath_var=yes
19959       ;;
19960
19961     solaris*)
19962       no_undefined_flag_F77=' -z text'
19963       if test "$GCC" = yes; then
19964         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19965         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19966           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19967       else
19968         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19969         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19970         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19971       fi
19972       hardcode_libdir_flag_spec_F77='-R$libdir'
19973       hardcode_shlibpath_var_F77=no
19974       case $host_os in
19975       solaris2.[0-5] | solaris2.[0-5].*) ;;
19976       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19977         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19978       esac
19979       link_all_deplibs_F77=yes
19980       ;;
19981
19982     sunos4*)
19983       if test "x$host_vendor" = xsequent; then
19984         # Use $CC to link under sequent, because it throws in some extra .o
19985         # files that make .init and .fini sections work.
19986         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19987       else
19988         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19989       fi
19990       hardcode_libdir_flag_spec_F77='-L$libdir'
19991       hardcode_direct_F77=yes
19992       hardcode_minus_L_F77=yes
19993       hardcode_shlibpath_var_F77=no
19994       ;;
19995
19996     sysv4)
19997       case $host_vendor in
19998         sni)
19999           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20000           hardcode_direct_F77=yes # is this really true???
20001         ;;
20002         siemens)
20003           ## LD is ld it makes a PLAMLIB
20004           ## CC just makes a GrossModule.
20005           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20006           reload_cmds_F77='$CC -r -o $output$reload_objs'
20007           hardcode_direct_F77=no
20008         ;;
20009         motorola)
20010           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20011           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20012         ;;
20013       esac
20014       runpath_var='LD_RUN_PATH'
20015       hardcode_shlibpath_var_F77=no
20016       ;;
20017
20018     sysv4.3*)
20019       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20020       hardcode_shlibpath_var_F77=no
20021       export_dynamic_flag_spec_F77='-Bexport'
20022       ;;
20023
20024     sysv4*MP*)
20025       if test -d /usr/nec; then
20026         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20027         hardcode_shlibpath_var_F77=no
20028         runpath_var=LD_RUN_PATH
20029         hardcode_runpath_var=yes
20030         ld_shlibs_F77=yes
20031       fi
20032       ;;
20033
20034     sysv4.2uw2*)
20035       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20036       hardcode_direct_F77=yes
20037       hardcode_minus_L_F77=no
20038       hardcode_shlibpath_var_F77=no
20039       hardcode_runpath_var=yes
20040       runpath_var=LD_RUN_PATH
20041       ;;
20042
20043    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20044       no_undefined_flag_F77='${wl}-z ${wl}text'
20045       if test "$GCC" = yes; then
20046         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20047       else
20048         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20049       fi
20050       runpath_var='LD_RUN_PATH'
20051       hardcode_shlibpath_var_F77=no
20052       ;;
20053
20054     sysv5*)
20055       no_undefined_flag_F77=' -z text'
20056       # $CC -shared without GNU ld will not create a library from C++
20057       # object files and a static libstdc++, better avoid it by now
20058       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20059       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20060                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20061       hardcode_libdir_flag_spec_F77=
20062       hardcode_shlibpath_var_F77=no
20063       runpath_var='LD_RUN_PATH'
20064       ;;
20065
20066     uts4*)
20067       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20068       hardcode_libdir_flag_spec_F77='-L$libdir'
20069       hardcode_shlibpath_var_F77=no
20070       ;;
20071
20072     *)
20073       ld_shlibs_F77=no
20074       ;;
20075     esac
20076   fi
20077
20078 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20079 echo "${ECHO_T}$ld_shlibs_F77" >&6
20080 test "$ld_shlibs_F77" = no && can_build_shared=no
20081
20082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20083 if test "$GCC" = yes; then
20084   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20085 fi
20086
20087 #
20088 # Do we need to explicitly link libc?
20089 #
20090 case "x$archive_cmds_need_lc_F77" in
20091 x|xyes)
20092   # Assume -lc should be added
20093   archive_cmds_need_lc_F77=yes
20094
20095   if test "$enable_shared" = yes && test "$GCC" = yes; then
20096     case $archive_cmds_F77 in
20097     *'~'*)
20098       # FIXME: we may have to deal with multi-command sequences.
20099       ;;
20100     '$CC '*)
20101       # Test whether the compiler implicitly links with -lc since on some
20102       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20103       # to ld, don't add -lc before -lgcc.
20104       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20105 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20106       $rm conftest*
20107       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20108
20109       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110   (eval $ac_compile) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); } 2>conftest.err; then
20114         soname=conftest
20115         lib=conftest
20116         libobjs=conftest.$ac_objext
20117         deplibs=
20118         wl=$lt_prog_compiler_wl_F77
20119         compiler_flags=-v
20120         linker_flags=-v
20121         verstring=
20122         output_objdir=.
20123         libname=conftest
20124         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20125         allow_undefined_flag_F77=
20126         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20127   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20128   ac_status=$?
20129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130   (exit $ac_status); }
20131         then
20132           archive_cmds_need_lc_F77=no
20133         else
20134           archive_cmds_need_lc_F77=yes
20135         fi
20136         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20137       else
20138         cat conftest.err 1>&5
20139       fi
20140       $rm conftest*
20141       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20142 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20143       ;;
20144     esac
20145   fi
20146   ;;
20147 esac
20148
20149 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20150 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20151 library_names_spec=
20152 libname_spec='lib$name'
20153 soname_spec=
20154 shrext_cmds=".so"
20155 postinstall_cmds=
20156 postuninstall_cmds=
20157 finish_cmds=
20158 finish_eval=
20159 shlibpath_var=
20160 shlibpath_overrides_runpath=unknown
20161 version_type=none
20162 dynamic_linker="$host_os ld.so"
20163 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20164 if test "$GCC" = yes; then
20165   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20166   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20167     # if the path contains ";" then we assume it to be the separator
20168     # otherwise default to the standard path separator (i.e. ":") - it is
20169     # assumed that no part of a normal pathname contains ";" but that should
20170     # okay in the real world where ";" in dirpaths is itself problematic.
20171     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20172   else
20173     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20174   fi
20175 else
20176   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20177 fi
20178 need_lib_prefix=unknown
20179 hardcode_into_libs=no
20180
20181 # when you set need_version to no, make sure it does not cause -set_version
20182 # flags to be left without arguments
20183 need_version=unknown
20184
20185 case $host_os in
20186 aix3*)
20187   version_type=linux
20188   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20189   shlibpath_var=LIBPATH
20190
20191   # AIX 3 has no versioning support, so we append a major version to the name.
20192   soname_spec='${libname}${release}${shared_ext}$major'
20193   ;;
20194
20195 aix4* | aix5*)
20196   version_type=linux
20197   need_lib_prefix=no
20198   need_version=no
20199   hardcode_into_libs=yes
20200   if test "$host_cpu" = ia64; then
20201     # AIX 5 supports IA64
20202     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20203     shlibpath_var=LD_LIBRARY_PATH
20204   else
20205     # With GCC up to 2.95.x, collect2 would create an import file
20206     # for dependence libraries.  The import file would start with
20207     # the line `#! .'.  This would cause the generated library to
20208     # depend on `.', always an invalid library.  This was fixed in
20209     # development snapshots of GCC prior to 3.0.
20210     case $host_os in
20211       aix4 | aix4.[01] | aix4.[01].*)
20212       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20213            echo ' yes '
20214            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20215         :
20216       else
20217         can_build_shared=no
20218       fi
20219       ;;
20220     esac
20221     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20222     # soname into executable. Probably we can add versioning support to
20223     # collect2, so additional links can be useful in future.
20224     if test "$aix_use_runtimelinking" = yes; then
20225       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20226       # instead of lib<name>.a to let people know that these are not
20227       # typical AIX shared libraries.
20228       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229     else
20230       # We preserve .a as extension for shared libraries through AIX4.2
20231       # and later when we are not doing run time linking.
20232       library_names_spec='${libname}${release}.a $libname.a'
20233       soname_spec='${libname}${release}${shared_ext}$major'
20234     fi
20235     shlibpath_var=LIBPATH
20236   fi
20237   ;;
20238
20239 amigaos*)
20240   library_names_spec='$libname.ixlibrary $libname.a'
20241   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20242   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'
20243   ;;
20244
20245 beos*)
20246   library_names_spec='${libname}${shared_ext}'
20247   dynamic_linker="$host_os ld.so"
20248   shlibpath_var=LIBRARY_PATH
20249   ;;
20250
20251 bsdi[45]*)
20252   version_type=linux
20253   need_version=no
20254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255   soname_spec='${libname}${release}${shared_ext}$major'
20256   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20257   shlibpath_var=LD_LIBRARY_PATH
20258   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20259   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20260   # the default ld.so.conf also contains /usr/contrib/lib and
20261   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20262   # libtool to hard-code these into programs
20263   ;;
20264
20265 cygwin* | mingw* | pw32*)
20266   version_type=windows
20267   shrext_cmds=".dll"
20268   need_version=no
20269   need_lib_prefix=no
20270
20271   case $GCC,$host_os in
20272   yes,cygwin* | yes,mingw* | yes,pw32*)
20273     library_names_spec='$libname.dll.a'
20274     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20275     postinstall_cmds='base_file=`basename \${file}`~
20276       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20277       dldir=$destdir/`dirname \$dlpath`~
20278       test -d \$dldir || mkdir -p \$dldir~
20279       $install_prog $dir/$dlname \$dldir/$dlname'
20280     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20281       dlpath=$dir/\$dldll~
20282        $rm \$dlpath'
20283     shlibpath_overrides_runpath=yes
20284
20285     case $host_os in
20286     cygwin*)
20287       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20288       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20289       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20290       ;;
20291     mingw*)
20292       # MinGW DLLs use traditional 'lib' prefix
20293       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20294       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20295       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20296         # It is most probably a Windows format PATH printed by
20297         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20298         # path with ; separators, and with drive letters. We can handle the
20299         # drive letters (cygwin fileutils understands them), so leave them,
20300         # especially as we might pass files found there to a mingw objdump,
20301         # which wouldn't understand a cygwinified path. Ahh.
20302         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20303       else
20304         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20305       fi
20306       ;;
20307     pw32*)
20308       # pw32 DLLs use 'pw' prefix rather than 'lib'
20309       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20310       ;;
20311     esac
20312     ;;
20313
20314   *)
20315     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20316     ;;
20317   esac
20318   dynamic_linker='Win32 ld.exe'
20319   # FIXME: first we should search . and the directory the executable is in
20320   shlibpath_var=PATH
20321   ;;
20322
20323 darwin* | rhapsody*)
20324   dynamic_linker="$host_os dyld"
20325   version_type=darwin
20326   need_lib_prefix=no
20327   need_version=no
20328   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20329   soname_spec='${libname}${release}${major}$shared_ext'
20330   shlibpath_overrides_runpath=yes
20331   shlibpath_var=DYLD_LIBRARY_PATH
20332   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20333   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20334   if test "$GCC" = yes; then
20335     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"`
20336   else
20337     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20338   fi
20339   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20340   ;;
20341
20342 dgux*)
20343   version_type=linux
20344   need_lib_prefix=no
20345   need_version=no
20346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20347   soname_spec='${libname}${release}${shared_ext}$major'
20348   shlibpath_var=LD_LIBRARY_PATH
20349   ;;
20350
20351 freebsd1*)
20352   dynamic_linker=no
20353   ;;
20354
20355 kfreebsd*-gnu)
20356   version_type=linux
20357   need_lib_prefix=no
20358   need_version=no
20359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360   soname_spec='${libname}${release}${shared_ext}$major'
20361   shlibpath_var=LD_LIBRARY_PATH
20362   shlibpath_overrides_runpath=no
20363   hardcode_into_libs=yes
20364   dynamic_linker='GNU ld.so'
20365   ;;
20366
20367 freebsd*)
20368   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20369   version_type=freebsd-$objformat
20370   case $version_type in
20371     freebsd-elf*)
20372       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20373       need_version=no
20374       need_lib_prefix=no
20375       ;;
20376     freebsd-*)
20377       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20378       need_version=yes
20379       ;;
20380   esac
20381   shlibpath_var=LD_LIBRARY_PATH
20382   case $host_os in
20383   freebsd2*)
20384     shlibpath_overrides_runpath=yes
20385     ;;
20386   freebsd3.01* | freebsdelf3.01*)
20387     shlibpath_overrides_runpath=yes
20388     hardcode_into_libs=yes
20389     ;;
20390   *) # from 3.2 on
20391     shlibpath_overrides_runpath=no
20392     hardcode_into_libs=yes
20393     ;;
20394   esac
20395   ;;
20396
20397 gnu*)
20398   version_type=linux
20399   need_lib_prefix=no
20400   need_version=no
20401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20402   soname_spec='${libname}${release}${shared_ext}$major'
20403   shlibpath_var=LD_LIBRARY_PATH
20404   hardcode_into_libs=yes
20405   ;;
20406
20407 hpux9* | hpux10* | hpux11*)
20408   # Give a soname corresponding to the major version so that dld.sl refuses to
20409   # link against other versions.
20410   version_type=sunos
20411   need_lib_prefix=no
20412   need_version=no
20413   case "$host_cpu" in
20414   ia64*)
20415     shrext_cmds='.so'
20416     hardcode_into_libs=yes
20417     dynamic_linker="$host_os dld.so"
20418     shlibpath_var=LD_LIBRARY_PATH
20419     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421     soname_spec='${libname}${release}${shared_ext}$major'
20422     if test "X$HPUX_IA64_MODE" = X32; then
20423       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20424     else
20425       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20426     fi
20427     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20428     ;;
20429    hppa*64*)
20430      shrext_cmds='.sl'
20431      hardcode_into_libs=yes
20432      dynamic_linker="$host_os dld.sl"
20433      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20434      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20435      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436      soname_spec='${libname}${release}${shared_ext}$major'
20437      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20438      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20439      ;;
20440    *)
20441     shrext_cmds='.sl'
20442     dynamic_linker="$host_os dld.sl"
20443     shlibpath_var=SHLIB_PATH
20444     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446     soname_spec='${libname}${release}${shared_ext}$major'
20447     ;;
20448   esac
20449   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20450   postinstall_cmds='chmod 555 $lib'
20451   ;;
20452
20453 irix5* | irix6* | nonstopux*)
20454   case $host_os in
20455     nonstopux*) version_type=nonstopux ;;
20456     *)
20457         if test "$lt_cv_prog_gnu_ld" = yes; then
20458                 version_type=linux
20459         else
20460                 version_type=irix
20461         fi ;;
20462   esac
20463   need_lib_prefix=no
20464   need_version=no
20465   soname_spec='${libname}${release}${shared_ext}$major'
20466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20467   case $host_os in
20468   irix5* | nonstopux*)
20469     libsuff= shlibsuff=
20470     ;;
20471   *)
20472     case $LD in # libtool.m4 will add one of these switches to LD
20473     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20474       libsuff= shlibsuff= libmagic=32-bit;;
20475     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20476       libsuff=32 shlibsuff=N32 libmagic=N32;;
20477     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20478       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20479     *) libsuff= shlibsuff= libmagic=never-match;;
20480     esac
20481     ;;
20482   esac
20483   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20484   shlibpath_overrides_runpath=no
20485   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20486   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20487   hardcode_into_libs=yes
20488   ;;
20489
20490 # No shared lib support for Linux oldld, aout, or coff.
20491 linux*oldld* | linux*aout* | linux*coff*)
20492   dynamic_linker=no
20493   ;;
20494
20495 # This must be Linux ELF.
20496 linux*)
20497   version_type=linux
20498   need_lib_prefix=no
20499   need_version=no
20500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20501   soname_spec='${libname}${release}${shared_ext}$major'
20502   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20503   shlibpath_var=LD_LIBRARY_PATH
20504   shlibpath_overrides_runpath=no
20505   # This implies no fast_install, which is unacceptable.
20506   # Some rework will be needed to allow for fast_install
20507   # before this can be enabled.
20508   hardcode_into_libs=yes
20509
20510   # Append ld.so.conf contents to the search path
20511   if test -f /etc/ld.so.conf; then
20512     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20513     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20514   fi
20515
20516   # We used to test for /lib/ld.so.1 and disable shared libraries on
20517   # powerpc, because MkLinux only supported shared libraries with the
20518   # GNU dynamic linker.  Since this was broken with cross compilers,
20519   # most powerpc-linux boxes support dynamic linking these days and
20520   # people can always --disable-shared, the test was removed, and we
20521   # assume the GNU/Linux dynamic linker is in use.
20522   dynamic_linker='GNU/Linux ld.so'
20523   ;;
20524
20525 knetbsd*-gnu)
20526   version_type=linux
20527   need_lib_prefix=no
20528   need_version=no
20529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20530   soname_spec='${libname}${release}${shared_ext}$major'
20531   shlibpath_var=LD_LIBRARY_PATH
20532   shlibpath_overrides_runpath=no
20533   hardcode_into_libs=yes
20534   dynamic_linker='GNU ld.so'
20535   ;;
20536
20537 netbsd*)
20538   version_type=sunos
20539   need_lib_prefix=no
20540   need_version=no
20541   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20543     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20544     dynamic_linker='NetBSD (a.out) ld.so'
20545   else
20546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20547     soname_spec='${libname}${release}${shared_ext}$major'
20548     dynamic_linker='NetBSD ld.elf_so'
20549   fi
20550   shlibpath_var=LD_LIBRARY_PATH
20551   shlibpath_overrides_runpath=yes
20552   hardcode_into_libs=yes
20553   ;;
20554
20555 newsos6)
20556   version_type=linux
20557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20558   shlibpath_var=LD_LIBRARY_PATH
20559   shlibpath_overrides_runpath=yes
20560   ;;
20561
20562 nto-qnx*)
20563   version_type=linux
20564   need_lib_prefix=no
20565   need_version=no
20566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20567   soname_spec='${libname}${release}${shared_ext}$major'
20568   shlibpath_var=LD_LIBRARY_PATH
20569   shlibpath_overrides_runpath=yes
20570   ;;
20571
20572 openbsd*)
20573   version_type=sunos
20574   need_lib_prefix=no
20575   need_version=no
20576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20578   shlibpath_var=LD_LIBRARY_PATH
20579   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20580     case $host_os in
20581       openbsd2.[89] | openbsd2.[89].*)
20582         shlibpath_overrides_runpath=no
20583         ;;
20584       *)
20585         shlibpath_overrides_runpath=yes
20586         ;;
20587       esac
20588   else
20589     shlibpath_overrides_runpath=yes
20590   fi
20591   ;;
20592
20593 os2*)
20594   libname_spec='$name'
20595   shrext_cmds=".dll"
20596   need_lib_prefix=no
20597   library_names_spec='$libname${shared_ext} $libname.a'
20598   dynamic_linker='OS/2 ld.exe'
20599   shlibpath_var=LIBPATH
20600   ;;
20601
20602 osf3* | osf4* | osf5*)
20603   version_type=osf
20604   need_lib_prefix=no
20605   need_version=no
20606   soname_spec='${libname}${release}${shared_ext}$major'
20607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20608   shlibpath_var=LD_LIBRARY_PATH
20609   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20610   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20611   ;;
20612
20613 sco3.2v5*)
20614   version_type=osf
20615   soname_spec='${libname}${release}${shared_ext}$major'
20616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20617   shlibpath_var=LD_LIBRARY_PATH
20618   ;;
20619
20620 solaris*)
20621   version_type=linux
20622   need_lib_prefix=no
20623   need_version=no
20624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625   soname_spec='${libname}${release}${shared_ext}$major'
20626   shlibpath_var=LD_LIBRARY_PATH
20627   shlibpath_overrides_runpath=yes
20628   hardcode_into_libs=yes
20629   # ldd complains unless libraries are executable
20630   postinstall_cmds='chmod +x $lib'
20631   ;;
20632
20633 sunos4*)
20634   version_type=sunos
20635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20636   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20637   shlibpath_var=LD_LIBRARY_PATH
20638   shlibpath_overrides_runpath=yes
20639   if test "$with_gnu_ld" = yes; then
20640     need_lib_prefix=no
20641   fi
20642   need_version=yes
20643   ;;
20644
20645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20646   version_type=linux
20647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20648   soname_spec='${libname}${release}${shared_ext}$major'
20649   shlibpath_var=LD_LIBRARY_PATH
20650   case $host_vendor in
20651     sni)
20652       shlibpath_overrides_runpath=no
20653       need_lib_prefix=no
20654       export_dynamic_flag_spec='${wl}-Blargedynsym'
20655       runpath_var=LD_RUN_PATH
20656       ;;
20657     siemens)
20658       need_lib_prefix=no
20659       ;;
20660     motorola)
20661       need_lib_prefix=no
20662       need_version=no
20663       shlibpath_overrides_runpath=no
20664       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20665       ;;
20666   esac
20667   ;;
20668
20669 sysv4*MP*)
20670   if test -d /usr/nec ;then
20671     version_type=linux
20672     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20673     soname_spec='$libname${shared_ext}.$major'
20674     shlibpath_var=LD_LIBRARY_PATH
20675   fi
20676   ;;
20677
20678 uts4*)
20679   version_type=linux
20680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20681   soname_spec='${libname}${release}${shared_ext}$major'
20682   shlibpath_var=LD_LIBRARY_PATH
20683   ;;
20684
20685 *)
20686   dynamic_linker=no
20687   ;;
20688 esac
20689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20690 echo "${ECHO_T}$dynamic_linker" >&6
20691 test "$dynamic_linker" = no && can_build_shared=no
20692
20693 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20694 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20695 hardcode_action_F77=
20696 if test -n "$hardcode_libdir_flag_spec_F77" || \
20697    test -n "$runpath_var_F77" || \
20698    test "X$hardcode_automatic_F77" = "Xyes" ; then
20699
20700   # We can hardcode non-existant directories.
20701   if test "$hardcode_direct_F77" != no &&
20702      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20703      # have to relink, otherwise we might link with an installed library
20704      # when we should be linking with a yet-to-be-installed one
20705      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20706      test "$hardcode_minus_L_F77" != no; then
20707     # Linking always hardcodes the temporary library directory.
20708     hardcode_action_F77=relink
20709   else
20710     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20711     hardcode_action_F77=immediate
20712   fi
20713 else
20714   # We cannot hardcode anything, or else we can only hardcode existing
20715   # directories.
20716   hardcode_action_F77=unsupported
20717 fi
20718 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20719 echo "${ECHO_T}$hardcode_action_F77" >&6
20720
20721 if test "$hardcode_action_F77" = relink; then
20722   # Fast installation is not supported
20723   enable_fast_install=no
20724 elif test "$shlibpath_overrides_runpath" = yes ||
20725      test "$enable_shared" = no; then
20726   # Fast installation is not necessary
20727   enable_fast_install=needless
20728 fi
20729
20730 striplib=
20731 old_striplib=
20732 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20733 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20734 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20735   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20736   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20737   echo "$as_me:$LINENO: result: yes" >&5
20738 echo "${ECHO_T}yes" >&6
20739 else
20740 # FIXME - insert some real tests, host_os isn't really good enough
20741   case $host_os in
20742    darwin*)
20743        if test -n "$STRIP" ; then
20744          striplib="$STRIP -x"
20745          echo "$as_me:$LINENO: result: yes" >&5
20746 echo "${ECHO_T}yes" >&6
20747        else
20748   echo "$as_me:$LINENO: result: no" >&5
20749 echo "${ECHO_T}no" >&6
20750 fi
20751        ;;
20752    *)
20753   echo "$as_me:$LINENO: result: no" >&5
20754 echo "${ECHO_T}no" >&6
20755     ;;
20756   esac
20757 fi
20758
20759
20760
20761 # The else clause should only fire when bootstrapping the
20762 # libtool distribution, otherwise you forgot to ship ltmain.sh
20763 # with your package, and you will get complaints that there are
20764 # no rules to generate ltmain.sh.
20765 if test -f "$ltmain"; then
20766   # See if we are running on zsh, and set the options which allow our commands through
20767   # without removal of \ escapes.
20768   if test -n "${ZSH_VERSION+set}" ; then
20769     setopt NO_GLOB_SUBST
20770   fi
20771   # Now quote all the things that may contain metacharacters while being
20772   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20773   # variables and quote the copies for generation of the libtool script.
20774   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20775     SED SHELL STRIP \
20776     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20777     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20778     deplibs_check_method reload_flag reload_cmds need_locks \
20779     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20780     lt_cv_sys_global_symbol_to_c_name_address \
20781     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20782     old_postinstall_cmds old_postuninstall_cmds \
20783     compiler_F77 \
20784     CC_F77 \
20785     LD_F77 \
20786     lt_prog_compiler_wl_F77 \
20787     lt_prog_compiler_pic_F77 \
20788     lt_prog_compiler_static_F77 \
20789     lt_prog_compiler_no_builtin_flag_F77 \
20790     export_dynamic_flag_spec_F77 \
20791     thread_safe_flag_spec_F77 \
20792     whole_archive_flag_spec_F77 \
20793     enable_shared_with_static_runtimes_F77 \
20794     old_archive_cmds_F77 \
20795     old_archive_from_new_cmds_F77 \
20796     predep_objects_F77 \
20797     postdep_objects_F77 \
20798     predeps_F77 \
20799     postdeps_F77 \
20800     compiler_lib_search_path_F77 \
20801     archive_cmds_F77 \
20802     archive_expsym_cmds_F77 \
20803     postinstall_cmds_F77 \
20804     postuninstall_cmds_F77 \
20805     old_archive_from_expsyms_cmds_F77 \
20806     allow_undefined_flag_F77 \
20807     no_undefined_flag_F77 \
20808     export_symbols_cmds_F77 \
20809     hardcode_libdir_flag_spec_F77 \
20810     hardcode_libdir_flag_spec_ld_F77 \
20811     hardcode_libdir_separator_F77 \
20812     hardcode_automatic_F77 \
20813     module_cmds_F77 \
20814     module_expsym_cmds_F77 \
20815     lt_cv_prog_compiler_c_o_F77 \
20816     exclude_expsyms_F77 \
20817     include_expsyms_F77; do
20818
20819     case $var in
20820     old_archive_cmds_F77 | \
20821     old_archive_from_new_cmds_F77 | \
20822     archive_cmds_F77 | \
20823     archive_expsym_cmds_F77 | \
20824     module_cmds_F77 | \
20825     module_expsym_cmds_F77 | \
20826     old_archive_from_expsyms_cmds_F77 | \
20827     export_symbols_cmds_F77 | \
20828     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20829     postinstall_cmds | postuninstall_cmds | \
20830     old_postinstall_cmds | old_postuninstall_cmds | \
20831     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20832       # Double-quote double-evaled strings.
20833       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20834       ;;
20835     *)
20836       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20837       ;;
20838     esac
20839   done
20840
20841   case $lt_echo in
20842   *'\$0 --fallback-echo"')
20843     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20844     ;;
20845   esac
20846
20847 cfgfile="$ofile"
20848
20849   cat <<__EOF__ >> "$cfgfile"
20850 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20851
20852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20853
20854 # Shell to use when invoking shell scripts.
20855 SHELL=$lt_SHELL
20856
20857 # Whether or not to build shared libraries.
20858 build_libtool_libs=$enable_shared
20859
20860 # Whether or not to build static libraries.
20861 build_old_libs=$enable_static
20862
20863 # Whether or not to add -lc for building shared libraries.
20864 build_libtool_need_lc=$archive_cmds_need_lc_F77
20865
20866 # Whether or not to disallow shared libs when runtime libs are static
20867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20868
20869 # Whether or not to optimize for fast installation.
20870 fast_install=$enable_fast_install
20871
20872 # The host system.
20873 host_alias=$host_alias
20874 host=$host
20875
20876 # An echo program that does not interpret backslashes.
20877 echo=$lt_echo
20878
20879 # The archiver.
20880 AR=$lt_AR
20881 AR_FLAGS=$lt_AR_FLAGS
20882
20883 # A C compiler.
20884 LTCC=$lt_LTCC
20885
20886 # A language-specific compiler.
20887 CC=$lt_compiler_F77
20888
20889 # Is the compiler the GNU C compiler?
20890 with_gcc=$GCC_F77
20891
20892 # An ERE matcher.
20893 EGREP=$lt_EGREP
20894
20895 # The linker used to build libraries.
20896 LD=$lt_LD_F77
20897
20898 # Whether we need hard or soft links.
20899 LN_S=$lt_LN_S
20900
20901 # A BSD-compatible nm program.
20902 NM=$lt_NM
20903
20904 # A symbol stripping program
20905 STRIP=$lt_STRIP
20906
20907 # Used to examine libraries when file_magic_cmd begins "file"
20908 MAGIC_CMD=$MAGIC_CMD
20909
20910 # Used on cygwin: DLL creation program.
20911 DLLTOOL="$DLLTOOL"
20912
20913 # Used on cygwin: object dumper.
20914 OBJDUMP="$OBJDUMP"
20915
20916 # Used on cygwin: assembler.
20917 AS="$AS"
20918
20919 # The name of the directory that contains temporary libtool files.
20920 objdir=$objdir
20921
20922 # How to create reloadable object files.
20923 reload_flag=$lt_reload_flag
20924 reload_cmds=$lt_reload_cmds
20925
20926 # How to pass a linker flag through the compiler.
20927 wl=$lt_lt_prog_compiler_wl_F77
20928
20929 # Object file suffix (normally "o").
20930 objext="$ac_objext"
20931
20932 # Old archive suffix (normally "a").
20933 libext="$libext"
20934
20935 # Shared library suffix (normally ".so").
20936 shrext_cmds='$shrext_cmds'
20937
20938 # Executable file suffix (normally "").
20939 exeext="$exeext"
20940
20941 # Additional compiler flags for building library objects.
20942 pic_flag=$lt_lt_prog_compiler_pic_F77
20943 pic_mode=$pic_mode
20944
20945 # What is the maximum length of a command?
20946 max_cmd_len=$lt_cv_sys_max_cmd_len
20947
20948 # Does compiler simultaneously support -c and -o options?
20949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20950
20951 # Must we lock files when doing compilation ?
20952 need_locks=$lt_need_locks
20953
20954 # Do we need the lib prefix for modules?
20955 need_lib_prefix=$need_lib_prefix
20956
20957 # Do we need a version for libraries?
20958 need_version=$need_version
20959
20960 # Whether dlopen is supported.
20961 dlopen_support=$enable_dlopen
20962
20963 # Whether dlopen of programs is supported.
20964 dlopen_self=$enable_dlopen_self
20965
20966 # Whether dlopen of statically linked programs is supported.
20967 dlopen_self_static=$enable_dlopen_self_static
20968
20969 # Compiler flag to prevent dynamic linking.
20970 link_static_flag=$lt_lt_prog_compiler_static_F77
20971
20972 # Compiler flag to turn off builtin functions.
20973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20974
20975 # Compiler flag to allow reflexive dlopens.
20976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20977
20978 # Compiler flag to generate shared objects directly from archives.
20979 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20980
20981 # Compiler flag to generate thread-safe objects.
20982 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20983
20984 # Library versioning type.
20985 version_type=$version_type
20986
20987 # Format of library name prefix.
20988 libname_spec=$lt_libname_spec
20989
20990 # List of archive names.  First name is the real one, the rest are links.
20991 # The last name is the one that the linker finds with -lNAME.
20992 library_names_spec=$lt_library_names_spec
20993
20994 # The coded name of the library, if different from the real name.
20995 soname_spec=$lt_soname_spec
20996
20997 # Commands used to build and install an old-style archive.
20998 RANLIB=$lt_RANLIB
20999 old_archive_cmds=$lt_old_archive_cmds_F77
21000 old_postinstall_cmds=$lt_old_postinstall_cmds
21001 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21002
21003 # Create an old-style archive from a shared archive.
21004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21005
21006 # Create a temporary old-style archive to link instead of a shared archive.
21007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21008
21009 # Commands used to build and install a shared archive.
21010 archive_cmds=$lt_archive_cmds_F77
21011 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21012 postinstall_cmds=$lt_postinstall_cmds
21013 postuninstall_cmds=$lt_postuninstall_cmds
21014
21015 # Commands used to build a loadable module (assumed same as above if empty)
21016 module_cmds=$lt_module_cmds_F77
21017 module_expsym_cmds=$lt_module_expsym_cmds_F77
21018
21019 # Commands to strip libraries.
21020 old_striplib=$lt_old_striplib
21021 striplib=$lt_striplib
21022
21023 # Dependencies to place before the objects being linked to create a
21024 # shared library.
21025 predep_objects=$lt_predep_objects_F77
21026
21027 # Dependencies to place after the objects being linked to create a
21028 # shared library.
21029 postdep_objects=$lt_postdep_objects_F77
21030
21031 # Dependencies to place before the objects being linked to create a
21032 # shared library.
21033 predeps=$lt_predeps_F77
21034
21035 # Dependencies to place after the objects being linked to create a
21036 # shared library.
21037 postdeps=$lt_postdeps_F77
21038
21039 # The library search path used internally by the compiler when linking
21040 # a shared library.
21041 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21042
21043 # Method to check whether dependent libraries are shared objects.
21044 deplibs_check_method=$lt_deplibs_check_method
21045
21046 # Command to use when deplibs_check_method == file_magic.
21047 file_magic_cmd=$lt_file_magic_cmd
21048
21049 # Flag that allows shared libraries with undefined symbols to be built.
21050 allow_undefined_flag=$lt_allow_undefined_flag_F77
21051
21052 # Flag that forces no undefined symbols.
21053 no_undefined_flag=$lt_no_undefined_flag_F77
21054
21055 # Commands used to finish a libtool library installation in a directory.
21056 finish_cmds=$lt_finish_cmds
21057
21058 # Same as above, but a single script fragment to be evaled but not shown.
21059 finish_eval=$lt_finish_eval
21060
21061 # Take the output of nm and produce a listing of raw symbols and C names.
21062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21063
21064 # Transform the output of nm in a proper C declaration
21065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21066
21067 # Transform the output of nm in a C name address pair
21068 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21069
21070 # This is the shared library runtime path variable.
21071 runpath_var=$runpath_var
21072
21073 # This is the shared library path variable.
21074 shlibpath_var=$shlibpath_var
21075
21076 # Is shlibpath searched before the hard-coded library search path?
21077 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21078
21079 # How to hardcode a shared library path into an executable.
21080 hardcode_action=$hardcode_action_F77
21081
21082 # Whether we should hardcode library paths into libraries.
21083 hardcode_into_libs=$hardcode_into_libs
21084
21085 # Flag to hardcode \$libdir into a binary during linking.
21086 # This must work even if \$libdir does not exist.
21087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21088
21089 # If ld is used when linking, flag to hardcode \$libdir into
21090 # a binary during linking. This must work even if \$libdir does
21091 # not exist.
21092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21093
21094 # Whether we need a single -rpath flag with a separated argument.
21095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21096
21097 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21098 # resulting binary.
21099 hardcode_direct=$hardcode_direct_F77
21100
21101 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21102 # resulting binary.
21103 hardcode_minus_L=$hardcode_minus_L_F77
21104
21105 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21106 # the resulting binary.
21107 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21108
21109 # Set to yes if building a shared library automatically hardcodes DIR into the library
21110 # and all subsequent libraries and executables linked against it.
21111 hardcode_automatic=$hardcode_automatic_F77
21112
21113 # Variables whose values should be saved in libtool wrapper scripts and
21114 # restored at relink time.
21115 variables_saved_for_relink="$variables_saved_for_relink"
21116
21117 # Whether libtool must link a program against all its dependency libraries.
21118 link_all_deplibs=$link_all_deplibs_F77
21119
21120 # Compile-time system search path for libraries
21121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21122
21123 # Run-time system search path for libraries
21124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21125
21126 # Fix the shell variable \$srcfile for the compiler.
21127 fix_srcfile_path="$fix_srcfile_path_F77"
21128
21129 # Set to yes if exported symbols are required.
21130 always_export_symbols=$always_export_symbols_F77
21131
21132 # The commands to list exported symbols.
21133 export_symbols_cmds=$lt_export_symbols_cmds_F77
21134
21135 # The commands to extract the exported symbol list from a shared archive.
21136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21137
21138 # Symbols that should not be listed in the preloaded symbols.
21139 exclude_expsyms=$lt_exclude_expsyms_F77
21140
21141 # Symbols that must always be exported.
21142 include_expsyms=$lt_include_expsyms_F77
21143
21144 # ### END LIBTOOL TAG CONFIG: $tagname
21145
21146 __EOF__
21147
21148
21149 else
21150   # If there is no Makefile yet, we rely on a make rule to execute
21151   # `config.status --recheck' to rerun these tests and create the
21152   # libtool script then.
21153   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21154   if test -f "$ltmain_in"; then
21155     test -f Makefile && make "$ltmain"
21156   fi
21157 fi
21158
21159
21160 ac_ext=c
21161 ac_cpp='$CPP $CPPFLAGS'
21162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21165
21166 CC="$lt_save_CC"
21167
21168         else
21169           tagname=""
21170         fi
21171         ;;
21172
21173       GCJ)
21174         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21175           ac_ext=c
21176 ac_cpp='$CPP $CPPFLAGS'
21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21180
21181
21182 # Source file extension for Java test sources.
21183 ac_ext=java
21184
21185 # Object file extension for compiled Java test sources.
21186 objext=o
21187 objext_GCJ=$objext
21188
21189 # Code to be used in simple compile tests
21190 lt_simple_compile_test_code="class foo {}\n"
21191
21192 # Code to be used in simple link tests
21193 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21194
21195 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21196
21197 # If no C compiler was specified, use CC.
21198 LTCC=${LTCC-"$CC"}
21199
21200 # Allow CC to be a program name with arguments.
21201 compiler=$CC
21202
21203
21204 # Allow CC to be a program name with arguments.
21205 lt_save_CC="$CC"
21206 CC=${GCJ-"gcj"}
21207 compiler=$CC
21208 compiler_GCJ=$CC
21209
21210 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21211 archive_cmds_need_lc_GCJ=no
21212
21213
21214 lt_prog_compiler_no_builtin_flag_GCJ=
21215
21216 if test "$GCC" = yes; then
21217   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21218
21219
21220 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21221 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21222 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21223   echo $ECHO_N "(cached) $ECHO_C" >&6
21224 else
21225   lt_cv_prog_compiler_rtti_exceptions=no
21226   ac_outfile=conftest.$ac_objext
21227    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21228    lt_compiler_flag="-fno-rtti -fno-exceptions"
21229    # Insert the option either (1) after the last *FLAGS variable, or
21230    # (2) before a word containing "conftest.", or (3) at the end.
21231    # Note that $ac_compile itself does not contain backslashes and begins
21232    # with a dollar sign (not a hyphen), so the echo should work correctly.
21233    # The option is referenced via a variable to avoid confusing sed.
21234    lt_compile=`echo "$ac_compile" | $SED \
21235    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21236    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21237    -e 's:$: $lt_compiler_flag:'`
21238    (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
21239    (eval "$lt_compile" 2>conftest.err)
21240    ac_status=$?
21241    cat conftest.err >&5
21242    echo "$as_me:21242: \$? = $ac_status" >&5
21243    if (exit $ac_status) && test -s "$ac_outfile"; then
21244      # The compiler can only warn and ignore the option if not recognized
21245      # So say no if there are warnings
21246      if test ! -s conftest.err; then
21247        lt_cv_prog_compiler_rtti_exceptions=yes
21248      fi
21249    fi
21250    $rm conftest*
21251
21252 fi
21253 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21254 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21255
21256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21257     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21258 else
21259     :
21260 fi
21261
21262 fi
21263
21264 lt_prog_compiler_wl_GCJ=
21265 lt_prog_compiler_pic_GCJ=
21266 lt_prog_compiler_static_GCJ=
21267
21268 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21270
21271   if test "$GCC" = yes; then
21272     lt_prog_compiler_wl_GCJ='-Wl,'
21273     lt_prog_compiler_static_GCJ='-static'
21274
21275     case $host_os in
21276       aix*)
21277       # All AIX code is PIC.
21278       if test "$host_cpu" = ia64; then
21279         # AIX 5 now supports IA64 processor
21280         lt_prog_compiler_static_GCJ='-Bstatic'
21281       fi
21282       ;;
21283
21284     amigaos*)
21285       # FIXME: we need at least 68020 code to build shared libraries, but
21286       # adding the `-m68020' flag to GCC prevents building anything better,
21287       # like `-m68040'.
21288       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21289       ;;
21290
21291     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21292       # PIC is the default for these OSes.
21293       ;;
21294
21295     mingw* | pw32* | os2*)
21296       # This hack is so that the source file can tell whether it is being
21297       # built for inclusion in a dll (and should export symbols for example).
21298       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21299       ;;
21300
21301     darwin* | rhapsody*)
21302       # PIC is the default on this platform
21303       # Common symbols not allowed in MH_DYLIB files
21304       lt_prog_compiler_pic_GCJ='-fno-common'
21305       ;;
21306
21307     msdosdjgpp*)
21308       # Just because we use GCC doesn't mean we suddenly get shared libraries
21309       # on systems that don't support them.
21310       lt_prog_compiler_can_build_shared_GCJ=no
21311       enable_shared=no
21312       ;;
21313
21314     sysv4*MP*)
21315       if test -d /usr/nec; then
21316         lt_prog_compiler_pic_GCJ=-Kconform_pic
21317       fi
21318       ;;
21319
21320     hpux*)
21321       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21322       # not for PA HP-UX.
21323       case "$host_cpu" in
21324       hppa*64*|ia64*)
21325         # +Z the default
21326         ;;
21327       *)
21328         lt_prog_compiler_pic_GCJ='-fPIC'
21329         ;;
21330       esac
21331       ;;
21332
21333     *)
21334       lt_prog_compiler_pic_GCJ='-fPIC'
21335       ;;
21336     esac
21337   else
21338     # PORTME Check for flag to pass linker flags through the system compiler.
21339     case $host_os in
21340     aix*)
21341       lt_prog_compiler_wl_GCJ='-Wl,'
21342       if test "$host_cpu" = ia64; then
21343         # AIX 5 now supports IA64 processor
21344         lt_prog_compiler_static_GCJ='-Bstatic'
21345       else
21346         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21347       fi
21348       ;;
21349       darwin*)
21350         # PIC is the default on this platform
21351         # Common symbols not allowed in MH_DYLIB files
21352        case "$cc_basename" in
21353          xlc*)
21354          lt_prog_compiler_pic_GCJ='-qnocommon'
21355          lt_prog_compiler_wl_GCJ='-Wl,'
21356          ;;
21357        esac
21358        ;;
21359
21360     mingw* | pw32* | os2*)
21361       # This hack is so that the source file can tell whether it is being
21362       # built for inclusion in a dll (and should export symbols for example).
21363       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21364       ;;
21365
21366     hpux9* | hpux10* | hpux11*)
21367       lt_prog_compiler_wl_GCJ='-Wl,'
21368       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21369       # not for PA HP-UX.
21370       case "$host_cpu" in
21371       hppa*64*|ia64*)
21372         # +Z the default
21373         ;;
21374       *)
21375         lt_prog_compiler_pic_GCJ='+Z'
21376         ;;
21377       esac
21378       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21379       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21380       ;;
21381
21382     irix5* | irix6* | nonstopux*)
21383       lt_prog_compiler_wl_GCJ='-Wl,'
21384       # PIC (with -KPIC) is the default.
21385       lt_prog_compiler_static_GCJ='-non_shared'
21386       ;;
21387
21388     newsos6)
21389       lt_prog_compiler_pic_GCJ='-KPIC'
21390       lt_prog_compiler_static_GCJ='-Bstatic'
21391       ;;
21392
21393     linux*)
21394       case $CC in
21395       icc* | ecc*)
21396         lt_prog_compiler_wl_GCJ='-Wl,'
21397         lt_prog_compiler_pic_GCJ='-KPIC'
21398         lt_prog_compiler_static_GCJ='-static'
21399         ;;
21400       ccc*)
21401         lt_prog_compiler_wl_GCJ='-Wl,'
21402         # All Alpha code is PIC.
21403         lt_prog_compiler_static_GCJ='-non_shared'
21404         ;;
21405       esac
21406       ;;
21407
21408     osf3* | osf4* | osf5*)
21409       lt_prog_compiler_wl_GCJ='-Wl,'
21410       # All OSF/1 code is PIC.
21411       lt_prog_compiler_static_GCJ='-non_shared'
21412       ;;
21413
21414     sco3.2v5*)
21415       lt_prog_compiler_pic_GCJ='-Kpic'
21416       lt_prog_compiler_static_GCJ='-dn'
21417       ;;
21418
21419     solaris*)
21420       lt_prog_compiler_wl_GCJ='-Wl,'
21421       lt_prog_compiler_pic_GCJ='-KPIC'
21422       lt_prog_compiler_static_GCJ='-Bstatic'
21423       ;;
21424
21425     sunos4*)
21426       lt_prog_compiler_wl_GCJ='-Qoption ld '
21427       lt_prog_compiler_pic_GCJ='-PIC'
21428       lt_prog_compiler_static_GCJ='-Bstatic'
21429       ;;
21430
21431     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21432       lt_prog_compiler_wl_GCJ='-Wl,'
21433       lt_prog_compiler_pic_GCJ='-KPIC'
21434       lt_prog_compiler_static_GCJ='-Bstatic'
21435       ;;
21436
21437     sysv4*MP*)
21438       if test -d /usr/nec ;then
21439         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21440         lt_prog_compiler_static_GCJ='-Bstatic'
21441       fi
21442       ;;
21443
21444     uts4*)
21445       lt_prog_compiler_pic_GCJ='-pic'
21446       lt_prog_compiler_static_GCJ='-Bstatic'
21447       ;;
21448
21449     *)
21450       lt_prog_compiler_can_build_shared_GCJ=no
21451       ;;
21452     esac
21453   fi
21454
21455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21456 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21457
21458 #
21459 # Check to make sure the PIC flag actually works.
21460 #
21461 if test -n "$lt_prog_compiler_pic_GCJ"; then
21462
21463 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21465 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21466   echo $ECHO_N "(cached) $ECHO_C" >&6
21467 else
21468   lt_prog_compiler_pic_works_GCJ=no
21469   ac_outfile=conftest.$ac_objext
21470    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21471    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21472    # Insert the option either (1) after the last *FLAGS variable, or
21473    # (2) before a word containing "conftest.", or (3) at the end.
21474    # Note that $ac_compile itself does not contain backslashes and begins
21475    # with a dollar sign (not a hyphen), so the echo should work correctly.
21476    # The option is referenced via a variable to avoid confusing sed.
21477    lt_compile=`echo "$ac_compile" | $SED \
21478    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21479    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21480    -e 's:$: $lt_compiler_flag:'`
21481    (eval echo "\"\$as_me:21481: $lt_compile\"" >&5)
21482    (eval "$lt_compile" 2>conftest.err)
21483    ac_status=$?
21484    cat conftest.err >&5
21485    echo "$as_me:21485: \$? = $ac_status" >&5
21486    if (exit $ac_status) && test -s "$ac_outfile"; then
21487      # The compiler can only warn and ignore the option if not recognized
21488      # So say no if there are warnings
21489      if test ! -s conftest.err; then
21490        lt_prog_compiler_pic_works_GCJ=yes
21491      fi
21492    fi
21493    $rm conftest*
21494
21495 fi
21496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21497 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21498
21499 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21500     case $lt_prog_compiler_pic_GCJ in
21501      "" | " "*) ;;
21502      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21503      esac
21504 else
21505     lt_prog_compiler_pic_GCJ=
21506      lt_prog_compiler_can_build_shared_GCJ=no
21507 fi
21508
21509 fi
21510 case "$host_os" in
21511   # For platforms which do not support PIC, -DPIC is meaningless:
21512   *djgpp*)
21513     lt_prog_compiler_pic_GCJ=
21514     ;;
21515   *)
21516     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21517     ;;
21518 esac
21519
21520 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21522 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21523   echo $ECHO_N "(cached) $ECHO_C" >&6
21524 else
21525   lt_cv_prog_compiler_c_o_GCJ=no
21526    $rm -r conftest 2>/dev/null
21527    mkdir conftest
21528    cd conftest
21529    mkdir out
21530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21531
21532    lt_compiler_flag="-o out/conftest2.$ac_objext"
21533    # Insert the option either (1) after the last *FLAGS variable, or
21534    # (2) before a word containing "conftest.", or (3) at the end.
21535    # Note that $ac_compile itself does not contain backslashes and begins
21536    # with a dollar sign (not a hyphen), so the echo should work correctly.
21537    lt_compile=`echo "$ac_compile" | $SED \
21538    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21540    -e 's:$: $lt_compiler_flag:'`
21541    (eval echo "\"\$as_me:21541: $lt_compile\"" >&5)
21542    (eval "$lt_compile" 2>out/conftest.err)
21543    ac_status=$?
21544    cat out/conftest.err >&5
21545    echo "$as_me:21545: \$? = $ac_status" >&5
21546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21547    then
21548      # The compiler can only warn and ignore the option if not recognized
21549      # So say no if there are warnings
21550      if test ! -s out/conftest.err; then
21551        lt_cv_prog_compiler_c_o_GCJ=yes
21552      fi
21553    fi
21554    chmod u+w .
21555    $rm conftest*
21556    # SGI C++ compiler will create directory out/ii_files/ for
21557    # template instantiation
21558    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21559    $rm out/* && rmdir out
21560    cd ..
21561    rmdir conftest
21562    $rm conftest*
21563
21564 fi
21565 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21566 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21567
21568
21569 hard_links="nottested"
21570 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21571   # do not overwrite the value of need_locks provided by the user
21572   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21573 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21574   hard_links=yes
21575   $rm conftest*
21576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21577   touch conftest.a
21578   ln conftest.a conftest.b 2>&5 || hard_links=no
21579   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21580   echo "$as_me:$LINENO: result: $hard_links" >&5
21581 echo "${ECHO_T}$hard_links" >&6
21582   if test "$hard_links" = no; then
21583     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21585     need_locks=warn
21586   fi
21587 else
21588   need_locks=no
21589 fi
21590
21591 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21593
21594   runpath_var=
21595   allow_undefined_flag_GCJ=
21596   enable_shared_with_static_runtimes_GCJ=no
21597   archive_cmds_GCJ=
21598   archive_expsym_cmds_GCJ=
21599   old_archive_From_new_cmds_GCJ=
21600   old_archive_from_expsyms_cmds_GCJ=
21601   export_dynamic_flag_spec_GCJ=
21602   whole_archive_flag_spec_GCJ=
21603   thread_safe_flag_spec_GCJ=
21604   hardcode_libdir_flag_spec_GCJ=
21605   hardcode_libdir_flag_spec_ld_GCJ=
21606   hardcode_libdir_separator_GCJ=
21607   hardcode_direct_GCJ=no
21608   hardcode_minus_L_GCJ=no
21609   hardcode_shlibpath_var_GCJ=unsupported
21610   link_all_deplibs_GCJ=unknown
21611   hardcode_automatic_GCJ=no
21612   module_cmds_GCJ=
21613   module_expsym_cmds_GCJ=
21614   always_export_symbols_GCJ=no
21615   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21616   # include_expsyms should be a list of space-separated symbols to be *always*
21617   # included in the symbol list
21618   include_expsyms_GCJ=
21619   # exclude_expsyms can be an extended regexp of symbols to exclude
21620   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21621   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21622   # as well as any symbol that contains `d'.
21623   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21624   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21625   # platforms (ab)use it in PIC code, but their linkers get confused if
21626   # the symbol is explicitly referenced.  Since portable code cannot
21627   # rely on this symbol name, it's probably fine to never include it in
21628   # preloaded symbol tables.
21629   extract_expsyms_cmds=
21630
21631   case $host_os in
21632   cygwin* | mingw* | pw32*)
21633     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21634     # When not using gcc, we currently assume that we are using
21635     # Microsoft Visual C++.
21636     if test "$GCC" != yes; then
21637       with_gnu_ld=no
21638     fi
21639     ;;
21640   openbsd*)
21641     with_gnu_ld=no
21642     ;;
21643   esac
21644
21645   ld_shlibs_GCJ=yes
21646   if test "$with_gnu_ld" = yes; then
21647     # If archive_cmds runs LD, not CC, wlarc should be empty
21648     wlarc='${wl}'
21649
21650     # See if GNU ld supports shared libraries.
21651     case $host_os in
21652     aix3* | aix4* | aix5*)
21653       # On AIX/PPC, the GNU linker is very broken
21654       if test "$host_cpu" != ia64; then
21655         ld_shlibs_GCJ=no
21656         cat <<EOF 1>&2
21657
21658 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21659 *** to be unable to reliably create shared libraries on AIX.
21660 *** Therefore, libtool is disabling shared libraries support.  If you
21661 *** really care for shared libraries, you may want to modify your PATH
21662 *** so that a non-GNU linker is found, and then restart.
21663
21664 EOF
21665       fi
21666       ;;
21667
21668     amigaos*)
21669       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)'
21670       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21671       hardcode_minus_L_GCJ=yes
21672
21673       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21674       # that the semantics of dynamic libraries on AmigaOS, at least up
21675       # to version 4, is to share data among multiple programs linked
21676       # with the same dynamic library.  Since this doesn't match the
21677       # behavior of shared libraries on other platforms, we can't use
21678       # them.
21679       ld_shlibs_GCJ=no
21680       ;;
21681
21682     beos*)
21683       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21684         allow_undefined_flag_GCJ=unsupported
21685         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21686         # support --undefined.  This deserves some investigation.  FIXME
21687         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21688       else
21689         ld_shlibs_GCJ=no
21690       fi
21691       ;;
21692
21693     cygwin* | mingw* | pw32*)
21694       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21695       # as there is no search path for DLLs.
21696       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21697       allow_undefined_flag_GCJ=unsupported
21698       always_export_symbols_GCJ=no
21699       enable_shared_with_static_runtimes_GCJ=yes
21700       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21701
21702       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21703         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21704         # If the export-symbols file already is a .def file (1st line
21705         # is EXPORTS), use it as is; otherwise, prepend...
21706         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21707           cp $export_symbols $output_objdir/$soname.def;
21708         else
21709           echo EXPORTS > $output_objdir/$soname.def;
21710           cat $export_symbols >> $output_objdir/$soname.def;
21711         fi~
21712         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21713       else
21714         ld_shlibs=no
21715       fi
21716       ;;
21717
21718     netbsd*)
21719       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21720         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21721         wlarc=
21722       else
21723         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21724         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21725       fi
21726       ;;
21727
21728     solaris* | sysv5*)
21729       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21730         ld_shlibs_GCJ=no
21731         cat <<EOF 1>&2
21732
21733 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21734 *** create shared libraries on Solaris systems.  Therefore, libtool
21735 *** is disabling shared libraries support.  We urge you to upgrade GNU
21736 *** binutils to release 2.9.1 or newer.  Another option is to modify
21737 *** your PATH or compiler configuration so that the native linker is
21738 *** used, and then restart.
21739
21740 EOF
21741       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21742         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21743         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21744       else
21745         ld_shlibs_GCJ=no
21746       fi
21747       ;;
21748
21749     sunos4*)
21750       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21751       wlarc=
21752       hardcode_direct_GCJ=yes
21753       hardcode_shlibpath_var_GCJ=no
21754       ;;
21755
21756   linux*)
21757     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21758         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21759         archive_cmds_GCJ="$tmp_archive_cmds"
21760       supports_anon_versioning=no
21761       case `$LD -v 2>/dev/null` in
21762         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21763         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21764         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21765         *\ 2.11.*) ;; # other 2.11 versions
21766         *) supports_anon_versioning=yes ;;
21767       esac
21768       if test $supports_anon_versioning = yes; then
21769         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21771 $echo "local: *; };" >> $output_objdir/$libname.ver~
21772         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21773       else
21774         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21775       fi
21776     else
21777       ld_shlibs_GCJ=no
21778     fi
21779     ;;
21780
21781     *)
21782       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21783         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21784         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21785       else
21786         ld_shlibs_GCJ=no
21787       fi
21788       ;;
21789     esac
21790
21791     if test "$ld_shlibs_GCJ" = yes; then
21792       runpath_var=LD_RUN_PATH
21793       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21794       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21795       # ancient GNU ld didn't support --whole-archive et. al.
21796       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21797         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21798       else
21799         whole_archive_flag_spec_GCJ=
21800       fi
21801     fi
21802   else
21803     # PORTME fill in a description of your system's linker (not GNU ld)
21804     case $host_os in
21805     aix3*)
21806       allow_undefined_flag_GCJ=unsupported
21807       always_export_symbols_GCJ=yes
21808       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'
21809       # Note: this linker hardcodes the directories in LIBPATH if there
21810       # are no directories specified by -L.
21811       hardcode_minus_L_GCJ=yes
21812       if test "$GCC" = yes && test -z "$link_static_flag"; then
21813         # Neither direct hardcoding nor static linking is supported with a
21814         # broken collect2.
21815         hardcode_direct_GCJ=unsupported
21816       fi
21817       ;;
21818
21819     aix4* | aix5*)
21820       if test "$host_cpu" = ia64; then
21821         # On IA64, the linker does run time linking by default, so we don't
21822         # have to do anything special.
21823         aix_use_runtimelinking=no
21824         exp_sym_flag='-Bexport'
21825         no_entry_flag=""
21826       else
21827         # If we're using GNU nm, then we don't want the "-C" option.
21828         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21829         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21830           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'
21831         else
21832           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'
21833         fi
21834         aix_use_runtimelinking=no
21835
21836         # Test if we are trying to use run time linking or normal
21837         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21838         # need to do runtime linking.
21839         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21840           for ld_flag in $LDFLAGS; do
21841           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21842             aix_use_runtimelinking=yes
21843             break
21844           fi
21845           done
21846         esac
21847
21848         exp_sym_flag='-bexport'
21849         no_entry_flag='-bnoentry'
21850       fi
21851
21852       # When large executables or shared objects are built, AIX ld can
21853       # have problems creating the table of contents.  If linking a library
21854       # or program results in "error TOC overflow" add -mminimal-toc to
21855       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21856       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21857
21858       archive_cmds_GCJ=''
21859       hardcode_direct_GCJ=yes
21860       hardcode_libdir_separator_GCJ=':'
21861       link_all_deplibs_GCJ=yes
21862
21863       if test "$GCC" = yes; then
21864         case $host_os in aix4.012|aix4.012.*)
21865         # We only want to do this on AIX 4.2 and lower, the check
21866         # below for broken collect2 doesn't work under 4.3+
21867           collect2name=`${CC} -print-prog-name=collect2`
21868           if test -f "$collect2name" && \
21869            strings "$collect2name" | grep resolve_lib_name >/dev/null
21870           then
21871           # We have reworked collect2
21872           hardcode_direct_GCJ=yes
21873           else
21874           # We have old collect2
21875           hardcode_direct_GCJ=unsupported
21876           # It fails to find uninstalled libraries when the uninstalled
21877           # path is not listed in the libpath.  Setting hardcode_minus_L
21878           # to unsupported forces relinking
21879           hardcode_minus_L_GCJ=yes
21880           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21881           hardcode_libdir_separator_GCJ=
21882           fi
21883         esac
21884         shared_flag='-shared'
21885       else
21886         # not using gcc
21887         if test "$host_cpu" = ia64; then
21888         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21889         # chokes on -Wl,-G. The following line is correct:
21890           shared_flag='-G'
21891         else
21892         if test "$aix_use_runtimelinking" = yes; then
21893             shared_flag='${wl}-G'
21894           else
21895             shared_flag='${wl}-bM:SRE'
21896         fi
21897         fi
21898       fi
21899
21900       # It seems that -bexpall does not export symbols beginning with
21901       # underscore (_), so it is better to generate a list of symbols to export.
21902       always_export_symbols_GCJ=yes
21903       if test "$aix_use_runtimelinking" = yes; then
21904         # Warning - without using the other runtime loading flags (-brtl),
21905         # -berok will link without error, but may produce a broken library.
21906         allow_undefined_flag_GCJ='-berok'
21907        # Determine the default libpath from the value encoded in an empty executable.
21908        cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914
21915 int
21916 main ()
21917 {
21918
21919   ;
21920   return 0;
21921 }
21922 _ACEOF
21923 rm -f conftest.$ac_objext conftest$ac_exeext
21924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21925   (eval $ac_link) 2>conftest.er1
21926   ac_status=$?
21927   grep -v '^ *+' conftest.er1 >conftest.err
21928   rm -f conftest.er1
21929   cat conftest.err >&5
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); } &&
21932          { ac_try='test -z "$ac_c_werror_flag"
21933                          || test ! -s conftest.err'
21934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935   (eval $ac_try) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; } &&
21939          { ac_try='test -s conftest$ac_exeext'
21940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941   (eval $ac_try) 2>&5
21942   ac_status=$?
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); }; }; then
21945
21946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21947 }'`
21948 # Check for a 64-bit object if we didn't find anything.
21949 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; }
21950 }'`; fi
21951 else
21952   echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21954
21955 fi
21956 rm -f conftest.err conftest.$ac_objext \
21957       conftest$ac_exeext conftest.$ac_ext
21958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21959
21960        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21961         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"
21962        else
21963         if test "$host_cpu" = ia64; then
21964           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21965           allow_undefined_flag_GCJ="-z nodefs"
21966           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"
21967         else
21968          # Determine the default libpath from the value encoded in an empty executable.
21969          cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h.  */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h.  */
21975
21976 int
21977 main ()
21978 {
21979
21980   ;
21981   return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986   (eval $ac_link) 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } &&
21993          { ac_try='test -z "$ac_c_werror_flag"
21994                          || test ! -s conftest.err'
21995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996   (eval $ac_try) 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; } &&
22000          { ac_try='test -s conftest$ac_exeext'
22001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; }; then
22006
22007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22008 }'`
22009 # Check for a 64-bit object if we didn't find anything.
22010 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; }
22011 }'`; fi
22012 else
22013   echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 fi
22017 rm -f conftest.err conftest.$ac_objext \
22018       conftest$ac_exeext conftest.$ac_ext
22019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22020
22021          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22022           # Warning - without using the other run time loading flags,
22023           # -berok will link without error, but may produce a broken library.
22024           no_undefined_flag_GCJ=' ${wl}-bernotok'
22025           allow_undefined_flag_GCJ=' ${wl}-berok'
22026           # -bexpall does not export symbols beginning with underscore (_)
22027           always_export_symbols_GCJ=yes
22028           # Exported symbols can be pulled into shared objects from archives
22029           whole_archive_flag_spec_GCJ=' '
22030           archive_cmds_need_lc_GCJ=yes
22031           # This is similar to how AIX traditionally builds it's shared libraries.
22032           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'
22033         fi
22034       fi
22035       ;;
22036
22037     amigaos*)
22038       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)'
22039       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22040       hardcode_minus_L_GCJ=yes
22041       # see comment about different semantics on the GNU ld section
22042       ld_shlibs_GCJ=no
22043       ;;
22044
22045     bsdi[45]*)
22046       export_dynamic_flag_spec_GCJ=-rdynamic
22047       ;;
22048
22049     cygwin* | mingw* | pw32*)
22050       # When not using gcc, we currently assume that we are using
22051       # Microsoft Visual C++.
22052       # hardcode_libdir_flag_spec is actually meaningless, as there is
22053       # no search path for DLLs.
22054       hardcode_libdir_flag_spec_GCJ=' '
22055       allow_undefined_flag_GCJ=unsupported
22056       # Tell ltmain to make .lib files, not .a files.
22057       libext=lib
22058       # Tell ltmain to make .dll files, not .so files.
22059       shrext_cmds=".dll"
22060       # FIXME: Setting linknames here is a bad hack.
22061       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22062       # The linker will automatically build a .lib file if we build a DLL.
22063       old_archive_From_new_cmds_GCJ='true'
22064       # FIXME: Should let the user specify the lib program.
22065       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22066       fix_srcfile_path='`cygpath -w "$srcfile"`'
22067       enable_shared_with_static_runtimes_GCJ=yes
22068       ;;
22069
22070     darwin* | rhapsody*)
22071       case "$host_os" in
22072         rhapsody* | darwin1.[012])
22073          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22074          ;;
22075        *) # Darwin 1.3 on
22076          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22077            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22078          else
22079            case ${MACOSX_DEPLOYMENT_TARGET} in
22080              10.[012])
22081                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22082                ;;
22083              10.*)
22084                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22085                ;;
22086            esac
22087          fi
22088          ;;
22089       esac
22090       archive_cmds_need_lc_GCJ=no
22091       hardcode_direct_GCJ=no
22092       hardcode_automatic_GCJ=yes
22093       hardcode_shlibpath_var_GCJ=unsupported
22094       whole_archive_flag_spec_GCJ=''
22095       link_all_deplibs_GCJ=yes
22096     if test "$GCC" = yes ; then
22097         output_verbose_link_cmd='echo'
22098         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22099       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22100       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22101       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}'
22102       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}'
22103     else
22104       case "$cc_basename" in
22105         xlc*)
22106          output_verbose_link_cmd='echo'
22107          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22108          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22109           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22110          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}'
22111           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}'
22112           ;;
22113        *)
22114          ld_shlibs_GCJ=no
22115           ;;
22116       esac
22117     fi
22118       ;;
22119
22120     dgux*)
22121       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22122       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22123       hardcode_shlibpath_var_GCJ=no
22124       ;;
22125
22126     freebsd1*)
22127       ld_shlibs_GCJ=no
22128       ;;
22129
22130     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22131     # support.  Future versions do this automatically, but an explicit c++rt0.o
22132     # does not break anything, and helps significantly (at the cost of a little
22133     # extra space).
22134     freebsd2.2*)
22135       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22136       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22137       hardcode_direct_GCJ=yes
22138       hardcode_shlibpath_var_GCJ=no
22139       ;;
22140
22141     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22142     freebsd2*)
22143       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22144       hardcode_direct_GCJ=yes
22145       hardcode_minus_L_GCJ=yes
22146       hardcode_shlibpath_var_GCJ=no
22147       ;;
22148
22149     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22150     freebsd* | kfreebsd*-gnu)
22151       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22152       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153       hardcode_direct_GCJ=yes
22154       hardcode_shlibpath_var_GCJ=no
22155       ;;
22156
22157     hpux9*)
22158       if test "$GCC" = yes; then
22159         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'
22160       else
22161         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'
22162       fi
22163       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22164       hardcode_libdir_separator_GCJ=:
22165       hardcode_direct_GCJ=yes
22166
22167       # hardcode_minus_L: Not really in the search PATH,
22168       # but as the default location of the library.
22169       hardcode_minus_L_GCJ=yes
22170       export_dynamic_flag_spec_GCJ='${wl}-E'
22171       ;;
22172
22173     hpux10* | hpux11*)
22174       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22175         case "$host_cpu" in
22176         hppa*64*|ia64*)
22177           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22178           ;;
22179         *)
22180           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22181           ;;
22182         esac
22183       else
22184         case "$host_cpu" in
22185         hppa*64*|ia64*)
22186           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22187           ;;
22188         *)
22189           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22190           ;;
22191         esac
22192       fi
22193       if test "$with_gnu_ld" = no; then
22194         case "$host_cpu" in
22195         hppa*64*)
22196           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22197           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22198           hardcode_libdir_separator_GCJ=:
22199           hardcode_direct_GCJ=no
22200           hardcode_shlibpath_var_GCJ=no
22201           ;;
22202         ia64*)
22203           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22204           hardcode_direct_GCJ=no
22205           hardcode_shlibpath_var_GCJ=no
22206
22207           # hardcode_minus_L: Not really in the search PATH,
22208           # but as the default location of the library.
22209           hardcode_minus_L_GCJ=yes
22210           ;;
22211         *)
22212           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22213           hardcode_libdir_separator_GCJ=:
22214           hardcode_direct_GCJ=yes
22215           export_dynamic_flag_spec_GCJ='${wl}-E'
22216
22217           # hardcode_minus_L: Not really in the search PATH,
22218           # but as the default location of the library.
22219           hardcode_minus_L_GCJ=yes
22220           ;;
22221         esac
22222       fi
22223       ;;
22224
22225     irix5* | irix6* | nonstopux*)
22226       if test "$GCC" = yes; then
22227         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'
22228       else
22229         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'
22230         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22231       fi
22232       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22233       hardcode_libdir_separator_GCJ=:
22234       link_all_deplibs_GCJ=yes
22235       ;;
22236
22237     netbsd*)
22238       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22239         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22240       else
22241         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22242       fi
22243       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244       hardcode_direct_GCJ=yes
22245       hardcode_shlibpath_var_GCJ=no
22246       ;;
22247
22248     newsos6)
22249       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250       hardcode_direct_GCJ=yes
22251       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22252       hardcode_libdir_separator_GCJ=:
22253       hardcode_shlibpath_var_GCJ=no
22254       ;;
22255
22256     openbsd*)
22257       hardcode_direct_GCJ=yes
22258       hardcode_shlibpath_var_GCJ=no
22259       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22260         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22261         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22262         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22263         export_dynamic_flag_spec_GCJ='${wl}-E'
22264       else
22265        case $host_os in
22266          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22267            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22269            ;;
22270          *)
22271            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22272            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22273            ;;
22274        esac
22275       fi
22276       ;;
22277
22278     os2*)
22279       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22280       hardcode_minus_L_GCJ=yes
22281       allow_undefined_flag_GCJ=unsupported
22282       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'
22283       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22284       ;;
22285
22286     osf3*)
22287       if test "$GCC" = yes; then
22288         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22289         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'
22290       else
22291         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22292         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'
22293       fi
22294       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22295       hardcode_libdir_separator_GCJ=:
22296       ;;
22297
22298     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22299       if test "$GCC" = yes; then
22300         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22301         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'
22302         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22303       else
22304         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22305         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'
22306         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~
22307         $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'
22308
22309         # Both c and cxx compiler support -rpath directly
22310         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22311       fi
22312       hardcode_libdir_separator_GCJ=:
22313       ;;
22314
22315     sco3.2v5*)
22316       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317       hardcode_shlibpath_var_GCJ=no
22318       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22319       runpath_var=LD_RUN_PATH
22320       hardcode_runpath_var=yes
22321       ;;
22322
22323     solaris*)
22324       no_undefined_flag_GCJ=' -z text'
22325       if test "$GCC" = yes; then
22326         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22327         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22328           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22329       else
22330         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22331         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22332         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22333       fi
22334       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22335       hardcode_shlibpath_var_GCJ=no
22336       case $host_os in
22337       solaris2.[0-5] | solaris2.[0-5].*) ;;
22338       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22339         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22340       esac
22341       link_all_deplibs_GCJ=yes
22342       ;;
22343
22344     sunos4*)
22345       if test "x$host_vendor" = xsequent; then
22346         # Use $CC to link under sequent, because it throws in some extra .o
22347         # files that make .init and .fini sections work.
22348         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22349       else
22350         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22351       fi
22352       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22353       hardcode_direct_GCJ=yes
22354       hardcode_minus_L_GCJ=yes
22355       hardcode_shlibpath_var_GCJ=no
22356       ;;
22357
22358     sysv4)
22359       case $host_vendor in
22360         sni)
22361           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22362           hardcode_direct_GCJ=yes # is this really true???
22363         ;;
22364         siemens)
22365           ## LD is ld it makes a PLAMLIB
22366           ## CC just makes a GrossModule.
22367           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22368           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22369           hardcode_direct_GCJ=no
22370         ;;
22371         motorola)
22372           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22373           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22374         ;;
22375       esac
22376       runpath_var='LD_RUN_PATH'
22377       hardcode_shlibpath_var_GCJ=no
22378       ;;
22379
22380     sysv4.3*)
22381       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22382       hardcode_shlibpath_var_GCJ=no
22383       export_dynamic_flag_spec_GCJ='-Bexport'
22384       ;;
22385
22386     sysv4*MP*)
22387       if test -d /usr/nec; then
22388         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22389         hardcode_shlibpath_var_GCJ=no
22390         runpath_var=LD_RUN_PATH
22391         hardcode_runpath_var=yes
22392         ld_shlibs_GCJ=yes
22393       fi
22394       ;;
22395
22396     sysv4.2uw2*)
22397       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22398       hardcode_direct_GCJ=yes
22399       hardcode_minus_L_GCJ=no
22400       hardcode_shlibpath_var_GCJ=no
22401       hardcode_runpath_var=yes
22402       runpath_var=LD_RUN_PATH
22403       ;;
22404
22405    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22406       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22407       if test "$GCC" = yes; then
22408         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22409       else
22410         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22411       fi
22412       runpath_var='LD_RUN_PATH'
22413       hardcode_shlibpath_var_GCJ=no
22414       ;;
22415
22416     sysv5*)
22417       no_undefined_flag_GCJ=' -z text'
22418       # $CC -shared without GNU ld will not create a library from C++
22419       # object files and a static libstdc++, better avoid it by now
22420       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22422                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22423       hardcode_libdir_flag_spec_GCJ=
22424       hardcode_shlibpath_var_GCJ=no
22425       runpath_var='LD_RUN_PATH'
22426       ;;
22427
22428     uts4*)
22429       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22430       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22431       hardcode_shlibpath_var_GCJ=no
22432       ;;
22433
22434     *)
22435       ld_shlibs_GCJ=no
22436       ;;
22437     esac
22438   fi
22439
22440 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22441 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22442 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22443
22444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22445 if test "$GCC" = yes; then
22446   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22447 fi
22448
22449 #
22450 # Do we need to explicitly link libc?
22451 #
22452 case "x$archive_cmds_need_lc_GCJ" in
22453 x|xyes)
22454   # Assume -lc should be added
22455   archive_cmds_need_lc_GCJ=yes
22456
22457   if test "$enable_shared" = yes && test "$GCC" = yes; then
22458     case $archive_cmds_GCJ in
22459     *'~'*)
22460       # FIXME: we may have to deal with multi-command sequences.
22461       ;;
22462     '$CC '*)
22463       # Test whether the compiler implicitly links with -lc since on some
22464       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22465       # to ld, don't add -lc before -lgcc.
22466       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22468       $rm conftest*
22469       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22470
22471       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22472   (eval $ac_compile) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } 2>conftest.err; then
22476         soname=conftest
22477         lib=conftest
22478         libobjs=conftest.$ac_objext
22479         deplibs=
22480         wl=$lt_prog_compiler_wl_GCJ
22481         compiler_flags=-v
22482         linker_flags=-v
22483         verstring=
22484         output_objdir=.
22485         libname=conftest
22486         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22487         allow_undefined_flag_GCJ=
22488         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22489   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }
22493         then
22494           archive_cmds_need_lc_GCJ=no
22495         else
22496           archive_cmds_need_lc_GCJ=yes
22497         fi
22498         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22499       else
22500         cat conftest.err 1>&5
22501       fi
22502       $rm conftest*
22503       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22504 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22505       ;;
22506     esac
22507   fi
22508   ;;
22509 esac
22510
22511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22513 library_names_spec=
22514 libname_spec='lib$name'
22515 soname_spec=
22516 shrext_cmds=".so"
22517 postinstall_cmds=
22518 postuninstall_cmds=
22519 finish_cmds=
22520 finish_eval=
22521 shlibpath_var=
22522 shlibpath_overrides_runpath=unknown
22523 version_type=none
22524 dynamic_linker="$host_os ld.so"
22525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22526 if test "$GCC" = yes; then
22527   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22528   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22529     # if the path contains ";" then we assume it to be the separator
22530     # otherwise default to the standard path separator (i.e. ":") - it is
22531     # assumed that no part of a normal pathname contains ";" but that should
22532     # okay in the real world where ";" in dirpaths is itself problematic.
22533     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22534   else
22535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22536   fi
22537 else
22538   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22539 fi
22540 need_lib_prefix=unknown
22541 hardcode_into_libs=no
22542
22543 # when you set need_version to no, make sure it does not cause -set_version
22544 # flags to be left without arguments
22545 need_version=unknown
22546
22547 case $host_os in
22548 aix3*)
22549   version_type=linux
22550   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22551   shlibpath_var=LIBPATH
22552
22553   # AIX 3 has no versioning support, so we append a major version to the name.
22554   soname_spec='${libname}${release}${shared_ext}$major'
22555   ;;
22556
22557 aix4* | aix5*)
22558   version_type=linux
22559   need_lib_prefix=no
22560   need_version=no
22561   hardcode_into_libs=yes
22562   if test "$host_cpu" = ia64; then
22563     # AIX 5 supports IA64
22564     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22565     shlibpath_var=LD_LIBRARY_PATH
22566   else
22567     # With GCC up to 2.95.x, collect2 would create an import file
22568     # for dependence libraries.  The import file would start with
22569     # the line `#! .'.  This would cause the generated library to
22570     # depend on `.', always an invalid library.  This was fixed in
22571     # development snapshots of GCC prior to 3.0.
22572     case $host_os in
22573       aix4 | aix4.[01] | aix4.[01].*)
22574       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22575            echo ' yes '
22576            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22577         :
22578       else
22579         can_build_shared=no
22580       fi
22581       ;;
22582     esac
22583     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22584     # soname into executable. Probably we can add versioning support to
22585     # collect2, so additional links can be useful in future.
22586     if test "$aix_use_runtimelinking" = yes; then
22587       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22588       # instead of lib<name>.a to let people know that these are not
22589       # typical AIX shared libraries.
22590       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591     else
22592       # We preserve .a as extension for shared libraries through AIX4.2
22593       # and later when we are not doing run time linking.
22594       library_names_spec='${libname}${release}.a $libname.a'
22595       soname_spec='${libname}${release}${shared_ext}$major'
22596     fi
22597     shlibpath_var=LIBPATH
22598   fi
22599   ;;
22600
22601 amigaos*)
22602   library_names_spec='$libname.ixlibrary $libname.a'
22603   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22604   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'
22605   ;;
22606
22607 beos*)
22608   library_names_spec='${libname}${shared_ext}'
22609   dynamic_linker="$host_os ld.so"
22610   shlibpath_var=LIBRARY_PATH
22611   ;;
22612
22613 bsdi[45]*)
22614   version_type=linux
22615   need_version=no
22616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22617   soname_spec='${libname}${release}${shared_ext}$major'
22618   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22619   shlibpath_var=LD_LIBRARY_PATH
22620   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22621   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22622   # the default ld.so.conf also contains /usr/contrib/lib and
22623   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22624   # libtool to hard-code these into programs
22625   ;;
22626
22627 cygwin* | mingw* | pw32*)
22628   version_type=windows
22629   shrext_cmds=".dll"
22630   need_version=no
22631   need_lib_prefix=no
22632
22633   case $GCC,$host_os in
22634   yes,cygwin* | yes,mingw* | yes,pw32*)
22635     library_names_spec='$libname.dll.a'
22636     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22637     postinstall_cmds='base_file=`basename \${file}`~
22638       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22639       dldir=$destdir/`dirname \$dlpath`~
22640       test -d \$dldir || mkdir -p \$dldir~
22641       $install_prog $dir/$dlname \$dldir/$dlname'
22642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22643       dlpath=$dir/\$dldll~
22644        $rm \$dlpath'
22645     shlibpath_overrides_runpath=yes
22646
22647     case $host_os in
22648     cygwin*)
22649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22651       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22652       ;;
22653     mingw*)
22654       # MinGW DLLs use traditional 'lib' prefix
22655       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22656       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22657       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22658         # It is most probably a Windows format PATH printed by
22659         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22660         # path with ; separators, and with drive letters. We can handle the
22661         # drive letters (cygwin fileutils understands them), so leave them,
22662         # especially as we might pass files found there to a mingw objdump,
22663         # which wouldn't understand a cygwinified path. Ahh.
22664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22665       else
22666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22667       fi
22668       ;;
22669     pw32*)
22670       # pw32 DLLs use 'pw' prefix rather than 'lib'
22671       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22672       ;;
22673     esac
22674     ;;
22675
22676   *)
22677     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22678     ;;
22679   esac
22680   dynamic_linker='Win32 ld.exe'
22681   # FIXME: first we should search . and the directory the executable is in
22682   shlibpath_var=PATH
22683   ;;
22684
22685 darwin* | rhapsody*)
22686   dynamic_linker="$host_os dyld"
22687   version_type=darwin
22688   need_lib_prefix=no
22689   need_version=no
22690   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22691   soname_spec='${libname}${release}${major}$shared_ext'
22692   shlibpath_overrides_runpath=yes
22693   shlibpath_var=DYLD_LIBRARY_PATH
22694   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22695   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22696   if test "$GCC" = yes; then
22697     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"`
22698   else
22699     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22700   fi
22701   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22702   ;;
22703
22704 dgux*)
22705   version_type=linux
22706   need_lib_prefix=no
22707   need_version=no
22708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22709   soname_spec='${libname}${release}${shared_ext}$major'
22710   shlibpath_var=LD_LIBRARY_PATH
22711   ;;
22712
22713 freebsd1*)
22714   dynamic_linker=no
22715   ;;
22716
22717 kfreebsd*-gnu)
22718   version_type=linux
22719   need_lib_prefix=no
22720   need_version=no
22721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22722   soname_spec='${libname}${release}${shared_ext}$major'
22723   shlibpath_var=LD_LIBRARY_PATH
22724   shlibpath_overrides_runpath=no
22725   hardcode_into_libs=yes
22726   dynamic_linker='GNU ld.so'
22727   ;;
22728
22729 freebsd*)
22730   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22731   version_type=freebsd-$objformat
22732   case $version_type in
22733     freebsd-elf*)
22734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22735       need_version=no
22736       need_lib_prefix=no
22737       ;;
22738     freebsd-*)
22739       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22740       need_version=yes
22741       ;;
22742   esac
22743   shlibpath_var=LD_LIBRARY_PATH
22744   case $host_os in
22745   freebsd2*)
22746     shlibpath_overrides_runpath=yes
22747     ;;
22748   freebsd3.01* | freebsdelf3.01*)
22749     shlibpath_overrides_runpath=yes
22750     hardcode_into_libs=yes
22751     ;;
22752   *) # from 3.2 on
22753     shlibpath_overrides_runpath=no
22754     hardcode_into_libs=yes
22755     ;;
22756   esac
22757   ;;
22758
22759 gnu*)
22760   version_type=linux
22761   need_lib_prefix=no
22762   need_version=no
22763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22764   soname_spec='${libname}${release}${shared_ext}$major'
22765   shlibpath_var=LD_LIBRARY_PATH
22766   hardcode_into_libs=yes
22767   ;;
22768
22769 hpux9* | hpux10* | hpux11*)
22770   # Give a soname corresponding to the major version so that dld.sl refuses to
22771   # link against other versions.
22772   version_type=sunos
22773   need_lib_prefix=no
22774   need_version=no
22775   case "$host_cpu" in
22776   ia64*)
22777     shrext_cmds='.so'
22778     hardcode_into_libs=yes
22779     dynamic_linker="$host_os dld.so"
22780     shlibpath_var=LD_LIBRARY_PATH
22781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783     soname_spec='${libname}${release}${shared_ext}$major'
22784     if test "X$HPUX_IA64_MODE" = X32; then
22785       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22786     else
22787       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22788     fi
22789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22790     ;;
22791    hppa*64*)
22792      shrext_cmds='.sl'
22793      hardcode_into_libs=yes
22794      dynamic_linker="$host_os dld.sl"
22795      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22796      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22798      soname_spec='${libname}${release}${shared_ext}$major'
22799      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22800      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22801      ;;
22802    *)
22803     shrext_cmds='.sl'
22804     dynamic_linker="$host_os dld.sl"
22805     shlibpath_var=SHLIB_PATH
22806     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808     soname_spec='${libname}${release}${shared_ext}$major'
22809     ;;
22810   esac
22811   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22812   postinstall_cmds='chmod 555 $lib'
22813   ;;
22814
22815 irix5* | irix6* | nonstopux*)
22816   case $host_os in
22817     nonstopux*) version_type=nonstopux ;;
22818     *)
22819         if test "$lt_cv_prog_gnu_ld" = yes; then
22820                 version_type=linux
22821         else
22822                 version_type=irix
22823         fi ;;
22824   esac
22825   need_lib_prefix=no
22826   need_version=no
22827   soname_spec='${libname}${release}${shared_ext}$major'
22828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22829   case $host_os in
22830   irix5* | nonstopux*)
22831     libsuff= shlibsuff=
22832     ;;
22833   *)
22834     case $LD in # libtool.m4 will add one of these switches to LD
22835     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22836       libsuff= shlibsuff= libmagic=32-bit;;
22837     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22838       libsuff=32 shlibsuff=N32 libmagic=N32;;
22839     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22840       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22841     *) libsuff= shlibsuff= libmagic=never-match;;
22842     esac
22843     ;;
22844   esac
22845   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22846   shlibpath_overrides_runpath=no
22847   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22848   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22849   hardcode_into_libs=yes
22850   ;;
22851
22852 # No shared lib support for Linux oldld, aout, or coff.
22853 linux*oldld* | linux*aout* | linux*coff*)
22854   dynamic_linker=no
22855   ;;
22856
22857 # This must be Linux ELF.
22858 linux*)
22859   version_type=linux
22860   need_lib_prefix=no
22861   need_version=no
22862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22863   soname_spec='${libname}${release}${shared_ext}$major'
22864   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22865   shlibpath_var=LD_LIBRARY_PATH
22866   shlibpath_overrides_runpath=no
22867   # This implies no fast_install, which is unacceptable.
22868   # Some rework will be needed to allow for fast_install
22869   # before this can be enabled.
22870   hardcode_into_libs=yes
22871
22872   # Append ld.so.conf contents to the search path
22873   if test -f /etc/ld.so.conf; then
22874     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22875     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22876   fi
22877
22878   # We used to test for /lib/ld.so.1 and disable shared libraries on
22879   # powerpc, because MkLinux only supported shared libraries with the
22880   # GNU dynamic linker.  Since this was broken with cross compilers,
22881   # most powerpc-linux boxes support dynamic linking these days and
22882   # people can always --disable-shared, the test was removed, and we
22883   # assume the GNU/Linux dynamic linker is in use.
22884   dynamic_linker='GNU/Linux ld.so'
22885   ;;
22886
22887 knetbsd*-gnu)
22888   version_type=linux
22889   need_lib_prefix=no
22890   need_version=no
22891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22892   soname_spec='${libname}${release}${shared_ext}$major'
22893   shlibpath_var=LD_LIBRARY_PATH
22894   shlibpath_overrides_runpath=no
22895   hardcode_into_libs=yes
22896   dynamic_linker='GNU ld.so'
22897   ;;
22898
22899 netbsd*)
22900   version_type=sunos
22901   need_lib_prefix=no
22902   need_version=no
22903   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22905     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22906     dynamic_linker='NetBSD (a.out) ld.so'
22907   else
22908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22909     soname_spec='${libname}${release}${shared_ext}$major'
22910     dynamic_linker='NetBSD ld.elf_so'
22911   fi
22912   shlibpath_var=LD_LIBRARY_PATH
22913   shlibpath_overrides_runpath=yes
22914   hardcode_into_libs=yes
22915   ;;
22916
22917 newsos6)
22918   version_type=linux
22919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22920   shlibpath_var=LD_LIBRARY_PATH
22921   shlibpath_overrides_runpath=yes
22922   ;;
22923
22924 nto-qnx*)
22925   version_type=linux
22926   need_lib_prefix=no
22927   need_version=no
22928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22929   soname_spec='${libname}${release}${shared_ext}$major'
22930   shlibpath_var=LD_LIBRARY_PATH
22931   shlibpath_overrides_runpath=yes
22932   ;;
22933
22934 openbsd*)
22935   version_type=sunos
22936   need_lib_prefix=no
22937   need_version=no
22938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22940   shlibpath_var=LD_LIBRARY_PATH
22941   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22942     case $host_os in
22943       openbsd2.[89] | openbsd2.[89].*)
22944         shlibpath_overrides_runpath=no
22945         ;;
22946       *)
22947         shlibpath_overrides_runpath=yes
22948         ;;
22949       esac
22950   else
22951     shlibpath_overrides_runpath=yes
22952   fi
22953   ;;
22954
22955 os2*)
22956   libname_spec='$name'
22957   shrext_cmds=".dll"
22958   need_lib_prefix=no
22959   library_names_spec='$libname${shared_ext} $libname.a'
22960   dynamic_linker='OS/2 ld.exe'
22961   shlibpath_var=LIBPATH
22962   ;;
22963
22964 osf3* | osf4* | osf5*)
22965   version_type=osf
22966   need_lib_prefix=no
22967   need_version=no
22968   soname_spec='${libname}${release}${shared_ext}$major'
22969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22970   shlibpath_var=LD_LIBRARY_PATH
22971   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22972   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22973   ;;
22974
22975 sco3.2v5*)
22976   version_type=osf
22977   soname_spec='${libname}${release}${shared_ext}$major'
22978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979   shlibpath_var=LD_LIBRARY_PATH
22980   ;;
22981
22982 solaris*)
22983   version_type=linux
22984   need_lib_prefix=no
22985   need_version=no
22986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987   soname_spec='${libname}${release}${shared_ext}$major'
22988   shlibpath_var=LD_LIBRARY_PATH
22989   shlibpath_overrides_runpath=yes
22990   hardcode_into_libs=yes
22991   # ldd complains unless libraries are executable
22992   postinstall_cmds='chmod +x $lib'
22993   ;;
22994
22995 sunos4*)
22996   version_type=sunos
22997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22998   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22999   shlibpath_var=LD_LIBRARY_PATH
23000   shlibpath_overrides_runpath=yes
23001   if test "$with_gnu_ld" = yes; then
23002     need_lib_prefix=no
23003   fi
23004   need_version=yes
23005   ;;
23006
23007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23008   version_type=linux
23009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010   soname_spec='${libname}${release}${shared_ext}$major'
23011   shlibpath_var=LD_LIBRARY_PATH
23012   case $host_vendor in
23013     sni)
23014       shlibpath_overrides_runpath=no
23015       need_lib_prefix=no
23016       export_dynamic_flag_spec='${wl}-Blargedynsym'
23017       runpath_var=LD_RUN_PATH
23018       ;;
23019     siemens)
23020       need_lib_prefix=no
23021       ;;
23022     motorola)
23023       need_lib_prefix=no
23024       need_version=no
23025       shlibpath_overrides_runpath=no
23026       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23027       ;;
23028   esac
23029   ;;
23030
23031 sysv4*MP*)
23032   if test -d /usr/nec ;then
23033     version_type=linux
23034     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23035     soname_spec='$libname${shared_ext}.$major'
23036     shlibpath_var=LD_LIBRARY_PATH
23037   fi
23038   ;;
23039
23040 uts4*)
23041   version_type=linux
23042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23043   soname_spec='${libname}${release}${shared_ext}$major'
23044   shlibpath_var=LD_LIBRARY_PATH
23045   ;;
23046
23047 *)
23048   dynamic_linker=no
23049   ;;
23050 esac
23051 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23052 echo "${ECHO_T}$dynamic_linker" >&6
23053 test "$dynamic_linker" = no && can_build_shared=no
23054
23055 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23057 hardcode_action_GCJ=
23058 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23059    test -n "$runpath_var_GCJ" || \
23060    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23061
23062   # We can hardcode non-existant directories.
23063   if test "$hardcode_direct_GCJ" != no &&
23064      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23065      # have to relink, otherwise we might link with an installed library
23066      # when we should be linking with a yet-to-be-installed one
23067      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23068      test "$hardcode_minus_L_GCJ" != no; then
23069     # Linking always hardcodes the temporary library directory.
23070     hardcode_action_GCJ=relink
23071   else
23072     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23073     hardcode_action_GCJ=immediate
23074   fi
23075 else
23076   # We cannot hardcode anything, or else we can only hardcode existing
23077   # directories.
23078   hardcode_action_GCJ=unsupported
23079 fi
23080 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23081 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23082
23083 if test "$hardcode_action_GCJ" = relink; then
23084   # Fast installation is not supported
23085   enable_fast_install=no
23086 elif test "$shlibpath_overrides_runpath" = yes ||
23087      test "$enable_shared" = no; then
23088   # Fast installation is not necessary
23089   enable_fast_install=needless
23090 fi
23091
23092 striplib=
23093 old_striplib=
23094 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23095 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23096 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23097   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23098   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23099   echo "$as_me:$LINENO: result: yes" >&5
23100 echo "${ECHO_T}yes" >&6
23101 else
23102 # FIXME - insert some real tests, host_os isn't really good enough
23103   case $host_os in
23104    darwin*)
23105        if test -n "$STRIP" ; then
23106          striplib="$STRIP -x"
23107          echo "$as_me:$LINENO: result: yes" >&5
23108 echo "${ECHO_T}yes" >&6
23109        else
23110   echo "$as_me:$LINENO: result: no" >&5
23111 echo "${ECHO_T}no" >&6
23112 fi
23113        ;;
23114    *)
23115   echo "$as_me:$LINENO: result: no" >&5
23116 echo "${ECHO_T}no" >&6
23117     ;;
23118   esac
23119 fi
23120
23121 if test "x$enable_dlopen" != xyes; then
23122   enable_dlopen=unknown
23123   enable_dlopen_self=unknown
23124   enable_dlopen_self_static=unknown
23125 else
23126   lt_cv_dlopen=no
23127   lt_cv_dlopen_libs=
23128
23129   case $host_os in
23130   beos*)
23131     lt_cv_dlopen="load_add_on"
23132     lt_cv_dlopen_libs=
23133     lt_cv_dlopen_self=yes
23134     ;;
23135
23136   mingw* | pw32*)
23137     lt_cv_dlopen="LoadLibrary"
23138     lt_cv_dlopen_libs=
23139    ;;
23140
23141   cygwin*)
23142     lt_cv_dlopen="dlopen"
23143     lt_cv_dlopen_libs=
23144    ;;
23145
23146   darwin*)
23147   # if libdl is installed we need to link against it
23148     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23151   echo $ECHO_N "(cached) $ECHO_C" >&6
23152 else
23153   ac_check_lib_save_LIBS=$LIBS
23154 LIBS="-ldl  $LIBS"
23155 cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h.  */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h.  */
23161
23162 /* Override any gcc2 internal prototype to avoid an error.  */
23163 #ifdef __cplusplus
23164 extern "C"
23165 #endif
23166 /* We use char because int might match the return type of a gcc2
23167    builtin and then its argument prototype would still apply.  */
23168 char dlopen ();
23169 int
23170 main ()
23171 {
23172 dlopen ();
23173   ;
23174   return 0;
23175 }
23176 _ACEOF
23177 rm -f conftest.$ac_objext conftest$ac_exeext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23179   (eval $ac_link) 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } &&
23186          { ac_try='test -z "$ac_c_werror_flag"
23187                          || test ! -s conftest.err'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; } &&
23193          { ac_try='test -s conftest$ac_exeext'
23194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195   (eval $ac_try) 2>&5
23196   ac_status=$?
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); }; }; then
23199   ac_cv_lib_dl_dlopen=yes
23200 else
23201   echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 ac_cv_lib_dl_dlopen=no
23205 fi
23206 rm -f conftest.err conftest.$ac_objext \
23207       conftest$ac_exeext conftest.$ac_ext
23208 LIBS=$ac_check_lib_save_LIBS
23209 fi
23210 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23212 if test $ac_cv_lib_dl_dlopen = yes; then
23213   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23214 else
23215
23216     lt_cv_dlopen="dyld"
23217     lt_cv_dlopen_libs=
23218     lt_cv_dlopen_self=yes
23219
23220 fi
23221
23222    ;;
23223
23224   *)
23225     echo "$as_me:$LINENO: checking for shl_load" >&5
23226 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23227 if test "${ac_cv_func_shl_load+set}" = set; then
23228   echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230   cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h.  */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h.  */
23236 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23238 #define shl_load innocuous_shl_load
23239
23240 /* System header to define __stub macros and hopefully few prototypes,
23241     which can conflict with char shl_load (); below.
23242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23243     <limits.h> exists even on freestanding compilers.  */
23244
23245 #ifdef __STDC__
23246 # include <limits.h>
23247 #else
23248 # include <assert.h>
23249 #endif
23250
23251 #undef shl_load
23252
23253 /* Override any gcc2 internal prototype to avoid an error.  */
23254 #ifdef __cplusplus
23255 extern "C"
23256 {
23257 #endif
23258 /* We use char because int might match the return type of a gcc2
23259    builtin and then its argument prototype would still apply.  */
23260 char shl_load ();
23261 /* The GNU C library defines this for functions which it implements
23262     to always fail with ENOSYS.  Some functions are actually named
23263     something starting with __ and the normal name is an alias.  */
23264 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23265 choke me
23266 #else
23267 char (*f) () = shl_load;
23268 #endif
23269 #ifdef __cplusplus
23270 }
23271 #endif
23272
23273 int
23274 main ()
23275 {
23276 return f != shl_load;
23277   ;
23278   return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283   (eval $ac_link) 2>conftest.er1
23284   ac_status=$?
23285   grep -v '^ *+' conftest.er1 >conftest.err
23286   rm -f conftest.er1
23287   cat conftest.err >&5
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); } &&
23290          { ac_try='test -z "$ac_c_werror_flag"
23291                          || test ! -s conftest.err'
23292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293   (eval $ac_try) 2>&5
23294   ac_status=$?
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); }; } &&
23297          { ac_try='test -s conftest$ac_exeext'
23298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299   (eval $ac_try) 2>&5
23300   ac_status=$?
23301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302   (exit $ac_status); }; }; then
23303   ac_cv_func_shl_load=yes
23304 else
23305   echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 ac_cv_func_shl_load=no
23309 fi
23310 rm -f conftest.err conftest.$ac_objext \
23311       conftest$ac_exeext conftest.$ac_ext
23312 fi
23313 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23314 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23315 if test $ac_cv_func_shl_load = yes; then
23316   lt_cv_dlopen="shl_load"
23317 else
23318   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23319 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23320 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23321   echo $ECHO_N "(cached) $ECHO_C" >&6
23322 else
23323   ac_check_lib_save_LIBS=$LIBS
23324 LIBS="-ldld  $LIBS"
23325 cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h.  */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h.  */
23331
23332 /* Override any gcc2 internal prototype to avoid an error.  */
23333 #ifdef __cplusplus
23334 extern "C"
23335 #endif
23336 /* We use char because int might match the return type of a gcc2
23337    builtin and then its argument prototype would still apply.  */
23338 char shl_load ();
23339 int
23340 main ()
23341 {
23342 shl_load ();
23343   ;
23344   return 0;
23345 }
23346 _ACEOF
23347 rm -f conftest.$ac_objext conftest$ac_exeext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23349   (eval $ac_link) 2>conftest.er1
23350   ac_status=$?
23351   grep -v '^ *+' conftest.er1 >conftest.err
23352   rm -f conftest.er1
23353   cat conftest.err >&5
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } &&
23356          { ac_try='test -z "$ac_c_werror_flag"
23357                          || test ! -s conftest.err'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; } &&
23363          { ac_try='test -s conftest$ac_exeext'
23364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365   (eval $ac_try) 2>&5
23366   ac_status=$?
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); }; }; then
23369   ac_cv_lib_dld_shl_load=yes
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 ac_cv_lib_dld_shl_load=no
23375 fi
23376 rm -f conftest.err conftest.$ac_objext \
23377       conftest$ac_exeext conftest.$ac_ext
23378 LIBS=$ac_check_lib_save_LIBS
23379 fi
23380 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23381 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23382 if test $ac_cv_lib_dld_shl_load = yes; then
23383   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23384 else
23385   echo "$as_me:$LINENO: checking for dlopen" >&5
23386 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23387 if test "${ac_cv_func_dlopen+set}" = set; then
23388   echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390   cat >conftest.$ac_ext <<_ACEOF
23391 /* confdefs.h.  */
23392 _ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h.  */
23396 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23398 #define dlopen innocuous_dlopen
23399
23400 /* System header to define __stub macros and hopefully few prototypes,
23401     which can conflict with char dlopen (); below.
23402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23403     <limits.h> exists even on freestanding compilers.  */
23404
23405 #ifdef __STDC__
23406 # include <limits.h>
23407 #else
23408 # include <assert.h>
23409 #endif
23410
23411 #undef dlopen
23412
23413 /* Override any gcc2 internal prototype to avoid an error.  */
23414 #ifdef __cplusplus
23415 extern "C"
23416 {
23417 #endif
23418 /* We use char because int might match the return type of a gcc2
23419    builtin and then its argument prototype would still apply.  */
23420 char dlopen ();
23421 /* The GNU C library defines this for functions which it implements
23422     to always fail with ENOSYS.  Some functions are actually named
23423     something starting with __ and the normal name is an alias.  */
23424 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23425 choke me
23426 #else
23427 char (*f) () = dlopen;
23428 #endif
23429 #ifdef __cplusplus
23430 }
23431 #endif
23432
23433 int
23434 main ()
23435 {
23436 return f != dlopen;
23437   ;
23438   return 0;
23439 }
23440 _ACEOF
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443   (eval $ac_link) 2>conftest.er1
23444   ac_status=$?
23445   grep -v '^ *+' conftest.er1 >conftest.err
23446   rm -f conftest.er1
23447   cat conftest.err >&5
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); } &&
23450          { ac_try='test -z "$ac_c_werror_flag"
23451                          || test ! -s conftest.err'
23452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453   (eval $ac_try) 2>&5
23454   ac_status=$?
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); }; } &&
23457          { ac_try='test -s conftest$ac_exeext'
23458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459   (eval $ac_try) 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); }; }; then
23463   ac_cv_func_dlopen=yes
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468 ac_cv_func_dlopen=no
23469 fi
23470 rm -f conftest.err conftest.$ac_objext \
23471       conftest$ac_exeext conftest.$ac_ext
23472 fi
23473 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23474 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23475 if test $ac_cv_func_dlopen = yes; then
23476   lt_cv_dlopen="dlopen"
23477 else
23478   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23481   echo $ECHO_N "(cached) $ECHO_C" >&6
23482 else
23483   ac_check_lib_save_LIBS=$LIBS
23484 LIBS="-ldl  $LIBS"
23485 cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h.  */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h.  */
23491
23492 /* Override any gcc2 internal prototype to avoid an error.  */
23493 #ifdef __cplusplus
23494 extern "C"
23495 #endif
23496 /* We use char because int might match the return type of a gcc2
23497    builtin and then its argument prototype would still apply.  */
23498 char dlopen ();
23499 int
23500 main ()
23501 {
23502 dlopen ();
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext conftest$ac_exeext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509   (eval $ac_link) 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } &&
23516          { ac_try='test -z "$ac_c_werror_flag"
23517                          || test ! -s conftest.err'
23518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519   (eval $ac_try) 2>&5
23520   ac_status=$?
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); }; } &&
23523          { ac_try='test -s conftest$ac_exeext'
23524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525   (eval $ac_try) 2>&5
23526   ac_status=$?
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); }; }; then
23529   ac_cv_lib_dl_dlopen=yes
23530 else
23531   echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23533
23534 ac_cv_lib_dl_dlopen=no
23535 fi
23536 rm -f conftest.err conftest.$ac_objext \
23537       conftest$ac_exeext conftest.$ac_ext
23538 LIBS=$ac_check_lib_save_LIBS
23539 fi
23540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23542 if test $ac_cv_lib_dl_dlopen = yes; then
23543   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23544 else
23545   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23546 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23547 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23548   echo $ECHO_N "(cached) $ECHO_C" >&6
23549 else
23550   ac_check_lib_save_LIBS=$LIBS
23551 LIBS="-lsvld  $LIBS"
23552 cat >conftest.$ac_ext <<_ACEOF
23553 /* confdefs.h.  */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h.  */
23558
23559 /* Override any gcc2 internal prototype to avoid an error.  */
23560 #ifdef __cplusplus
23561 extern "C"
23562 #endif
23563 /* We use char because int might match the return type of a gcc2
23564    builtin and then its argument prototype would still apply.  */
23565 char dlopen ();
23566 int
23567 main ()
23568 {
23569 dlopen ();
23570   ;
23571   return 0;
23572 }
23573 _ACEOF
23574 rm -f conftest.$ac_objext conftest$ac_exeext
23575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23576   (eval $ac_link) 2>conftest.er1
23577   ac_status=$?
23578   grep -v '^ *+' conftest.er1 >conftest.err
23579   rm -f conftest.er1
23580   cat conftest.err >&5
23581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582   (exit $ac_status); } &&
23583          { ac_try='test -z "$ac_c_werror_flag"
23584                          || test ! -s conftest.err'
23585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586   (eval $ac_try) 2>&5
23587   ac_status=$?
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); }; } &&
23590          { ac_try='test -s conftest$ac_exeext'
23591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592   (eval $ac_try) 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); }; }; then
23596   ac_cv_lib_svld_dlopen=yes
23597 else
23598   echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601 ac_cv_lib_svld_dlopen=no
23602 fi
23603 rm -f conftest.err conftest.$ac_objext \
23604       conftest$ac_exeext conftest.$ac_ext
23605 LIBS=$ac_check_lib_save_LIBS
23606 fi
23607 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23608 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23609 if test $ac_cv_lib_svld_dlopen = yes; then
23610   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23611 else
23612   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23613 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23614 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23615   echo $ECHO_N "(cached) $ECHO_C" >&6
23616 else
23617   ac_check_lib_save_LIBS=$LIBS
23618 LIBS="-ldld  $LIBS"
23619 cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h.  */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h.  */
23625
23626 /* Override any gcc2 internal prototype to avoid an error.  */
23627 #ifdef __cplusplus
23628 extern "C"
23629 #endif
23630 /* We use char because int might match the return type of a gcc2
23631    builtin and then its argument prototype would still apply.  */
23632 char dld_link ();
23633 int
23634 main ()
23635 {
23636 dld_link ();
23637   ;
23638   return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643   (eval $ac_link) 2>conftest.er1
23644   ac_status=$?
23645   grep -v '^ *+' conftest.er1 >conftest.err
23646   rm -f conftest.er1
23647   cat conftest.err >&5
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); } &&
23650          { ac_try='test -z "$ac_c_werror_flag"
23651                          || test ! -s conftest.err'
23652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653   (eval $ac_try) 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); }; } &&
23657          { ac_try='test -s conftest$ac_exeext'
23658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659   (eval $ac_try) 2>&5
23660   ac_status=$?
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); }; }; then
23663   ac_cv_lib_dld_dld_link=yes
23664 else
23665   echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23667
23668 ac_cv_lib_dld_dld_link=no
23669 fi
23670 rm -f conftest.err conftest.$ac_objext \
23671       conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_lib_save_LIBS
23673 fi
23674 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23675 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23676 if test $ac_cv_lib_dld_dld_link = yes; then
23677   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23678 fi
23679
23680
23681 fi
23682
23683
23684 fi
23685
23686
23687 fi
23688
23689
23690 fi
23691
23692
23693 fi
23694
23695     ;;
23696   esac
23697
23698   if test "x$lt_cv_dlopen" != xno; then
23699     enable_dlopen=yes
23700   else
23701     enable_dlopen=no
23702   fi
23703
23704   case $lt_cv_dlopen in
23705   dlopen)
23706     save_CPPFLAGS="$CPPFLAGS"
23707     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23708
23709     save_LDFLAGS="$LDFLAGS"
23710     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23711
23712     save_LIBS="$LIBS"
23713     LIBS="$lt_cv_dlopen_libs $LIBS"
23714
23715     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23716 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23717 if test "${lt_cv_dlopen_self+set}" = set; then
23718   echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720           if test "$cross_compiling" = yes; then :
23721   lt_cv_dlopen_self=cross
23722 else
23723   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23724   lt_status=$lt_dlunknown
23725   cat > conftest.$ac_ext <<EOF
23726 #line 23726 "configure"
23727 #include "confdefs.h"
23728
23729 #if HAVE_DLFCN_H
23730 #include <dlfcn.h>
23731 #endif
23732
23733 #include <stdio.h>
23734
23735 #ifdef RTLD_GLOBAL
23736 #  define LT_DLGLOBAL           RTLD_GLOBAL
23737 #else
23738 #  ifdef DL_GLOBAL
23739 #    define LT_DLGLOBAL         DL_GLOBAL
23740 #  else
23741 #    define LT_DLGLOBAL         0
23742 #  endif
23743 #endif
23744
23745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23746    find out it does not work in some platform. */
23747 #ifndef LT_DLLAZY_OR_NOW
23748 #  ifdef RTLD_LAZY
23749 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23750 #  else
23751 #    ifdef DL_LAZY
23752 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23753 #    else
23754 #      ifdef RTLD_NOW
23755 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23756 #      else
23757 #        ifdef DL_NOW
23758 #          define LT_DLLAZY_OR_NOW      DL_NOW
23759 #        else
23760 #          define LT_DLLAZY_OR_NOW      0
23761 #        endif
23762 #      endif
23763 #    endif
23764 #  endif
23765 #endif
23766
23767 #ifdef __cplusplus
23768 extern "C" void exit (int);
23769 #endif
23770
23771 void fnord() { int i=42;}
23772 int main ()
23773 {
23774   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23775   int status = $lt_dlunknown;
23776
23777   if (self)
23778     {
23779       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23780       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23781       /* dlclose (self); */
23782     }
23783
23784     exit (status);
23785 }
23786 EOF
23787   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23788   (eval $ac_link) 2>&5
23789   ac_status=$?
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23792     (./conftest; exit; ) 2>/dev/null
23793     lt_status=$?
23794     case x$lt_status in
23795       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23796       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23797       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23798     esac
23799   else :
23800     # compilation failed
23801     lt_cv_dlopen_self=no
23802   fi
23803 fi
23804 rm -fr conftest*
23805
23806
23807 fi
23808 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23809 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23810
23811     if test "x$lt_cv_dlopen_self" = xyes; then
23812       LDFLAGS="$LDFLAGS $link_static_flag"
23813       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23814 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23815 if test "${lt_cv_dlopen_self_static+set}" = set; then
23816   echo $ECHO_N "(cached) $ECHO_C" >&6
23817 else
23818           if test "$cross_compiling" = yes; then :
23819   lt_cv_dlopen_self_static=cross
23820 else
23821   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23822   lt_status=$lt_dlunknown
23823   cat > conftest.$ac_ext <<EOF
23824 #line 23824 "configure"
23825 #include "confdefs.h"
23826
23827 #if HAVE_DLFCN_H
23828 #include <dlfcn.h>
23829 #endif
23830
23831 #include <stdio.h>
23832
23833 #ifdef RTLD_GLOBAL
23834 #  define LT_DLGLOBAL           RTLD_GLOBAL
23835 #else
23836 #  ifdef DL_GLOBAL
23837 #    define LT_DLGLOBAL         DL_GLOBAL
23838 #  else
23839 #    define LT_DLGLOBAL         0
23840 #  endif
23841 #endif
23842
23843 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23844    find out it does not work in some platform. */
23845 #ifndef LT_DLLAZY_OR_NOW
23846 #  ifdef RTLD_LAZY
23847 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23848 #  else
23849 #    ifdef DL_LAZY
23850 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23851 #    else
23852 #      ifdef RTLD_NOW
23853 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23854 #      else
23855 #        ifdef DL_NOW
23856 #          define LT_DLLAZY_OR_NOW      DL_NOW
23857 #        else
23858 #          define LT_DLLAZY_OR_NOW      0
23859 #        endif
23860 #      endif
23861 #    endif
23862 #  endif
23863 #endif
23864
23865 #ifdef __cplusplus
23866 extern "C" void exit (int);
23867 #endif
23868
23869 void fnord() { int i=42;}
23870 int main ()
23871 {
23872   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23873   int status = $lt_dlunknown;
23874
23875   if (self)
23876     {
23877       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23878       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23879       /* dlclose (self); */
23880     }
23881
23882     exit (status);
23883 }
23884 EOF
23885   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23886   (eval $ac_link) 2>&5
23887   ac_status=$?
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23890     (./conftest; exit; ) 2>/dev/null
23891     lt_status=$?
23892     case x$lt_status in
23893       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23894       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23895       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23896     esac
23897   else :
23898     # compilation failed
23899     lt_cv_dlopen_self_static=no
23900   fi
23901 fi
23902 rm -fr conftest*
23903
23904
23905 fi
23906 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23907 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23908     fi
23909
23910     CPPFLAGS="$save_CPPFLAGS"
23911     LDFLAGS="$save_LDFLAGS"
23912     LIBS="$save_LIBS"
23913     ;;
23914   esac
23915
23916   case $lt_cv_dlopen_self in
23917   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23918   *) enable_dlopen_self=unknown ;;
23919   esac
23920
23921   case $lt_cv_dlopen_self_static in
23922   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23923   *) enable_dlopen_self_static=unknown ;;
23924   esac
23925 fi
23926
23927
23928 # The else clause should only fire when bootstrapping the
23929 # libtool distribution, otherwise you forgot to ship ltmain.sh
23930 # with your package, and you will get complaints that there are
23931 # no rules to generate ltmain.sh.
23932 if test -f "$ltmain"; then
23933   # See if we are running on zsh, and set the options which allow our commands through
23934   # without removal of \ escapes.
23935   if test -n "${ZSH_VERSION+set}" ; then
23936     setopt NO_GLOB_SUBST
23937   fi
23938   # Now quote all the things that may contain metacharacters while being
23939   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23940   # variables and quote the copies for generation of the libtool script.
23941   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23942     SED SHELL STRIP \
23943     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23944     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23945     deplibs_check_method reload_flag reload_cmds need_locks \
23946     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23947     lt_cv_sys_global_symbol_to_c_name_address \
23948     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23949     old_postinstall_cmds old_postuninstall_cmds \
23950     compiler_GCJ \
23951     CC_GCJ \
23952     LD_GCJ \
23953     lt_prog_compiler_wl_GCJ \
23954     lt_prog_compiler_pic_GCJ \
23955     lt_prog_compiler_static_GCJ \
23956     lt_prog_compiler_no_builtin_flag_GCJ \
23957     export_dynamic_flag_spec_GCJ \
23958     thread_safe_flag_spec_GCJ \
23959     whole_archive_flag_spec_GCJ \
23960     enable_shared_with_static_runtimes_GCJ \
23961     old_archive_cmds_GCJ \
23962     old_archive_from_new_cmds_GCJ \
23963     predep_objects_GCJ \
23964     postdep_objects_GCJ \
23965     predeps_GCJ \
23966     postdeps_GCJ \
23967     compiler_lib_search_path_GCJ \
23968     archive_cmds_GCJ \
23969     archive_expsym_cmds_GCJ \
23970     postinstall_cmds_GCJ \
23971     postuninstall_cmds_GCJ \
23972     old_archive_from_expsyms_cmds_GCJ \
23973     allow_undefined_flag_GCJ \
23974     no_undefined_flag_GCJ \
23975     export_symbols_cmds_GCJ \
23976     hardcode_libdir_flag_spec_GCJ \
23977     hardcode_libdir_flag_spec_ld_GCJ \
23978     hardcode_libdir_separator_GCJ \
23979     hardcode_automatic_GCJ \
23980     module_cmds_GCJ \
23981     module_expsym_cmds_GCJ \
23982     lt_cv_prog_compiler_c_o_GCJ \
23983     exclude_expsyms_GCJ \
23984     include_expsyms_GCJ; do
23985
23986     case $var in
23987     old_archive_cmds_GCJ | \
23988     old_archive_from_new_cmds_GCJ | \
23989     archive_cmds_GCJ | \
23990     archive_expsym_cmds_GCJ | \
23991     module_cmds_GCJ | \
23992     module_expsym_cmds_GCJ | \
23993     old_archive_from_expsyms_cmds_GCJ | \
23994     export_symbols_cmds_GCJ | \
23995     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23996     postinstall_cmds | postuninstall_cmds | \
23997     old_postinstall_cmds | old_postuninstall_cmds | \
23998     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23999       # Double-quote double-evaled strings.
24000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24001       ;;
24002     *)
24003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24004       ;;
24005     esac
24006   done
24007
24008   case $lt_echo in
24009   *'\$0 --fallback-echo"')
24010     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24011     ;;
24012   esac
24013
24014 cfgfile="$ofile"
24015
24016   cat <<__EOF__ >> "$cfgfile"
24017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24018
24019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24020
24021 # Shell to use when invoking shell scripts.
24022 SHELL=$lt_SHELL
24023
24024 # Whether or not to build shared libraries.
24025 build_libtool_libs=$enable_shared
24026
24027 # Whether or not to build static libraries.
24028 build_old_libs=$enable_static
24029
24030 # Whether or not to add -lc for building shared libraries.
24031 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24032
24033 # Whether or not to disallow shared libs when runtime libs are static
24034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24035
24036 # Whether or not to optimize for fast installation.
24037 fast_install=$enable_fast_install
24038
24039 # The host system.
24040 host_alias=$host_alias
24041 host=$host
24042
24043 # An echo program that does not interpret backslashes.
24044 echo=$lt_echo
24045
24046 # The archiver.
24047 AR=$lt_AR
24048 AR_FLAGS=$lt_AR_FLAGS
24049
24050 # A C compiler.
24051 LTCC=$lt_LTCC
24052
24053 # A language-specific compiler.
24054 CC=$lt_compiler_GCJ
24055
24056 # Is the compiler the GNU C compiler?
24057 with_gcc=$GCC_GCJ
24058
24059 # An ERE matcher.
24060 EGREP=$lt_EGREP
24061
24062 # The linker used to build libraries.
24063 LD=$lt_LD_GCJ
24064
24065 # Whether we need hard or soft links.
24066 LN_S=$lt_LN_S
24067
24068 # A BSD-compatible nm program.
24069 NM=$lt_NM
24070
24071 # A symbol stripping program
24072 STRIP=$lt_STRIP
24073
24074 # Used to examine libraries when file_magic_cmd begins "file"
24075 MAGIC_CMD=$MAGIC_CMD
24076
24077 # Used on cygwin: DLL creation program.
24078 DLLTOOL="$DLLTOOL"
24079
24080 # Used on cygwin: object dumper.
24081 OBJDUMP="$OBJDUMP"
24082
24083 # Used on cygwin: assembler.
24084 AS="$AS"
24085
24086 # The name of the directory that contains temporary libtool files.
24087 objdir=$objdir
24088
24089 # How to create reloadable object files.
24090 reload_flag=$lt_reload_flag
24091 reload_cmds=$lt_reload_cmds
24092
24093 # How to pass a linker flag through the compiler.
24094 wl=$lt_lt_prog_compiler_wl_GCJ
24095
24096 # Object file suffix (normally "o").
24097 objext="$ac_objext"
24098
24099 # Old archive suffix (normally "a").
24100 libext="$libext"
24101
24102 # Shared library suffix (normally ".so").
24103 shrext_cmds='$shrext_cmds'
24104
24105 # Executable file suffix (normally "").
24106 exeext="$exeext"
24107
24108 # Additional compiler flags for building library objects.
24109 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24110 pic_mode=$pic_mode
24111
24112 # What is the maximum length of a command?
24113 max_cmd_len=$lt_cv_sys_max_cmd_len
24114
24115 # Does compiler simultaneously support -c and -o options?
24116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24117
24118 # Must we lock files when doing compilation ?
24119 need_locks=$lt_need_locks
24120
24121 # Do we need the lib prefix for modules?
24122 need_lib_prefix=$need_lib_prefix
24123
24124 # Do we need a version for libraries?
24125 need_version=$need_version
24126
24127 # Whether dlopen is supported.
24128 dlopen_support=$enable_dlopen
24129
24130 # Whether dlopen of programs is supported.
24131 dlopen_self=$enable_dlopen_self
24132
24133 # Whether dlopen of statically linked programs is supported.
24134 dlopen_self_static=$enable_dlopen_self_static
24135
24136 # Compiler flag to prevent dynamic linking.
24137 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24138
24139 # Compiler flag to turn off builtin functions.
24140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24141
24142 # Compiler flag to allow reflexive dlopens.
24143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24144
24145 # Compiler flag to generate shared objects directly from archives.
24146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24147
24148 # Compiler flag to generate thread-safe objects.
24149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24150
24151 # Library versioning type.
24152 version_type=$version_type
24153
24154 # Format of library name prefix.
24155 libname_spec=$lt_libname_spec
24156
24157 # List of archive names.  First name is the real one, the rest are links.
24158 # The last name is the one that the linker finds with -lNAME.
24159 library_names_spec=$lt_library_names_spec
24160
24161 # The coded name of the library, if different from the real name.
24162 soname_spec=$lt_soname_spec
24163
24164 # Commands used to build and install an old-style archive.
24165 RANLIB=$lt_RANLIB
24166 old_archive_cmds=$lt_old_archive_cmds_GCJ
24167 old_postinstall_cmds=$lt_old_postinstall_cmds
24168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24169
24170 # Create an old-style archive from a shared archive.
24171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24172
24173 # Create a temporary old-style archive to link instead of a shared archive.
24174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24175
24176 # Commands used to build and install a shared archive.
24177 archive_cmds=$lt_archive_cmds_GCJ
24178 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24179 postinstall_cmds=$lt_postinstall_cmds
24180 postuninstall_cmds=$lt_postuninstall_cmds
24181
24182 # Commands used to build a loadable module (assumed same as above if empty)
24183 module_cmds=$lt_module_cmds_GCJ
24184 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24185
24186 # Commands to strip libraries.
24187 old_striplib=$lt_old_striplib
24188 striplib=$lt_striplib
24189
24190 # Dependencies to place before the objects being linked to create a
24191 # shared library.
24192 predep_objects=$lt_predep_objects_GCJ
24193
24194 # Dependencies to place after the objects being linked to create a
24195 # shared library.
24196 postdep_objects=$lt_postdep_objects_GCJ
24197
24198 # Dependencies to place before the objects being linked to create a
24199 # shared library.
24200 predeps=$lt_predeps_GCJ
24201
24202 # Dependencies to place after the objects being linked to create a
24203 # shared library.
24204 postdeps=$lt_postdeps_GCJ
24205
24206 # The library search path used internally by the compiler when linking
24207 # a shared library.
24208 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24209
24210 # Method to check whether dependent libraries are shared objects.
24211 deplibs_check_method=$lt_deplibs_check_method
24212
24213 # Command to use when deplibs_check_method == file_magic.
24214 file_magic_cmd=$lt_file_magic_cmd
24215
24216 # Flag that allows shared libraries with undefined symbols to be built.
24217 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24218
24219 # Flag that forces no undefined symbols.
24220 no_undefined_flag=$lt_no_undefined_flag_GCJ
24221
24222 # Commands used to finish a libtool library installation in a directory.
24223 finish_cmds=$lt_finish_cmds
24224
24225 # Same as above, but a single script fragment to be evaled but not shown.
24226 finish_eval=$lt_finish_eval
24227
24228 # Take the output of nm and produce a listing of raw symbols and C names.
24229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24230
24231 # Transform the output of nm in a proper C declaration
24232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24233
24234 # Transform the output of nm in a C name address pair
24235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24236
24237 # This is the shared library runtime path variable.
24238 runpath_var=$runpath_var
24239
24240 # This is the shared library path variable.
24241 shlibpath_var=$shlibpath_var
24242
24243 # Is shlibpath searched before the hard-coded library search path?
24244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24245
24246 # How to hardcode a shared library path into an executable.
24247 hardcode_action=$hardcode_action_GCJ
24248
24249 # Whether we should hardcode library paths into libraries.
24250 hardcode_into_libs=$hardcode_into_libs
24251
24252 # Flag to hardcode \$libdir into a binary during linking.
24253 # This must work even if \$libdir does not exist.
24254 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24255
24256 # If ld is used when linking, flag to hardcode \$libdir into
24257 # a binary during linking. This must work even if \$libdir does
24258 # not exist.
24259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24260
24261 # Whether we need a single -rpath flag with a separated argument.
24262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24263
24264 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24265 # resulting binary.
24266 hardcode_direct=$hardcode_direct_GCJ
24267
24268 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24269 # resulting binary.
24270 hardcode_minus_L=$hardcode_minus_L_GCJ
24271
24272 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24273 # the resulting binary.
24274 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24275
24276 # Set to yes if building a shared library automatically hardcodes DIR into the library
24277 # and all subsequent libraries and executables linked against it.
24278 hardcode_automatic=$hardcode_automatic_GCJ
24279
24280 # Variables whose values should be saved in libtool wrapper scripts and
24281 # restored at relink time.
24282 variables_saved_for_relink="$variables_saved_for_relink"
24283
24284 # Whether libtool must link a program against all its dependency libraries.
24285 link_all_deplibs=$link_all_deplibs_GCJ
24286
24287 # Compile-time system search path for libraries
24288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24289
24290 # Run-time system search path for libraries
24291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24292
24293 # Fix the shell variable \$srcfile for the compiler.
24294 fix_srcfile_path="$fix_srcfile_path_GCJ"
24295
24296 # Set to yes if exported symbols are required.
24297 always_export_symbols=$always_export_symbols_GCJ
24298
24299 # The commands to list exported symbols.
24300 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24301
24302 # The commands to extract the exported symbol list from a shared archive.
24303 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24304
24305 # Symbols that should not be listed in the preloaded symbols.
24306 exclude_expsyms=$lt_exclude_expsyms_GCJ
24307
24308 # Symbols that must always be exported.
24309 include_expsyms=$lt_include_expsyms_GCJ
24310
24311 # ### END LIBTOOL TAG CONFIG: $tagname
24312
24313 __EOF__
24314
24315
24316 else
24317   # If there is no Makefile yet, we rely on a make rule to execute
24318   # `config.status --recheck' to rerun these tests and create the
24319   # libtool script then.
24320   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24321   if test -f "$ltmain_in"; then
24322     test -f Makefile && make "$ltmain"
24323   fi
24324 fi
24325
24326
24327 ac_ext=c
24328 ac_cpp='$CPP $CPPFLAGS'
24329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24332
24333 CC="$lt_save_CC"
24334
24335         else
24336           tagname=""
24337         fi
24338         ;;
24339
24340       RC)
24341         ac_ext=c
24342 ac_cpp='$CPP $CPPFLAGS'
24343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24346
24347
24348 # Source file extension for RC test sources.
24349 ac_ext=rc
24350
24351 # Object file extension for compiled RC test sources.
24352 objext=o
24353 objext_RC=$objext
24354
24355 # Code to be used in simple compile tests
24356 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24357
24358 # Code to be used in simple link tests
24359 lt_simple_link_test_code="$lt_simple_compile_test_code"
24360
24361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24362
24363 # If no C compiler was specified, use CC.
24364 LTCC=${LTCC-"$CC"}
24365
24366 # Allow CC to be a program name with arguments.
24367 compiler=$CC
24368
24369
24370 # Allow CC to be a program name with arguments.
24371 lt_save_CC="$CC"
24372 CC=${RC-"windres"}
24373 compiler=$CC
24374 compiler_RC=$CC
24375 lt_cv_prog_compiler_c_o_RC=yes
24376
24377 # The else clause should only fire when bootstrapping the
24378 # libtool distribution, otherwise you forgot to ship ltmain.sh
24379 # with your package, and you will get complaints that there are
24380 # no rules to generate ltmain.sh.
24381 if test -f "$ltmain"; then
24382   # See if we are running on zsh, and set the options which allow our commands through
24383   # without removal of \ escapes.
24384   if test -n "${ZSH_VERSION+set}" ; then
24385     setopt NO_GLOB_SUBST
24386   fi
24387   # Now quote all the things that may contain metacharacters while being
24388   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24389   # variables and quote the copies for generation of the libtool script.
24390   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24391     SED SHELL STRIP \
24392     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24393     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24394     deplibs_check_method reload_flag reload_cmds need_locks \
24395     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24396     lt_cv_sys_global_symbol_to_c_name_address \
24397     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24398     old_postinstall_cmds old_postuninstall_cmds \
24399     compiler_RC \
24400     CC_RC \
24401     LD_RC \
24402     lt_prog_compiler_wl_RC \
24403     lt_prog_compiler_pic_RC \
24404     lt_prog_compiler_static_RC \
24405     lt_prog_compiler_no_builtin_flag_RC \
24406     export_dynamic_flag_spec_RC \
24407     thread_safe_flag_spec_RC \
24408     whole_archive_flag_spec_RC \
24409     enable_shared_with_static_runtimes_RC \
24410     old_archive_cmds_RC \
24411     old_archive_from_new_cmds_RC \
24412     predep_objects_RC \
24413     postdep_objects_RC \
24414     predeps_RC \
24415     postdeps_RC \
24416     compiler_lib_search_path_RC \
24417     archive_cmds_RC \
24418     archive_expsym_cmds_RC \
24419     postinstall_cmds_RC \
24420     postuninstall_cmds_RC \
24421     old_archive_from_expsyms_cmds_RC \
24422     allow_undefined_flag_RC \
24423     no_undefined_flag_RC \
24424     export_symbols_cmds_RC \
24425     hardcode_libdir_flag_spec_RC \
24426     hardcode_libdir_flag_spec_ld_RC \
24427     hardcode_libdir_separator_RC \
24428     hardcode_automatic_RC \
24429     module_cmds_RC \
24430     module_expsym_cmds_RC \
24431     lt_cv_prog_compiler_c_o_RC \
24432     exclude_expsyms_RC \
24433     include_expsyms_RC; do
24434
24435     case $var in
24436     old_archive_cmds_RC | \
24437     old_archive_from_new_cmds_RC | \
24438     archive_cmds_RC | \
24439     archive_expsym_cmds_RC | \
24440     module_cmds_RC | \
24441     module_expsym_cmds_RC | \
24442     old_archive_from_expsyms_cmds_RC | \
24443     export_symbols_cmds_RC | \
24444     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24445     postinstall_cmds | postuninstall_cmds | \
24446     old_postinstall_cmds | old_postuninstall_cmds | \
24447     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24448       # Double-quote double-evaled strings.
24449       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24450       ;;
24451     *)
24452       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24453       ;;
24454     esac
24455   done
24456
24457   case $lt_echo in
24458   *'\$0 --fallback-echo"')
24459     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24460     ;;
24461   esac
24462
24463 cfgfile="$ofile"
24464
24465   cat <<__EOF__ >> "$cfgfile"
24466 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24467
24468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24469
24470 # Shell to use when invoking shell scripts.
24471 SHELL=$lt_SHELL
24472
24473 # Whether or not to build shared libraries.
24474 build_libtool_libs=$enable_shared
24475
24476 # Whether or not to build static libraries.
24477 build_old_libs=$enable_static
24478
24479 # Whether or not to add -lc for building shared libraries.
24480 build_libtool_need_lc=$archive_cmds_need_lc_RC
24481
24482 # Whether or not to disallow shared libs when runtime libs are static
24483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24484
24485 # Whether or not to optimize for fast installation.
24486 fast_install=$enable_fast_install
24487
24488 # The host system.
24489 host_alias=$host_alias
24490 host=$host
24491
24492 # An echo program that does not interpret backslashes.
24493 echo=$lt_echo
24494
24495 # The archiver.
24496 AR=$lt_AR
24497 AR_FLAGS=$lt_AR_FLAGS
24498
24499 # A C compiler.
24500 LTCC=$lt_LTCC
24501
24502 # A language-specific compiler.
24503 CC=$lt_compiler_RC
24504
24505 # Is the compiler the GNU C compiler?
24506 with_gcc=$GCC_RC
24507
24508 # An ERE matcher.
24509 EGREP=$lt_EGREP
24510
24511 # The linker used to build libraries.
24512 LD=$lt_LD_RC
24513
24514 # Whether we need hard or soft links.
24515 LN_S=$lt_LN_S
24516
24517 # A BSD-compatible nm program.
24518 NM=$lt_NM
24519
24520 # A symbol stripping program
24521 STRIP=$lt_STRIP
24522
24523 # Used to examine libraries when file_magic_cmd begins "file"
24524 MAGIC_CMD=$MAGIC_CMD
24525
24526 # Used on cygwin: DLL creation program.
24527 DLLTOOL="$DLLTOOL"
24528
24529 # Used on cygwin: object dumper.
24530 OBJDUMP="$OBJDUMP"
24531
24532 # Used on cygwin: assembler.
24533 AS="$AS"
24534
24535 # The name of the directory that contains temporary libtool files.
24536 objdir=$objdir
24537
24538 # How to create reloadable object files.
24539 reload_flag=$lt_reload_flag
24540 reload_cmds=$lt_reload_cmds
24541
24542 # How to pass a linker flag through the compiler.
24543 wl=$lt_lt_prog_compiler_wl_RC
24544
24545 # Object file suffix (normally "o").
24546 objext="$ac_objext"
24547
24548 # Old archive suffix (normally "a").
24549 libext="$libext"
24550
24551 # Shared library suffix (normally ".so").
24552 shrext_cmds='$shrext_cmds'
24553
24554 # Executable file suffix (normally "").
24555 exeext="$exeext"
24556
24557 # Additional compiler flags for building library objects.
24558 pic_flag=$lt_lt_prog_compiler_pic_RC
24559 pic_mode=$pic_mode
24560
24561 # What is the maximum length of a command?
24562 max_cmd_len=$lt_cv_sys_max_cmd_len
24563
24564 # Does compiler simultaneously support -c and -o options?
24565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24566
24567 # Must we lock files when doing compilation ?
24568 need_locks=$lt_need_locks
24569
24570 # Do we need the lib prefix for modules?
24571 need_lib_prefix=$need_lib_prefix
24572
24573 # Do we need a version for libraries?
24574 need_version=$need_version
24575
24576 # Whether dlopen is supported.
24577 dlopen_support=$enable_dlopen
24578
24579 # Whether dlopen of programs is supported.
24580 dlopen_self=$enable_dlopen_self
24581
24582 # Whether dlopen of statically linked programs is supported.
24583 dlopen_self_static=$enable_dlopen_self_static
24584
24585 # Compiler flag to prevent dynamic linking.
24586 link_static_flag=$lt_lt_prog_compiler_static_RC
24587
24588 # Compiler flag to turn off builtin functions.
24589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24590
24591 # Compiler flag to allow reflexive dlopens.
24592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24593
24594 # Compiler flag to generate shared objects directly from archives.
24595 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24596
24597 # Compiler flag to generate thread-safe objects.
24598 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24599
24600 # Library versioning type.
24601 version_type=$version_type
24602
24603 # Format of library name prefix.
24604 libname_spec=$lt_libname_spec
24605
24606 # List of archive names.  First name is the real one, the rest are links.
24607 # The last name is the one that the linker finds with -lNAME.
24608 library_names_spec=$lt_library_names_spec
24609
24610 # The coded name of the library, if different from the real name.
24611 soname_spec=$lt_soname_spec
24612
24613 # Commands used to build and install an old-style archive.
24614 RANLIB=$lt_RANLIB
24615 old_archive_cmds=$lt_old_archive_cmds_RC
24616 old_postinstall_cmds=$lt_old_postinstall_cmds
24617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24618
24619 # Create an old-style archive from a shared archive.
24620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24621
24622 # Create a temporary old-style archive to link instead of a shared archive.
24623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24624
24625 # Commands used to build and install a shared archive.
24626 archive_cmds=$lt_archive_cmds_RC
24627 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24628 postinstall_cmds=$lt_postinstall_cmds
24629 postuninstall_cmds=$lt_postuninstall_cmds
24630
24631 # Commands used to build a loadable module (assumed same as above if empty)
24632 module_cmds=$lt_module_cmds_RC
24633 module_expsym_cmds=$lt_module_expsym_cmds_RC
24634
24635 # Commands to strip libraries.
24636 old_striplib=$lt_old_striplib
24637 striplib=$lt_striplib
24638
24639 # Dependencies to place before the objects being linked to create a
24640 # shared library.
24641 predep_objects=$lt_predep_objects_RC
24642
24643 # Dependencies to place after the objects being linked to create a
24644 # shared library.
24645 postdep_objects=$lt_postdep_objects_RC
24646
24647 # Dependencies to place before the objects being linked to create a
24648 # shared library.
24649 predeps=$lt_predeps_RC
24650
24651 # Dependencies to place after the objects being linked to create a
24652 # shared library.
24653 postdeps=$lt_postdeps_RC
24654
24655 # The library search path used internally by the compiler when linking
24656 # a shared library.
24657 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24658
24659 # Method to check whether dependent libraries are shared objects.
24660 deplibs_check_method=$lt_deplibs_check_method
24661
24662 # Command to use when deplibs_check_method == file_magic.
24663 file_magic_cmd=$lt_file_magic_cmd
24664
24665 # Flag that allows shared libraries with undefined symbols to be built.
24666 allow_undefined_flag=$lt_allow_undefined_flag_RC
24667
24668 # Flag that forces no undefined symbols.
24669 no_undefined_flag=$lt_no_undefined_flag_RC
24670
24671 # Commands used to finish a libtool library installation in a directory.
24672 finish_cmds=$lt_finish_cmds
24673
24674 # Same as above, but a single script fragment to be evaled but not shown.
24675 finish_eval=$lt_finish_eval
24676
24677 # Take the output of nm and produce a listing of raw symbols and C names.
24678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24679
24680 # Transform the output of nm in a proper C declaration
24681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24682
24683 # Transform the output of nm in a C name address pair
24684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24685
24686 # This is the shared library runtime path variable.
24687 runpath_var=$runpath_var
24688
24689 # This is the shared library path variable.
24690 shlibpath_var=$shlibpath_var
24691
24692 # Is shlibpath searched before the hard-coded library search path?
24693 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24694
24695 # How to hardcode a shared library path into an executable.
24696 hardcode_action=$hardcode_action_RC
24697
24698 # Whether we should hardcode library paths into libraries.
24699 hardcode_into_libs=$hardcode_into_libs
24700
24701 # Flag to hardcode \$libdir into a binary during linking.
24702 # This must work even if \$libdir does not exist.
24703 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24704
24705 # If ld is used when linking, flag to hardcode \$libdir into
24706 # a binary during linking. This must work even if \$libdir does
24707 # not exist.
24708 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24709
24710 # Whether we need a single -rpath flag with a separated argument.
24711 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24712
24713 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24714 # resulting binary.
24715 hardcode_direct=$hardcode_direct_RC
24716
24717 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24718 # resulting binary.
24719 hardcode_minus_L=$hardcode_minus_L_RC
24720
24721 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24722 # the resulting binary.
24723 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24724
24725 # Set to yes if building a shared library automatically hardcodes DIR into the library
24726 # and all subsequent libraries and executables linked against it.
24727 hardcode_automatic=$hardcode_automatic_RC
24728
24729 # Variables whose values should be saved in libtool wrapper scripts and
24730 # restored at relink time.
24731 variables_saved_for_relink="$variables_saved_for_relink"
24732
24733 # Whether libtool must link a program against all its dependency libraries.
24734 link_all_deplibs=$link_all_deplibs_RC
24735
24736 # Compile-time system search path for libraries
24737 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24738
24739 # Run-time system search path for libraries
24740 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24741
24742 # Fix the shell variable \$srcfile for the compiler.
24743 fix_srcfile_path="$fix_srcfile_path_RC"
24744
24745 # Set to yes if exported symbols are required.
24746 always_export_symbols=$always_export_symbols_RC
24747
24748 # The commands to list exported symbols.
24749 export_symbols_cmds=$lt_export_symbols_cmds_RC
24750
24751 # The commands to extract the exported symbol list from a shared archive.
24752 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24753
24754 # Symbols that should not be listed in the preloaded symbols.
24755 exclude_expsyms=$lt_exclude_expsyms_RC
24756
24757 # Symbols that must always be exported.
24758 include_expsyms=$lt_include_expsyms_RC
24759
24760 # ### END LIBTOOL TAG CONFIG: $tagname
24761
24762 __EOF__
24763
24764
24765 else
24766   # If there is no Makefile yet, we rely on a make rule to execute
24767   # `config.status --recheck' to rerun these tests and create the
24768   # libtool script then.
24769   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24770   if test -f "$ltmain_in"; then
24771     test -f Makefile && make "$ltmain"
24772   fi
24773 fi
24774
24775
24776 ac_ext=c
24777 ac_cpp='$CPP $CPPFLAGS'
24778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24781
24782 CC="$lt_save_CC"
24783
24784         ;;
24785
24786       *)
24787         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24788 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24789    { (exit 1); exit 1; }; }
24790         ;;
24791       esac
24792
24793       # Append the new tag name to the list of available tags.
24794       if test -n "$tagname" ; then
24795       available_tags="$available_tags $tagname"
24796     fi
24797     fi
24798   done
24799   IFS="$lt_save_ifs"
24800
24801   # Now substitute the updated list of available tags.
24802   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24803     mv "${ofile}T" "$ofile"
24804     chmod +x "$ofile"
24805   else
24806     rm -f "${ofile}T"
24807     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24808 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24809    { (exit 1); exit 1; }; }
24810   fi
24811 fi
24812
24813
24814
24815 # This can be used to rebuild libtool when needed
24816 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24817
24818 # Always use our own libtool.
24819 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24820
24821 # Prevent multiple expansion
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843 if test "$lt_cv_dlopen_self" = "yes" ; then
24844
24845 cat >>confdefs.h <<\_ACEOF
24846 #define CAN_DLOPEN_SELF 1
24847 _ACEOF
24848
24849 fi
24850
24851 etags_version=`$ETAGS --version 2>&1`
24852 case "$etags_version" in
24853         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24854         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24855         *) ETAGSFLAGS="" ;;
24856 esac
24857 ETAGSFLAGS=$ETAGSFLAGS
24858
24859
24860 if test "$WITH_LLVMGCCDIR" = "default" ; then
24861   LLVMGCC="llvm-gcc${EXEEXT}"
24862   LLVMGXX="llvm-g++${EXEEXT}"
24863   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24864 set dummy $LLVMGCC; ac_word=$2
24865 echo "$as_me:$LINENO: checking for $ac_word" >&5
24866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24867 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   case $LLVMGCC in
24871   [\\/]* | ?:[\\/]*)
24872   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24873   ;;
24874   *)
24875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24876 for as_dir in $PATH
24877 do
24878   IFS=$as_save_IFS
24879   test -z "$as_dir" && as_dir=.
24880   for ac_exec_ext in '' $ac_executable_extensions; do
24881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24882     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24884     break 2
24885   fi
24886 done
24887 done
24888
24889   ;;
24890 esac
24891 fi
24892 LLVMGCC=$ac_cv_path_LLVMGCC
24893
24894 if test -n "$LLVMGCC"; then
24895   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24896 echo "${ECHO_T}$LLVMGCC" >&6
24897 else
24898   echo "$as_me:$LINENO: result: no" >&5
24899 echo "${ECHO_T}no" >&6
24900 fi
24901
24902   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24903 set dummy $LLVMGXX; ac_word=$2
24904 echo "$as_me:$LINENO: checking for $ac_word" >&5
24905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24906 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24907   echo $ECHO_N "(cached) $ECHO_C" >&6
24908 else
24909   case $LLVMGXX in
24910   [\\/]* | ?:[\\/]*)
24911   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24912   ;;
24913   *)
24914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24915 for as_dir in $PATH
24916 do
24917   IFS=$as_save_IFS
24918   test -z "$as_dir" && as_dir=.
24919   for ac_exec_ext in '' $ac_executable_extensions; do
24920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24921     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24923     break 2
24924   fi
24925 done
24926 done
24927
24928   ;;
24929 esac
24930 fi
24931 LLVMGXX=$ac_cv_path_LLVMGXX
24932
24933 if test -n "$LLVMGXX"; then
24934   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24935 echo "${ECHO_T}$LLVMGXX" >&6
24936 else
24937   echo "$as_me:$LINENO: result: no" >&5
24938 echo "${ECHO_T}no" >&6
24939 fi
24940
24941 else
24942   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24943   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24944   LLVMGCC=$LLVMGCC
24945
24946   LLVMGXX=$LLVMGXX
24947
24948 fi
24949
24950 echo "$as_me:$LINENO: checking tool compatibility" >&5
24951 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24952
24953 ICC=no
24954 IXX=no
24955 case $CC in
24956   icc*|icpc*)
24957     ICC=yes
24958     IXX=yes
24959     ;;
24960    *)
24961     ;;
24962 esac
24963
24964 if test "$GCC" != "yes" && test "$ICC" != "yes"
24965 then
24966   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24967 echo "$as_me: error: gcc|icc required but not found" >&2;}
24968    { (exit 1); exit 1; }; }
24969 fi
24970
24971 if test "$GXX" != "yes" && test "$IXX" != "yes"
24972 then
24973   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24974 echo "$as_me: error: g++|icc required but not found" >&2;}
24975    { (exit 1); exit 1; }; }
24976 fi
24977
24978 if test "$GCC" = "yes"
24979 then
24980   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24981   if test "$gccmajor" -lt "3"
24982   then
24983     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24984 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24985    { (exit 1); exit 1; }; }
24986   fi
24987 fi
24988
24989 if test -z "$llvm_cv_gnu_make_command"
24990 then
24991   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24992 echo "$as_me: error: GNU Make required but not found" >&2;}
24993    { (exit 1); exit 1; }; }
24994 fi
24995
24996 echo "$as_me:$LINENO: result: ok" >&5
24997 echo "${ECHO_T}ok" >&6
24998
24999
25000
25001 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25002 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25003 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25004   echo $ECHO_N "(cached) $ECHO_C" >&6
25005 else
25006   ac_check_lib_save_LIBS=$LIBS
25007 LIBS="-lelf  $LIBS"
25008 cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h.  */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h.  */
25014
25015 /* Override any gcc2 internal prototype to avoid an error.  */
25016 #ifdef __cplusplus
25017 extern "C"
25018 #endif
25019 /* We use char because int might match the return type of a gcc2
25020    builtin and then its argument prototype would still apply.  */
25021 char elf_begin ();
25022 int
25023 main ()
25024 {
25025 elf_begin ();
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest.$ac_objext conftest$ac_exeext
25031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25032   (eval $ac_link) 2>conftest.er1
25033   ac_status=$?
25034   grep -v '^ *+' conftest.er1 >conftest.err
25035   rm -f conftest.er1
25036   cat conftest.err >&5
25037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038   (exit $ac_status); } &&
25039          { ac_try='test -z "$ac_c_werror_flag"
25040                          || test ! -s conftest.err'
25041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042   (eval $ac_try) 2>&5
25043   ac_status=$?
25044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045   (exit $ac_status); }; } &&
25046          { ac_try='test -s conftest$ac_exeext'
25047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048   (eval $ac_try) 2>&5
25049   ac_status=$?
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); }; }; then
25052   ac_cv_lib_elf_elf_begin=yes
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057 ac_cv_lib_elf_elf_begin=no
25058 fi
25059 rm -f conftest.err conftest.$ac_objext \
25060       conftest$ac_exeext conftest.$ac_ext
25061 LIBS=$ac_check_lib_save_LIBS
25062 fi
25063 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25064 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25065 if test $ac_cv_lib_elf_elf_begin = yes; then
25066   cat >>confdefs.h <<_ACEOF
25067 #define HAVE_LIBELF 1
25068 _ACEOF
25069
25070   LIBS="-lelf $LIBS"
25071
25072 fi
25073
25074
25075 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25076 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25077 if test "${ac_cv_lib_m_sin+set}" = set; then
25078   echo $ECHO_N "(cached) $ECHO_C" >&6
25079 else
25080   ac_check_lib_save_LIBS=$LIBS
25081 LIBS="-lm  $LIBS"
25082 cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088
25089 /* Override any gcc2 internal prototype to avoid an error.  */
25090 #ifdef __cplusplus
25091 extern "C"
25092 #endif
25093 /* We use char because int might match the return type of a gcc2
25094    builtin and then its argument prototype would still apply.  */
25095 char sin ();
25096 int
25097 main ()
25098 {
25099 sin ();
25100   ;
25101   return 0;
25102 }
25103 _ACEOF
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106   (eval $ac_link) 2>conftest.er1
25107   ac_status=$?
25108   grep -v '^ *+' conftest.er1 >conftest.err
25109   rm -f conftest.er1
25110   cat conftest.err >&5
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); } &&
25113          { ac_try='test -z "$ac_c_werror_flag"
25114                          || test ! -s conftest.err'
25115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116   (eval $ac_try) 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; } &&
25120          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25126   ac_cv_lib_m_sin=yes
25127 else
25128   echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25130
25131 ac_cv_lib_m_sin=no
25132 fi
25133 rm -f conftest.err conftest.$ac_objext \
25134       conftest$ac_exeext conftest.$ac_ext
25135 LIBS=$ac_check_lib_save_LIBS
25136 fi
25137 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25138 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25139 if test $ac_cv_lib_m_sin = yes; then
25140   cat >>confdefs.h <<_ACEOF
25141 #define HAVE_LIBM 1
25142 _ACEOF
25143
25144   LIBS="-lm $LIBS"
25145
25146 fi
25147
25148 if test "$llvm_cv_os_type" == "MingW" ; then
25149
25150
25151
25152 for ac_header in windows.h imagehlp.h psapi.h
25153 do
25154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25156   echo "$as_me:$LINENO: checking for $ac_header" >&5
25157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25159   echo $ECHO_N "(cached) $ECHO_C" >&6
25160 fi
25161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25163 else
25164   # Is the header compilable?
25165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
25174 #include <$ac_header>
25175 _ACEOF
25176 rm -f conftest.$ac_objext
25177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25178   (eval $ac_compile) 2>conftest.er1
25179   ac_status=$?
25180   grep -v '^ *+' conftest.er1 >conftest.err
25181   rm -f conftest.er1
25182   cat conftest.err >&5
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); } &&
25185          { ac_try='test -z "$ac_c_werror_flag"
25186                          || test ! -s conftest.err'
25187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188   (eval $ac_try) 2>&5
25189   ac_status=$?
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); }; } &&
25192          { ac_try='test -s conftest.$ac_objext'
25193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194   (eval $ac_try) 2>&5
25195   ac_status=$?
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); }; }; then
25198   ac_header_compiler=yes
25199 else
25200   echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25202
25203 ac_header_compiler=no
25204 fi
25205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25207 echo "${ECHO_T}$ac_header_compiler" >&6
25208
25209 # Is the header present?
25210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25212 cat >conftest.$ac_ext <<_ACEOF
25213 /* confdefs.h.  */
25214 _ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h.  */
25218 #include <$ac_header>
25219 _ACEOF
25220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25222   ac_status=$?
25223   grep -v '^ *+' conftest.er1 >conftest.err
25224   rm -f conftest.er1
25225   cat conftest.err >&5
25226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227   (exit $ac_status); } >/dev/null; then
25228   if test -s conftest.err; then
25229     ac_cpp_err=$ac_c_preproc_warn_flag
25230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25231   else
25232     ac_cpp_err=
25233   fi
25234 else
25235   ac_cpp_err=yes
25236 fi
25237 if test -z "$ac_cpp_err"; then
25238   ac_header_preproc=yes
25239 else
25240   echo "$as_me: failed program was:" >&5
25241 sed 's/^/| /' conftest.$ac_ext >&5
25242
25243   ac_header_preproc=no
25244 fi
25245 rm -f conftest.err conftest.$ac_ext
25246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25247 echo "${ECHO_T}$ac_header_preproc" >&6
25248
25249 # So?  What about this header?
25250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25251   yes:no: )
25252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25256     ac_header_preproc=yes
25257     ;;
25258   no:yes:* )
25259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25271     (
25272       cat <<\_ASBOX
25273 ## ----------------------------------- ##
25274 ## Report this to llvmbugs@cs.uiuc.edu ##
25275 ## ----------------------------------- ##
25276 _ASBOX
25277     ) |
25278       sed "s/^/$as_me: WARNING:     /" >&2
25279     ;;
25280 esac
25281 echo "$as_me:$LINENO: checking for $ac_header" >&5
25282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25284   echo $ECHO_N "(cached) $ECHO_C" >&6
25285 else
25286   eval "$as_ac_Header=\$ac_header_preproc"
25287 fi
25288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25290
25291 fi
25292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25293   cat >>confdefs.h <<_ACEOF
25294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25295 _ACEOF
25296
25297 fi
25298
25299 done
25300
25301
25302 echo "$as_me:$LINENO: checking for SymGetOptions in -limagehlp" >&5
25303 echo $ECHO_N "checking for SymGetOptions in -limagehlp... $ECHO_C" >&6
25304 if test "${ac_cv_lib_imagehlp_SymGetOptions+set}" = set; then
25305   echo $ECHO_N "(cached) $ECHO_C" >&6
25306 else
25307   ac_check_lib_save_LIBS=$LIBS
25308 LIBS="-limagehlp  $LIBS"
25309 cat >conftest.$ac_ext <<_ACEOF
25310 /* confdefs.h.  */
25311 _ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h.  */
25315
25316 /* Override any gcc2 internal prototype to avoid an error.  */
25317 #ifdef __cplusplus
25318 extern "C"
25319 #endif
25320 /* We use char because int might match the return type of a gcc2
25321    builtin and then its argument prototype would still apply.  */
25322 char SymGetOptions ();
25323 int
25324 main ()
25325 {
25326 SymGetOptions ();
25327   ;
25328   return 0;
25329 }
25330 _ACEOF
25331 rm -f conftest.$ac_objext conftest$ac_exeext
25332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25333   (eval $ac_link) 2>conftest.er1
25334   ac_status=$?
25335   grep -v '^ *+' conftest.er1 >conftest.err
25336   rm -f conftest.er1
25337   cat conftest.err >&5
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); } &&
25340          { ac_try='test -z "$ac_c_werror_flag"
25341                          || test ! -s conftest.err'
25342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343   (eval $ac_try) 2>&5
25344   ac_status=$?
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); }; } &&
25347          { ac_try='test -s conftest$ac_exeext'
25348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25349   (eval $ac_try) 2>&5
25350   ac_status=$?
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); }; }; then
25353   ac_cv_lib_imagehlp_SymGetOptions=yes
25354 else
25355   echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25357
25358 ac_cv_lib_imagehlp_SymGetOptions=no
25359 fi
25360 rm -f conftest.err conftest.$ac_objext \
25361       conftest$ac_exeext conftest.$ac_ext
25362 LIBS=$ac_check_lib_save_LIBS
25363 fi
25364 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_SymGetOptions" >&5
25365 echo "${ECHO_T}$ac_cv_lib_imagehlp_SymGetOptions" >&6
25366 if test $ac_cv_lib_imagehlp_SymGetOptions = yes; then
25367   cat >>confdefs.h <<_ACEOF
25368 #define HAVE_LIBIMAGEHLP 1
25369 _ACEOF
25370
25371   LIBS="-limagehlp $LIBS"
25372
25373 fi
25374
25375
25376 echo "$as_me:$LINENO: checking for GetProcessMemoryInfo in -lpsapi" >&5
25377 echo $ECHO_N "checking for GetProcessMemoryInfo in -lpsapi... $ECHO_C" >&6
25378 if test "${ac_cv_lib_psapi_GetProcessMemoryInfo+set}" = set; then
25379   echo $ECHO_N "(cached) $ECHO_C" >&6
25380 else
25381   ac_check_lib_save_LIBS=$LIBS
25382 LIBS="-lpsapi  $LIBS"
25383 cat >conftest.$ac_ext <<_ACEOF
25384 /* confdefs.h.  */
25385 _ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h.  */
25389
25390 /* Override any gcc2 internal prototype to avoid an error.  */
25391 #ifdef __cplusplus
25392 extern "C"
25393 #endif
25394 /* We use char because int might match the return type of a gcc2
25395    builtin and then its argument prototype would still apply.  */
25396 char GetProcessMemoryInfo ();
25397 int
25398 main ()
25399 {
25400 GetProcessMemoryInfo ();
25401   ;
25402   return 0;
25403 }
25404 _ACEOF
25405 rm -f conftest.$ac_objext conftest$ac_exeext
25406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25407   (eval $ac_link) 2>conftest.er1
25408   ac_status=$?
25409   grep -v '^ *+' conftest.er1 >conftest.err
25410   rm -f conftest.er1
25411   cat conftest.err >&5
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); } &&
25414          { ac_try='test -z "$ac_c_werror_flag"
25415                          || test ! -s conftest.err'
25416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25417   (eval $ac_try) 2>&5
25418   ac_status=$?
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); }; } &&
25421          { ac_try='test -s conftest$ac_exeext'
25422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423   (eval $ac_try) 2>&5
25424   ac_status=$?
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); }; }; then
25427   ac_cv_lib_psapi_GetProcessMemoryInfo=yes
25428 else
25429   echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432 ac_cv_lib_psapi_GetProcessMemoryInfo=no
25433 fi
25434 rm -f conftest.err conftest.$ac_objext \
25435       conftest$ac_exeext conftest.$ac_ext
25436 LIBS=$ac_check_lib_save_LIBS
25437 fi
25438 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_GetProcessMemoryInfo" >&5
25439 echo "${ECHO_T}$ac_cv_lib_psapi_GetProcessMemoryInfo" >&6
25440 if test $ac_cv_lib_psapi_GetProcessMemoryInfo = yes; then
25441   cat >>confdefs.h <<_ACEOF
25442 #define HAVE_LIBPSAPI 1
25443 _ACEOF
25444
25445   LIBS="-lpsapi $LIBS"
25446
25447 fi
25448
25449 fi
25450
25451 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25452 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25453 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25454   echo $ECHO_N "(cached) $ECHO_C" >&6
25455 else
25456   ac_func_search_save_LIBS=$LIBS
25457 ac_cv_search_lt_dlopen=no
25458 cat >conftest.$ac_ext <<_ACEOF
25459 /* confdefs.h.  */
25460 _ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h.  */
25464
25465 /* Override any gcc2 internal prototype to avoid an error.  */
25466 #ifdef __cplusplus
25467 extern "C"
25468 #endif
25469 /* We use char because int might match the return type of a gcc2
25470    builtin and then its argument prototype would still apply.  */
25471 char lt_dlopen ();
25472 int
25473 main ()
25474 {
25475 lt_dlopen ();
25476   ;
25477   return 0;
25478 }
25479 _ACEOF
25480 rm -f conftest.$ac_objext conftest$ac_exeext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25482   (eval $ac_link) 2>conftest.er1
25483   ac_status=$?
25484   grep -v '^ *+' conftest.er1 >conftest.err
25485   rm -f conftest.er1
25486   cat conftest.err >&5
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } &&
25489          { ac_try='test -z "$ac_c_werror_flag"
25490                          || test ! -s conftest.err'
25491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492   (eval $ac_try) 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); }; } &&
25496          { ac_try='test -s conftest$ac_exeext'
25497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498   (eval $ac_try) 2>&5
25499   ac_status=$?
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); }; }; then
25502   ac_cv_search_lt_dlopen="none required"
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25506
25507 fi
25508 rm -f conftest.err conftest.$ac_objext \
25509       conftest$ac_exeext conftest.$ac_ext
25510 if test "$ac_cv_search_lt_dlopen" = no; then
25511   for ac_lib in ltdl; do
25512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25513     cat >conftest.$ac_ext <<_ACEOF
25514 /* confdefs.h.  */
25515 _ACEOF
25516 cat confdefs.h >>conftest.$ac_ext
25517 cat >>conftest.$ac_ext <<_ACEOF
25518 /* end confdefs.h.  */
25519
25520 /* Override any gcc2 internal prototype to avoid an error.  */
25521 #ifdef __cplusplus
25522 extern "C"
25523 #endif
25524 /* We use char because int might match the return type of a gcc2
25525    builtin and then its argument prototype would still apply.  */
25526 char lt_dlopen ();
25527 int
25528 main ()
25529 {
25530 lt_dlopen ();
25531   ;
25532   return 0;
25533 }
25534 _ACEOF
25535 rm -f conftest.$ac_objext conftest$ac_exeext
25536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25537   (eval $ac_link) 2>conftest.er1
25538   ac_status=$?
25539   grep -v '^ *+' conftest.er1 >conftest.err
25540   rm -f conftest.er1
25541   cat conftest.err >&5
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); } &&
25544          { ac_try='test -z "$ac_c_werror_flag"
25545                          || test ! -s conftest.err'
25546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547   (eval $ac_try) 2>&5
25548   ac_status=$?
25549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550   (exit $ac_status); }; } &&
25551          { ac_try='test -s conftest$ac_exeext'
25552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25553   (eval $ac_try) 2>&5
25554   ac_status=$?
25555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556   (exit $ac_status); }; }; then
25557   ac_cv_search_lt_dlopen="-l$ac_lib"
25558 break
25559 else
25560   echo "$as_me: failed program was:" >&5
25561 sed 's/^/| /' conftest.$ac_ext >&5
25562
25563 fi
25564 rm -f conftest.err conftest.$ac_objext \
25565       conftest$ac_exeext conftest.$ac_ext
25566   done
25567 fi
25568 LIBS=$ac_func_search_save_LIBS
25569 fi
25570 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25571 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25572 if test "$ac_cv_search_lt_dlopen" != no; then
25573   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25574
25575 cat >>confdefs.h <<\_ACEOF
25576 #define HAVE_LT_DLOPEN 1
25577 _ACEOF
25578
25579 else
25580   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25581                            not be available" >&5
25582 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25583                            not be available" >&2;}
25584 fi
25585
25586
25587 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25588 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25589 if test "${ac_cv_search_dlopen+set}" = set; then
25590   echo $ECHO_N "(cached) $ECHO_C" >&6
25591 else
25592   ac_func_search_save_LIBS=$LIBS
25593 ac_cv_search_dlopen=no
25594 cat >conftest.$ac_ext <<_ACEOF
25595 /* confdefs.h.  */
25596 _ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h.  */
25600
25601 /* Override any gcc2 internal prototype to avoid an error.  */
25602 #ifdef __cplusplus
25603 extern "C"
25604 #endif
25605 /* We use char because int might match the return type of a gcc2
25606    builtin and then its argument prototype would still apply.  */
25607 char dlopen ();
25608 int
25609 main ()
25610 {
25611 dlopen ();
25612   ;
25613   return 0;
25614 }
25615 _ACEOF
25616 rm -f conftest.$ac_objext conftest$ac_exeext
25617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25618   (eval $ac_link) 2>conftest.er1
25619   ac_status=$?
25620   grep -v '^ *+' conftest.er1 >conftest.err
25621   rm -f conftest.er1
25622   cat conftest.err >&5
25623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624   (exit $ac_status); } &&
25625          { ac_try='test -z "$ac_c_werror_flag"
25626                          || test ! -s conftest.err'
25627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628   (eval $ac_try) 2>&5
25629   ac_status=$?
25630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631   (exit $ac_status); }; } &&
25632          { ac_try='test -s conftest$ac_exeext'
25633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25634   (eval $ac_try) 2>&5
25635   ac_status=$?
25636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637   (exit $ac_status); }; }; then
25638   ac_cv_search_dlopen="none required"
25639 else
25640   echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25642
25643 fi
25644 rm -f conftest.err conftest.$ac_objext \
25645       conftest$ac_exeext conftest.$ac_ext
25646 if test "$ac_cv_search_dlopen" = no; then
25647   for ac_lib in dl; do
25648     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25649     cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h.  */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h.  */
25655
25656 /* Override any gcc2 internal prototype to avoid an error.  */
25657 #ifdef __cplusplus
25658 extern "C"
25659 #endif
25660 /* We use char because int might match the return type of a gcc2
25661    builtin and then its argument prototype would still apply.  */
25662 char dlopen ();
25663 int
25664 main ()
25665 {
25666 dlopen ();
25667   ;
25668   return 0;
25669 }
25670 _ACEOF
25671 rm -f conftest.$ac_objext conftest$ac_exeext
25672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25673   (eval $ac_link) 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } &&
25680          { ac_try='test -z "$ac_c_werror_flag"
25681                          || test ! -s conftest.err'
25682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683   (eval $ac_try) 2>&5
25684   ac_status=$?
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); }; } &&
25687          { ac_try='test -s conftest$ac_exeext'
25688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689   (eval $ac_try) 2>&5
25690   ac_status=$?
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); }; }; then
25693   ac_cv_search_dlopen="-l$ac_lib"
25694 break
25695 else
25696   echo "$as_me: failed program was:" >&5
25697 sed 's/^/| /' conftest.$ac_ext >&5
25698
25699 fi
25700 rm -f conftest.err conftest.$ac_objext \
25701       conftest$ac_exeext conftest.$ac_ext
25702   done
25703 fi
25704 LIBS=$ac_func_search_save_LIBS
25705 fi
25706 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25707 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25708 if test "$ac_cv_search_dlopen" != no; then
25709   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25710
25711 cat >>confdefs.h <<\_ACEOF
25712 #define HAVE_DLOPEN 1
25713 _ACEOF
25714
25715 else
25716   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25717 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25718 fi
25719
25720
25721 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25722 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25723 if test "${ac_cv_search_mallinfo+set}" = set; then
25724   echo $ECHO_N "(cached) $ECHO_C" >&6
25725 else
25726   ac_func_search_save_LIBS=$LIBS
25727 ac_cv_search_mallinfo=no
25728 cat >conftest.$ac_ext <<_ACEOF
25729 /* confdefs.h.  */
25730 _ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h.  */
25734
25735 /* Override any gcc2 internal prototype to avoid an error.  */
25736 #ifdef __cplusplus
25737 extern "C"
25738 #endif
25739 /* We use char because int might match the return type of a gcc2
25740    builtin and then its argument prototype would still apply.  */
25741 char mallinfo ();
25742 int
25743 main ()
25744 {
25745 mallinfo ();
25746   ;
25747   return 0;
25748 }
25749 _ACEOF
25750 rm -f conftest.$ac_objext conftest$ac_exeext
25751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25752   (eval $ac_link) 2>conftest.er1
25753   ac_status=$?
25754   grep -v '^ *+' conftest.er1 >conftest.err
25755   rm -f conftest.er1
25756   cat conftest.err >&5
25757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758   (exit $ac_status); } &&
25759          { ac_try='test -z "$ac_c_werror_flag"
25760                          || test ! -s conftest.err'
25761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762   (eval $ac_try) 2>&5
25763   ac_status=$?
25764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765   (exit $ac_status); }; } &&
25766          { ac_try='test -s conftest$ac_exeext'
25767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25768   (eval $ac_try) 2>&5
25769   ac_status=$?
25770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771   (exit $ac_status); }; }; then
25772   ac_cv_search_mallinfo="none required"
25773 else
25774   echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25776
25777 fi
25778 rm -f conftest.err conftest.$ac_objext \
25779       conftest$ac_exeext conftest.$ac_ext
25780 if test "$ac_cv_search_mallinfo" = no; then
25781   for ac_lib in malloc; do
25782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25783     cat >conftest.$ac_ext <<_ACEOF
25784 /* confdefs.h.  */
25785 _ACEOF
25786 cat confdefs.h >>conftest.$ac_ext
25787 cat >>conftest.$ac_ext <<_ACEOF
25788 /* end confdefs.h.  */
25789
25790 /* Override any gcc2 internal prototype to avoid an error.  */
25791 #ifdef __cplusplus
25792 extern "C"
25793 #endif
25794 /* We use char because int might match the return type of a gcc2
25795    builtin and then its argument prototype would still apply.  */
25796 char mallinfo ();
25797 int
25798 main ()
25799 {
25800 mallinfo ();
25801   ;
25802   return 0;
25803 }
25804 _ACEOF
25805 rm -f conftest.$ac_objext conftest$ac_exeext
25806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25807   (eval $ac_link) 2>conftest.er1
25808   ac_status=$?
25809   grep -v '^ *+' conftest.er1 >conftest.err
25810   rm -f conftest.er1
25811   cat conftest.err >&5
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); } &&
25814          { ac_try='test -z "$ac_c_werror_flag"
25815                          || test ! -s conftest.err'
25816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25817   (eval $ac_try) 2>&5
25818   ac_status=$?
25819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820   (exit $ac_status); }; } &&
25821          { ac_try='test -s conftest$ac_exeext'
25822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823   (eval $ac_try) 2>&5
25824   ac_status=$?
25825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826   (exit $ac_status); }; }; then
25827   ac_cv_search_mallinfo="-l$ac_lib"
25828 break
25829 else
25830   echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833 fi
25834 rm -f conftest.err conftest.$ac_objext \
25835       conftest$ac_exeext conftest.$ac_ext
25836   done
25837 fi
25838 LIBS=$ac_func_search_save_LIBS
25839 fi
25840 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25841 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25842 if test "$ac_cv_search_mallinfo" != no; then
25843   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25844
25845 cat >>confdefs.h <<\_ACEOF
25846 #define HAVE_MALLINFO 1
25847 _ACEOF
25848
25849 fi
25850
25851
25852 if test "$ENABLE_THREADS" -eq 1 ; then
25853
25854 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25855 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25856 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25857   echo $ECHO_N "(cached) $ECHO_C" >&6
25858 else
25859   ac_check_lib_save_LIBS=$LIBS
25860 LIBS="-lpthread  $LIBS"
25861 cat >conftest.$ac_ext <<_ACEOF
25862 /* confdefs.h.  */
25863 _ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h.  */
25867
25868 /* Override any gcc2 internal prototype to avoid an error.  */
25869 #ifdef __cplusplus
25870 extern "C"
25871 #endif
25872 /* We use char because int might match the return type of a gcc2
25873    builtin and then its argument prototype would still apply.  */
25874 char pthread_mutex_init ();
25875 int
25876 main ()
25877 {
25878 pthread_mutex_init ();
25879   ;
25880   return 0;
25881 }
25882 _ACEOF
25883 rm -f conftest.$ac_objext conftest$ac_exeext
25884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25885   (eval $ac_link) 2>conftest.er1
25886   ac_status=$?
25887   grep -v '^ *+' conftest.er1 >conftest.err
25888   rm -f conftest.er1
25889   cat conftest.err >&5
25890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); } &&
25892          { ac_try='test -z "$ac_c_werror_flag"
25893                          || test ! -s conftest.err'
25894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25895   (eval $ac_try) 2>&5
25896   ac_status=$?
25897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898   (exit $ac_status); }; } &&
25899          { ac_try='test -s conftest$ac_exeext'
25900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901   (eval $ac_try) 2>&5
25902   ac_status=$?
25903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904   (exit $ac_status); }; }; then
25905   ac_cv_lib_pthread_pthread_mutex_init=yes
25906 else
25907   echo "$as_me: failed program was:" >&5
25908 sed 's/^/| /' conftest.$ac_ext >&5
25909
25910 ac_cv_lib_pthread_pthread_mutex_init=no
25911 fi
25912 rm -f conftest.err conftest.$ac_objext \
25913       conftest$ac_exeext conftest.$ac_ext
25914 LIBS=$ac_check_lib_save_LIBS
25915 fi
25916 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25917 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25918 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25919   cat >>confdefs.h <<_ACEOF
25920 #define HAVE_LIBPTHREAD 1
25921 _ACEOF
25922
25923   LIBS="-lpthread $LIBS"
25924
25925 fi
25926
25927   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25928 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25929 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932   ac_func_search_save_LIBS=$LIBS
25933 ac_cv_search_pthread_mutex_lock=no
25934 cat >conftest.$ac_ext <<_ACEOF
25935 /* confdefs.h.  */
25936 _ACEOF
25937 cat confdefs.h >>conftest.$ac_ext
25938 cat >>conftest.$ac_ext <<_ACEOF
25939 /* end confdefs.h.  */
25940
25941 /* Override any gcc2 internal prototype to avoid an error.  */
25942 #ifdef __cplusplus
25943 extern "C"
25944 #endif
25945 /* We use char because int might match the return type of a gcc2
25946    builtin and then its argument prototype would still apply.  */
25947 char pthread_mutex_lock ();
25948 int
25949 main ()
25950 {
25951 pthread_mutex_lock ();
25952   ;
25953   return 0;
25954 }
25955 _ACEOF
25956 rm -f conftest.$ac_objext conftest$ac_exeext
25957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25958   (eval $ac_link) 2>conftest.er1
25959   ac_status=$?
25960   grep -v '^ *+' conftest.er1 >conftest.err
25961   rm -f conftest.er1
25962   cat conftest.err >&5
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); } &&
25965          { ac_try='test -z "$ac_c_werror_flag"
25966                          || test ! -s conftest.err'
25967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968   (eval $ac_try) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); }; } &&
25972          { ac_try='test -s conftest$ac_exeext'
25973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974   (eval $ac_try) 2>&5
25975   ac_status=$?
25976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977   (exit $ac_status); }; }; then
25978   ac_cv_search_pthread_mutex_lock="none required"
25979 else
25980   echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25982
25983 fi
25984 rm -f conftest.err conftest.$ac_objext \
25985       conftest$ac_exeext conftest.$ac_ext
25986 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25987   for ac_lib in pthread; do
25988     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
25996 /* Override any gcc2 internal prototype to avoid an error.  */
25997 #ifdef __cplusplus
25998 extern "C"
25999 #endif
26000 /* We use char because int might match the return type of a gcc2
26001    builtin and then its argument prototype would still apply.  */
26002 char pthread_mutex_lock ();
26003 int
26004 main ()
26005 {
26006 pthread_mutex_lock ();
26007   ;
26008   return 0;
26009 }
26010 _ACEOF
26011 rm -f conftest.$ac_objext conftest$ac_exeext
26012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26013   (eval $ac_link) 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } &&
26020          { ac_try='test -z "$ac_c_werror_flag"
26021                          || test ! -s conftest.err'
26022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023   (eval $ac_try) 2>&5
26024   ac_status=$?
26025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); }; } &&
26027          { ac_try='test -s conftest$ac_exeext'
26028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029   (eval $ac_try) 2>&5
26030   ac_status=$?
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); }; }; then
26033   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26034 break
26035 else
26036   echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039 fi
26040 rm -f conftest.err conftest.$ac_objext \
26041       conftest$ac_exeext conftest.$ac_ext
26042   done
26043 fi
26044 LIBS=$ac_func_search_save_LIBS
26045 fi
26046 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26047 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26048 if test "$ac_cv_search_pthread_mutex_lock" != no; then
26049   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
26050
26051 cat >>confdefs.h <<\_ACEOF
26052 #define HAVE_PTHREAD_MUTEX_LOCK 1
26053 _ACEOF
26054
26055 fi
26056
26057 fi
26058
26059
26060
26061
26062
26063
26064
26065 ac_header_dirent=no
26066 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26067   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26068 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26069 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26071   echo $ECHO_N "(cached) $ECHO_C" >&6
26072 else
26073   cat >conftest.$ac_ext <<_ACEOF
26074 /* confdefs.h.  */
26075 _ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h.  */
26079 #include <sys/types.h>
26080 #include <$ac_hdr>
26081
26082 int
26083 main ()
26084 {
26085 if ((DIR *) 0)
26086 return 0;
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 rm -f conftest.$ac_objext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26093   (eval $ac_compile) 2>conftest.er1
26094   ac_status=$?
26095   grep -v '^ *+' conftest.er1 >conftest.err
26096   rm -f conftest.er1
26097   cat conftest.err >&5
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } &&
26100          { ac_try='test -z "$ac_c_werror_flag"
26101                          || test ! -s conftest.err'
26102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103   (eval $ac_try) 2>&5
26104   ac_status=$?
26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106   (exit $ac_status); }; } &&
26107          { ac_try='test -s conftest.$ac_objext'
26108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109   (eval $ac_try) 2>&5
26110   ac_status=$?
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); }; }; then
26113   eval "$as_ac_Header=yes"
26114 else
26115   echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118 eval "$as_ac_Header=no"
26119 fi
26120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26121 fi
26122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26125   cat >>confdefs.h <<_ACEOF
26126 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26127 _ACEOF
26128
26129 ac_header_dirent=$ac_hdr; break
26130 fi
26131
26132 done
26133 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26134 if test $ac_header_dirent = dirent.h; then
26135   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26136 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26137 if test "${ac_cv_search_opendir+set}" = set; then
26138   echo $ECHO_N "(cached) $ECHO_C" >&6
26139 else
26140   ac_func_search_save_LIBS=$LIBS
26141 ac_cv_search_opendir=no
26142 cat >conftest.$ac_ext <<_ACEOF
26143 /* confdefs.h.  */
26144 _ACEOF
26145 cat confdefs.h >>conftest.$ac_ext
26146 cat >>conftest.$ac_ext <<_ACEOF
26147 /* end confdefs.h.  */
26148
26149 /* Override any gcc2 internal prototype to avoid an error.  */
26150 #ifdef __cplusplus
26151 extern "C"
26152 #endif
26153 /* We use char because int might match the return type of a gcc2
26154    builtin and then its argument prototype would still apply.  */
26155 char opendir ();
26156 int
26157 main ()
26158 {
26159 opendir ();
26160   ;
26161   return 0;
26162 }
26163 _ACEOF
26164 rm -f conftest.$ac_objext conftest$ac_exeext
26165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26166   (eval $ac_link) 2>conftest.er1
26167   ac_status=$?
26168   grep -v '^ *+' conftest.er1 >conftest.err
26169   rm -f conftest.er1
26170   cat conftest.err >&5
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); } &&
26173          { ac_try='test -z "$ac_c_werror_flag"
26174                          || test ! -s conftest.err'
26175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176   (eval $ac_try) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); }; } &&
26180          { ac_try='test -s conftest$ac_exeext'
26181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182   (eval $ac_try) 2>&5
26183   ac_status=$?
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); }; }; then
26186   ac_cv_search_opendir="none required"
26187 else
26188   echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191 fi
26192 rm -f conftest.err conftest.$ac_objext \
26193       conftest$ac_exeext conftest.$ac_ext
26194 if test "$ac_cv_search_opendir" = no; then
26195   for ac_lib in dir; do
26196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26197     cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203
26204 /* Override any gcc2 internal prototype to avoid an error.  */
26205 #ifdef __cplusplus
26206 extern "C"
26207 #endif
26208 /* We use char because int might match the return type of a gcc2
26209    builtin and then its argument prototype would still apply.  */
26210 char opendir ();
26211 int
26212 main ()
26213 {
26214 opendir ();
26215   ;
26216   return 0;
26217 }
26218 _ACEOF
26219 rm -f conftest.$ac_objext conftest$ac_exeext
26220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26221   (eval $ac_link) 2>conftest.er1
26222   ac_status=$?
26223   grep -v '^ *+' conftest.er1 >conftest.err
26224   rm -f conftest.er1
26225   cat conftest.err >&5
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); } &&
26228          { ac_try='test -z "$ac_c_werror_flag"
26229                          || test ! -s conftest.err'
26230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231   (eval $ac_try) 2>&5
26232   ac_status=$?
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); }; } &&
26235          { ac_try='test -s conftest$ac_exeext'
26236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26237   (eval $ac_try) 2>&5
26238   ac_status=$?
26239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240   (exit $ac_status); }; }; then
26241   ac_cv_search_opendir="-l$ac_lib"
26242 break
26243 else
26244   echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26246
26247 fi
26248 rm -f conftest.err conftest.$ac_objext \
26249       conftest$ac_exeext conftest.$ac_ext
26250   done
26251 fi
26252 LIBS=$ac_func_search_save_LIBS
26253 fi
26254 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26255 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26256 if test "$ac_cv_search_opendir" != no; then
26257   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26258
26259 fi
26260
26261 else
26262   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26263 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26264 if test "${ac_cv_search_opendir+set}" = set; then
26265   echo $ECHO_N "(cached) $ECHO_C" >&6
26266 else
26267   ac_func_search_save_LIBS=$LIBS
26268 ac_cv_search_opendir=no
26269 cat >conftest.$ac_ext <<_ACEOF
26270 /* confdefs.h.  */
26271 _ACEOF
26272 cat confdefs.h >>conftest.$ac_ext
26273 cat >>conftest.$ac_ext <<_ACEOF
26274 /* end confdefs.h.  */
26275
26276 /* Override any gcc2 internal prototype to avoid an error.  */
26277 #ifdef __cplusplus
26278 extern "C"
26279 #endif
26280 /* We use char because int might match the return type of a gcc2
26281    builtin and then its argument prototype would still apply.  */
26282 char opendir ();
26283 int
26284 main ()
26285 {
26286 opendir ();
26287   ;
26288   return 0;
26289 }
26290 _ACEOF
26291 rm -f conftest.$ac_objext conftest$ac_exeext
26292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26293   (eval $ac_link) 2>conftest.er1
26294   ac_status=$?
26295   grep -v '^ *+' conftest.er1 >conftest.err
26296   rm -f conftest.er1
26297   cat conftest.err >&5
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); } &&
26300          { ac_try='test -z "$ac_c_werror_flag"
26301                          || test ! -s conftest.err'
26302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303   (eval $ac_try) 2>&5
26304   ac_status=$?
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); }; } &&
26307          { ac_try='test -s conftest$ac_exeext'
26308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309   (eval $ac_try) 2>&5
26310   ac_status=$?
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); }; }; then
26313   ac_cv_search_opendir="none required"
26314 else
26315   echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26317
26318 fi
26319 rm -f conftest.err conftest.$ac_objext \
26320       conftest$ac_exeext conftest.$ac_ext
26321 if test "$ac_cv_search_opendir" = no; then
26322   for ac_lib in x; do
26323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26324     cat >conftest.$ac_ext <<_ACEOF
26325 /* confdefs.h.  */
26326 _ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h.  */
26330
26331 /* Override any gcc2 internal prototype to avoid an error.  */
26332 #ifdef __cplusplus
26333 extern "C"
26334 #endif
26335 /* We use char because int might match the return type of a gcc2
26336    builtin and then its argument prototype would still apply.  */
26337 char opendir ();
26338 int
26339 main ()
26340 {
26341 opendir ();
26342   ;
26343   return 0;
26344 }
26345 _ACEOF
26346 rm -f conftest.$ac_objext conftest$ac_exeext
26347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26348   (eval $ac_link) 2>conftest.er1
26349   ac_status=$?
26350   grep -v '^ *+' conftest.er1 >conftest.err
26351   rm -f conftest.er1
26352   cat conftest.err >&5
26353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354   (exit $ac_status); } &&
26355          { ac_try='test -z "$ac_c_werror_flag"
26356                          || test ! -s conftest.err'
26357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358   (eval $ac_try) 2>&5
26359   ac_status=$?
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); }; } &&
26362          { ac_try='test -s conftest$ac_exeext'
26363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364   (eval $ac_try) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); }; }; then
26368   ac_cv_search_opendir="-l$ac_lib"
26369 break
26370 else
26371   echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26373
26374 fi
26375 rm -f conftest.err conftest.$ac_objext \
26376       conftest$ac_exeext conftest.$ac_ext
26377   done
26378 fi
26379 LIBS=$ac_func_search_save_LIBS
26380 fi
26381 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26382 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26383 if test "$ac_cv_search_opendir" != no; then
26384   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26385
26386 fi
26387
26388 fi
26389
26390 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26391 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26392 if test "${ac_cv_header_mmap_anon+set}" = set; then
26393   echo $ECHO_N "(cached) $ECHO_C" >&6
26394 else
26395    ac_ext=c
26396 ac_cpp='$CPP $CPPFLAGS'
26397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26400
26401   cat >conftest.$ac_ext <<_ACEOF
26402 /* confdefs.h.  */
26403 _ACEOF
26404 cat confdefs.h >>conftest.$ac_ext
26405 cat >>conftest.$ac_ext <<_ACEOF
26406 /* end confdefs.h.  */
26407 #include <sys/mman.h>
26408 #include <unistd.h>
26409 #include <fcntl.h>
26410 int
26411 main ()
26412 {
26413 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26414   ;
26415   return 0;
26416 }
26417 _ACEOF
26418 rm -f conftest.$ac_objext
26419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26420   (eval $ac_compile) 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); } &&
26427          { ac_try='test -z "$ac_c_werror_flag"
26428                          || test ! -s conftest.err'
26429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430   (eval $ac_try) 2>&5
26431   ac_status=$?
26432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); }; } &&
26434          { ac_try='test -s conftest.$ac_objext'
26435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26436   (eval $ac_try) 2>&5
26437   ac_status=$?
26438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439   (exit $ac_status); }; }; then
26440   ac_cv_header_mmap_anon=yes
26441 else
26442   echo "$as_me: failed program was:" >&5
26443 sed 's/^/| /' conftest.$ac_ext >&5
26444
26445 ac_cv_header_mmap_anon=no
26446 fi
26447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26448   ac_ext=c
26449 ac_cpp='$CPP $CPPFLAGS'
26450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26453
26454
26455 fi
26456 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26457 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26458 if test "$ac_cv_header_mmap_anon" = yes; then
26459
26460 cat >>confdefs.h <<\_ACEOF
26461 #define HAVE_MMAP_ANONYMOUS 1
26462 _ACEOF
26463
26464 fi
26465
26466 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26467 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26468 if test "${ac_cv_header_stat_broken+set}" = set; then
26469   echo $ECHO_N "(cached) $ECHO_C" >&6
26470 else
26471   cat >conftest.$ac_ext <<_ACEOF
26472 /* confdefs.h.  */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h.  */
26477 #include <sys/types.h>
26478 #include <sys/stat.h>
26479
26480 #if defined(S_ISBLK) && defined(S_IFDIR)
26481 # if S_ISBLK (S_IFDIR)
26482 You lose.
26483 # endif
26484 #endif
26485
26486 #if defined(S_ISBLK) && defined(S_IFCHR)
26487 # if S_ISBLK (S_IFCHR)
26488 You lose.
26489 # endif
26490 #endif
26491
26492 #if defined(S_ISLNK) && defined(S_IFREG)
26493 # if S_ISLNK (S_IFREG)
26494 You lose.
26495 # endif
26496 #endif
26497
26498 #if defined(S_ISSOCK) && defined(S_IFREG)
26499 # if S_ISSOCK (S_IFREG)
26500 You lose.
26501 # endif
26502 #endif
26503
26504 _ACEOF
26505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26506   $EGREP "You lose" >/dev/null 2>&1; then
26507   ac_cv_header_stat_broken=yes
26508 else
26509   ac_cv_header_stat_broken=no
26510 fi
26511 rm -f conftest*
26512
26513 fi
26514 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26515 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26516 if test $ac_cv_header_stat_broken = yes; then
26517
26518 cat >>confdefs.h <<\_ACEOF
26519 #define STAT_MACROS_BROKEN 1
26520 _ACEOF
26521
26522 fi
26523
26524 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26525 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26526 if test "${ac_cv_header_stdc+set}" = set; then
26527   echo $ECHO_N "(cached) $ECHO_C" >&6
26528 else
26529   cat >conftest.$ac_ext <<_ACEOF
26530 /* confdefs.h.  */
26531 _ACEOF
26532 cat confdefs.h >>conftest.$ac_ext
26533 cat >>conftest.$ac_ext <<_ACEOF
26534 /* end confdefs.h.  */
26535 #include <stdlib.h>
26536 #include <stdarg.h>
26537 #include <string.h>
26538 #include <float.h>
26539
26540 int
26541 main ()
26542 {
26543
26544   ;
26545   return 0;
26546 }
26547 _ACEOF
26548 rm -f conftest.$ac_objext
26549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26550   (eval $ac_compile) 2>conftest.er1
26551   ac_status=$?
26552   grep -v '^ *+' conftest.er1 >conftest.err
26553   rm -f conftest.er1
26554   cat conftest.err >&5
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); } &&
26557          { ac_try='test -z "$ac_c_werror_flag"
26558                          || test ! -s conftest.err'
26559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560   (eval $ac_try) 2>&5
26561   ac_status=$?
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); }; } &&
26564          { ac_try='test -s conftest.$ac_objext'
26565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566   (eval $ac_try) 2>&5
26567   ac_status=$?
26568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569   (exit $ac_status); }; }; then
26570   ac_cv_header_stdc=yes
26571 else
26572   echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26574
26575 ac_cv_header_stdc=no
26576 fi
26577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26578
26579 if test $ac_cv_header_stdc = yes; then
26580   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26581   cat >conftest.$ac_ext <<_ACEOF
26582 /* confdefs.h.  */
26583 _ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h.  */
26587 #include <string.h>
26588
26589 _ACEOF
26590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26591   $EGREP "memchr" >/dev/null 2>&1; then
26592   :
26593 else
26594   ac_cv_header_stdc=no
26595 fi
26596 rm -f conftest*
26597
26598 fi
26599
26600 if test $ac_cv_header_stdc = yes; then
26601   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26602   cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h.  */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h.  */
26608 #include <stdlib.h>
26609
26610 _ACEOF
26611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26612   $EGREP "free" >/dev/null 2>&1; then
26613   :
26614 else
26615   ac_cv_header_stdc=no
26616 fi
26617 rm -f conftest*
26618
26619 fi
26620
26621 if test $ac_cv_header_stdc = yes; then
26622   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26623   if test "$cross_compiling" = yes; then
26624   :
26625 else
26626   cat >conftest.$ac_ext <<_ACEOF
26627 /* confdefs.h.  */
26628 _ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h.  */
26632 #include <ctype.h>
26633 #if ((' ' & 0x0FF) == 0x020)
26634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26636 #else
26637 # define ISLOWER(c) \
26638                    (('a' <= (c) && (c) <= 'i') \
26639                      || ('j' <= (c) && (c) <= 'r') \
26640                      || ('s' <= (c) && (c) <= 'z'))
26641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26642 #endif
26643
26644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26645 int
26646 main ()
26647 {
26648   int i;
26649   for (i = 0; i < 256; i++)
26650     if (XOR (islower (i), ISLOWER (i))
26651         || toupper (i) != TOUPPER (i))
26652       exit(2);
26653   exit (0);
26654 }
26655 _ACEOF
26656 rm -f conftest$ac_exeext
26657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26658   (eval $ac_link) 2>&5
26659   ac_status=$?
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663   (eval $ac_try) 2>&5
26664   ac_status=$?
26665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); }; }; then
26667   :
26668 else
26669   echo "$as_me: program exited with status $ac_status" >&5
26670 echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673 ( exit $ac_status )
26674 ac_cv_header_stdc=no
26675 fi
26676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26677 fi
26678 fi
26679 fi
26680 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26681 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26682 if test $ac_cv_header_stdc = yes; then
26683
26684 cat >>confdefs.h <<\_ACEOF
26685 #define STDC_HEADERS 1
26686 _ACEOF
26687
26688 fi
26689
26690 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26691 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26692 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26693   echo $ECHO_N "(cached) $ECHO_C" >&6
26694 else
26695   cat >conftest.$ac_ext <<_ACEOF
26696 /* confdefs.h.  */
26697 _ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h.  */
26701 #include <sys/types.h>
26702 #include <sys/wait.h>
26703 #ifndef WEXITSTATUS
26704 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26705 #endif
26706 #ifndef WIFEXITED
26707 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26708 #endif
26709
26710 int
26711 main ()
26712 {
26713   int s;
26714   wait (&s);
26715   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26716   ;
26717   return 0;
26718 }
26719 _ACEOF
26720 rm -f conftest.$ac_objext
26721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26722   (eval $ac_compile) 2>conftest.er1
26723   ac_status=$?
26724   grep -v '^ *+' conftest.er1 >conftest.err
26725   rm -f conftest.er1
26726   cat conftest.err >&5
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); } &&
26729          { ac_try='test -z "$ac_c_werror_flag"
26730                          || test ! -s conftest.err'
26731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26732   (eval $ac_try) 2>&5
26733   ac_status=$?
26734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); }; } &&
26736          { ac_try='test -s conftest.$ac_objext'
26737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26738   (eval $ac_try) 2>&5
26739   ac_status=$?
26740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741   (exit $ac_status); }; }; then
26742   ac_cv_header_sys_wait_h=yes
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747 ac_cv_header_sys_wait_h=no
26748 fi
26749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26750 fi
26751 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26752 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26753 if test $ac_cv_header_sys_wait_h = yes; then
26754
26755 cat >>confdefs.h <<\_ACEOF
26756 #define HAVE_SYS_WAIT_H 1
26757 _ACEOF
26758
26759 fi
26760
26761 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26762 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26763 if test "${ac_cv_header_time+set}" = set; then
26764   echo $ECHO_N "(cached) $ECHO_C" >&6
26765 else
26766   cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772 #include <sys/types.h>
26773 #include <sys/time.h>
26774 #include <time.h>
26775
26776 int
26777 main ()
26778 {
26779 if ((struct tm *) 0)
26780 return 0;
26781   ;
26782   return 0;
26783 }
26784 _ACEOF
26785 rm -f conftest.$ac_objext
26786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26787   (eval $ac_compile) 2>conftest.er1
26788   ac_status=$?
26789   grep -v '^ *+' conftest.er1 >conftest.err
26790   rm -f conftest.er1
26791   cat conftest.err >&5
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); } &&
26794          { ac_try='test -z "$ac_c_werror_flag"
26795                          || test ! -s conftest.err'
26796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26797   (eval $ac_try) 2>&5
26798   ac_status=$?
26799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800   (exit $ac_status); }; } &&
26801          { ac_try='test -s conftest.$ac_objext'
26802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26803   (eval $ac_try) 2>&5
26804   ac_status=$?
26805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806   (exit $ac_status); }; }; then
26807   ac_cv_header_time=yes
26808 else
26809   echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26811
26812 ac_cv_header_time=no
26813 fi
26814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26815 fi
26816 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26817 echo "${ECHO_T}$ac_cv_header_time" >&6
26818 if test $ac_cv_header_time = yes; then
26819
26820 cat >>confdefs.h <<\_ACEOF
26821 #define TIME_WITH_SYS_TIME 1
26822 _ACEOF
26823
26824 fi
26825
26826
26827
26828
26829
26830
26831
26832
26833 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26834 do
26835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26837   echo "$as_me:$LINENO: checking for $ac_header" >&5
26838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26840   echo $ECHO_N "(cached) $ECHO_C" >&6
26841 fi
26842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26844 else
26845   # Is the header compilable?
26846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26848 cat >conftest.$ac_ext <<_ACEOF
26849 /* confdefs.h.  */
26850 _ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h.  */
26854 $ac_includes_default
26855 #include <$ac_header>
26856 _ACEOF
26857 rm -f conftest.$ac_objext
26858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26859   (eval $ac_compile) 2>conftest.er1
26860   ac_status=$?
26861   grep -v '^ *+' conftest.er1 >conftest.err
26862   rm -f conftest.er1
26863   cat conftest.err >&5
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); } &&
26866          { ac_try='test -z "$ac_c_werror_flag"
26867                          || test ! -s conftest.err'
26868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869   (eval $ac_try) 2>&5
26870   ac_status=$?
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); }; } &&
26873          { ac_try='test -s conftest.$ac_objext'
26874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875   (eval $ac_try) 2>&5
26876   ac_status=$?
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); }; }; then
26879   ac_header_compiler=yes
26880 else
26881   echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26883
26884 ac_header_compiler=no
26885 fi
26886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26888 echo "${ECHO_T}$ac_header_compiler" >&6
26889
26890 # Is the header present?
26891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26893 cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899 #include <$ac_header>
26900 _ACEOF
26901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } >/dev/null; then
26909   if test -s conftest.err; then
26910     ac_cpp_err=$ac_c_preproc_warn_flag
26911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26912   else
26913     ac_cpp_err=
26914   fi
26915 else
26916   ac_cpp_err=yes
26917 fi
26918 if test -z "$ac_cpp_err"; then
26919   ac_header_preproc=yes
26920 else
26921   echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26923
26924   ac_header_preproc=no
26925 fi
26926 rm -f conftest.err conftest.$ac_ext
26927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26928 echo "${ECHO_T}$ac_header_preproc" >&6
26929
26930 # So?  What about this header?
26931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26932   yes:no: )
26933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26937     ac_header_preproc=yes
26938     ;;
26939   no:yes:* )
26940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26952     (
26953       cat <<\_ASBOX
26954 ## ----------------------------------- ##
26955 ## Report this to llvmbugs@cs.uiuc.edu ##
26956 ## ----------------------------------- ##
26957 _ASBOX
26958     ) |
26959       sed "s/^/$as_me: WARNING:     /" >&2
26960     ;;
26961 esac
26962 echo "$as_me:$LINENO: checking for $ac_header" >&5
26963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26965   echo $ECHO_N "(cached) $ECHO_C" >&6
26966 else
26967   eval "$as_ac_Header=\$ac_header_preproc"
26968 fi
26969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26971
26972 fi
26973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26974   cat >>confdefs.h <<_ACEOF
26975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26976 _ACEOF
26977
26978 fi
26979
26980 done
26981
26982
26983
26984
26985
26986
26987
26988 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26989 do
26990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26992   echo "$as_me:$LINENO: checking for $ac_header" >&5
26993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26995   echo $ECHO_N "(cached) $ECHO_C" >&6
26996 fi
26997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26999 else
27000   # Is the header compilable?
27001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27003 cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h.  */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h.  */
27009 $ac_includes_default
27010 #include <$ac_header>
27011 _ACEOF
27012 rm -f conftest.$ac_objext
27013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27014   (eval $ac_compile) 2>conftest.er1
27015   ac_status=$?
27016   grep -v '^ *+' conftest.er1 >conftest.err
27017   rm -f conftest.er1
27018   cat conftest.err >&5
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); } &&
27021          { ac_try='test -z "$ac_c_werror_flag"
27022                          || test ! -s conftest.err'
27023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024   (eval $ac_try) 2>&5
27025   ac_status=$?
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); }; } &&
27028          { ac_try='test -s conftest.$ac_objext'
27029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030   (eval $ac_try) 2>&5
27031   ac_status=$?
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); }; }; then
27034   ac_header_compiler=yes
27035 else
27036   echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27038
27039 ac_header_compiler=no
27040 fi
27041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27043 echo "${ECHO_T}$ac_header_compiler" >&6
27044
27045 # Is the header present?
27046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27048 cat >conftest.$ac_ext <<_ACEOF
27049 /* confdefs.h.  */
27050 _ACEOF
27051 cat confdefs.h >>conftest.$ac_ext
27052 cat >>conftest.$ac_ext <<_ACEOF
27053 /* end confdefs.h.  */
27054 #include <$ac_header>
27055 _ACEOF
27056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27058   ac_status=$?
27059   grep -v '^ *+' conftest.er1 >conftest.err
27060   rm -f conftest.er1
27061   cat conftest.err >&5
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); } >/dev/null; then
27064   if test -s conftest.err; then
27065     ac_cpp_err=$ac_c_preproc_warn_flag
27066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27067   else
27068     ac_cpp_err=
27069   fi
27070 else
27071   ac_cpp_err=yes
27072 fi
27073 if test -z "$ac_cpp_err"; then
27074   ac_header_preproc=yes
27075 else
27076   echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079   ac_header_preproc=no
27080 fi
27081 rm -f conftest.err conftest.$ac_ext
27082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27083 echo "${ECHO_T}$ac_header_preproc" >&6
27084
27085 # So?  What about this header?
27086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27087   yes:no: )
27088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27092     ac_header_preproc=yes
27093     ;;
27094   no:yes:* )
27095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27107     (
27108       cat <<\_ASBOX
27109 ## ----------------------------------- ##
27110 ## Report this to llvmbugs@cs.uiuc.edu ##
27111 ## ----------------------------------- ##
27112 _ASBOX
27113     ) |
27114       sed "s/^/$as_me: WARNING:     /" >&2
27115     ;;
27116 esac
27117 echo "$as_me:$LINENO: checking for $ac_header" >&5
27118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27120   echo $ECHO_N "(cached) $ECHO_C" >&6
27121 else
27122   eval "$as_ac_Header=\$ac_header_preproc"
27123 fi
27124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27126
27127 fi
27128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27129   cat >>confdefs.h <<_ACEOF
27130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27131 _ACEOF
27132
27133 fi
27134
27135 done
27136
27137
27138
27139
27140
27141
27142 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
27143 do
27144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27146   echo "$as_me:$LINENO: checking for $ac_header" >&5
27147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27149   echo $ECHO_N "(cached) $ECHO_C" >&6
27150 fi
27151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27153 else
27154   # Is the header compilable?
27155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27157 cat >conftest.$ac_ext <<_ACEOF
27158 /* confdefs.h.  */
27159 _ACEOF
27160 cat confdefs.h >>conftest.$ac_ext
27161 cat >>conftest.$ac_ext <<_ACEOF
27162 /* end confdefs.h.  */
27163 $ac_includes_default
27164 #include <$ac_header>
27165 _ACEOF
27166 rm -f conftest.$ac_objext
27167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27168   (eval $ac_compile) 2>conftest.er1
27169   ac_status=$?
27170   grep -v '^ *+' conftest.er1 >conftest.err
27171   rm -f conftest.er1
27172   cat conftest.err >&5
27173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174   (exit $ac_status); } &&
27175          { ac_try='test -z "$ac_c_werror_flag"
27176                          || test ! -s conftest.err'
27177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27178   (eval $ac_try) 2>&5
27179   ac_status=$?
27180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181   (exit $ac_status); }; } &&
27182          { ac_try='test -s conftest.$ac_objext'
27183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184   (eval $ac_try) 2>&5
27185   ac_status=$?
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); }; }; then
27188   ac_header_compiler=yes
27189 else
27190   echo "$as_me: failed program was:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27192
27193 ac_header_compiler=no
27194 fi
27195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27197 echo "${ECHO_T}$ac_header_compiler" >&6
27198
27199 # Is the header present?
27200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27202 cat >conftest.$ac_ext <<_ACEOF
27203 /* confdefs.h.  */
27204 _ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h.  */
27208 #include <$ac_header>
27209 _ACEOF
27210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27212   ac_status=$?
27213   grep -v '^ *+' conftest.er1 >conftest.err
27214   rm -f conftest.er1
27215   cat conftest.err >&5
27216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217   (exit $ac_status); } >/dev/null; then
27218   if test -s conftest.err; then
27219     ac_cpp_err=$ac_c_preproc_warn_flag
27220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27221   else
27222     ac_cpp_err=
27223   fi
27224 else
27225   ac_cpp_err=yes
27226 fi
27227 if test -z "$ac_cpp_err"; then
27228   ac_header_preproc=yes
27229 else
27230   echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.$ac_ext >&5
27232
27233   ac_header_preproc=no
27234 fi
27235 rm -f conftest.err conftest.$ac_ext
27236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27237 echo "${ECHO_T}$ac_header_preproc" >&6
27238
27239 # So?  What about this header?
27240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27241   yes:no: )
27242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27246     ac_header_preproc=yes
27247     ;;
27248   no:yes:* )
27249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27261     (
27262       cat <<\_ASBOX
27263 ## ----------------------------------- ##
27264 ## Report this to llvmbugs@cs.uiuc.edu ##
27265 ## ----------------------------------- ##
27266 _ASBOX
27267     ) |
27268       sed "s/^/$as_me: WARNING:     /" >&2
27269     ;;
27270 esac
27271 echo "$as_me:$LINENO: checking for $ac_header" >&5
27272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27274   echo $ECHO_N "(cached) $ECHO_C" >&6
27275 else
27276   eval "$as_ac_Header=\$ac_header_preproc"
27277 fi
27278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27280
27281 fi
27282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27283   cat >>confdefs.h <<_ACEOF
27284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27285 _ACEOF
27286
27287 fi
27288
27289 done
27290
27291
27292 for ac_header in malloc/malloc.h
27293 do
27294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27296   echo "$as_me:$LINENO: checking for $ac_header" >&5
27297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27299   echo $ECHO_N "(cached) $ECHO_C" >&6
27300 fi
27301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27303 else
27304   # Is the header compilable?
27305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27307 cat >conftest.$ac_ext <<_ACEOF
27308 /* confdefs.h.  */
27309 _ACEOF
27310 cat confdefs.h >>conftest.$ac_ext
27311 cat >>conftest.$ac_ext <<_ACEOF
27312 /* end confdefs.h.  */
27313 $ac_includes_default
27314 #include <$ac_header>
27315 _ACEOF
27316 rm -f conftest.$ac_objext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318   (eval $ac_compile) 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } &&
27325          { ac_try='test -z "$ac_c_werror_flag"
27326                          || test ! -s conftest.err'
27327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328   (eval $ac_try) 2>&5
27329   ac_status=$?
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); }; } &&
27332          { ac_try='test -s conftest.$ac_objext'
27333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334   (eval $ac_try) 2>&5
27335   ac_status=$?
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); }; }; then
27338   ac_header_compiler=yes
27339 else
27340   echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343 ac_header_compiler=no
27344 fi
27345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27347 echo "${ECHO_T}$ac_header_compiler" >&6
27348
27349 # Is the header present?
27350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27352 cat >conftest.$ac_ext <<_ACEOF
27353 /* confdefs.h.  */
27354 _ACEOF
27355 cat confdefs.h >>conftest.$ac_ext
27356 cat >>conftest.$ac_ext <<_ACEOF
27357 /* end confdefs.h.  */
27358 #include <$ac_header>
27359 _ACEOF
27360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27362   ac_status=$?
27363   grep -v '^ *+' conftest.er1 >conftest.err
27364   rm -f conftest.er1
27365   cat conftest.err >&5
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); } >/dev/null; then
27368   if test -s conftest.err; then
27369     ac_cpp_err=$ac_c_preproc_warn_flag
27370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27371   else
27372     ac_cpp_err=
27373   fi
27374 else
27375   ac_cpp_err=yes
27376 fi
27377 if test -z "$ac_cpp_err"; then
27378   ac_header_preproc=yes
27379 else
27380   echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27382
27383   ac_header_preproc=no
27384 fi
27385 rm -f conftest.err conftest.$ac_ext
27386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27387 echo "${ECHO_T}$ac_header_preproc" >&6
27388
27389 # So?  What about this header?
27390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27391   yes:no: )
27392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27396     ac_header_preproc=yes
27397     ;;
27398   no:yes:* )
27399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27411     (
27412       cat <<\_ASBOX
27413 ## ----------------------------------- ##
27414 ## Report this to llvmbugs@cs.uiuc.edu ##
27415 ## ----------------------------------- ##
27416 _ASBOX
27417     ) |
27418       sed "s/^/$as_me: WARNING:     /" >&2
27419     ;;
27420 esac
27421 echo "$as_me:$LINENO: checking for $ac_header" >&5
27422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27424   echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426   eval "$as_ac_Header=\$ac_header_preproc"
27427 fi
27428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27430
27431 fi
27432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27433   cat >>confdefs.h <<_ACEOF
27434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27435 _ACEOF
27436
27437 fi
27438
27439 done
27440
27441 if test "$ENABLE_THREADS" -eq 1 ; then
27442
27443 for ac_header in pthread.h
27444 do
27445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27447   echo "$as_me:$LINENO: checking for $ac_header" >&5
27448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27450   echo $ECHO_N "(cached) $ECHO_C" >&6
27451 fi
27452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27454 else
27455   # Is the header compilable?
27456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27458 cat >conftest.$ac_ext <<_ACEOF
27459 /* confdefs.h.  */
27460 _ACEOF
27461 cat confdefs.h >>conftest.$ac_ext
27462 cat >>conftest.$ac_ext <<_ACEOF
27463 /* end confdefs.h.  */
27464 $ac_includes_default
27465 #include <$ac_header>
27466 _ACEOF
27467 rm -f conftest.$ac_objext
27468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27469   (eval $ac_compile) 2>conftest.er1
27470   ac_status=$?
27471   grep -v '^ *+' conftest.er1 >conftest.err
27472   rm -f conftest.er1
27473   cat conftest.err >&5
27474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475   (exit $ac_status); } &&
27476          { ac_try='test -z "$ac_c_werror_flag"
27477                          || test ! -s conftest.err'
27478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27479   (eval $ac_try) 2>&5
27480   ac_status=$?
27481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482   (exit $ac_status); }; } &&
27483          { ac_try='test -s conftest.$ac_objext'
27484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27485   (eval $ac_try) 2>&5
27486   ac_status=$?
27487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); }; }; then
27489   ac_header_compiler=yes
27490 else
27491   echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27493
27494 ac_header_compiler=no
27495 fi
27496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27498 echo "${ECHO_T}$ac_header_compiler" >&6
27499
27500 # Is the header present?
27501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27503 cat >conftest.$ac_ext <<_ACEOF
27504 /* confdefs.h.  */
27505 _ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h.  */
27509 #include <$ac_header>
27510 _ACEOF
27511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27513   ac_status=$?
27514   grep -v '^ *+' conftest.er1 >conftest.err
27515   rm -f conftest.er1
27516   cat conftest.err >&5
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); } >/dev/null; then
27519   if test -s conftest.err; then
27520     ac_cpp_err=$ac_c_preproc_warn_flag
27521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27522   else
27523     ac_cpp_err=
27524   fi
27525 else
27526   ac_cpp_err=yes
27527 fi
27528 if test -z "$ac_cpp_err"; then
27529   ac_header_preproc=yes
27530 else
27531   echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27533
27534   ac_header_preproc=no
27535 fi
27536 rm -f conftest.err conftest.$ac_ext
27537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27538 echo "${ECHO_T}$ac_header_preproc" >&6
27539
27540 # So?  What about this header?
27541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27542   yes:no: )
27543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27547     ac_header_preproc=yes
27548     ;;
27549   no:yes:* )
27550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27562     (
27563       cat <<\_ASBOX
27564 ## ----------------------------------- ##
27565 ## Report this to llvmbugs@cs.uiuc.edu ##
27566 ## ----------------------------------- ##
27567 _ASBOX
27568     ) |
27569       sed "s/^/$as_me: WARNING:     /" >&2
27570     ;;
27571 esac
27572 echo "$as_me:$LINENO: checking for $ac_header" >&5
27573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27575   echo $ECHO_N "(cached) $ECHO_C" >&6
27576 else
27577   eval "$as_ac_Header=\$ac_header_preproc"
27578 fi
27579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27581
27582 fi
27583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27584   cat >>confdefs.h <<_ACEOF
27585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27586 _ACEOF
27587
27588 fi
27589
27590 done
27591
27592 fi
27593
27594
27595 echo "$as_me:$LINENO: checking for pid_t" >&5
27596 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27597 if test "${ac_cv_type_pid_t+set}" = set; then
27598   echo $ECHO_N "(cached) $ECHO_C" >&6
27599 else
27600   cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h.  */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h.  */
27606 $ac_includes_default
27607 int
27608 main ()
27609 {
27610 if ((pid_t *) 0)
27611   return 0;
27612 if (sizeof (pid_t))
27613   return 0;
27614   ;
27615   return 0;
27616 }
27617 _ACEOF
27618 rm -f conftest.$ac_objext
27619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27620   (eval $ac_compile) 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } &&
27627          { ac_try='test -z "$ac_c_werror_flag"
27628                          || test ! -s conftest.err'
27629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630   (eval $ac_try) 2>&5
27631   ac_status=$?
27632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); }; } &&
27634          { ac_try='test -s conftest.$ac_objext'
27635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636   (eval $ac_try) 2>&5
27637   ac_status=$?
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); }; }; then
27640   ac_cv_type_pid_t=yes
27641 else
27642   echo "$as_me: failed program was:" >&5
27643 sed 's/^/| /' conftest.$ac_ext >&5
27644
27645 ac_cv_type_pid_t=no
27646 fi
27647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27648 fi
27649 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27650 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27651 if test $ac_cv_type_pid_t = yes; then
27652   :
27653 else
27654
27655 cat >>confdefs.h <<_ACEOF
27656 #define pid_t int
27657 _ACEOF
27658
27659 fi
27660
27661 echo "$as_me:$LINENO: checking for size_t" >&5
27662 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27663 if test "${ac_cv_type_size_t+set}" = set; then
27664   echo $ECHO_N "(cached) $ECHO_C" >&6
27665 else
27666   cat >conftest.$ac_ext <<_ACEOF
27667 /* confdefs.h.  */
27668 _ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h.  */
27672 $ac_includes_default
27673 int
27674 main ()
27675 {
27676 if ((size_t *) 0)
27677   return 0;
27678 if (sizeof (size_t))
27679   return 0;
27680   ;
27681   return 0;
27682 }
27683 _ACEOF
27684 rm -f conftest.$ac_objext
27685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27686   (eval $ac_compile) 2>conftest.er1
27687   ac_status=$?
27688   grep -v '^ *+' conftest.er1 >conftest.err
27689   rm -f conftest.er1
27690   cat conftest.err >&5
27691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); } &&
27693          { ac_try='test -z "$ac_c_werror_flag"
27694                          || test ! -s conftest.err'
27695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696   (eval $ac_try) 2>&5
27697   ac_status=$?
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); }; } &&
27700          { ac_try='test -s conftest.$ac_objext'
27701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702   (eval $ac_try) 2>&5
27703   ac_status=$?
27704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); }; }; then
27706   ac_cv_type_size_t=yes
27707 else
27708   echo "$as_me: failed program was:" >&5
27709 sed 's/^/| /' conftest.$ac_ext >&5
27710
27711 ac_cv_type_size_t=no
27712 fi
27713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27714 fi
27715 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27716 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27717 if test $ac_cv_type_size_t = yes; then
27718   :
27719 else
27720
27721 cat >>confdefs.h <<_ACEOF
27722 #define size_t unsigned
27723 _ACEOF
27724
27725 fi
27726
27727 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27728 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27729 if test "${ac_cv_type_signal+set}" = set; then
27730   echo $ECHO_N "(cached) $ECHO_C" >&6
27731 else
27732   cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738 #include <sys/types.h>
27739 #include <signal.h>
27740 #ifdef signal
27741 # undef signal
27742 #endif
27743 #ifdef __cplusplus
27744 extern "C" void (*signal (int, void (*)(int)))(int);
27745 #else
27746 void (*signal ()) ();
27747 #endif
27748
27749 int
27750 main ()
27751 {
27752 int i;
27753   ;
27754   return 0;
27755 }
27756 _ACEOF
27757 rm -f conftest.$ac_objext
27758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27759   (eval $ac_compile) 2>conftest.er1
27760   ac_status=$?
27761   grep -v '^ *+' conftest.er1 >conftest.err
27762   rm -f conftest.er1
27763   cat conftest.err >&5
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); } &&
27766          { ac_try='test -z "$ac_c_werror_flag"
27767                          || test ! -s conftest.err'
27768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769   (eval $ac_try) 2>&5
27770   ac_status=$?
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); }; } &&
27773          { ac_try='test -s conftest.$ac_objext'
27774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27775   (eval $ac_try) 2>&5
27776   ac_status=$?
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); }; }; then
27779   ac_cv_type_signal=void
27780 else
27781   echo "$as_me: failed program was:" >&5
27782 sed 's/^/| /' conftest.$ac_ext >&5
27783
27784 ac_cv_type_signal=int
27785 fi
27786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27787 fi
27788 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27789 echo "${ECHO_T}$ac_cv_type_signal" >&6
27790
27791 cat >>confdefs.h <<_ACEOF
27792 #define RETSIGTYPE $ac_cv_type_signal
27793 _ACEOF
27794
27795
27796 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27797 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27798 if test "${ac_cv_struct_tm+set}" = set; then
27799   echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801   cat >conftest.$ac_ext <<_ACEOF
27802 /* confdefs.h.  */
27803 _ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h.  */
27807 #include <sys/types.h>
27808 #include <time.h>
27809
27810 int
27811 main ()
27812 {
27813 struct tm *tp; tp->tm_sec;
27814   ;
27815   return 0;
27816 }
27817 _ACEOF
27818 rm -f conftest.$ac_objext
27819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27820   (eval $ac_compile) 2>conftest.er1
27821   ac_status=$?
27822   grep -v '^ *+' conftest.er1 >conftest.err
27823   rm -f conftest.er1
27824   cat conftest.err >&5
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); } &&
27827          { ac_try='test -z "$ac_c_werror_flag"
27828                          || test ! -s conftest.err'
27829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27830   (eval $ac_try) 2>&5
27831   ac_status=$?
27832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833   (exit $ac_status); }; } &&
27834          { ac_try='test -s conftest.$ac_objext'
27835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27836   (eval $ac_try) 2>&5
27837   ac_status=$?
27838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839   (exit $ac_status); }; }; then
27840   ac_cv_struct_tm=time.h
27841 else
27842   echo "$as_me: failed program was:" >&5
27843 sed 's/^/| /' conftest.$ac_ext >&5
27844
27845 ac_cv_struct_tm=sys/time.h
27846 fi
27847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27848 fi
27849 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27850 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27851 if test $ac_cv_struct_tm = sys/time.h; then
27852
27853 cat >>confdefs.h <<\_ACEOF
27854 #define TM_IN_SYS_TIME 1
27855 _ACEOF
27856
27857 fi
27858
27859 echo "$as_me:$LINENO: checking for int64_t" >&5
27860 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27861 if test "${ac_cv_type_int64_t+set}" = set; then
27862   echo $ECHO_N "(cached) $ECHO_C" >&6
27863 else
27864   cat >conftest.$ac_ext <<_ACEOF
27865 /* confdefs.h.  */
27866 _ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h.  */
27870 $ac_includes_default
27871 int
27872 main ()
27873 {
27874 if ((int64_t *) 0)
27875   return 0;
27876 if (sizeof (int64_t))
27877   return 0;
27878   ;
27879   return 0;
27880 }
27881 _ACEOF
27882 rm -f conftest.$ac_objext
27883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27884   (eval $ac_compile) 2>conftest.er1
27885   ac_status=$?
27886   grep -v '^ *+' conftest.er1 >conftest.err
27887   rm -f conftest.er1
27888   cat conftest.err >&5
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); } &&
27891          { ac_try='test -z "$ac_c_werror_flag"
27892                          || test ! -s conftest.err'
27893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27894   (eval $ac_try) 2>&5
27895   ac_status=$?
27896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897   (exit $ac_status); }; } &&
27898          { ac_try='test -s conftest.$ac_objext'
27899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27900   (eval $ac_try) 2>&5
27901   ac_status=$?
27902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903   (exit $ac_status); }; }; then
27904   ac_cv_type_int64_t=yes
27905 else
27906   echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27908
27909 ac_cv_type_int64_t=no
27910 fi
27911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27912 fi
27913 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27914 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27915 if test $ac_cv_type_int64_t = yes; then
27916
27917 cat >>confdefs.h <<_ACEOF
27918 #define HAVE_INT64_T 1
27919 _ACEOF
27920
27921
27922 else
27923   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27924 echo "$as_me: error: Type int64_t required but not found" >&2;}
27925    { (exit 1); exit 1; }; }
27926 fi
27927
27928 echo "$as_me:$LINENO: checking for uint64_t" >&5
27929 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27930 if test "${ac_cv_type_uint64_t+set}" = set; then
27931   echo $ECHO_N "(cached) $ECHO_C" >&6
27932 else
27933   cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h.  */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h.  */
27939 $ac_includes_default
27940 int
27941 main ()
27942 {
27943 if ((uint64_t *) 0)
27944   return 0;
27945 if (sizeof (uint64_t))
27946   return 0;
27947   ;
27948   return 0;
27949 }
27950 _ACEOF
27951 rm -f conftest.$ac_objext
27952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27953   (eval $ac_compile) 2>conftest.er1
27954   ac_status=$?
27955   grep -v '^ *+' conftest.er1 >conftest.err
27956   rm -f conftest.er1
27957   cat conftest.err >&5
27958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959   (exit $ac_status); } &&
27960          { ac_try='test -z "$ac_c_werror_flag"
27961                          || test ! -s conftest.err'
27962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963   (eval $ac_try) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; } &&
27967          { ac_try='test -s conftest.$ac_objext'
27968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969   (eval $ac_try) 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; }; then
27973   ac_cv_type_uint64_t=yes
27974 else
27975   echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978 ac_cv_type_uint64_t=no
27979 fi
27980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27981 fi
27982 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27983 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27984 if test $ac_cv_type_uint64_t = yes; then
27985
27986 cat >>confdefs.h <<_ACEOF
27987 #define HAVE_UINT64_T 1
27988 _ACEOF
27989
27990
27991 else
27992   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27993 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27994 if test "${ac_cv_type_u_int64_t+set}" = set; then
27995   echo $ECHO_N "(cached) $ECHO_C" >&6
27996 else
27997   cat >conftest.$ac_ext <<_ACEOF
27998 /* confdefs.h.  */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h.  */
28003 $ac_includes_default
28004 int
28005 main ()
28006 {
28007 if ((u_int64_t *) 0)
28008   return 0;
28009 if (sizeof (u_int64_t))
28010   return 0;
28011   ;
28012   return 0;
28013 }
28014 _ACEOF
28015 rm -f conftest.$ac_objext
28016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28017   (eval $ac_compile) 2>conftest.er1
28018   ac_status=$?
28019   grep -v '^ *+' conftest.er1 >conftest.err
28020   rm -f conftest.er1
28021   cat conftest.err >&5
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); } &&
28024          { ac_try='test -z "$ac_c_werror_flag"
28025                          || test ! -s conftest.err'
28026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027   (eval $ac_try) 2>&5
28028   ac_status=$?
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); }; } &&
28031          { ac_try='test -s conftest.$ac_objext'
28032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033   (eval $ac_try) 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); }; }; then
28037   ac_cv_type_u_int64_t=yes
28038 else
28039   echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042 ac_cv_type_u_int64_t=no
28043 fi
28044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28045 fi
28046 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28047 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28048 if test $ac_cv_type_u_int64_t = yes; then
28049
28050 cat >>confdefs.h <<_ACEOF
28051 #define HAVE_U_INT64_T 1
28052 _ACEOF
28053
28054
28055 else
28056   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28057 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28058    { (exit 1); exit 1; }; }
28059 fi
28060
28061 fi
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28073 do
28074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28075 echo "$as_me:$LINENO: checking for $ac_func" >&5
28076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28077 if eval "test \"\${$as_ac_var+set}\" = set"; then
28078   echo $ECHO_N "(cached) $ECHO_C" >&6
28079 else
28080   cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h.  */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h.  */
28086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28088 #define $ac_func innocuous_$ac_func
28089
28090 /* System header to define __stub macros and hopefully few prototypes,
28091     which can conflict with char $ac_func (); below.
28092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28093     <limits.h> exists even on freestanding compilers.  */
28094
28095 #ifdef __STDC__
28096 # include <limits.h>
28097 #else
28098 # include <assert.h>
28099 #endif
28100
28101 #undef $ac_func
28102
28103 /* Override any gcc2 internal prototype to avoid an error.  */
28104 #ifdef __cplusplus
28105 extern "C"
28106 {
28107 #endif
28108 /* We use char because int might match the return type of a gcc2
28109    builtin and then its argument prototype would still apply.  */
28110 char $ac_func ();
28111 /* The GNU C library defines this for functions which it implements
28112     to always fail with ENOSYS.  Some functions are actually named
28113     something starting with __ and the normal name is an alias.  */
28114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28115 choke me
28116 #else
28117 char (*f) () = $ac_func;
28118 #endif
28119 #ifdef __cplusplus
28120 }
28121 #endif
28122
28123 int
28124 main ()
28125 {
28126 return f != $ac_func;
28127   ;
28128   return 0;
28129 }
28130 _ACEOF
28131 rm -f conftest.$ac_objext conftest$ac_exeext
28132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28133   (eval $ac_link) 2>conftest.er1
28134   ac_status=$?
28135   grep -v '^ *+' conftest.er1 >conftest.err
28136   rm -f conftest.er1
28137   cat conftest.err >&5
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); } &&
28140          { ac_try='test -z "$ac_c_werror_flag"
28141                          || test ! -s conftest.err'
28142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143   (eval $ac_try) 2>&5
28144   ac_status=$?
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); }; } &&
28147          { ac_try='test -s conftest$ac_exeext'
28148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149   (eval $ac_try) 2>&5
28150   ac_status=$?
28151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); }; }; then
28153   eval "$as_ac_var=yes"
28154 else
28155   echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28157
28158 eval "$as_ac_var=no"
28159 fi
28160 rm -f conftest.err conftest.$ac_objext \
28161       conftest$ac_exeext conftest.$ac_ext
28162 fi
28163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28165 if test `eval echo '${'$as_ac_var'}'` = yes; then
28166   cat >>confdefs.h <<_ACEOF
28167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28168 _ACEOF
28169
28170 fi
28171 done
28172
28173
28174
28175
28176
28177
28178
28179 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28180 do
28181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28182 echo "$as_me:$LINENO: checking for $ac_func" >&5
28183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28184 if eval "test \"\${$as_ac_var+set}\" = set"; then
28185   echo $ECHO_N "(cached) $ECHO_C" >&6
28186 else
28187   cat >conftest.$ac_ext <<_ACEOF
28188 /* confdefs.h.  */
28189 _ACEOF
28190 cat confdefs.h >>conftest.$ac_ext
28191 cat >>conftest.$ac_ext <<_ACEOF
28192 /* end confdefs.h.  */
28193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28195 #define $ac_func innocuous_$ac_func
28196
28197 /* System header to define __stub macros and hopefully few prototypes,
28198     which can conflict with char $ac_func (); below.
28199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28200     <limits.h> exists even on freestanding compilers.  */
28201
28202 #ifdef __STDC__
28203 # include <limits.h>
28204 #else
28205 # include <assert.h>
28206 #endif
28207
28208 #undef $ac_func
28209
28210 /* Override any gcc2 internal prototype to avoid an error.  */
28211 #ifdef __cplusplus
28212 extern "C"
28213 {
28214 #endif
28215 /* We use char because int might match the return type of a gcc2
28216    builtin and then its argument prototype would still apply.  */
28217 char $ac_func ();
28218 /* The GNU C library defines this for functions which it implements
28219     to always fail with ENOSYS.  Some functions are actually named
28220     something starting with __ and the normal name is an alias.  */
28221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28222 choke me
28223 #else
28224 char (*f) () = $ac_func;
28225 #endif
28226 #ifdef __cplusplus
28227 }
28228 #endif
28229
28230 int
28231 main ()
28232 {
28233 return f != $ac_func;
28234   ;
28235   return 0;
28236 }
28237 _ACEOF
28238 rm -f conftest.$ac_objext conftest$ac_exeext
28239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28240   (eval $ac_link) 2>conftest.er1
28241   ac_status=$?
28242   grep -v '^ *+' conftest.er1 >conftest.err
28243   rm -f conftest.er1
28244   cat conftest.err >&5
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); } &&
28247          { ac_try='test -z "$ac_c_werror_flag"
28248                          || test ! -s conftest.err'
28249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28250   (eval $ac_try) 2>&5
28251   ac_status=$?
28252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253   (exit $ac_status); }; } &&
28254          { ac_try='test -s conftest$ac_exeext'
28255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28256   (eval $ac_try) 2>&5
28257   ac_status=$?
28258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259   (exit $ac_status); }; }; then
28260   eval "$as_ac_var=yes"
28261 else
28262   echo "$as_me: failed program was:" >&5
28263 sed 's/^/| /' conftest.$ac_ext >&5
28264
28265 eval "$as_ac_var=no"
28266 fi
28267 rm -f conftest.err conftest.$ac_objext \
28268       conftest$ac_exeext conftest.$ac_ext
28269 fi
28270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28272 if test `eval echo '${'$as_ac_var'}'` = yes; then
28273   cat >>confdefs.h <<_ACEOF
28274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28275 _ACEOF
28276
28277 fi
28278 done
28279
28280
28281
28282
28283
28284
28285
28286
28287 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28288 do
28289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28290 echo "$as_me:$LINENO: checking for $ac_func" >&5
28291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28292 if eval "test \"\${$as_ac_var+set}\" = set"; then
28293   echo $ECHO_N "(cached) $ECHO_C" >&6
28294 else
28295   cat >conftest.$ac_ext <<_ACEOF
28296 /* confdefs.h.  */
28297 _ACEOF
28298 cat confdefs.h >>conftest.$ac_ext
28299 cat >>conftest.$ac_ext <<_ACEOF
28300 /* end confdefs.h.  */
28301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28303 #define $ac_func innocuous_$ac_func
28304
28305 /* System header to define __stub macros and hopefully few prototypes,
28306     which can conflict with char $ac_func (); below.
28307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28308     <limits.h> exists even on freestanding compilers.  */
28309
28310 #ifdef __STDC__
28311 # include <limits.h>
28312 #else
28313 # include <assert.h>
28314 #endif
28315
28316 #undef $ac_func
28317
28318 /* Override any gcc2 internal prototype to avoid an error.  */
28319 #ifdef __cplusplus
28320 extern "C"
28321 {
28322 #endif
28323 /* We use char because int might match the return type of a gcc2
28324    builtin and then its argument prototype would still apply.  */
28325 char $ac_func ();
28326 /* The GNU C library defines this for functions which it implements
28327     to always fail with ENOSYS.  Some functions are actually named
28328     something starting with __ and the normal name is an alias.  */
28329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28330 choke me
28331 #else
28332 char (*f) () = $ac_func;
28333 #endif
28334 #ifdef __cplusplus
28335 }
28336 #endif
28337
28338 int
28339 main ()
28340 {
28341 return f != $ac_func;
28342   ;
28343   return 0;
28344 }
28345 _ACEOF
28346 rm -f conftest.$ac_objext conftest$ac_exeext
28347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28348   (eval $ac_link) 2>conftest.er1
28349   ac_status=$?
28350   grep -v '^ *+' conftest.er1 >conftest.err
28351   rm -f conftest.er1
28352   cat conftest.err >&5
28353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354   (exit $ac_status); } &&
28355          { ac_try='test -z "$ac_c_werror_flag"
28356                          || test ! -s conftest.err'
28357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358   (eval $ac_try) 2>&5
28359   ac_status=$?
28360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361   (exit $ac_status); }; } &&
28362          { ac_try='test -s conftest$ac_exeext'
28363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364   (eval $ac_try) 2>&5
28365   ac_status=$?
28366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); }; }; then
28368   eval "$as_ac_var=yes"
28369 else
28370   echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28372
28373 eval "$as_ac_var=no"
28374 fi
28375 rm -f conftest.err conftest.$ac_objext \
28376       conftest$ac_exeext conftest.$ac_ext
28377 fi
28378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28380 if test `eval echo '${'$as_ac_var'}'` = yes; then
28381   cat >>confdefs.h <<_ACEOF
28382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28383 _ACEOF
28384
28385 fi
28386 done
28387
28388
28389
28390
28391
28392 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28393 do
28394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28395 echo "$as_me:$LINENO: checking for $ac_func" >&5
28396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28397 if eval "test \"\${$as_ac_var+set}\" = set"; then
28398   echo $ECHO_N "(cached) $ECHO_C" >&6
28399 else
28400   cat >conftest.$ac_ext <<_ACEOF
28401 /* confdefs.h.  */
28402 _ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h.  */
28406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28408 #define $ac_func innocuous_$ac_func
28409
28410 /* System header to define __stub macros and hopefully few prototypes,
28411     which can conflict with char $ac_func (); below.
28412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28413     <limits.h> exists even on freestanding compilers.  */
28414
28415 #ifdef __STDC__
28416 # include <limits.h>
28417 #else
28418 # include <assert.h>
28419 #endif
28420
28421 #undef $ac_func
28422
28423 /* Override any gcc2 internal prototype to avoid an error.  */
28424 #ifdef __cplusplus
28425 extern "C"
28426 {
28427 #endif
28428 /* We use char because int might match the return type of a gcc2
28429    builtin and then its argument prototype would still apply.  */
28430 char $ac_func ();
28431 /* The GNU C library defines this for functions which it implements
28432     to always fail with ENOSYS.  Some functions are actually named
28433     something starting with __ and the normal name is an alias.  */
28434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28435 choke me
28436 #else
28437 char (*f) () = $ac_func;
28438 #endif
28439 #ifdef __cplusplus
28440 }
28441 #endif
28442
28443 int
28444 main ()
28445 {
28446 return f != $ac_func;
28447   ;
28448   return 0;
28449 }
28450 _ACEOF
28451 rm -f conftest.$ac_objext conftest$ac_exeext
28452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28453   (eval $ac_link) 2>conftest.er1
28454   ac_status=$?
28455   grep -v '^ *+' conftest.er1 >conftest.err
28456   rm -f conftest.er1
28457   cat conftest.err >&5
28458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); } &&
28460          { ac_try='test -z "$ac_c_werror_flag"
28461                          || test ! -s conftest.err'
28462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463   (eval $ac_try) 2>&5
28464   ac_status=$?
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); }; } &&
28467          { ac_try='test -s conftest$ac_exeext'
28468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469   (eval $ac_try) 2>&5
28470   ac_status=$?
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); }; }; then
28473   eval "$as_ac_var=yes"
28474 else
28475   echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28477
28478 eval "$as_ac_var=no"
28479 fi
28480 rm -f conftest.err conftest.$ac_objext \
28481       conftest$ac_exeext conftest.$ac_ext
28482 fi
28483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28485 if test `eval echo '${'$as_ac_var'}'` = yes; then
28486   cat >>confdefs.h <<_ACEOF
28487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28488 _ACEOF
28489
28490 fi
28491 done
28492
28493 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28494 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28495 if test "${llvm_cv_c_printf_a+set}" = set; then
28496   echo $ECHO_N "(cached) $ECHO_C" >&6
28497 else
28498   ac_ext=c
28499 ac_cpp='$CPP $CPPFLAGS'
28500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28503
28504  if test "$cross_compiling" = yes; then
28505   llvmac_cv_c_printf_a=no
28506 else
28507   cat >conftest.$ac_ext <<_ACEOF
28508
28509   /* confdefs.h.  */
28510 _ACEOF
28511 cat confdefs.h >>conftest.$ac_ext
28512 cat >>conftest.$ac_ext <<_ACEOF
28513 /* end confdefs.h.  */
28514
28515 #include <stdio.h>
28516 #include <stdlib.h>
28517
28518 int
28519 main ()
28520 {
28521
28522 volatile double A, B;
28523 char Buffer[100];
28524 A = 1;
28525 A /= 10.0;
28526 sprintf(Buffer, "%a", A);
28527 B = atof(Buffer);
28528 if (A != B)
28529   return (1);
28530 if (A != 0x1.999999999999ap-4)
28531   return (1);
28532 return (0);
28533   ;
28534   return 0;
28535 }
28536 _ACEOF
28537 rm -f conftest$ac_exeext
28538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28539   (eval $ac_link) 2>&5
28540   ac_status=$?
28541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544   (eval $ac_try) 2>&5
28545   ac_status=$?
28546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547   (exit $ac_status); }; }; then
28548   llvm_cv_c_printf_a=yes
28549 else
28550   echo "$as_me: program exited with status $ac_status" >&5
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28553
28554 ( exit $ac_status )
28555 llvmac_cv_c_printf_a=no
28556 fi
28557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28558 fi
28559  ac_ext=c
28560 ac_cpp='$CPP $CPPFLAGS'
28561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28564
28565 fi
28566 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28567 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28568  if test "$llvm_cv_c_printf_a" = "yes"; then
28569
28570 cat >>confdefs.h <<\_ACEOF
28571 #define HAVE_PRINTF_A 1
28572 _ACEOF
28573
28574  fi
28575
28576 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28577 # for constant arguments.  Useless!
28578 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28579 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28580 if test "${ac_cv_working_alloca_h+set}" = set; then
28581   echo $ECHO_N "(cached) $ECHO_C" >&6
28582 else
28583   cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h.  */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h.  */
28589 #include <alloca.h>
28590 int
28591 main ()
28592 {
28593 char *p = (char *) alloca (2 * sizeof (int));
28594   ;
28595   return 0;
28596 }
28597 _ACEOF
28598 rm -f conftest.$ac_objext conftest$ac_exeext
28599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28600   (eval $ac_link) 2>conftest.er1
28601   ac_status=$?
28602   grep -v '^ *+' conftest.er1 >conftest.err
28603   rm -f conftest.er1
28604   cat conftest.err >&5
28605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606   (exit $ac_status); } &&
28607          { ac_try='test -z "$ac_c_werror_flag"
28608                          || test ! -s conftest.err'
28609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610   (eval $ac_try) 2>&5
28611   ac_status=$?
28612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); }; } &&
28614          { ac_try='test -s conftest$ac_exeext'
28615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616   (eval $ac_try) 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); }; }; then
28620   ac_cv_working_alloca_h=yes
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625 ac_cv_working_alloca_h=no
28626 fi
28627 rm -f conftest.err conftest.$ac_objext \
28628       conftest$ac_exeext conftest.$ac_ext
28629 fi
28630 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28631 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28632 if test $ac_cv_working_alloca_h = yes; then
28633
28634 cat >>confdefs.h <<\_ACEOF
28635 #define HAVE_ALLOCA_H 1
28636 _ACEOF
28637
28638 fi
28639
28640 echo "$as_me:$LINENO: checking for alloca" >&5
28641 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28642 if test "${ac_cv_func_alloca_works+set}" = set; then
28643   echo $ECHO_N "(cached) $ECHO_C" >&6
28644 else
28645   cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h.  */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h.  */
28651 #ifdef __GNUC__
28652 # define alloca __builtin_alloca
28653 #else
28654 # ifdef _MSC_VER
28655 #  include <malloc.h>
28656 #  define alloca _alloca
28657 # else
28658 #  if HAVE_ALLOCA_H
28659 #   include <alloca.h>
28660 #  else
28661 #   ifdef _AIX
28662  #pragma alloca
28663 #   else
28664 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28665 char *alloca ();
28666 #    endif
28667 #   endif
28668 #  endif
28669 # endif
28670 #endif
28671
28672 int
28673 main ()
28674 {
28675 char *p = (char *) alloca (1);
28676   ;
28677   return 0;
28678 }
28679 _ACEOF
28680 rm -f conftest.$ac_objext conftest$ac_exeext
28681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28682   (eval $ac_link) 2>conftest.er1
28683   ac_status=$?
28684   grep -v '^ *+' conftest.er1 >conftest.err
28685   rm -f conftest.er1
28686   cat conftest.err >&5
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); } &&
28689          { ac_try='test -z "$ac_c_werror_flag"
28690                          || test ! -s conftest.err'
28691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692   (eval $ac_try) 2>&5
28693   ac_status=$?
28694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695   (exit $ac_status); }; } &&
28696          { ac_try='test -s conftest$ac_exeext'
28697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698   (eval $ac_try) 2>&5
28699   ac_status=$?
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); }; }; then
28702   ac_cv_func_alloca_works=yes
28703 else
28704   echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28706
28707 ac_cv_func_alloca_works=no
28708 fi
28709 rm -f conftest.err conftest.$ac_objext \
28710       conftest$ac_exeext conftest.$ac_ext
28711 fi
28712 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28713 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28714
28715 if test $ac_cv_func_alloca_works = yes; then
28716
28717 cat >>confdefs.h <<\_ACEOF
28718 #define HAVE_ALLOCA 1
28719 _ACEOF
28720
28721 else
28722   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28723 # that cause trouble.  Some versions do not even contain alloca or
28724 # contain a buggy version.  If you still want to use their alloca,
28725 # use ar to extract alloca.o from them instead of compiling alloca.c.
28726
28727 ALLOCA=alloca.$ac_objext
28728
28729 cat >>confdefs.h <<\_ACEOF
28730 #define C_ALLOCA 1
28731 _ACEOF
28732
28733
28734 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28735 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28736 if test "${ac_cv_os_cray+set}" = set; then
28737   echo $ECHO_N "(cached) $ECHO_C" >&6
28738 else
28739   cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745 #if defined(CRAY) && ! defined(CRAY2)
28746 webecray
28747 #else
28748 wenotbecray
28749 #endif
28750
28751 _ACEOF
28752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28753   $EGREP "webecray" >/dev/null 2>&1; then
28754   ac_cv_os_cray=yes
28755 else
28756   ac_cv_os_cray=no
28757 fi
28758 rm -f conftest*
28759
28760 fi
28761 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28762 echo "${ECHO_T}$ac_cv_os_cray" >&6
28763 if test $ac_cv_os_cray = yes; then
28764   for ac_func in _getb67 GETB67 getb67; do
28765     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28766 echo "$as_me:$LINENO: checking for $ac_func" >&5
28767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28768 if eval "test \"\${$as_ac_var+set}\" = set"; then
28769   echo $ECHO_N "(cached) $ECHO_C" >&6
28770 else
28771   cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h.  */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h.  */
28777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28779 #define $ac_func innocuous_$ac_func
28780
28781 /* System header to define __stub macros and hopefully few prototypes,
28782     which can conflict with char $ac_func (); below.
28783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28784     <limits.h> exists even on freestanding compilers.  */
28785
28786 #ifdef __STDC__
28787 # include <limits.h>
28788 #else
28789 # include <assert.h>
28790 #endif
28791
28792 #undef $ac_func
28793
28794 /* Override any gcc2 internal prototype to avoid an error.  */
28795 #ifdef __cplusplus
28796 extern "C"
28797 {
28798 #endif
28799 /* We use char because int might match the return type of a gcc2
28800    builtin and then its argument prototype would still apply.  */
28801 char $ac_func ();
28802 /* The GNU C library defines this for functions which it implements
28803     to always fail with ENOSYS.  Some functions are actually named
28804     something starting with __ and the normal name is an alias.  */
28805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28806 choke me
28807 #else
28808 char (*f) () = $ac_func;
28809 #endif
28810 #ifdef __cplusplus
28811 }
28812 #endif
28813
28814 int
28815 main ()
28816 {
28817 return f != $ac_func;
28818   ;
28819   return 0;
28820 }
28821 _ACEOF
28822 rm -f conftest.$ac_objext conftest$ac_exeext
28823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28824   (eval $ac_link) 2>conftest.er1
28825   ac_status=$?
28826   grep -v '^ *+' conftest.er1 >conftest.err
28827   rm -f conftest.er1
28828   cat conftest.err >&5
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); } &&
28831          { ac_try='test -z "$ac_c_werror_flag"
28832                          || test ! -s conftest.err'
28833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28834   (eval $ac_try) 2>&5
28835   ac_status=$?
28836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837   (exit $ac_status); }; } &&
28838          { ac_try='test -s conftest$ac_exeext'
28839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840   (eval $ac_try) 2>&5
28841   ac_status=$?
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); }; }; then
28844   eval "$as_ac_var=yes"
28845 else
28846   echo "$as_me: failed program was:" >&5
28847 sed 's/^/| /' conftest.$ac_ext >&5
28848
28849 eval "$as_ac_var=no"
28850 fi
28851 rm -f conftest.err conftest.$ac_objext \
28852       conftest$ac_exeext conftest.$ac_ext
28853 fi
28854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28856 if test `eval echo '${'$as_ac_var'}'` = yes; then
28857
28858 cat >>confdefs.h <<_ACEOF
28859 #define CRAY_STACKSEG_END $ac_func
28860 _ACEOF
28861
28862     break
28863 fi
28864
28865   done
28866 fi
28867
28868 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28869 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28870 if test "${ac_cv_c_stack_direction+set}" = set; then
28871   echo $ECHO_N "(cached) $ECHO_C" >&6
28872 else
28873   if test "$cross_compiling" = yes; then
28874   ac_cv_c_stack_direction=0
28875 else
28876   cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h.  */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h.  */
28882 int
28883 find_stack_direction ()
28884 {
28885   static char *addr = 0;
28886   auto char dummy;
28887   if (addr == 0)
28888     {
28889       addr = &dummy;
28890       return find_stack_direction ();
28891     }
28892   else
28893     return (&dummy > addr) ? 1 : -1;
28894 }
28895
28896 int
28897 main ()
28898 {
28899   exit (find_stack_direction () < 0);
28900 }
28901 _ACEOF
28902 rm -f conftest$ac_exeext
28903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28904   (eval $ac_link) 2>&5
28905   ac_status=$?
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909   (eval $ac_try) 2>&5
28910   ac_status=$?
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; }; then
28913   ac_cv_c_stack_direction=1
28914 else
28915   echo "$as_me: program exited with status $ac_status" >&5
28916 echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28918
28919 ( exit $ac_status )
28920 ac_cv_c_stack_direction=-1
28921 fi
28922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28923 fi
28924 fi
28925 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28926 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28927
28928 cat >>confdefs.h <<_ACEOF
28929 #define STACK_DIRECTION $ac_cv_c_stack_direction
28930 _ACEOF
28931
28932
28933 fi
28934
28935
28936 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28937 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28938 if test "${ac_cv_func_rand48+set}" = set; then
28939   echo $ECHO_N "(cached) $ECHO_C" >&6
28940 else
28941   ac_ext=cc
28942 ac_cpp='$CXXCPP $CPPFLAGS'
28943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28946
28947    cat >conftest.$ac_ext <<_ACEOF
28948 /* confdefs.h.  */
28949 _ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h.  */
28953 #include <stdlib.h>
28954 int
28955 main ()
28956 {
28957 srand48(0);lrand48();drand48();
28958   ;
28959   return 0;
28960 }
28961 _ACEOF
28962 rm -f conftest.$ac_objext
28963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28964   (eval $ac_compile) 2>conftest.er1
28965   ac_status=$?
28966   grep -v '^ *+' conftest.er1 >conftest.err
28967   rm -f conftest.er1
28968   cat conftest.err >&5
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); } &&
28971          { ac_try='test -z "$ac_cxx_werror_flag"
28972                          || test ! -s conftest.err'
28973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974   (eval $ac_try) 2>&5
28975   ac_status=$?
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); }; } &&
28978          { ac_try='test -s conftest.$ac_objext'
28979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28980   (eval $ac_try) 2>&5
28981   ac_status=$?
28982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983   (exit $ac_status); }; }; then
28984   ac_cv_func_rand48=yes
28985 else
28986   echo "$as_me: failed program was:" >&5
28987 sed 's/^/| /' conftest.$ac_ext >&5
28988
28989 ac_cv_func_rand48=no
28990 fi
28991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28992   ac_ext=c
28993 ac_cpp='$CPP $CPPFLAGS'
28994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28997
28998 fi
28999 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29000 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29001
29002 if test "$ac_cv_func_rand48" = "yes" ; then
29003
29004 cat >>confdefs.h <<\_ACEOF
29005 #define HAVE_RAND48 1
29006 _ACEOF
29007
29008 fi
29009
29010
29011 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29012 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29013 if test "${ac_cv_cxx_namespaces+set}" = set; then
29014   echo $ECHO_N "(cached) $ECHO_C" >&6
29015 else
29016   ac_ext=cc
29017 ac_cpp='$CXXCPP $CPPFLAGS'
29018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29021
29022  cat >conftest.$ac_ext <<_ACEOF
29023 /* confdefs.h.  */
29024 _ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h.  */
29028 namespace Outer { namespace Inner { int i = 0; }}
29029 int
29030 main ()
29031 {
29032 using namespace Outer::Inner; return i;
29033   ;
29034   return 0;
29035 }
29036 _ACEOF
29037 rm -f conftest.$ac_objext
29038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29039   (eval $ac_compile) 2>conftest.er1
29040   ac_status=$?
29041   grep -v '^ *+' conftest.er1 >conftest.err
29042   rm -f conftest.er1
29043   cat conftest.err >&5
29044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045   (exit $ac_status); } &&
29046          { ac_try='test -z "$ac_cxx_werror_flag"
29047                          || test ! -s conftest.err'
29048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049   (eval $ac_try) 2>&5
29050   ac_status=$?
29051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052   (exit $ac_status); }; } &&
29053          { ac_try='test -s conftest.$ac_objext'
29054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055   (eval $ac_try) 2>&5
29056   ac_status=$?
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); }; }; then
29059   ac_cv_cxx_namespaces=yes
29060 else
29061   echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064 ac_cv_cxx_namespaces=no
29065 fi
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29067  ac_ext=c
29068 ac_cpp='$CPP $CPPFLAGS'
29069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29072
29073
29074 fi
29075 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29076 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29077 if test "$ac_cv_cxx_namespaces" = yes; then
29078
29079 cat >>confdefs.h <<\_ACEOF
29080 #define HAVE_NAMESPACES
29081 _ACEOF
29082
29083 fi
29084
29085 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29086 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29087 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29088   echo $ECHO_N "(cached) $ECHO_C" >&6
29089 else
29090
29091   ac_ext=cc
29092 ac_cpp='$CXXCPP $CPPFLAGS'
29093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29096
29097   cat >conftest.$ac_ext <<_ACEOF
29098 /* confdefs.h.  */
29099 _ACEOF
29100 cat confdefs.h >>conftest.$ac_ext
29101 cat >>conftest.$ac_ext <<_ACEOF
29102 /* end confdefs.h.  */
29103 #include <ext/hash_map>
29104 #ifdef HAVE_NAMESPACES
29105 using namespace std;
29106 #endif
29107 int
29108 main ()
29109 {
29110 hash_map<int, int> t;
29111   ;
29112   return 0;
29113 }
29114 _ACEOF
29115 rm -f conftest.$ac_objext
29116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29117   (eval $ac_compile) 2>conftest.er1
29118   ac_status=$?
29119   grep -v '^ *+' conftest.er1 >conftest.err
29120   rm -f conftest.er1
29121   cat conftest.err >&5
29122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123   (exit $ac_status); } &&
29124          { ac_try='test -z "$ac_cxx_werror_flag"
29125                          || test ! -s conftest.err'
29126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127   (eval $ac_try) 2>&5
29128   ac_status=$?
29129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); }; } &&
29131          { ac_try='test -s conftest.$ac_objext'
29132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133   (eval $ac_try) 2>&5
29134   ac_status=$?
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); }; }; then
29137   ac_cv_cxx_have_std_ext_hash_map=yes
29138 else
29139   echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29141
29142 ac_cv_cxx_have_std_ext_hash_map=no
29143 fi
29144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29145   ac_ext=c
29146 ac_cpp='$CPP $CPPFLAGS'
29147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29150
29151 fi
29152 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29153 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29154  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29155  then
29156
29157 cat >>confdefs.h <<\_ACEOF
29158 #define HAVE_STD_EXT_HASH_MAP 1
29159 _ACEOF
29160
29161  else
29162
29163 cat >>confdefs.h <<\_ACEOF
29164 #define HAVE_STD_EXT_HASH_MAP 0
29165 _ACEOF
29166
29167  fi
29168
29169  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29170 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29171 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29172   echo $ECHO_N "(cached) $ECHO_C" >&6
29173 else
29174
29175   ac_ext=cc
29176 ac_cpp='$CXXCPP $CPPFLAGS'
29177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29180
29181   cat >conftest.$ac_ext <<_ACEOF
29182 /* confdefs.h.  */
29183 _ACEOF
29184 cat confdefs.h >>conftest.$ac_ext
29185 cat >>conftest.$ac_ext <<_ACEOF
29186 /* end confdefs.h.  */
29187 #include <ext/hash_map>
29188 #ifdef HAVE_NAMESPACES
29189 using namespace __gnu_cxx;
29190 #endif
29191 int
29192 main ()
29193 {
29194 hash_map<int,int> t;
29195   ;
29196   return 0;
29197 }
29198 _ACEOF
29199 rm -f conftest.$ac_objext
29200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29201   (eval $ac_compile) 2>conftest.er1
29202   ac_status=$?
29203   grep -v '^ *+' conftest.er1 >conftest.err
29204   rm -f conftest.er1
29205   cat conftest.err >&5
29206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); } &&
29208          { ac_try='test -z "$ac_cxx_werror_flag"
29209                          || test ! -s conftest.err'
29210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211   (eval $ac_try) 2>&5
29212   ac_status=$?
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); }; } &&
29215          { ac_try='test -s conftest.$ac_objext'
29216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217   (eval $ac_try) 2>&5
29218   ac_status=$?
29219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220   (exit $ac_status); }; }; then
29221   ac_cv_cxx_have_gnu_ext_hash_map=yes
29222 else
29223   echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29225
29226 ac_cv_cxx_have_gnu_ext_hash_map=no
29227 fi
29228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29229   ac_ext=c
29230 ac_cpp='$CPP $CPPFLAGS'
29231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29234
29235 fi
29236 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29237 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29238  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29239  then
29240
29241 cat >>confdefs.h <<\_ACEOF
29242 #define HAVE_GNU_EXT_HASH_MAP 1
29243 _ACEOF
29244
29245  else
29246
29247 cat >>confdefs.h <<\_ACEOF
29248 #define HAVE_GNU_EXT_HASH_MAP 0
29249 _ACEOF
29250
29251  fi
29252
29253  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29254 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29255 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29256   echo $ECHO_N "(cached) $ECHO_C" >&6
29257 else
29258
29259   ac_ext=cc
29260 ac_cpp='$CXXCPP $CPPFLAGS'
29261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29264
29265   cat >conftest.$ac_ext <<_ACEOF
29266 /* confdefs.h.  */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h.  */
29271 #include <hash_map>
29272 int
29273 main ()
29274 {
29275 hash_map<int,int> t;
29276   ;
29277   return 0;
29278 }
29279 _ACEOF
29280 rm -f conftest.$ac_objext
29281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29282   (eval $ac_compile) 2>conftest.er1
29283   ac_status=$?
29284   grep -v '^ *+' conftest.er1 >conftest.err
29285   rm -f conftest.er1
29286   cat conftest.err >&5
29287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); } &&
29289          { ac_try='test -z "$ac_cxx_werror_flag"
29290                          || test ! -s conftest.err'
29291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29292   (eval $ac_try) 2>&5
29293   ac_status=$?
29294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295   (exit $ac_status); }; } &&
29296          { ac_try='test -s conftest.$ac_objext'
29297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29298   (eval $ac_try) 2>&5
29299   ac_status=$?
29300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301   (exit $ac_status); }; }; then
29302   ac_cv_cxx_have_global_hash_map=yes
29303 else
29304   echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29306
29307 ac_cv_cxx_have_global_hash_map=no
29308 fi
29309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29310   ac_ext=c
29311 ac_cpp='$CPP $CPPFLAGS'
29312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29315
29316 fi
29317 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29318 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29319  if test "$ac_cv_cxx_have_global_hash_map" = yes
29320  then
29321
29322 cat >>confdefs.h <<\_ACEOF
29323 #define HAVE_GLOBAL_HASH_MAP 1
29324 _ACEOF
29325
29326  else
29327
29328 cat >>confdefs.h <<\_ACEOF
29329 #define HAVE_GLOBAL_HASH_MAP 0
29330 _ACEOF
29331
29332  fi
29333
29334 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29335 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29336 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29337   echo $ECHO_N "(cached) $ECHO_C" >&6
29338 else
29339
29340   ac_ext=cc
29341 ac_cpp='$CXXCPP $CPPFLAGS'
29342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29345
29346   cat >conftest.$ac_ext <<_ACEOF
29347 /* confdefs.h.  */
29348 _ACEOF
29349 cat confdefs.h >>conftest.$ac_ext
29350 cat >>conftest.$ac_ext <<_ACEOF
29351 /* end confdefs.h.  */
29352 #include <ext/hash_set>
29353 #ifdef HAVE_NAMESPACES
29354 using namespace std;
29355 #endif
29356 int
29357 main ()
29358 {
29359 hash_set<int> t;
29360   ;
29361   return 0;
29362 }
29363 _ACEOF
29364 rm -f conftest.$ac_objext
29365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29366   (eval $ac_compile) 2>conftest.er1
29367   ac_status=$?
29368   grep -v '^ *+' conftest.er1 >conftest.err
29369   rm -f conftest.er1
29370   cat conftest.err >&5
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); } &&
29373          { ac_try='test -z "$ac_cxx_werror_flag"
29374                          || test ! -s conftest.err'
29375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376   (eval $ac_try) 2>&5
29377   ac_status=$?
29378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379   (exit $ac_status); }; } &&
29380          { ac_try='test -s conftest.$ac_objext'
29381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382   (eval $ac_try) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; }; then
29386   ac_cv_cxx_have_std_ext_hash_set=yes
29387 else
29388   echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29390
29391 ac_cv_cxx_have_std_ext_hash_set=no
29392 fi
29393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29394   ac_ext=c
29395 ac_cpp='$CPP $CPPFLAGS'
29396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29399
29400 fi
29401 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29402 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29403  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29404  then
29405
29406 cat >>confdefs.h <<\_ACEOF
29407 #define HAVE_STD_EXT_HASH_SET 1
29408 _ACEOF
29409
29410  else
29411
29412 cat >>confdefs.h <<\_ACEOF
29413 #define HAVE_STD_EXT_HASH_SET 0
29414 _ACEOF
29415
29416  fi
29417
29418  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29419 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29420 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29421   echo $ECHO_N "(cached) $ECHO_C" >&6
29422 else
29423
29424   ac_ext=cc
29425 ac_cpp='$CXXCPP $CPPFLAGS'
29426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29429
29430   cat >conftest.$ac_ext <<_ACEOF
29431 /* confdefs.h.  */
29432 _ACEOF
29433 cat confdefs.h >>conftest.$ac_ext
29434 cat >>conftest.$ac_ext <<_ACEOF
29435 /* end confdefs.h.  */
29436 #include <ext/hash_set>
29437 #ifdef HAVE_NAMESPACES
29438 using namespace __gnu_cxx;
29439 #endif
29440 int
29441 main ()
29442 {
29443 hash_set<int> t;
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 rm -f conftest.$ac_objext
29449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29450   (eval $ac_compile) 2>conftest.er1
29451   ac_status=$?
29452   grep -v '^ *+' conftest.er1 >conftest.err
29453   rm -f conftest.er1
29454   cat conftest.err >&5
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); } &&
29457          { ac_try='test -z "$ac_cxx_werror_flag"
29458                          || test ! -s conftest.err'
29459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460   (eval $ac_try) 2>&5
29461   ac_status=$?
29462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463   (exit $ac_status); }; } &&
29464          { ac_try='test -s conftest.$ac_objext'
29465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29466   (eval $ac_try) 2>&5
29467   ac_status=$?
29468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469   (exit $ac_status); }; }; then
29470   ac_cv_cxx_have_gnu_ext_hash_set=yes
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475 ac_cv_cxx_have_gnu_ext_hash_set=no
29476 fi
29477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29478   ac_ext=c
29479 ac_cpp='$CPP $CPPFLAGS'
29480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29483
29484 fi
29485 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29486 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29487  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29488  then
29489
29490 cat >>confdefs.h <<\_ACEOF
29491 #define HAVE_GNU_EXT_HASH_SET 1
29492 _ACEOF
29493
29494  else
29495
29496 cat >>confdefs.h <<\_ACEOF
29497 #define HAVE_GNU_EXT_HASH_SET 0
29498 _ACEOF
29499
29500  fi
29501
29502  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29503 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29504 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29505   echo $ECHO_N "(cached) $ECHO_C" >&6
29506 else
29507
29508   ac_ext=cc
29509 ac_cpp='$CXXCPP $CPPFLAGS'
29510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29513
29514   cat >conftest.$ac_ext <<_ACEOF
29515 /* confdefs.h.  */
29516 _ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h.  */
29520 #include <hash_set>
29521 int
29522 main ()
29523 {
29524 hash_set<int> t; return 0;
29525   ;
29526   return 0;
29527 }
29528 _ACEOF
29529 rm -f conftest.$ac_objext
29530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29531   (eval $ac_compile) 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } &&
29538          { ac_try='test -z "$ac_cxx_werror_flag"
29539                          || test ! -s conftest.err'
29540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541   (eval $ac_try) 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); }; } &&
29545          { ac_try='test -s conftest.$ac_objext'
29546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547   (eval $ac_try) 2>&5
29548   ac_status=$?
29549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550   (exit $ac_status); }; }; then
29551   ac_cv_cxx_have_global_hash_set=yes
29552 else
29553   echo "$as_me: failed program was:" >&5
29554 sed 's/^/| /' conftest.$ac_ext >&5
29555
29556 ac_cv_cxx_have_global_hash_set=no
29557 fi
29558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29559   ac_ext=c
29560 ac_cpp='$CPP $CPPFLAGS'
29561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29564
29565 fi
29566 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29567 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29568  if test "$ac_cv_cxx_have_global_hash_set" = yes
29569  then
29570
29571 cat >>confdefs.h <<\_ACEOF
29572 #define HAVE_GLOBAL_HASH_SET 1
29573 _ACEOF
29574
29575  else
29576
29577 cat >>confdefs.h <<\_ACEOF
29578 #define HAVE_GLOBAL_HASH_SET 0
29579 _ACEOF
29580
29581  fi
29582
29583 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29584 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29585 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29586   echo $ECHO_N "(cached) $ECHO_C" >&6
29587 else
29588
29589   ac_ext=cc
29590 ac_cpp='$CXXCPP $CPPFLAGS'
29591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29594
29595   cat >conftest.$ac_ext <<_ACEOF
29596 /* confdefs.h.  */
29597 _ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h.  */
29601 #include <iterator>
29602 #ifdef HAVE_NAMESPACES
29603 using namespace std;
29604 #endif
29605 int
29606 main ()
29607 {
29608 iterator<int,int,int> t; return 0;
29609   ;
29610   return 0;
29611 }
29612 _ACEOF
29613 rm -f conftest.$ac_objext
29614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29615   (eval $ac_compile) 2>conftest.er1
29616   ac_status=$?
29617   grep -v '^ *+' conftest.er1 >conftest.err
29618   rm -f conftest.er1
29619   cat conftest.err >&5
29620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621   (exit $ac_status); } &&
29622          { ac_try='test -z "$ac_cxx_werror_flag"
29623                          || test ! -s conftest.err'
29624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29625   (eval $ac_try) 2>&5
29626   ac_status=$?
29627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628   (exit $ac_status); }; } &&
29629          { ac_try='test -s conftest.$ac_objext'
29630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29631   (eval $ac_try) 2>&5
29632   ac_status=$?
29633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634   (exit $ac_status); }; }; then
29635   ac_cv_cxx_have_std_iterator=yes
29636 else
29637   echo "$as_me: failed program was:" >&5
29638 sed 's/^/| /' conftest.$ac_ext >&5
29639
29640 ac_cv_cxx_have_std_iterator=no
29641 fi
29642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29643   ac_ext=c
29644 ac_cpp='$CPP $CPPFLAGS'
29645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29648
29649
29650 fi
29651 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29652 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29653 if test "$ac_cv_cxx_have_std_iterator" = yes
29654 then
29655
29656 cat >>confdefs.h <<\_ACEOF
29657 #define HAVE_STD_ITERATOR 1
29658 _ACEOF
29659
29660 else
29661
29662 cat >>confdefs.h <<\_ACEOF
29663 #define HAVE_STD_ITERATOR 0
29664 _ACEOF
29665
29666 fi
29667
29668 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29669 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29670 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29671   echo $ECHO_N "(cached) $ECHO_C" >&6
29672 else
29673
29674   ac_ext=cc
29675 ac_cpp='$CXXCPP $CPPFLAGS'
29676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29679
29680   cat >conftest.$ac_ext <<_ACEOF
29681 /* confdefs.h.  */
29682 _ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h.  */
29686 #include <iterator>
29687 #ifdef HAVE_NAMESPACES
29688 using namespace std;
29689 #endif
29690 int
29691 main ()
29692 {
29693 bidirectional_iterator<int,int> t; return 0;
29694   ;
29695   return 0;
29696 }
29697 _ACEOF
29698 rm -f conftest.$ac_objext
29699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29700   (eval $ac_compile) 2>conftest.er1
29701   ac_status=$?
29702   grep -v '^ *+' conftest.er1 >conftest.err
29703   rm -f conftest.er1
29704   cat conftest.err >&5
29705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706   (exit $ac_status); } &&
29707          { ac_try='test -z "$ac_cxx_werror_flag"
29708                          || test ! -s conftest.err'
29709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29710   (eval $ac_try) 2>&5
29711   ac_status=$?
29712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713   (exit $ac_status); }; } &&
29714          { ac_try='test -s conftest.$ac_objext'
29715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29716   (eval $ac_try) 2>&5
29717   ac_status=$?
29718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); }; }; then
29720   ac_cv_cxx_have_bi_iterator=yes
29721 else
29722   echo "$as_me: failed program was:" >&5
29723 sed 's/^/| /' conftest.$ac_ext >&5
29724
29725 ac_cv_cxx_have_bi_iterator=no
29726 fi
29727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29728   ac_ext=c
29729 ac_cpp='$CPP $CPPFLAGS'
29730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29733
29734
29735 fi
29736 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29737 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29738 if test "$ac_cv_cxx_have_bi_iterator" = yes
29739 then
29740
29741 cat >>confdefs.h <<\_ACEOF
29742 #define HAVE_BI_ITERATOR 1
29743 _ACEOF
29744
29745 else
29746
29747 cat >>confdefs.h <<\_ACEOF
29748 #define HAVE_BI_ITERATOR 0
29749 _ACEOF
29750
29751 fi
29752
29753 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29754 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29755 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29756   echo $ECHO_N "(cached) $ECHO_C" >&6
29757 else
29758
29759   ac_ext=cc
29760 ac_cpp='$CXXCPP $CPPFLAGS'
29761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29764
29765   cat >conftest.$ac_ext <<_ACEOF
29766 /* confdefs.h.  */
29767 _ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h.  */
29771 #include <iterator>
29772 #ifdef HAVE_NAMESPACES
29773 using namespace std;
29774 #endif
29775 int
29776 main ()
29777 {
29778 forward_iterator<int,int> t; return 0;
29779   ;
29780   return 0;
29781 }
29782 _ACEOF
29783 rm -f conftest.$ac_objext
29784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29785   (eval $ac_compile) 2>conftest.er1
29786   ac_status=$?
29787   grep -v '^ *+' conftest.er1 >conftest.err
29788   rm -f conftest.er1
29789   cat conftest.err >&5
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); } &&
29792          { ac_try='test -z "$ac_cxx_werror_flag"
29793                          || test ! -s conftest.err'
29794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29795   (eval $ac_try) 2>&5
29796   ac_status=$?
29797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798   (exit $ac_status); }; } &&
29799          { ac_try='test -s conftest.$ac_objext'
29800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29801   (eval $ac_try) 2>&5
29802   ac_status=$?
29803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804   (exit $ac_status); }; }; then
29805   ac_cv_cxx_have_fwd_iterator=yes
29806 else
29807   echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29809
29810 ac_cv_cxx_have_fwd_iterator=no
29811 fi
29812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29813   ac_ext=c
29814 ac_cpp='$CPP $CPPFLAGS'
29815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29818
29819
29820 fi
29821 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29822 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29823 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29824 then
29825
29826 cat >>confdefs.h <<\_ACEOF
29827 #define HAVE_FWD_ITERATOR 1
29828 _ACEOF
29829
29830 else
29831
29832 cat >>confdefs.h <<\_ACEOF
29833 #define HAVE_FWD_ITERATOR 0
29834 _ACEOF
29835
29836 fi
29837
29838
29839 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29840 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29841 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29842   echo $ECHO_N "(cached) $ECHO_C" >&6
29843 else
29844   ac_ext=cc
29845 ac_cpp='$CXXCPP $CPPFLAGS'
29846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29849
29850    cat >conftest.$ac_ext <<_ACEOF
29851 /* confdefs.h.  */
29852 _ACEOF
29853 cat confdefs.h >>conftest.$ac_ext
29854 cat >>conftest.$ac_ext <<_ACEOF
29855 /* end confdefs.h.  */
29856 #include <math.h>
29857 int
29858 main ()
29859 {
29860 float f; isnan(f);
29861   ;
29862   return 0;
29863 }
29864 _ACEOF
29865 rm -f conftest.$ac_objext
29866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29867   (eval $ac_compile) 2>conftest.er1
29868   ac_status=$?
29869   grep -v '^ *+' conftest.er1 >conftest.err
29870   rm -f conftest.er1
29871   cat conftest.err >&5
29872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); } &&
29874          { ac_try='test -z "$ac_cxx_werror_flag"
29875                          || test ! -s conftest.err'
29876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877   (eval $ac_try) 2>&5
29878   ac_status=$?
29879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880   (exit $ac_status); }; } &&
29881          { ac_try='test -s conftest.$ac_objext'
29882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883   (eval $ac_try) 2>&5
29884   ac_status=$?
29885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); }; }; then
29887   ac_cv_func_isnan_in_math_h=yes
29888 else
29889   echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29891
29892 ac_cv_func_isnan_in_math_h=no
29893 fi
29894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29895   ac_ext=c
29896 ac_cpp='$CPP $CPPFLAGS'
29897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29900
29901 fi
29902 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29903 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29904
29905
29906 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29907
29908 cat >>confdefs.h <<\_ACEOF
29909 #define HAVE_ISNAN_IN_MATH_H 1
29910 _ACEOF
29911
29912 fi
29913
29914 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29915 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29916 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29917   echo $ECHO_N "(cached) $ECHO_C" >&6
29918 else
29919   ac_ext=cc
29920 ac_cpp='$CXXCPP $CPPFLAGS'
29921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29924
29925    cat >conftest.$ac_ext <<_ACEOF
29926 /* confdefs.h.  */
29927 _ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h.  */
29931 #include <cmath>
29932 int
29933 main ()
29934 {
29935 float f; isnan(f);
29936   ;
29937   return 0;
29938 }
29939 _ACEOF
29940 rm -f conftest.$ac_objext
29941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29942   (eval $ac_compile) 2>conftest.er1
29943   ac_status=$?
29944   grep -v '^ *+' conftest.er1 >conftest.err
29945   rm -f conftest.er1
29946   cat conftest.err >&5
29947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948   (exit $ac_status); } &&
29949          { ac_try='test -z "$ac_cxx_werror_flag"
29950                          || test ! -s conftest.err'
29951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29952   (eval $ac_try) 2>&5
29953   ac_status=$?
29954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955   (exit $ac_status); }; } &&
29956          { ac_try='test -s conftest.$ac_objext'
29957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29958   (eval $ac_try) 2>&5
29959   ac_status=$?
29960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961   (exit $ac_status); }; }; then
29962   ac_cv_func_isnan_in_cmath=yes
29963 else
29964   echo "$as_me: failed program was:" >&5
29965 sed 's/^/| /' conftest.$ac_ext >&5
29966
29967 ac_cv_func_isnan_in_cmath=no
29968 fi
29969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29970   ac_ext=c
29971 ac_cpp='$CPP $CPPFLAGS'
29972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29975
29976 fi
29977 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29978 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29979
29980 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29981
29982 cat >>confdefs.h <<\_ACEOF
29983 #define HAVE_ISNAN_IN_CMATH 1
29984 _ACEOF
29985
29986 fi
29987
29988 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29989 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29990 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29991   echo $ECHO_N "(cached) $ECHO_C" >&6
29992 else
29993   ac_ext=cc
29994 ac_cpp='$CXXCPP $CPPFLAGS'
29995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29998
29999    cat >conftest.$ac_ext <<_ACEOF
30000 /* confdefs.h.  */
30001 _ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h.  */
30005 #include <cmath>
30006 int
30007 main ()
30008 {
30009 float f; std::isnan(f);
30010   ;
30011   return 0;
30012 }
30013 _ACEOF
30014 rm -f conftest.$ac_objext
30015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30016   (eval $ac_compile) 2>conftest.er1
30017   ac_status=$?
30018   grep -v '^ *+' conftest.er1 >conftest.err
30019   rm -f conftest.er1
30020   cat conftest.err >&5
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); } &&
30023          { ac_try='test -z "$ac_cxx_werror_flag"
30024                          || test ! -s conftest.err'
30025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30026   (eval $ac_try) 2>&5
30027   ac_status=$?
30028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029   (exit $ac_status); }; } &&
30030          { ac_try='test -s conftest.$ac_objext'
30031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032   (eval $ac_try) 2>&5
30033   ac_status=$?
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); }; }; then
30036   ac_cv_func_std_isnan_in_cmath=yes
30037 else
30038   echo "$as_me: failed program was:" >&5
30039 sed 's/^/| /' conftest.$ac_ext >&5
30040
30041 ac_cv_func_std_isnan_in_cmath=no
30042 fi
30043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30044   ac_ext=c
30045 ac_cpp='$CPP $CPPFLAGS'
30046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30049
30050 fi
30051 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30052 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30053
30054 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30055
30056 cat >>confdefs.h <<\_ACEOF
30057 #define HAVE_STD_ISNAN_IN_CMATH 1
30058 _ACEOF
30059
30060 fi
30061
30062
30063 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30064 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30065 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30066   echo $ECHO_N "(cached) $ECHO_C" >&6
30067 else
30068   ac_ext=cc
30069 ac_cpp='$CXXCPP $CPPFLAGS'
30070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30073
30074    cat >conftest.$ac_ext <<_ACEOF
30075 /* confdefs.h.  */
30076 _ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h.  */
30080 #include <math.h>
30081 int
30082 main ()
30083 {
30084 float f; isinf(f);
30085   ;
30086   return 0;
30087 }
30088 _ACEOF
30089 rm -f conftest.$ac_objext
30090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30091   (eval $ac_compile) 2>conftest.er1
30092   ac_status=$?
30093   grep -v '^ *+' conftest.er1 >conftest.err
30094   rm -f conftest.er1
30095   cat conftest.err >&5
30096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097   (exit $ac_status); } &&
30098          { ac_try='test -z "$ac_cxx_werror_flag"
30099                          || test ! -s conftest.err'
30100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30101   (eval $ac_try) 2>&5
30102   ac_status=$?
30103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104   (exit $ac_status); }; } &&
30105          { ac_try='test -s conftest.$ac_objext'
30106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107   (eval $ac_try) 2>&5
30108   ac_status=$?
30109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110   (exit $ac_status); }; }; then
30111   ac_cv_func_isinf_in_math_h=yes
30112 else
30113   echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116 ac_cv_func_isinf_in_math_h=no
30117 fi
30118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30119   ac_ext=c
30120 ac_cpp='$CPP $CPPFLAGS'
30121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30124
30125 fi
30126 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30127 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30128
30129 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30130
30131 cat >>confdefs.h <<\_ACEOF
30132 #define HAVE_ISINF_IN_MATH_H 1
30133 _ACEOF
30134
30135 fi
30136
30137 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30138 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30139 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30140   echo $ECHO_N "(cached) $ECHO_C" >&6
30141 else
30142   ac_ext=cc
30143 ac_cpp='$CXXCPP $CPPFLAGS'
30144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30147
30148    cat >conftest.$ac_ext <<_ACEOF
30149 /* confdefs.h.  */
30150 _ACEOF
30151 cat confdefs.h >>conftest.$ac_ext
30152 cat >>conftest.$ac_ext <<_ACEOF
30153 /* end confdefs.h.  */
30154 #include <cmath>
30155 int
30156 main ()
30157 {
30158 float f; isinf(f);
30159   ;
30160   return 0;
30161 }
30162 _ACEOF
30163 rm -f conftest.$ac_objext
30164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30165   (eval $ac_compile) 2>conftest.er1
30166   ac_status=$?
30167   grep -v '^ *+' conftest.er1 >conftest.err
30168   rm -f conftest.er1
30169   cat conftest.err >&5
30170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171   (exit $ac_status); } &&
30172          { ac_try='test -z "$ac_cxx_werror_flag"
30173                          || test ! -s conftest.err'
30174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30175   (eval $ac_try) 2>&5
30176   ac_status=$?
30177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178   (exit $ac_status); }; } &&
30179          { ac_try='test -s conftest.$ac_objext'
30180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30181   (eval $ac_try) 2>&5
30182   ac_status=$?
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); }; }; then
30185   ac_cv_func_isinf_in_cmath=yes
30186 else
30187   echo "$as_me: failed program was:" >&5
30188 sed 's/^/| /' conftest.$ac_ext >&5
30189
30190 ac_cv_func_isinf_in_cmath=no
30191 fi
30192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30193   ac_ext=c
30194 ac_cpp='$CPP $CPPFLAGS'
30195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30198
30199 fi
30200 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30201 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30202
30203 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30204
30205 cat >>confdefs.h <<\_ACEOF
30206 #define HAVE_ISINF_IN_CMATH 1
30207 _ACEOF
30208
30209 fi
30210
30211 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30212 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30213 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30214   echo $ECHO_N "(cached) $ECHO_C" >&6
30215 else
30216   ac_ext=cc
30217 ac_cpp='$CXXCPP $CPPFLAGS'
30218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30221
30222    cat >conftest.$ac_ext <<_ACEOF
30223 /* confdefs.h.  */
30224 _ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h.  */
30228 #include <cmath>
30229 int
30230 main ()
30231 {
30232 float f; std::isinf(f)}
30233   ;
30234   return 0;
30235 }
30236 _ACEOF
30237 rm -f conftest.$ac_objext
30238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30239   (eval $ac_compile) 2>conftest.er1
30240   ac_status=$?
30241   grep -v '^ *+' conftest.er1 >conftest.err
30242   rm -f conftest.er1
30243   cat conftest.err >&5
30244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245   (exit $ac_status); } &&
30246          { ac_try='test -z "$ac_cxx_werror_flag"
30247                          || test ! -s conftest.err'
30248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30249   (eval $ac_try) 2>&5
30250   ac_status=$?
30251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252   (exit $ac_status); }; } &&
30253          { ac_try='test -s conftest.$ac_objext'
30254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30255   (eval $ac_try) 2>&5
30256   ac_status=$?
30257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258   (exit $ac_status); }; }; then
30259   ac_cv_func_std_isinf_in_cmath=yes
30260 else
30261   echo "$as_me: failed program was:" >&5
30262 sed 's/^/| /' conftest.$ac_ext >&5
30263
30264 ac_cv_func_std_isinf_in_cmath=no
30265 fi
30266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30267   ac_ext=c
30268 ac_cpp='$CPP $CPPFLAGS'
30269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30272
30273 fi
30274 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30275 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30276
30277 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30278
30279 cat >>confdefs.h <<\_ACEOF
30280 #define HAVE_STD_ISINF_IN_CMATH 1
30281 _ACEOF
30282
30283 fi
30284
30285 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30286 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30287 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30288   echo $ECHO_N "(cached) $ECHO_C" >&6
30289 else
30290   ac_ext=cc
30291 ac_cpp='$CXXCPP $CPPFLAGS'
30292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30295
30296    cat >conftest.$ac_ext <<_ACEOF
30297 /* confdefs.h.  */
30298 _ACEOF
30299 cat confdefs.h >>conftest.$ac_ext
30300 cat >>conftest.$ac_ext <<_ACEOF
30301 /* end confdefs.h.  */
30302 #include <ieeefp.h>
30303 int
30304 main ()
30305 {
30306 float f; finite(f);
30307   ;
30308   return 0;
30309 }
30310 _ACEOF
30311 rm -f conftest.$ac_objext
30312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30313   (eval $ac_compile) 2>conftest.er1
30314   ac_status=$?
30315   grep -v '^ *+' conftest.er1 >conftest.err
30316   rm -f conftest.er1
30317   cat conftest.err >&5
30318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319   (exit $ac_status); } &&
30320          { ac_try='test -z "$ac_cxx_werror_flag"
30321                          || test ! -s conftest.err'
30322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30323   (eval $ac_try) 2>&5
30324   ac_status=$?
30325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326   (exit $ac_status); }; } &&
30327          { ac_try='test -s conftest.$ac_objext'
30328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30329   (eval $ac_try) 2>&5
30330   ac_status=$?
30331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332   (exit $ac_status); }; }; then
30333   ac_cv_func_finite_in_ieeefp_h=yes
30334 else
30335   echo "$as_me: failed program was:" >&5
30336 sed 's/^/| /' conftest.$ac_ext >&5
30337
30338 ac_cv_func_finite_in_ieeefp_h=no
30339 fi
30340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30341   ac_ext=c
30342 ac_cpp='$CPP $CPPFLAGS'
30343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30346
30347 fi
30348 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30349 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30350
30351 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30352
30353 cat >>confdefs.h <<\_ACEOF
30354 #define HAVE_FINITE_IN_IEEEFP_H 1
30355 _ACEOF
30356
30357 fi
30358
30359
30360
30361
30362
30363 for ac_header in stdlib.h unistd.h
30364 do
30365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30367   echo "$as_me:$LINENO: checking for $ac_header" >&5
30368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30370   echo $ECHO_N "(cached) $ECHO_C" >&6
30371 fi
30372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30374 else
30375   # Is the header compilable?
30376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30378 cat >conftest.$ac_ext <<_ACEOF
30379 /* confdefs.h.  */
30380 _ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h.  */
30384 $ac_includes_default
30385 #include <$ac_header>
30386 _ACEOF
30387 rm -f conftest.$ac_objext
30388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30389   (eval $ac_compile) 2>conftest.er1
30390   ac_status=$?
30391   grep -v '^ *+' conftest.er1 >conftest.err
30392   rm -f conftest.er1
30393   cat conftest.err >&5
30394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395   (exit $ac_status); } &&
30396          { ac_try='test -z "$ac_c_werror_flag"
30397                          || test ! -s conftest.err'
30398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30399   (eval $ac_try) 2>&5
30400   ac_status=$?
30401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402   (exit $ac_status); }; } &&
30403          { ac_try='test -s conftest.$ac_objext'
30404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405   (eval $ac_try) 2>&5
30406   ac_status=$?
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); }; }; then
30409   ac_header_compiler=yes
30410 else
30411   echo "$as_me: failed program was:" >&5
30412 sed 's/^/| /' conftest.$ac_ext >&5
30413
30414 ac_header_compiler=no
30415 fi
30416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30418 echo "${ECHO_T}$ac_header_compiler" >&6
30419
30420 # Is the header present?
30421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30423 cat >conftest.$ac_ext <<_ACEOF
30424 /* confdefs.h.  */
30425 _ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h.  */
30429 #include <$ac_header>
30430 _ACEOF
30431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30433   ac_status=$?
30434   grep -v '^ *+' conftest.er1 >conftest.err
30435   rm -f conftest.er1
30436   cat conftest.err >&5
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); } >/dev/null; then
30439   if test -s conftest.err; then
30440     ac_cpp_err=$ac_c_preproc_warn_flag
30441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30442   else
30443     ac_cpp_err=
30444   fi
30445 else
30446   ac_cpp_err=yes
30447 fi
30448 if test -z "$ac_cpp_err"; then
30449   ac_header_preproc=yes
30450 else
30451   echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30453
30454   ac_header_preproc=no
30455 fi
30456 rm -f conftest.err conftest.$ac_ext
30457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30458 echo "${ECHO_T}$ac_header_preproc" >&6
30459
30460 # So?  What about this header?
30461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30462   yes:no: )
30463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30467     ac_header_preproc=yes
30468     ;;
30469   no:yes:* )
30470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30482     (
30483       cat <<\_ASBOX
30484 ## ----------------------------------- ##
30485 ## Report this to llvmbugs@cs.uiuc.edu ##
30486 ## ----------------------------------- ##
30487 _ASBOX
30488     ) |
30489       sed "s/^/$as_me: WARNING:     /" >&2
30490     ;;
30491 esac
30492 echo "$as_me:$LINENO: checking for $ac_header" >&5
30493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30495   echo $ECHO_N "(cached) $ECHO_C" >&6
30496 else
30497   eval "$as_ac_Header=\$ac_header_preproc"
30498 fi
30499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30501
30502 fi
30503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30504   cat >>confdefs.h <<_ACEOF
30505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30506 _ACEOF
30507
30508 fi
30509
30510 done
30511
30512
30513 for ac_func in getpagesize
30514 do
30515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30516 echo "$as_me:$LINENO: checking for $ac_func" >&5
30517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30518 if eval "test \"\${$as_ac_var+set}\" = set"; then
30519   echo $ECHO_N "(cached) $ECHO_C" >&6
30520 else
30521   cat >conftest.$ac_ext <<_ACEOF
30522 /* confdefs.h.  */
30523 _ACEOF
30524 cat confdefs.h >>conftest.$ac_ext
30525 cat >>conftest.$ac_ext <<_ACEOF
30526 /* end confdefs.h.  */
30527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30529 #define $ac_func innocuous_$ac_func
30530
30531 /* System header to define __stub macros and hopefully few prototypes,
30532     which can conflict with char $ac_func (); below.
30533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30534     <limits.h> exists even on freestanding compilers.  */
30535
30536 #ifdef __STDC__
30537 # include <limits.h>
30538 #else
30539 # include <assert.h>
30540 #endif
30541
30542 #undef $ac_func
30543
30544 /* Override any gcc2 internal prototype to avoid an error.  */
30545 #ifdef __cplusplus
30546 extern "C"
30547 {
30548 #endif
30549 /* We use char because int might match the return type of a gcc2
30550    builtin and then its argument prototype would still apply.  */
30551 char $ac_func ();
30552 /* The GNU C library defines this for functions which it implements
30553     to always fail with ENOSYS.  Some functions are actually named
30554     something starting with __ and the normal name is an alias.  */
30555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30556 choke me
30557 #else
30558 char (*f) () = $ac_func;
30559 #endif
30560 #ifdef __cplusplus
30561 }
30562 #endif
30563
30564 int
30565 main ()
30566 {
30567 return f != $ac_func;
30568   ;
30569   return 0;
30570 }
30571 _ACEOF
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30574   (eval $ac_link) 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } &&
30581          { ac_try='test -z "$ac_c_werror_flag"
30582                          || test ! -s conftest.err'
30583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584   (eval $ac_try) 2>&5
30585   ac_status=$?
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); }; } &&
30588          { ac_try='test -s conftest$ac_exeext'
30589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590   (eval $ac_try) 2>&5
30591   ac_status=$?
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); }; }; then
30594   eval "$as_ac_var=yes"
30595 else
30596   echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30598
30599 eval "$as_ac_var=no"
30600 fi
30601 rm -f conftest.err conftest.$ac_objext \
30602       conftest$ac_exeext conftest.$ac_ext
30603 fi
30604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30606 if test `eval echo '${'$as_ac_var'}'` = yes; then
30607   cat >>confdefs.h <<_ACEOF
30608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30609 _ACEOF
30610
30611 fi
30612 done
30613
30614 echo "$as_me:$LINENO: checking for working mmap" >&5
30615 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30616 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30617   echo $ECHO_N "(cached) $ECHO_C" >&6
30618 else
30619   if test "$cross_compiling" = yes; then
30620   ac_cv_func_mmap_fixed_mapped=no
30621 else
30622   cat >conftest.$ac_ext <<_ACEOF
30623 /* confdefs.h.  */
30624 _ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h.  */
30628 $ac_includes_default
30629 /* malloc might have been renamed as rpl_malloc. */
30630 #undef malloc
30631
30632 /* Thanks to Mike Haertel and Jim Avera for this test.
30633    Here is a matrix of mmap possibilities:
30634         mmap private not fixed
30635         mmap private fixed at somewhere currently unmapped
30636         mmap private fixed at somewhere already mapped
30637         mmap shared not fixed
30638         mmap shared fixed at somewhere currently unmapped
30639         mmap shared fixed at somewhere already mapped
30640    For private mappings, we should verify that changes cannot be read()
30641    back from the file, nor mmap's back from the file at a different
30642    address.  (There have been systems where private was not correctly
30643    implemented like the infamous i386 svr4.0, and systems where the
30644    VM page cache was not coherent with the file system buffer cache
30645    like early versions of FreeBSD and possibly contemporary NetBSD.)
30646    For shared mappings, we should conversely verify that changes get
30647    propagated back to all the places they're supposed to be.
30648
30649    Grep wants private fixed already mapped.
30650    The main things grep needs to know about mmap are:
30651    * does it exist and is it safe to write into the mmap'd area
30652    * how to use it (BSD variants)  */
30653
30654 #include <fcntl.h>
30655 #include <sys/mman.h>
30656
30657 #if !STDC_HEADERS && !HAVE_STDLIB_H
30658 char *malloc ();
30659 #endif
30660
30661 /* This mess was copied from the GNU getpagesize.h.  */
30662 #if !HAVE_GETPAGESIZE
30663 /* Assume that all systems that can run configure have sys/param.h.  */
30664 # if !HAVE_SYS_PARAM_H
30665 #  define HAVE_SYS_PARAM_H 1
30666 # endif
30667
30668 # ifdef _SC_PAGESIZE
30669 #  define getpagesize() sysconf(_SC_PAGESIZE)
30670 # else /* no _SC_PAGESIZE */
30671 #  if HAVE_SYS_PARAM_H
30672 #   include <sys/param.h>
30673 #   ifdef EXEC_PAGESIZE
30674 #    define getpagesize() EXEC_PAGESIZE
30675 #   else /* no EXEC_PAGESIZE */
30676 #    ifdef NBPG
30677 #     define getpagesize() NBPG * CLSIZE
30678 #     ifndef CLSIZE
30679 #      define CLSIZE 1
30680 #     endif /* no CLSIZE */
30681 #    else /* no NBPG */
30682 #     ifdef NBPC
30683 #      define getpagesize() NBPC
30684 #     else /* no NBPC */
30685 #      ifdef PAGESIZE
30686 #       define getpagesize() PAGESIZE
30687 #      endif /* PAGESIZE */
30688 #     endif /* no NBPC */
30689 #    endif /* no NBPG */
30690 #   endif /* no EXEC_PAGESIZE */
30691 #  else /* no HAVE_SYS_PARAM_H */
30692 #   define getpagesize() 8192   /* punt totally */
30693 #  endif /* no HAVE_SYS_PARAM_H */
30694 # endif /* no _SC_PAGESIZE */
30695
30696 #endif /* no HAVE_GETPAGESIZE */
30697
30698 int
30699 main ()
30700 {
30701   char *data, *data2, *data3;
30702   int i, pagesize;
30703   int fd;
30704
30705   pagesize = getpagesize ();
30706
30707   /* First, make a file with some known garbage in it. */
30708   data = (char *) malloc (pagesize);
30709   if (!data)
30710     exit (1);
30711   for (i = 0; i < pagesize; ++i)
30712     *(data + i) = rand ();
30713   umask (0);
30714   fd = creat ("conftest.mmap", 0600);
30715   if (fd < 0)
30716     exit (1);
30717   if (write (fd, data, pagesize) != pagesize)
30718     exit (1);
30719   close (fd);
30720
30721   /* Next, try to mmap the file at a fixed address which already has
30722      something else allocated at it.  If we can, also make sure that
30723      we see the same garbage.  */
30724   fd = open ("conftest.mmap", O_RDWR);
30725   if (fd < 0)
30726     exit (1);
30727   data2 = (char *) malloc (2 * pagesize);
30728   if (!data2)
30729     exit (1);
30730   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30731   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30732                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30733     exit (1);
30734   for (i = 0; i < pagesize; ++i)
30735     if (*(data + i) != *(data2 + i))
30736       exit (1);
30737
30738   /* Finally, make sure that changes to the mapped area do not
30739      percolate back to the file as seen by read().  (This is a bug on
30740      some variants of i386 svr4.0.)  */
30741   for (i = 0; i < pagesize; ++i)
30742     *(data2 + i) = *(data2 + i) + 1;
30743   data3 = (char *) malloc (pagesize);
30744   if (!data3)
30745     exit (1);
30746   if (read (fd, data3, pagesize) != pagesize)
30747     exit (1);
30748   for (i = 0; i < pagesize; ++i)
30749     if (*(data + i) != *(data3 + i))
30750       exit (1);
30751   close (fd);
30752   exit (0);
30753 }
30754 _ACEOF
30755 rm -f conftest$ac_exeext
30756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30757   (eval $ac_link) 2>&5
30758   ac_status=$?
30759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762   (eval $ac_try) 2>&5
30763   ac_status=$?
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); }; }; then
30766   ac_cv_func_mmap_fixed_mapped=yes
30767 else
30768   echo "$as_me: program exited with status $ac_status" >&5
30769 echo "$as_me: failed program was:" >&5
30770 sed 's/^/| /' conftest.$ac_ext >&5
30771
30772 ( exit $ac_status )
30773 ac_cv_func_mmap_fixed_mapped=no
30774 fi
30775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30776 fi
30777 fi
30778 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30779 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30780 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30781
30782 cat >>confdefs.h <<\_ACEOF
30783 #define HAVE_MMAP 1
30784 _ACEOF
30785
30786 fi
30787 rm -f conftest.mmap
30788
30789 echo "$as_me:$LINENO: checking for mmap of files" >&5
30790 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30791 if test "${ac_cv_func_mmap_file+set}" = set; then
30792   echo $ECHO_N "(cached) $ECHO_C" >&6
30793 else
30794    ac_ext=c
30795 ac_cpp='$CPP $CPPFLAGS'
30796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30799
30800   if test "$cross_compiling" = yes; then
30801   ac_cv_func_mmap_file=no
30802 else
30803   cat >conftest.$ac_ext <<_ACEOF
30804
30805     /* confdefs.h.  */
30806 _ACEOF
30807 cat confdefs.h >>conftest.$ac_ext
30808 cat >>conftest.$ac_ext <<_ACEOF
30809 /* end confdefs.h.  */
30810
30811 #include <sys/types.h>
30812 #include <sys/mman.h>
30813 #include <fcntl.h>
30814
30815 int
30816 main ()
30817 {
30818
30819   int fd;
30820   fd = creat ("foo",0777);
30821   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30822   unlink ("foo");
30823   return (fd != (int) MAP_FAILED);
30824   ;
30825   return 0;
30826 }
30827 _ACEOF
30828 rm -f conftest$ac_exeext
30829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30830   (eval $ac_link) 2>&5
30831   ac_status=$?
30832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30835   (eval $ac_try) 2>&5
30836   ac_status=$?
30837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838   (exit $ac_status); }; }; then
30839   ac_cv_func_mmap_file=yes
30840 else
30841   echo "$as_me: program exited with status $ac_status" >&5
30842 echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30844
30845 ( exit $ac_status )
30846 ac_cv_func_mmap_file=no
30847 fi
30848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30849 fi
30850   ac_ext=c
30851 ac_cpp='$CPP $CPPFLAGS'
30852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30855
30856
30857 fi
30858 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30859 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30860 if test "$ac_cv_func_mmap_file" = yes; then
30861
30862 cat >>confdefs.h <<\_ACEOF
30863 #define HAVE_MMAP_FILE
30864 _ACEOF
30865
30866    MMAP_FILE=yes
30867
30868 fi
30869
30870 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30871 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30872 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30873   echo $ECHO_N "(cached) $ECHO_C" >&6
30874 else
30875   if test "$llvm_cv_os_type" = "Interix" ; then
30876    ac_cv_need_dev_zero_for_mmap=yes
30877  else
30878    ac_cv_need_dev_zero_for_mmap=no
30879  fi
30880
30881 fi
30882 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30883 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30884 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30885
30886 cat >>confdefs.h <<\_ACEOF
30887 #define NEED_DEV_ZERO_FOR_MMAP 1
30888 _ACEOF
30889
30890 fi
30891 echo "$as_me:$LINENO: checking for mprotect" >&5
30892 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30893 if test "${ac_cv_func_mprotect+set}" = set; then
30894   echo $ECHO_N "(cached) $ECHO_C" >&6
30895 else
30896   cat >conftest.$ac_ext <<_ACEOF
30897 /* confdefs.h.  */
30898 _ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h.  */
30902 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30904 #define mprotect innocuous_mprotect
30905
30906 /* System header to define __stub macros and hopefully few prototypes,
30907     which can conflict with char mprotect (); below.
30908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30909     <limits.h> exists even on freestanding compilers.  */
30910
30911 #ifdef __STDC__
30912 # include <limits.h>
30913 #else
30914 # include <assert.h>
30915 #endif
30916
30917 #undef mprotect
30918
30919 /* Override any gcc2 internal prototype to avoid an error.  */
30920 #ifdef __cplusplus
30921 extern "C"
30922 {
30923 #endif
30924 /* We use char because int might match the return type of a gcc2
30925    builtin and then its argument prototype would still apply.  */
30926 char mprotect ();
30927 /* The GNU C library defines this for functions which it implements
30928     to always fail with ENOSYS.  Some functions are actually named
30929     something starting with __ and the normal name is an alias.  */
30930 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30931 choke me
30932 #else
30933 char (*f) () = mprotect;
30934 #endif
30935 #ifdef __cplusplus
30936 }
30937 #endif
30938
30939 int
30940 main ()
30941 {
30942 return f != mprotect;
30943   ;
30944   return 0;
30945 }
30946 _ACEOF
30947 rm -f conftest.$ac_objext conftest$ac_exeext
30948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30949   (eval $ac_link) 2>conftest.er1
30950   ac_status=$?
30951   grep -v '^ *+' conftest.er1 >conftest.err
30952   rm -f conftest.er1
30953   cat conftest.err >&5
30954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955   (exit $ac_status); } &&
30956          { ac_try='test -z "$ac_c_werror_flag"
30957                          || test ! -s conftest.err'
30958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30959   (eval $ac_try) 2>&5
30960   ac_status=$?
30961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962   (exit $ac_status); }; } &&
30963          { ac_try='test -s conftest$ac_exeext'
30964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30965   (eval $ac_try) 2>&5
30966   ac_status=$?
30967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968   (exit $ac_status); }; }; then
30969   ac_cv_func_mprotect=yes
30970 else
30971   echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30973
30974 ac_cv_func_mprotect=no
30975 fi
30976 rm -f conftest.err conftest.$ac_objext \
30977       conftest$ac_exeext conftest.$ac_ext
30978 fi
30979 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30980 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30981 if test $ac_cv_func_mprotect = yes; then
30982   :
30983 else
30984   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30985 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30986    { (exit 1); exit 1; }; }
30987 fi
30988
30989
30990 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30991 then
30992   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30993 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30994 fi
30995 if test "$ac_cv_func_mmap_file" = "no"
30996 then
30997   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30998 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30999 fi
31000
31001
31002 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31003 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31004 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31005   echo $ECHO_N "(cached) $ECHO_C" >&6
31006 else
31007   llvm_cv_llvmgcc_sanity="no"
31008 if test -x "$LLVMGCC" ; then
31009   cp /dev/null conftest.c
31010   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31011   if test $? -eq 0 ; then
31012     llvm_cv_llvmgcc_sanity="yes"
31013   fi
31014   rm conftest.c
31015 fi
31016 fi
31017 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31018 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31019
31020 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31021   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31022   LLVMCC1=$llvmcc1path
31023
31024   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31025   LLVMCC1PLUS=$llvmcc1pluspath
31026
31027   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31028   LLVMGCCDIR=$llvmgccdir
31029
31030   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31031   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31032   LLVMGCC_VERSION=$llvmgccversion
31033
31034   LLVMGCC_MAJVERS=$llvmgccmajvers
31035
31036 fi
31037
31038 SHLIBEXT=$libltdl_cv_shlibext
31039
31040
31041 # Translate the various configuration directories and other basic
31042 # information into substitutions that will end up in Makefile.config.in
31043 # that these configured values can be used by the makefiles
31044 if test "${prefix}" == "NONE" ; then
31045   prefix="/usr/local"
31046 fi
31047 eval LLVM_PREFIX="${prefix}";
31048 eval LLVM_BINDIR="${prefix}/bin";
31049 eval LLVM_LIBDIR="${prefix}/lib";
31050 eval LLVM_DATADIR="${prefix}/share/llvm";
31051 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31052 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31053 eval LLVM_INCLUDEDIR="${prefix}/include";
31054 eval LLVM_INFODIR="${prefix}/info";
31055 eval LLVM_MANDIR="${prefix}/man";
31056 LLVM_CONFIGTIME=`date`
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068 # Place the various directores into the config.h file as #defines so that we
31069 # can know about the installation paths within LLVM.
31070
31071 cat >>confdefs.h <<_ACEOF
31072 #define LLVM_PREFIX "$LLVM_PREFIX"
31073 _ACEOF
31074
31075
31076 cat >>confdefs.h <<_ACEOF
31077 #define LLVM_BINDIR "$LLVM_BINDIR"
31078 _ACEOF
31079
31080
31081 cat >>confdefs.h <<_ACEOF
31082 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31083 _ACEOF
31084
31085
31086 cat >>confdefs.h <<_ACEOF
31087 #define LLVM_DATADIR "$LLVM_DATADIR"
31088 _ACEOF
31089
31090
31091 cat >>confdefs.h <<_ACEOF
31092 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31093 _ACEOF
31094
31095
31096 cat >>confdefs.h <<_ACEOF
31097 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31098 _ACEOF
31099
31100
31101 cat >>confdefs.h <<_ACEOF
31102 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31103 _ACEOF
31104
31105
31106 cat >>confdefs.h <<_ACEOF
31107 #define LLVM_INFODIR "$LLVM_INFODIR"
31108 _ACEOF
31109
31110
31111 cat >>confdefs.h <<_ACEOF
31112 #define LLVM_MANDIR "$LLVM_MANDIR"
31113 _ACEOF
31114
31115
31116 cat >>confdefs.h <<_ACEOF
31117 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31118 _ACEOF
31119
31120
31121
31122           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31123
31124           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31125
31126           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31127
31128           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31129
31130           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31131
31132
31133           ac_config_files="$ac_config_files Makefile.config"
31134
31135
31136           ac_config_files="$ac_config_files docs/doxygen.cfg"
31137
31138
31139           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31140
31141
31142           ac_config_commands="$ac_config_commands setup"
31143
31144           ac_config_commands="$ac_config_commands Makefile"
31145
31146
31147           ac_config_commands="$ac_config_commands Makefile.common"
31148
31149
31150           ac_config_commands="$ac_config_commands examples/Makefile"
31151
31152
31153           ac_config_commands="$ac_config_commands lib/Makefile"
31154
31155
31156           ac_config_commands="$ac_config_commands runtime/Makefile"
31157
31158
31159           ac_config_commands="$ac_config_commands test/Makefile"
31160
31161
31162           ac_config_commands="$ac_config_commands test/Makefile.tests"
31163
31164
31165           ac_config_commands="$ac_config_commands tools/Makefile"
31166
31167
31168           ac_config_commands="$ac_config_commands utils/Makefile"
31169
31170
31171           ac_config_commands="$ac_config_commands projects/Makefile"
31172
31173
31174
31175 cat >confcache <<\_ACEOF
31176 # This file is a shell script that caches the results of configure
31177 # tests run on this system so they can be shared between configure
31178 # scripts and configure runs, see configure's option --config-cache.
31179 # It is not useful on other systems.  If it contains results you don't
31180 # want to keep, you may remove or edit it.
31181 #
31182 # config.status only pays attention to the cache file if you give it
31183 # the --recheck option to rerun configure.
31184 #
31185 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31186 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31187 # following values.
31188
31189 _ACEOF
31190
31191 # The following way of writing the cache mishandles newlines in values,
31192 # but we know of no workaround that is simple, portable, and efficient.
31193 # So, don't put newlines in cache variables' values.
31194 # Ultrix sh set writes to stderr and can't be redirected directly,
31195 # and sets the high bit in the cache file unless we assign to the vars.
31196 {
31197   (set) 2>&1 |
31198     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31199     *ac_space=\ *)
31200       # `set' does not quote correctly, so add quotes (double-quote
31201       # substitution turns \\\\ into \\, and sed turns \\ into \).
31202       sed -n \
31203         "s/'/'\\\\''/g;
31204           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31205       ;;
31206     *)
31207       # `set' quotes correctly as required by POSIX, so do not add quotes.
31208       sed -n \
31209         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31210       ;;
31211     esac;
31212 } |
31213   sed '
31214      t clear
31215      : clear
31216      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31217      t end
31218      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31219      : end' >>confcache
31220 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31221   if test -w $cache_file; then
31222     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31223     cat confcache >$cache_file
31224   else
31225     echo "not updating unwritable cache $cache_file"
31226   fi
31227 fi
31228 rm -f confcache
31229
31230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31231 # Let make expand exec_prefix.
31232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31233
31234 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31235 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31236 # trailing colons and then remove the whole line if VPATH becomes empty
31237 # (actually we leave an empty line to preserve line numbers).
31238 if test "x$srcdir" = x.; then
31239   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31240 s/:*\$(srcdir):*/:/;
31241 s/:*\${srcdir}:*/:/;
31242 s/:*@srcdir@:*/:/;
31243 s/^\([^=]*=[     ]*\):*/\1/;
31244 s/:*$//;
31245 s/^[^=]*=[       ]*$//;
31246 }'
31247 fi
31248
31249 DEFS=-DHAVE_CONFIG_H
31250
31251 ac_libobjs=
31252 ac_ltlibobjs=
31253 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31254   # 1. Remove the extension, and $U if already installed.
31255   ac_i=`echo "$ac_i" |
31256          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31257   # 2. Add them.
31258   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31259   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31260 done
31261 LIBOBJS=$ac_libobjs
31262
31263 LTLIBOBJS=$ac_ltlibobjs
31264
31265
31266 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31267   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31268 Usually this means the macro was only invoked conditionally." >&5
31269 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31270 Usually this means the macro was only invoked conditionally." >&2;}
31271    { (exit 1); exit 1; }; }
31272 fi
31273 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31274   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31275 Usually this means the macro was only invoked conditionally." >&5
31276 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31277 Usually this means the macro was only invoked conditionally." >&2;}
31278    { (exit 1); exit 1; }; }
31279 fi
31280
31281 : ${CONFIG_STATUS=./config.status}
31282 ac_clean_files_save=$ac_clean_files
31283 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31284 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31285 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31286 cat >$CONFIG_STATUS <<_ACEOF
31287 #! $SHELL
31288 # Generated by $as_me.
31289 # Run this file to recreate the current configuration.
31290 # Compiler output produced by configure, useful for debugging
31291 # configure, is in config.log if it exists.
31292
31293 debug=false
31294 ac_cs_recheck=false
31295 ac_cs_silent=false
31296 SHELL=\${CONFIG_SHELL-$SHELL}
31297 _ACEOF
31298
31299 cat >>$CONFIG_STATUS <<\_ACEOF
31300 ## --------------------- ##
31301 ## M4sh Initialization.  ##
31302 ## --------------------- ##
31303
31304 # Be Bourne compatible
31305 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31306   emulate sh
31307   NULLCMD=:
31308   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31309   # is contrary to our usage.  Disable this feature.
31310   alias -g '${1+"$@"}'='"$@"'
31311 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31312   set -o posix
31313 fi
31314 DUALCASE=1; export DUALCASE # for MKS sh
31315
31316 # Support unset when possible.
31317 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31318   as_unset=unset
31319 else
31320   as_unset=false
31321 fi
31322
31323
31324 # Work around bugs in pre-3.0 UWIN ksh.
31325 $as_unset ENV MAIL MAILPATH
31326 PS1='$ '
31327 PS2='> '
31328 PS4='+ '
31329
31330 # NLS nuisances.
31331 for as_var in \
31332   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31333   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31334   LC_TELEPHONE LC_TIME
31335 do
31336   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31337     eval $as_var=C; export $as_var
31338   else
31339     $as_unset $as_var
31340   fi
31341 done
31342
31343 # Required to use basename.
31344 if expr a : '\(a\)' >/dev/null 2>&1; then
31345   as_expr=expr
31346 else
31347   as_expr=false
31348 fi
31349
31350 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31351   as_basename=basename
31352 else
31353   as_basename=false
31354 fi
31355
31356
31357 # Name of the executable.
31358 as_me=`$as_basename "$0" ||
31359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31360          X"$0" : 'X\(//\)$' \| \
31361          X"$0" : 'X\(/\)$' \| \
31362          .     : '\(.\)' 2>/dev/null ||
31363 echo X/"$0" |
31364     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31365           /^X\/\(\/\/\)$/{ s//\1/; q; }
31366           /^X\/\(\/\).*/{ s//\1/; q; }
31367           s/.*/./; q'`
31368
31369
31370 # PATH needs CR, and LINENO needs CR and PATH.
31371 # Avoid depending upon Character Ranges.
31372 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31373 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31374 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31375 as_cr_digits='0123456789'
31376 as_cr_alnum=$as_cr_Letters$as_cr_digits
31377
31378 # The user is always right.
31379 if test "${PATH_SEPARATOR+set}" != set; then
31380   echo "#! /bin/sh" >conf$$.sh
31381   echo  "exit 0"   >>conf$$.sh
31382   chmod +x conf$$.sh
31383   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31384     PATH_SEPARATOR=';'
31385   else
31386     PATH_SEPARATOR=:
31387   fi
31388   rm -f conf$$.sh
31389 fi
31390
31391
31392   as_lineno_1=$LINENO
31393   as_lineno_2=$LINENO
31394   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31395   test "x$as_lineno_1" != "x$as_lineno_2" &&
31396   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31397   # Find who we are.  Look in the path if we contain no path at all
31398   # relative or not.
31399   case $0 in
31400     *[\\/]* ) as_myself=$0 ;;
31401     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31402 for as_dir in $PATH
31403 do
31404   IFS=$as_save_IFS
31405   test -z "$as_dir" && as_dir=.
31406   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31407 done
31408
31409        ;;
31410   esac
31411   # We did not find ourselves, most probably we were run as `sh COMMAND'
31412   # in which case we are not to be found in the path.
31413   if test "x$as_myself" = x; then
31414     as_myself=$0
31415   fi
31416   if test ! -f "$as_myself"; then
31417     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31418 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31419    { (exit 1); exit 1; }; }
31420   fi
31421   case $CONFIG_SHELL in
31422   '')
31423     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31424 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31425 do
31426   IFS=$as_save_IFS
31427   test -z "$as_dir" && as_dir=.
31428   for as_base in sh bash ksh sh5; do
31429          case $as_dir in
31430          /*)
31431            if ("$as_dir/$as_base" -c '
31432   as_lineno_1=$LINENO
31433   as_lineno_2=$LINENO
31434   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31435   test "x$as_lineno_1" != "x$as_lineno_2" &&
31436   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31437              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31438              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31439              CONFIG_SHELL=$as_dir/$as_base
31440              export CONFIG_SHELL
31441              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31442            fi;;
31443          esac
31444        done
31445 done
31446 ;;
31447   esac
31448
31449   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31450   # uniformly replaced by the line number.  The first 'sed' inserts a
31451   # line-number line before each line; the second 'sed' does the real
31452   # work.  The second script uses 'N' to pair each line-number line
31453   # with the numbered line, and appends trailing '-' during
31454   # substitution so that $LINENO is not a special case at line end.
31455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31456   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31457   sed '=' <$as_myself |
31458     sed '
31459       N
31460       s,$,-,
31461       : loop
31462       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31463       t loop
31464       s,-$,,
31465       s,^['$as_cr_digits']*\n,,
31466     ' >$as_me.lineno &&
31467   chmod +x $as_me.lineno ||
31468     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31469 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31470    { (exit 1); exit 1; }; }
31471
31472   # Don't try to exec as it changes $[0], causing all sort of problems
31473   # (the dirname of $[0] is not the place where we might find the
31474   # original and so on.  Autoconf is especially sensible to this).
31475   . ./$as_me.lineno
31476   # Exit status is that of the last command.
31477   exit
31478 }
31479
31480
31481 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31482   *c*,-n*) ECHO_N= ECHO_C='
31483 ' ECHO_T='      ' ;;
31484   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31485   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31486 esac
31487
31488 if expr a : '\(a\)' >/dev/null 2>&1; then
31489   as_expr=expr
31490 else
31491   as_expr=false
31492 fi
31493
31494 rm -f conf$$ conf$$.exe conf$$.file
31495 echo >conf$$.file
31496 if ln -s conf$$.file conf$$ 2>/dev/null; then
31497   # We could just check for DJGPP; but this test a) works b) is more generic
31498   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31499   if test -f conf$$.exe; then
31500     # Don't use ln at all; we don't have any links
31501     as_ln_s='cp -p'
31502   else
31503     as_ln_s='ln -s'
31504   fi
31505 elif ln conf$$.file conf$$ 2>/dev/null; then
31506   as_ln_s=ln
31507 else
31508   as_ln_s='cp -p'
31509 fi
31510 rm -f conf$$ conf$$.exe conf$$.file
31511
31512 if mkdir -p . 2>/dev/null; then
31513   as_mkdir_p=:
31514 else
31515   test -d ./-p && rmdir ./-p
31516   as_mkdir_p=false
31517 fi
31518
31519 as_executable_p="test -f"
31520
31521 # Sed expression to map a string onto a valid CPP name.
31522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31523
31524 # Sed expression to map a string onto a valid variable name.
31525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31526
31527
31528 # IFS
31529 # We need space, tab and new line, in precisely that order.
31530 as_nl='
31531 '
31532 IFS="   $as_nl"
31533
31534 # CDPATH.
31535 $as_unset CDPATH
31536
31537 exec 6>&1
31538
31539 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31540 # report actual input values of CONFIG_FILES etc. instead of their
31541 # values after options handling.  Logging --version etc. is OK.
31542 exec 5>>config.log
31543 {
31544   echo
31545   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31546 ## Running $as_me. ##
31547 _ASBOX
31548 } >&5
31549 cat >&5 <<_CSEOF
31550
31551 This file was extended by llvm $as_me 1.8cvs, which was
31552 generated by GNU Autoconf 2.59.  Invocation command line was
31553
31554   CONFIG_FILES    = $CONFIG_FILES
31555   CONFIG_HEADERS  = $CONFIG_HEADERS
31556   CONFIG_LINKS    = $CONFIG_LINKS
31557   CONFIG_COMMANDS = $CONFIG_COMMANDS
31558   $ $0 $@
31559
31560 _CSEOF
31561 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31562 echo >&5
31563 _ACEOF
31564
31565 # Files that config.status was made for.
31566 if test -n "$ac_config_files"; then
31567   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31568 fi
31569
31570 if test -n "$ac_config_headers"; then
31571   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31572 fi
31573
31574 if test -n "$ac_config_links"; then
31575   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31576 fi
31577
31578 if test -n "$ac_config_commands"; then
31579   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31580 fi
31581
31582 cat >>$CONFIG_STATUS <<\_ACEOF
31583
31584 ac_cs_usage="\
31585 \`$as_me' instantiates files from templates according to the
31586 current configuration.
31587
31588 Usage: $0 [OPTIONS] [FILE]...
31589
31590   -h, --help       print this help, then exit
31591   -V, --version    print version number, then exit
31592   -q, --quiet      do not print progress messages
31593   -d, --debug      don't remove temporary files
31594       --recheck    update $as_me by reconfiguring in the same conditions
31595   --file=FILE[:TEMPLATE]
31596                    instantiate the configuration file FILE
31597   --header=FILE[:TEMPLATE]
31598                    instantiate the configuration header FILE
31599
31600 Configuration files:
31601 $config_files
31602
31603 Configuration headers:
31604 $config_headers
31605
31606 Configuration commands:
31607 $config_commands
31608
31609 Report bugs to <bug-autoconf@gnu.org>."
31610 _ACEOF
31611
31612 cat >>$CONFIG_STATUS <<_ACEOF
31613 ac_cs_version="\\
31614 llvm config.status 1.8cvs
31615 configured by $0, generated by GNU Autoconf 2.59,
31616   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31617
31618 Copyright (C) 2003 Free Software Foundation, Inc.
31619 This config.status script is free software; the Free Software Foundation
31620 gives unlimited permission to copy, distribute and modify it."
31621 srcdir=$srcdir
31622 INSTALL="$INSTALL"
31623 _ACEOF
31624
31625 cat >>$CONFIG_STATUS <<\_ACEOF
31626 # If no file are specified by the user, then we need to provide default
31627 # value.  By we need to know if files were specified by the user.
31628 ac_need_defaults=:
31629 while test $# != 0
31630 do
31631   case $1 in
31632   --*=*)
31633     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31634     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31635     ac_shift=:
31636     ;;
31637   -*)
31638     ac_option=$1
31639     ac_optarg=$2
31640     ac_shift=shift
31641     ;;
31642   *) # This is not an option, so the user has probably given explicit
31643      # arguments.
31644      ac_option=$1
31645      ac_need_defaults=false;;
31646   esac
31647
31648   case $ac_option in
31649   # Handling of the options.
31650 _ACEOF
31651 cat >>$CONFIG_STATUS <<\_ACEOF
31652   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31653     ac_cs_recheck=: ;;
31654   --version | --vers* | -V )
31655     echo "$ac_cs_version"; exit 0 ;;
31656   --he | --h)
31657     # Conflict between --help and --header
31658     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31659 Try \`$0 --help' for more information." >&5
31660 echo "$as_me: error: ambiguous option: $1
31661 Try \`$0 --help' for more information." >&2;}
31662    { (exit 1); exit 1; }; };;
31663   --help | --hel | -h )
31664     echo "$ac_cs_usage"; exit 0 ;;
31665   --debug | --d* | -d )
31666     debug=: ;;
31667   --file | --fil | --fi | --f )
31668     $ac_shift
31669     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31670     ac_need_defaults=false;;
31671   --header | --heade | --head | --hea )
31672     $ac_shift
31673     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31674     ac_need_defaults=false;;
31675   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31676   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31677     ac_cs_silent=: ;;
31678
31679   # This is an error.
31680   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31681 Try \`$0 --help' for more information." >&5
31682 echo "$as_me: error: unrecognized option: $1
31683 Try \`$0 --help' for more information." >&2;}
31684    { (exit 1); exit 1; }; } ;;
31685
31686   *) ac_config_targets="$ac_config_targets $1" ;;
31687
31688   esac
31689   shift
31690 done
31691
31692 ac_configure_extra_args=
31693
31694 if $ac_cs_silent; then
31695   exec 6>/dev/null
31696   ac_configure_extra_args="$ac_configure_extra_args --silent"
31697 fi
31698
31699 _ACEOF
31700 cat >>$CONFIG_STATUS <<_ACEOF
31701 if \$ac_cs_recheck; then
31702   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31703   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31704 fi
31705
31706 _ACEOF
31707
31708 cat >>$CONFIG_STATUS <<_ACEOF
31709 #
31710 # INIT-COMMANDS section.
31711 #
31712
31713 llvm_src="${srcdir}"
31714
31715 _ACEOF
31716
31717
31718
31719 cat >>$CONFIG_STATUS <<\_ACEOF
31720 for ac_config_target in $ac_config_targets
31721 do
31722   case "$ac_config_target" in
31723   # Handling of arguments.
31724   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31725   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31726   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31727   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31728   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31729   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31730   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31731   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31732   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31733   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31734   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31735   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31736   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31737   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31738   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31739   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31740   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31741   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31742   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31743   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31744 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31745    { (exit 1); exit 1; }; };;
31746   esac
31747 done
31748
31749 # If the user did not use the arguments to specify the items to instantiate,
31750 # then the envvar interface is used.  Set only those that are not.
31751 # We use the long form for the default assignment because of an extremely
31752 # bizarre bug on SunOS 4.1.3.
31753 if $ac_need_defaults; then
31754   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31755   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31756   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31757 fi
31758
31759 # Have a temporary directory for convenience.  Make it in the build tree
31760 # simply because there is no reason to put it here, and in addition,
31761 # creating and moving files from /tmp can sometimes cause problems.
31762 # Create a temporary directory, and hook for its removal unless debugging.
31763 $debug ||
31764 {
31765   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31766   trap '{ (exit 1); exit 1; }' 1 2 13 15
31767 }
31768
31769 # Create a (secure) tmp directory for tmp files.
31770
31771 {
31772   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31773   test -n "$tmp" && test -d "$tmp"
31774 }  ||
31775 {
31776   tmp=./confstat$$-$RANDOM
31777   (umask 077 && mkdir $tmp)
31778 } ||
31779 {
31780    echo "$me: cannot create a temporary directory in ." >&2
31781    { (exit 1); exit 1; }
31782 }
31783
31784 _ACEOF
31785
31786 cat >>$CONFIG_STATUS <<_ACEOF
31787
31788 #
31789 # CONFIG_FILES section.
31790 #
31791
31792 # No need to generate the scripts if there are no CONFIG_FILES.
31793 # This happens for instance when ./config.status config.h
31794 if test -n "\$CONFIG_FILES"; then
31795   # Protect against being on the right side of a sed subst in config.status.
31796   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31797    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31798 s,@SHELL@,$SHELL,;t t
31799 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31800 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31801 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31802 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31803 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31804 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31805 s,@exec_prefix@,$exec_prefix,;t t
31806 s,@prefix@,$prefix,;t t
31807 s,@program_transform_name@,$program_transform_name,;t t
31808 s,@bindir@,$bindir,;t t
31809 s,@sbindir@,$sbindir,;t t
31810 s,@libexecdir@,$libexecdir,;t t
31811 s,@datadir@,$datadir,;t t
31812 s,@sysconfdir@,$sysconfdir,;t t
31813 s,@sharedstatedir@,$sharedstatedir,;t t
31814 s,@localstatedir@,$localstatedir,;t t
31815 s,@libdir@,$libdir,;t t
31816 s,@includedir@,$includedir,;t t
31817 s,@oldincludedir@,$oldincludedir,;t t
31818 s,@infodir@,$infodir,;t t
31819 s,@mandir@,$mandir,;t t
31820 s,@build_alias@,$build_alias,;t t
31821 s,@host_alias@,$host_alias,;t t
31822 s,@target_alias@,$target_alias,;t t
31823 s,@DEFS@,$DEFS,;t t
31824 s,@ECHO_C@,$ECHO_C,;t t
31825 s,@ECHO_N@,$ECHO_N,;t t
31826 s,@ECHO_T@,$ECHO_T,;t t
31827 s,@LIBS@,$LIBS,;t t
31828 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31829 s,@subdirs@,$subdirs,;t t
31830 s,@build@,$build,;t t
31831 s,@build_cpu@,$build_cpu,;t t
31832 s,@build_vendor@,$build_vendor,;t t
31833 s,@build_os@,$build_os,;t t
31834 s,@host@,$host,;t t
31835 s,@host_cpu@,$host_cpu,;t t
31836 s,@host_vendor@,$host_vendor,;t t
31837 s,@host_os@,$host_os,;t t
31838 s,@target@,$target,;t t
31839 s,@target_cpu@,$target_cpu,;t t
31840 s,@target_vendor@,$target_vendor,;t t
31841 s,@target_os@,$target_os,;t t
31842 s,@OS@,$OS,;t t
31843 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31844 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31845 s,@ARCH@,$ARCH,;t t
31846 s,@ENDIAN@,$ENDIAN,;t t
31847 s,@CC@,$CC,;t t
31848 s,@CFLAGS@,$CFLAGS,;t t
31849 s,@LDFLAGS@,$LDFLAGS,;t t
31850 s,@CPPFLAGS@,$CPPFLAGS,;t t
31851 s,@ac_ct_CC@,$ac_ct_CC,;t t
31852 s,@EXEEXT@,$EXEEXT,;t t
31853 s,@OBJEXT@,$OBJEXT,;t t
31854 s,@CVSBUILD@,$CVSBUILD,;t t
31855 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31856 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31857 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31858 s,@JIT@,$JIT,;t t
31859 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31860 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31861 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31862 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31863 s,@CPP@,$CPP,;t t
31864 s,@CXX@,$CXX,;t t
31865 s,@CXXFLAGS@,$CXXFLAGS,;t t
31866 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31867 s,@LEX@,$LEX,;t t
31868 s,@LEXLIB@,$LEXLIB,;t t
31869 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31870 s,@FLEX@,$FLEX,;t t
31871 s,@YACC@,$YACC,;t t
31872 s,@BISON@,$BISON,;t t
31873 s,@ifGNUmake@,$ifGNUmake,;t t
31874 s,@LN_S@,$LN_S,;t t
31875 s,@CMP@,$CMP,;t t
31876 s,@CP@,$CP,;t t
31877 s,@DATE@,$DATE,;t t
31878 s,@FIND@,$FIND,;t t
31879 s,@GREP@,$GREP,;t t
31880 s,@MKDIR@,$MKDIR,;t t
31881 s,@MV@,$MV,;t t
31882 s,@RANLIB@,$RANLIB,;t t
31883 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31884 s,@RM@,$RM,;t t
31885 s,@SED@,$SED,;t t
31886 s,@TAR@,$TAR,;t t
31887 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31888 s,@GV@,$GV,;t t
31889 s,@PERL@,$PERL,;t t
31890 s,@HAVE_PERL@,$HAVE_PERL,;t t
31891 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31892 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31893 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31894 s,@BZIP2@,$BZIP2,;t t
31895 s,@DOT@,$DOT,;t t
31896 s,@DOXYGEN@,$DOXYGEN,;t t
31897 s,@ETAGS@,$ETAGS,;t t
31898 s,@GROFF@,$GROFF,;t t
31899 s,@GZIP@,$GZIP,;t t
31900 s,@POD2HTML@,$POD2HTML,;t t
31901 s,@POD2MAN@,$POD2MAN,;t t
31902 s,@RUNTEST@,$RUNTEST,;t t
31903 s,@TCLSH@,$TCLSH,;t t
31904 s,@ZIP@,$ZIP,;t t
31905 s,@EGREP@,$EGREP,;t t
31906 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31907 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31908 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31909 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31910 s,@LIBADD_DL@,$LIBADD_DL,;t t
31911 s,@ECHO@,$ECHO,;t t
31912 s,@AR@,$AR,;t t
31913 s,@ac_ct_AR@,$ac_ct_AR,;t t
31914 s,@STRIP@,$STRIP,;t t
31915 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31916 s,@CXXCPP@,$CXXCPP,;t t
31917 s,@F77@,$F77,;t t
31918 s,@FFLAGS@,$FFLAGS,;t t
31919 s,@ac_ct_F77@,$ac_ct_F77,;t t
31920 s,@LIBTOOL@,$LIBTOOL,;t t
31921 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31922 s,@LLVMGCC@,$LLVMGCC,;t t
31923 s,@LLVMGXX@,$LLVMGXX,;t t
31924 s,@ALLOCA@,$ALLOCA,;t t
31925 s,@MMAP_FILE@,$MMAP_FILE,;t t
31926 s,@LLVMCC1@,$LLVMCC1,;t t
31927 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31928 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31929 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31930 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31931 s,@SHLIBEXT@,$SHLIBEXT,;t t
31932 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31933 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31934 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31935 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31936 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31937 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31938 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31939 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31940 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31941 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31942 s,@LIBOBJS@,$LIBOBJS,;t t
31943 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31944 CEOF
31945
31946 _ACEOF
31947
31948   cat >>$CONFIG_STATUS <<\_ACEOF
31949   # Split the substitutions into bite-sized pieces for seds with
31950   # small command number limits, like on Digital OSF/1 and HP-UX.
31951   ac_max_sed_lines=48
31952   ac_sed_frag=1 # Number of current file.
31953   ac_beg=1 # First line for current file.
31954   ac_end=$ac_max_sed_lines # Line after last line for current file.
31955   ac_more_lines=:
31956   ac_sed_cmds=
31957   while $ac_more_lines; do
31958     if test $ac_beg -gt 1; then
31959       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31960     else
31961       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31962     fi
31963     if test ! -s $tmp/subs.frag; then
31964       ac_more_lines=false
31965     else
31966       # The purpose of the label and of the branching condition is to
31967       # speed up the sed processing (if there are no `@' at all, there
31968       # is no need to browse any of the substitutions).
31969       # These are the two extra sed commands mentioned above.
31970       (echo ':t
31971   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31972       if test -z "$ac_sed_cmds"; then
31973         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31974       else
31975         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31976       fi
31977       ac_sed_frag=`expr $ac_sed_frag + 1`
31978       ac_beg=$ac_end
31979       ac_end=`expr $ac_end + $ac_max_sed_lines`
31980     fi
31981   done
31982   if test -z "$ac_sed_cmds"; then
31983     ac_sed_cmds=cat
31984   fi
31985 fi # test -n "$CONFIG_FILES"
31986
31987 _ACEOF
31988 cat >>$CONFIG_STATUS <<\_ACEOF
31989 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31990   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31991   case $ac_file in
31992   - | *:- | *:-:* ) # input from stdin
31993         cat >$tmp/stdin
31994         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31995         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31996   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31997         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31998   * )   ac_file_in=$ac_file.in ;;
31999   esac
32000
32001   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32002   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32004          X"$ac_file" : 'X\(//\)[^/]' \| \
32005          X"$ac_file" : 'X\(//\)$' \| \
32006          X"$ac_file" : 'X\(/\)' \| \
32007          .     : '\(.\)' 2>/dev/null ||
32008 echo X"$ac_file" |
32009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32010           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32011           /^X\(\/\/\)$/{ s//\1/; q; }
32012           /^X\(\/\).*/{ s//\1/; q; }
32013           s/.*/./; q'`
32014   { if $as_mkdir_p; then
32015     mkdir -p "$ac_dir"
32016   else
32017     as_dir="$ac_dir"
32018     as_dirs=
32019     while test ! -d "$as_dir"; do
32020       as_dirs="$as_dir $as_dirs"
32021       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32023          X"$as_dir" : 'X\(//\)[^/]' \| \
32024          X"$as_dir" : 'X\(//\)$' \| \
32025          X"$as_dir" : 'X\(/\)' \| \
32026          .     : '\(.\)' 2>/dev/null ||
32027 echo X"$as_dir" |
32028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32029           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32030           /^X\(\/\/\)$/{ s//\1/; q; }
32031           /^X\(\/\).*/{ s//\1/; q; }
32032           s/.*/./; q'`
32033     done
32034     test ! -n "$as_dirs" || mkdir $as_dirs
32035   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32036 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32037    { (exit 1); exit 1; }; }; }
32038
32039   ac_builddir=.
32040
32041 if test "$ac_dir" != .; then
32042   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32043   # A "../" for each directory in $ac_dir_suffix.
32044   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32045 else
32046   ac_dir_suffix= ac_top_builddir=
32047 fi
32048
32049 case $srcdir in
32050   .)  # No --srcdir option.  We are building in place.
32051     ac_srcdir=.
32052     if test -z "$ac_top_builddir"; then
32053        ac_top_srcdir=.
32054     else
32055        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32056     fi ;;
32057   [\\/]* | ?:[\\/]* )  # Absolute path.
32058     ac_srcdir=$srcdir$ac_dir_suffix;
32059     ac_top_srcdir=$srcdir ;;
32060   *) # Relative path.
32061     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32062     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32063 esac
32064
32065 # Do not use `cd foo && pwd` to compute absolute paths, because
32066 # the directories may not exist.
32067 case `pwd` in
32068 .) ac_abs_builddir="$ac_dir";;
32069 *)
32070   case "$ac_dir" in
32071   .) ac_abs_builddir=`pwd`;;
32072   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32073   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32074   esac;;
32075 esac
32076 case $ac_abs_builddir in
32077 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32078 *)
32079   case ${ac_top_builddir}. in
32080   .) ac_abs_top_builddir=$ac_abs_builddir;;
32081   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32082   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32083   esac;;
32084 esac
32085 case $ac_abs_builddir in
32086 .) ac_abs_srcdir=$ac_srcdir;;
32087 *)
32088   case $ac_srcdir in
32089   .) ac_abs_srcdir=$ac_abs_builddir;;
32090   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32091   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32092   esac;;
32093 esac
32094 case $ac_abs_builddir in
32095 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32096 *)
32097   case $ac_top_srcdir in
32098   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32099   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32100   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32101   esac;;
32102 esac
32103
32104
32105   case $INSTALL in
32106   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32107   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32108   esac
32109
32110   if test x"$ac_file" != x-; then
32111     { echo "$as_me:$LINENO: creating $ac_file" >&5
32112 echo "$as_me: creating $ac_file" >&6;}
32113     rm -f "$ac_file"
32114   fi
32115   # Let's still pretend it is `configure' which instantiates (i.e., don't
32116   # use $as_me), people would be surprised to read:
32117   #    /* config.h.  Generated by config.status.  */
32118   if test x"$ac_file" = x-; then
32119     configure_input=
32120   else
32121     configure_input="$ac_file.  "
32122   fi
32123   configure_input=$configure_input"Generated from `echo $ac_file_in |
32124                                      sed 's,.*/,,'` by configure."
32125
32126   # First look for the input files in the build tree, otherwise in the
32127   # src tree.
32128   ac_file_inputs=`IFS=:
32129     for f in $ac_file_in; do
32130       case $f in
32131       -) echo $tmp/stdin ;;
32132       [\\/$]*)
32133          # Absolute (can't be DOS-style, as IFS=:)
32134          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32135 echo "$as_me: error: cannot find input file: $f" >&2;}
32136    { (exit 1); exit 1; }; }
32137          echo "$f";;
32138       *) # Relative
32139          if test -f "$f"; then
32140            # Build tree
32141            echo "$f"
32142          elif test -f "$srcdir/$f"; then
32143            # Source tree
32144            echo "$srcdir/$f"
32145          else
32146            # /dev/null tree
32147            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32148 echo "$as_me: error: cannot find input file: $f" >&2;}
32149    { (exit 1); exit 1; }; }
32150          fi;;
32151       esac
32152     done` || { (exit 1); exit 1; }
32153 _ACEOF
32154 cat >>$CONFIG_STATUS <<_ACEOF
32155   sed "$ac_vpsub
32156 $extrasub
32157 _ACEOF
32158 cat >>$CONFIG_STATUS <<\_ACEOF
32159 :t
32160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32161 s,@configure_input@,$configure_input,;t t
32162 s,@srcdir@,$ac_srcdir,;t t
32163 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32164 s,@top_srcdir@,$ac_top_srcdir,;t t
32165 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32166 s,@builddir@,$ac_builddir,;t t
32167 s,@abs_builddir@,$ac_abs_builddir,;t t
32168 s,@top_builddir@,$ac_top_builddir,;t t
32169 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32170 s,@INSTALL@,$ac_INSTALL,;t t
32171 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32172   rm -f $tmp/stdin
32173   if test x"$ac_file" != x-; then
32174     mv $tmp/out $ac_file
32175   else
32176     cat $tmp/out
32177     rm -f $tmp/out
32178   fi
32179
32180 done
32181 _ACEOF
32182 cat >>$CONFIG_STATUS <<\_ACEOF
32183
32184 #
32185 # CONFIG_HEADER section.
32186 #
32187
32188 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32189 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32190 #
32191 # ac_d sets the value in "#define NAME VALUE" lines.
32192 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32193 ac_dB='[         ].*$,\1#\2'
32194 ac_dC=' '
32195 ac_dD=',;t'
32196 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32197 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32198 ac_uB='$,\1#\2define\3'
32199 ac_uC=' '
32200 ac_uD=',;t'
32201
32202 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32203   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32204   case $ac_file in
32205   - | *:- | *:-:* ) # input from stdin
32206         cat >$tmp/stdin
32207         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32208         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32209   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32210         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32211   * )   ac_file_in=$ac_file.in ;;
32212   esac
32213
32214   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32215 echo "$as_me: creating $ac_file" >&6;}
32216
32217   # First look for the input files in the build tree, otherwise in the
32218   # src tree.
32219   ac_file_inputs=`IFS=:
32220     for f in $ac_file_in; do
32221       case $f in
32222       -) echo $tmp/stdin ;;
32223       [\\/$]*)
32224          # Absolute (can't be DOS-style, as IFS=:)
32225          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32226 echo "$as_me: error: cannot find input file: $f" >&2;}
32227    { (exit 1); exit 1; }; }
32228          # Do quote $f, to prevent DOS paths from being IFS'd.
32229          echo "$f";;
32230       *) # Relative
32231          if test -f "$f"; then
32232            # Build tree
32233            echo "$f"
32234          elif test -f "$srcdir/$f"; then
32235            # Source tree
32236            echo "$srcdir/$f"
32237          else
32238            # /dev/null tree
32239            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32240 echo "$as_me: error: cannot find input file: $f" >&2;}
32241    { (exit 1); exit 1; }; }
32242          fi;;
32243       esac
32244     done` || { (exit 1); exit 1; }
32245   # Remove the trailing spaces.
32246   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32247
32248 _ACEOF
32249
32250 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32251 # `conftest.undefs', that substitutes the proper values into
32252 # config.h.in to produce config.h.  The first handles `#define'
32253 # templates, and the second `#undef' templates.
32254 # And first: Protect against being on the right side of a sed subst in
32255 # config.status.  Protect against being in an unquoted here document
32256 # in config.status.
32257 rm -f conftest.defines conftest.undefs
32258 # Using a here document instead of a string reduces the quoting nightmare.
32259 # Putting comments in sed scripts is not portable.
32260 #
32261 # `end' is used to avoid that the second main sed command (meant for
32262 # 0-ary CPP macros) applies to n-ary macro definitions.
32263 # See the Autoconf documentation for `clear'.
32264 cat >confdef2sed.sed <<\_ACEOF
32265 s/[\\&,]/\\&/g
32266 s,[\\$`],\\&,g
32267 t clear
32268 : clear
32269 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32270 t end
32271 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32272 : end
32273 _ACEOF
32274 # If some macros were called several times there might be several times
32275 # the same #defines, which is useless.  Nevertheless, we may not want to
32276 # sort them, since we want the *last* AC-DEFINE to be honored.
32277 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32278 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32279 rm -f confdef2sed.sed
32280
32281 # This sed command replaces #undef with comments.  This is necessary, for
32282 # example, in the case of _POSIX_SOURCE, which is predefined and required
32283 # on some systems where configure will not decide to define it.
32284 cat >>conftest.undefs <<\_ACEOF
32285 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32286 _ACEOF
32287
32288 # Break up conftest.defines because some shells have a limit on the size
32289 # of here documents, and old seds have small limits too (100 cmds).
32290 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32291 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32292 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32293 echo '  :' >>$CONFIG_STATUS
32294 rm -f conftest.tail
32295 while grep . conftest.defines >/dev/null
32296 do
32297   # Write a limited-size here document to $tmp/defines.sed.
32298   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32299   # Speed up: don't consider the non `#define' lines.
32300   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32301   # Work around the forget-to-reset-the-flag bug.
32302   echo 't clr' >>$CONFIG_STATUS
32303   echo ': clr' >>$CONFIG_STATUS
32304   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32305   echo 'CEOF
32306   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32307   rm -f $tmp/in
32308   mv $tmp/out $tmp/in
32309 ' >>$CONFIG_STATUS
32310   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32311   rm -f conftest.defines
32312   mv conftest.tail conftest.defines
32313 done
32314 rm -f conftest.defines
32315 echo '  fi # grep' >>$CONFIG_STATUS
32316 echo >>$CONFIG_STATUS
32317
32318 # Break up conftest.undefs because some shells have a limit on the size
32319 # of here documents, and old seds have small limits too (100 cmds).
32320 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32321 rm -f conftest.tail
32322 while grep . conftest.undefs >/dev/null
32323 do
32324   # Write a limited-size here document to $tmp/undefs.sed.
32325   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32326   # Speed up: don't consider the non `#undef'
32327   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32328   # Work around the forget-to-reset-the-flag bug.
32329   echo 't clr' >>$CONFIG_STATUS
32330   echo ': clr' >>$CONFIG_STATUS
32331   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32332   echo 'CEOF
32333   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32334   rm -f $tmp/in
32335   mv $tmp/out $tmp/in
32336 ' >>$CONFIG_STATUS
32337   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32338   rm -f conftest.undefs
32339   mv conftest.tail conftest.undefs
32340 done
32341 rm -f conftest.undefs
32342
32343 cat >>$CONFIG_STATUS <<\_ACEOF
32344   # Let's still pretend it is `configure' which instantiates (i.e., don't
32345   # use $as_me), people would be surprised to read:
32346   #    /* config.h.  Generated by config.status.  */
32347   if test x"$ac_file" = x-; then
32348     echo "/* Generated by configure.  */" >$tmp/config.h
32349   else
32350     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32351   fi
32352   cat $tmp/in >>$tmp/config.h
32353   rm -f $tmp/in
32354   if test x"$ac_file" != x-; then
32355     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32356       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32357 echo "$as_me: $ac_file is unchanged" >&6;}
32358     else
32359       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32361          X"$ac_file" : 'X\(//\)[^/]' \| \
32362          X"$ac_file" : 'X\(//\)$' \| \
32363          X"$ac_file" : 'X\(/\)' \| \
32364          .     : '\(.\)' 2>/dev/null ||
32365 echo X"$ac_file" |
32366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32368           /^X\(\/\/\)$/{ s//\1/; q; }
32369           /^X\(\/\).*/{ s//\1/; q; }
32370           s/.*/./; q'`
32371       { if $as_mkdir_p; then
32372     mkdir -p "$ac_dir"
32373   else
32374     as_dir="$ac_dir"
32375     as_dirs=
32376     while test ! -d "$as_dir"; do
32377       as_dirs="$as_dir $as_dirs"
32378       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32380          X"$as_dir" : 'X\(//\)[^/]' \| \
32381          X"$as_dir" : 'X\(//\)$' \| \
32382          X"$as_dir" : 'X\(/\)' \| \
32383          .     : '\(.\)' 2>/dev/null ||
32384 echo X"$as_dir" |
32385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32386           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32387           /^X\(\/\/\)$/{ s//\1/; q; }
32388           /^X\(\/\).*/{ s//\1/; q; }
32389           s/.*/./; q'`
32390     done
32391     test ! -n "$as_dirs" || mkdir $as_dirs
32392   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32393 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32394    { (exit 1); exit 1; }; }; }
32395
32396       rm -f $ac_file
32397       mv $tmp/config.h $ac_file
32398     fi
32399   else
32400     cat $tmp/config.h
32401     rm -f $tmp/config.h
32402   fi
32403 done
32404 _ACEOF
32405 cat >>$CONFIG_STATUS <<\_ACEOF
32406
32407 #
32408 # CONFIG_COMMANDS section.
32409 #
32410 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32411   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32412   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32413   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32414 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32415          X"$ac_dest" : 'X\(//\)[^/]' \| \
32416          X"$ac_dest" : 'X\(//\)$' \| \
32417          X"$ac_dest" : 'X\(/\)' \| \
32418          .     : '\(.\)' 2>/dev/null ||
32419 echo X"$ac_dest" |
32420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32421           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32422           /^X\(\/\/\)$/{ s//\1/; q; }
32423           /^X\(\/\).*/{ s//\1/; q; }
32424           s/.*/./; q'`
32425   { if $as_mkdir_p; then
32426     mkdir -p "$ac_dir"
32427   else
32428     as_dir="$ac_dir"
32429     as_dirs=
32430     while test ! -d "$as_dir"; do
32431       as_dirs="$as_dir $as_dirs"
32432       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32434          X"$as_dir" : 'X\(//\)[^/]' \| \
32435          X"$as_dir" : 'X\(//\)$' \| \
32436          X"$as_dir" : 'X\(/\)' \| \
32437          .     : '\(.\)' 2>/dev/null ||
32438 echo X"$as_dir" |
32439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32440           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32441           /^X\(\/\/\)$/{ s//\1/; q; }
32442           /^X\(\/\).*/{ s//\1/; q; }
32443           s/.*/./; q'`
32444     done
32445     test ! -n "$as_dirs" || mkdir $as_dirs
32446   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32447 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32448    { (exit 1); exit 1; }; }; }
32449
32450   ac_builddir=.
32451
32452 if test "$ac_dir" != .; then
32453   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32454   # A "../" for each directory in $ac_dir_suffix.
32455   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32456 else
32457   ac_dir_suffix= ac_top_builddir=
32458 fi
32459
32460 case $srcdir in
32461   .)  # No --srcdir option.  We are building in place.
32462     ac_srcdir=.
32463     if test -z "$ac_top_builddir"; then
32464        ac_top_srcdir=.
32465     else
32466        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32467     fi ;;
32468   [\\/]* | ?:[\\/]* )  # Absolute path.
32469     ac_srcdir=$srcdir$ac_dir_suffix;
32470     ac_top_srcdir=$srcdir ;;
32471   *) # Relative path.
32472     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32473     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32474 esac
32475
32476 # Do not use `cd foo && pwd` to compute absolute paths, because
32477 # the directories may not exist.
32478 case `pwd` in
32479 .) ac_abs_builddir="$ac_dir";;
32480 *)
32481   case "$ac_dir" in
32482   .) ac_abs_builddir=`pwd`;;
32483   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32484   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32485   esac;;
32486 esac
32487 case $ac_abs_builddir in
32488 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32489 *)
32490   case ${ac_top_builddir}. in
32491   .) ac_abs_top_builddir=$ac_abs_builddir;;
32492   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32493   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32494   esac;;
32495 esac
32496 case $ac_abs_builddir in
32497 .) ac_abs_srcdir=$ac_srcdir;;
32498 *)
32499   case $ac_srcdir in
32500   .) ac_abs_srcdir=$ac_abs_builddir;;
32501   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32502   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32503   esac;;
32504 esac
32505 case $ac_abs_builddir in
32506 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32507 *)
32508   case $ac_top_srcdir in
32509   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32510   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32511   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32512   esac;;
32513 esac
32514
32515
32516   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32517 echo "$as_me: executing $ac_dest commands" >&6;}
32518   case $ac_dest in
32519     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32520    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32521     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32522    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32523     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32524    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32525     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32526    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32527     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32528    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32529     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32530    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32531     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32532    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32533     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32534    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32535     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32536    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32537     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32538    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32539   esac
32540 done
32541 _ACEOF
32542
32543 cat >>$CONFIG_STATUS <<\_ACEOF
32544
32545 { (exit 0); exit 0; }
32546 _ACEOF
32547 chmod +x $CONFIG_STATUS
32548 ac_clean_files=$ac_clean_files_save
32549
32550
32551 # configure is writing to config.log, and then calls config.status.
32552 # config.status does its own redirection, appending to config.log.
32553 # Unfortunately, on DOS this fails, as config.log is still kept open
32554 # by configure, so config.status won't be able to write to it; its
32555 # output is simply discarded.  So we exec the FD to /dev/null,
32556 # effectively closing config.log, so it can be properly (re)opened and
32557 # appended to by config.status.  When coming back to configure, we
32558 # need to make the FD available again.
32559 if test "$no_create" != yes; then
32560   ac_cs_success=:
32561   ac_config_status_args=
32562   test "$silent" = yes &&
32563     ac_config_status_args="$ac_config_status_args --quiet"
32564   exec 5>/dev/null
32565   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32566   exec 5>>config.log
32567   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32568   # would make configure fail if this is the last instruction.
32569   $ac_cs_success || { (exit 1); exit 1; }
32570 fi
32571
32572 #
32573 # CONFIG_SUBDIRS section.
32574 #
32575 if test "$no_recursion" != yes; then
32576
32577   # Remove --cache-file and --srcdir arguments so they do not pile up.
32578   ac_sub_configure_args=
32579   ac_prev=
32580   for ac_arg in $ac_configure_args; do
32581     if test -n "$ac_prev"; then
32582       ac_prev=
32583       continue
32584     fi
32585     case $ac_arg in
32586     -cache-file | --cache-file | --cache-fil | --cache-fi \
32587     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32588       ac_prev=cache_file ;;
32589     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32590     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32591     | --c=*)
32592       ;;
32593     --config-cache | -C)
32594       ;;
32595     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32596       ac_prev=srcdir ;;
32597     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32598       ;;
32599     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32600       ac_prev=prefix ;;
32601     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32602       ;;
32603     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32604     esac
32605   done
32606
32607   # Always prepend --prefix to ensure using the same prefix
32608   # in subdir configurations.
32609   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32610
32611   ac_popdir=`pwd`
32612   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32613
32614     # Do not complain, so a configure script can configure whichever
32615     # parts of a large source tree are present.
32616     test -d $srcdir/$ac_dir || continue
32617
32618     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32619 echo "$as_me: configuring in $ac_dir" >&6;}
32620     { if $as_mkdir_p; then
32621     mkdir -p "$ac_dir"
32622   else
32623     as_dir="$ac_dir"
32624     as_dirs=
32625     while test ! -d "$as_dir"; do
32626       as_dirs="$as_dir $as_dirs"
32627       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32629          X"$as_dir" : 'X\(//\)[^/]' \| \
32630          X"$as_dir" : 'X\(//\)$' \| \
32631          X"$as_dir" : 'X\(/\)' \| \
32632          .     : '\(.\)' 2>/dev/null ||
32633 echo X"$as_dir" |
32634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32636           /^X\(\/\/\)$/{ s//\1/; q; }
32637           /^X\(\/\).*/{ s//\1/; q; }
32638           s/.*/./; q'`
32639     done
32640     test ! -n "$as_dirs" || mkdir $as_dirs
32641   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32643    { (exit 1); exit 1; }; }; }
32644
32645     ac_builddir=.
32646
32647 if test "$ac_dir" != .; then
32648   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32649   # A "../" for each directory in $ac_dir_suffix.
32650   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32651 else
32652   ac_dir_suffix= ac_top_builddir=
32653 fi
32654
32655 case $srcdir in
32656   .)  # No --srcdir option.  We are building in place.
32657     ac_srcdir=.
32658     if test -z "$ac_top_builddir"; then
32659        ac_top_srcdir=.
32660     else
32661        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32662     fi ;;
32663   [\\/]* | ?:[\\/]* )  # Absolute path.
32664     ac_srcdir=$srcdir$ac_dir_suffix;
32665     ac_top_srcdir=$srcdir ;;
32666   *) # Relative path.
32667     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32668     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32669 esac
32670
32671 # Do not use `cd foo && pwd` to compute absolute paths, because
32672 # the directories may not exist.
32673 case `pwd` in
32674 .) ac_abs_builddir="$ac_dir";;
32675 *)
32676   case "$ac_dir" in
32677   .) ac_abs_builddir=`pwd`;;
32678   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32679   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32680   esac;;
32681 esac
32682 case $ac_abs_builddir in
32683 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32684 *)
32685   case ${ac_top_builddir}. in
32686   .) ac_abs_top_builddir=$ac_abs_builddir;;
32687   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32688   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32689   esac;;
32690 esac
32691 case $ac_abs_builddir in
32692 .) ac_abs_srcdir=$ac_srcdir;;
32693 *)
32694   case $ac_srcdir in
32695   .) ac_abs_srcdir=$ac_abs_builddir;;
32696   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32697   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32698   esac;;
32699 esac
32700 case $ac_abs_builddir in
32701 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32702 *)
32703   case $ac_top_srcdir in
32704   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32705   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32706   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32707   esac;;
32708 esac
32709
32710
32711     cd $ac_dir
32712
32713     # Check for guested configure; otherwise get Cygnus style configure.
32714     if test -f $ac_srcdir/configure.gnu; then
32715       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32716     elif test -f $ac_srcdir/configure; then
32717       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32718     elif test -f $ac_srcdir/configure.in; then
32719       ac_sub_configure=$ac_configure
32720     else
32721       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32722 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32723       ac_sub_configure=
32724     fi
32725
32726     # The recursion is here.
32727     if test -n "$ac_sub_configure"; then
32728       # Make the cache file name correct relative to the subdirectory.
32729       case $cache_file in
32730       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32731       *) # Relative path.
32732         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32733       esac
32734
32735       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32736 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32737       # The eval makes quoting arguments work.
32738       eval $ac_sub_configure $ac_sub_configure_args \
32739            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32740         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32741 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32742    { (exit 1); exit 1; }; }
32743     fi
32744
32745     cd $ac_popdir
32746   done
32747 fi
32748
32749
32750 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32751  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32752 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32753  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32754 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32755  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32756 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32757  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32758 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32759  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32760 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32761 fi